Zend Framework  1.12
Static Public Member Functions | List of all members
Zend_Gdata_App_Util Class Reference

Static Public Member Functions

static formatTimestamp ($timestamp)
 Convert timestamp into RFC 3339 date string.
 
static findGreatestBoundedValue ($maximumKey, $collection)
 Find the greatest key that is less than or equal to a given upper bound, and return the value associated with that key.
 

Member Function Documentation

static findGreatestBoundedValue (   $maximumKey,
  $collection 
)
static

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

Parameters
integer | null$maximumKeyThe upper bound for keys. If null, the maxiumum valued key will be found.
array$collectionAn two-dimensional array of key/value pairs to search through.
Returns
mixed The value corresponding to the located key.
Exceptions
Zend_Gdata_App_ExceptionThrown if $collection is empty.
static formatTimestamp (   $timestamp)
static

Convert timestamp into RFC 3339 date string.

2005-04-19T15:30:00

Parameters
int$timestamp
Exceptions
Zend_Gdata_App_InvalidArgumentException