Source for file GalleryPhotos.php
Documentation is available at GalleryPhotos.php
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
* Gallery photos endpoint driver
* LICENSE: This source file is subject to version 3.0 of the PHP license
* that is available through the world-wide-web at the following URI:
* http://www.php.net/license/3_0.txt. If you did not receive a copy of
* the PHP License and are unable to obtain it through the web, please
* send a note to license@php.net so we can mail you a copy immediately.
* @author Joe Stump <joe@joestump.net>
* @copyright 1997-2007 The PHP Group
* @license http://www.php.net/license/3_0.txt PHP License 3.0
* @link http://pear.php.net/package/Services_Digg
* Services_Digg_GalleryPhotos
* @author Joe Stump <joe@joestump.net>
* Get all users' gallery photos
* @param array $params Digg API arguments
* @throws Services_Digg_Exception
public function getAll(array $params = array ())
* Get a single gallery photo by ID
* @param int $id ID of gallery photo
* @throws Services_Digg_Exception
if (isset ($result->photos [0 ])) {
return $result->photos [0 ];
* Get a list of gallery phtoos by their ID's
* @param array $photos An array of photo ID's
* @param array $params Digg API arguments
* @throws Services_Digg_Exception
$endPoint = '/galleryphotos/' . implode(',', $photos);
Documentation generated on Fri, 10 Jul 2009 01:30:04 +0000 by phpDocumentor 1.4.2. PEAR Logo Copyright © PHP Group 2004.
|