Moodle  2.2.1
http://www.collinsharper.com
Zend_Gdata_App_Util Class Reference

Static Public Member Functions

static formatTimestamp ($timestamp)
static findGreatestBoundedValue ($maximumKey, $collection)

Detailed Description

Definition at line 33 of file Util.php.


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.

Definition at line 73 of file Util.php.

Here is the caller graph for this function:

static formatTimestamp ( timestamp) [static]

Convert timestamp into RFC 3339 date string. 2005-04-19T15:30:00

Parameters:
int$timestamp
Exceptions:
Zend_Gdata_App_InvalidArgumentException

Definition at line 43 of file Util.php.

Here is the caller graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations