Utility class for static functions needed by Zend_Gdata_App

category Zend
package Zend_Gdata
subpackage App
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Find the greatest key that is less than or equal to a given upper bound, and return the value associated with that key.

findGreatestBoundedValue(integer|null $maximumKey, array $collection) 
Static
returns mixed The value corresponding to the located key.

Parameters

$maximumKey

integernull

The upper bound for keys. If null, the maxiumum valued key will be found.

$collection

array

An two-dimensional array of key/value pairs to search through.

Exceptions

\Zend_Gdata_App_Exception Thrown if $collection is empty.

Convert timestamp into RFC 3339 date string.

formatTimestamp(integer $timestamp) 
Static

2005-04-19T15:30:00

Parameters

$timestamp

integer

Exceptions

\Zend_Gdata_App_InvalidArgumentException