Gdata/App/Util.php

Show: PublicProtectedPrivateinherited
Table of Contents
Zend Framework
LICENSE This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to [email protected] so we can send you a copy immediately.
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_Gdata  
Subpackage
App  
Version
$Id$  

\Zend_Gdata_App_Util

Package: Zend_Gdata\App
Utility class for static functions needed by Zend_Gdata_App
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Methods

methodpublicfindGreatestBoundedValue(integer | null $maximumKey, array $collection) : void
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
NameTypeDescription
$maximumKeyinteger | null

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

$collectionarray

An two-dimensional array of key/value pairs

   to search through.
Throws
ExceptionDescription
\Zend_Gdata_App_ExceptionThrown if $collection is empty.
Details
Returns
mixed The value corresponding to the located key.  
methodpublicformatTimestamp(int $timestamp) : void
static

Convert timestamp into RFC 3339 date string.

2005-04-19T15:30:00
Parameters
NameTypeDescription
$timestampint
Throws
ExceptionDescription
\Zend_Gdata_App_InvalidArgumentException
Documentation was generated by phpDocumentor 2.2.0 .