public function listPhotos()
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getLink('http://schemas.google.com/g/2005#feed');
			$jdata = $this->query($url, null, array('GData-Version' => 2));
			$xml = $this->safeXML($jdata->body);

			if (isset($xml->children()->entry))
			{
				$items = array();

				foreach ($xml->children()->entry as $item)
				{
					$items[] = new Photo($item, $this->options, $this->auth);
				}

				return $items;
			}
			else
			{
				throw new \UnexpectedValueException("Unexpected data received from Google: `{$jdata->body}`.");
			}
		}
		else
		{
			return false;
		}
	}
public function listPhotos()
	{
		if ($this->isAuthenticated())
		{
			$url = $this->getLink('http://schemas.google.com/g/2005#feed');
			$jdata = $this->query($url, null, array('GData-Version' => 2));
			$xml = $this->safeXML($jdata->body);

			if (isset($xml->children()->entry))
			{
				$items = array();

				foreach ($xml->children()->entry as $item)
				{
					$items[] = new Photo($item, $this->options, $this->auth);
				}

				return $items;
			}
			else
			{
				throw new \UnexpectedValueException("Unexpected data received from Google: `{$jdata->body}`.");
			}
		}
		else
		{
			return false;
		}
	}
public function listPhotos ( ) { if ( $ this -> isAuthenticated ( ) ) { $ url = $ this -> getLink ( 'http://schemas.google.com/g/2005#feed' ) ; $ jdata = $ this -> query ( $ url , null , array ( 'GData-Version' => 2 ) ) ; $ xml = $ this -> safeXML ( $ jdata -> body ) ; if ( isset ( $ xml -> children ( ) -> entry ) ) { $ items = array ( ) ; foreach ( $ xml -> children ( ) -> entry as $ item ) { $ items [ ] = new Photo ( $ item , $ this -> options , $ this -> auth ) ; } return $ items ; } else { throw new \ UnexpectedValueException ( "Unexpected data received from Google: `{$jdata->body}`." ) ; } } else { return false ; } }
Method to retrieve a list of Picasa Photos

@return  mixed  Data from Google

@since   1.0
@throws  \UnexpectedValueException
Method to retrieve a list of Picasa Photos