Code |
Context$albumid = "5302180467542358241"
$userid = "cristin.ford"
$http_response_header = array(
"HTTP/1.0 200 OK",
"Expires: Fri, 30 Jul 2010 10:52:50 GMT",
"Date: Fri, 30 Jul 2010 10:52:50 GMT",
"Cache-Control: private, max-age=0, must-revalidate, no-transform",
"Set-Cookie: _rtok=HKKqtJQDsGf8; Path=/; HttpOnly",
"Set-Cookie: S=photos_html=fXDMUNdyrr9EfQv9-REq8A; Domain=.google.com; Path=/; HttpOnly",
"Content-Type: application/atom+xml; charset=UTF-8",
"Vary: Accept, X-GData-Authorization, GData-Version, Cookie",
"GData-Version: 1.0",
"Last-Modified: Fri, 07 Aug 2009 17:39:20 GMT",
"X-Content-Type-Options: nosniff",
"X-Frame-Options: SAMEORIGIN",
"X-XSS-Protection: 1; mode=block",
"Server: GSE"
)
$xml = "<?xml version='1.0' encoding='UTF-8'?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:gphoto='http://schemas.google.com/photos/2007' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>http://picasaweb.google.com/data/feed/api/user/cristin.ford/albumid/5302180467542358241</id><updated>2009-08-07T17:39:20.176Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#album'/><title type='text'>Website Gallery</title><subtitle type='text'>Artwork Documentation for Public Viewing.</subtitle><rights type='text'>public</rights><icon>http://lh4.ggpht.com/_Lk8hWY_Ckao/SZUhCwbgeOE/AAAAAAAAAmg/IV1rjX5nOeU/s160-c/WebsiteGallery.jpg</icon><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/cristin.ford/albumid/5302180467542358241'/><link rel='alternate' type='text/html' href='http://picasaweb.google.com/cristin.ford/WebsiteGallery'/><link rel='http://schemas.google.com/photos/2007#slideshow' type='application/x-shockwave-flash' href='http://picasaweb.google.com/s/c/bin/slideshow.swf?host=picasaweb.google.com&RGB=0x000000&feed=http%3A%2F%2Fpicasaweb.google.com%2Fdata%2Ffeed%2Fapi%2Fuser%2Fcristin.ford%2Falbumid%2F5302180467542358241%3Falt%3Drss'/><link rel='http://schemas.google.com/photos/2007#report' type='text/html' href='http://picasaweb.google.com/lh/reportAbuse?uname=cristin.ford&aid=5302180467542358241'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/feed/api/user/cristin.ford/albumid/5302180467542358241?start-index=1&max-results=500&kind=tag'/><author><name>cristin</name><uri>http://picasaweb.google.com/cristin.ford</uri></author><generator version='1.00' uri='http://picasaweb.google.com/'>Picasaweb</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>500</openSearch:itemsPerPage><gphoto:id>5302180467542358241</gphoto:id><gphoto:name>WebsiteGallery</gphoto:name><gphoto:location>Studio, Everett, WA</gphoto:location><gphoto:access>public</gphoto:access><gphoto:timestamp>1234425600000</gphoto:timestamp><gphoto:numphotos>23</gphoto:numphotos><gphoto:user>cristin.ford</gphoto:user><gphoto:nickname>cristin</gphoto:nickname><gphoto:commentingEnabled>true</gphoto:commentingEnabled><gphoto:commentCount>0</gphoto:commentCount><gphoto:allowPrints>true</gphoto:allowPrints><gphoto:allowDownloads>true</gphoto:allowDownloads><entry><id>http://picasaweb.google.com/data/entry/api/user/cristin.ford/albumid/5302180467542358241/tag/Drawings</id><updated>2009-08-07T17:39:20.176Z</updated><category scheme='http://schemas.google.com/g/2005#kind' term='http://schemas.google.com/photos/2007#tag'/><title type='text'>Drawings</title><summary type='text'>Drawings</summary><link rel='alternate' type='text/html' href='http://picasaweb.google.com/lh/searchbrowse?q=Drawings&psc=G&uname=cristin.ford&filter=0'/><link rel='self' type='application/atom+xml' href='http://picasaweb.google.com/data/entry/api/user/cristin.ford/albumid/5302180467542358241/tag/Drawings'/><author><name>cristin</name><uri>http://picasaweb.google.com/cristin.ford</uri></author><gphoto:weight>9</gphoto:weight></entry></feed>"
$r = array(
"feed" => array(
"id" => "http://picasaweb.google.com/data/feed/api/user/cristin.ford/albumid/5302180467542358241",
"updated" => "2009-08-07T17:39:20.176Z",
"category" => array(),
"category_attr" => array(),
"title" => "Website Gallery",
"title_attr" => array(),
"subtitle" => "Artwork Documentation for Public Viewing.",
"subtitle_attr" => array(),
"rights" => "public",
"rights_attr" => array(),
"icon" => "http://lh4.ggpht.com/_Lk8hWY_Ckao/SZUhCwbgeOE/AAAAAAAAAmg/IV1rjX5nOeU/s160-c/WebsiteGallery.jpg",
"link" => array(),
"author" => array(),
"generator" => "Picasaweb",
"generator_attr" => array(),
"openSearch:totalResults" => "1",
"openSearch:startIndex" => "1",
"openSearch:itemsPerPage" => "500",
"gphoto:id" => "5302180467542358241",
"gphoto:name" => "WebsiteGallery",
"gphoto:location" => "Studio, Everett, WA",
"gphoto:access" => "public",
"gphoto:timestamp" => "1234425600000",
"gphoto:numphotos" => "23",
"gphoto:user" => "cristin.ford",
"gphoto:nickname" => "cristin",
"gphoto:commentingEnabled" => "true",
"gphoto:commentCount" => "0",
"gphoto:allowPrints" => "true",
"gphoto:allowDownloads" => "true",
"entry" => array()
),
"feed_attr" => array(
"xmlns" => "http://www.w3.org/2005/Atom",
"xmlns:gphoto" => "http://schemas.google.com/photos/2007",
"xmlns:openSearch" => "http://a9.com/-/spec/opensearchrss/1.0/"
)
)
$ret = array(
"id" => "h",
"updated" => "2"
)
$rv = array()
$rk = "category"
foreach($r['feed']['entry'] as $rk=>$rv){
$ret[$rk] = $rv['title'];
Gdata::getTagsByAlbum() - APP/models/gdata.php, line 28
GalleriesController::index() - APP/controllers/galleries_controller.php, line 14
Object::dispatchMethod() - CORE/cake/libs/object.php, line 115
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 245
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 211
[main] - APP/webroot/index.php, line 88