Example #1
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('atom') . ':' . 'entry';
             $entry = new Zend_Gdata_Entry();
             $entry->transferFromDOM($child);
             $this->_entry = $entry;
             break;
     default:
         parent::takeChildFromDOM($child);
         break;
     }
 }
Example #2
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('apps') . ':' . 'login':
             $login = new Zend_Gdata_Gapps_Extension_Login();
             $login->transferFromDOM($child);
             $this->_login = $login;
             break;
         case $this->lookupNamespace('apps') . ':' . 'name':
             $name = new Zend_Gdata_Gapps_Extension_Name();
             $name->transferFromDOM($child);
             $this->_name = $name;
             break;
         case $this->lookupNamespace('apps') . ':' . 'quota':
             $quota = new Zend_Gdata_Gapps_Extension_Quota();
             $quota->transferFromDOM($child);
             $this->_quota = $quota;
             break;
         case $this->lookupNamespace('gd') . ':' . 'feedLink':
             $feedLink = new Zend_Gdata_Extension_FeedLink();
             $feedLink->transferFromDOM($child);
             $this->_feedLink[] = $feedLink;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #3
0
 /**
  * Create a new instance of an entry representing a document.
  *
  * @param DOMElement $element (optional) DOMElement from which this
  *          object should be constructed.
  */
 public function __construct($element = null)
 {
     foreach (Zend_Gdata_Docs::$namespaces as $nsPrefix => $nsUri) {
         $this->registerNamespace($nsPrefix, $nsUri);
     }
     parent::__construct($element);
 }
Example #4
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('yt') . ':' . 'description':
             $description = new Zend_Gdata_YouTube_Extension_Description();
             $description->transferFromDOM($child);
             $this->_description = $description;
             break;
         case $this->lookupNamespace('yt') . ':' . 'countHint':
             $countHint = new Zend_Gdata_YouTube_Extension_CountHint();
             $countHint->transferFromDOM($child);
             $this->_countHint = $countHint;
             break;
         case $this->lookupNamespace('yt') . ':' . 'playlistId':
             $playlistId = new Zend_Gdata_YouTube_Extension_PlaylistId();
             $playlistId->transferFromDOM($child);
             $this->_playlistId = $playlistId;
             break;
         case $this->lookupNamespace('gd') . ':' . 'feedLink':
             $feedLink = new Zend_Gdata_Extension_FeedLink();
             $feedLink->transferFromDOM($child);
             $this->_feedLink[] = $feedLink;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #5
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     if (strstr($absoluteNodeName, $this->lookupNamespace('g') . ':')) {
         $baseAttribute = new Zend_Gdata_Gbase_Extension_BaseAttribute();
         $baseAttribute->transferFromDOM($child);
         $this->_baseAttributes[] = $baseAttribute;
     } else {
         parent::takeChildFromDOM($child);
     }
 }
Example #6
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     if (strstr($absoluteNodeName, $this->lookupNamespace('ccr') . ':')) {
         $ccrElement = new Zend_Gdata_Health_Extension_Ccr();
         $ccrElement->transferFromDOM($child);
         $this->_ccrData = $ccrElement;
     } else {
         parent::takeChildFromDOM($child);
     }
 }
Example #7
0
 protected function takeChildFromDOM($child)
 {
     switch ($child->namespaceURI) {
         case $this->lookupNamespace('gsx'):
             $custom = new Zend_Gdata_Spreadsheets_Extension_Custom($child->localName);
             $custom->transferFromDOM($child);
             $this->addCustom($custom);
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #8
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('exif') . ':' . 'tags':
             $tags = new Zend_Gdata_Exif_Extension_Tags();
             $tags->transferFromDOM($child);
             $this->_tags = $tags;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #9
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('media') . ':' . 'group':
             $mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup();
             $mediaGroup->transferFromDOM($child);
             $this->_mediaGroup = $mediaGroup;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #10
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gphoto') . ':' . 'weight':
             $weight = new Zend_Gdata_Photos_Extension_Weight();
             $weight->transferFromDOM($child);
             $this->_gphotoWeight = $weight;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #11
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gs') . ':' . 'cell':
             $cell = new Zend_Gdata_Spreadsheets_Extension_Cell();
             $cell->transferFromDOM($child);
             $this->_cell = $cell;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gd') . ':' . 'who':
             $who = new Zend_Gdata_Extension_Who();
             $who->transferFromDOM($child);
             $this->_who = $who;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #13
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('georss') . ':' . 'where':
             $where = new Zend_Gdata_Geo_Extension_GeoRssWhere();
             $where->transferFromDOM($child);
             $this->_where = $where;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #14
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gd') . ':' . 'fullName':
             $entry = new Zend_Gdata_Entry();
             $entry->transferFromDOM($child);
             $this->_names['full_name'] = $entry->getText();
             break;
         case $this->lookupNamespace('gd') . ':' . 'givenName':
             $entry = new Zend_Gdata_Entry();
             $entry->transferFromDOM($child);
             $this->_names['first_name'] = $entry->getText();
             break;
         case $this->lookupNamespace('gd') . ':' . 'familyName':
             $entry = new Zend_Gdata_Entry();
             $entry->transferFromDOM($child);
             $this->_names['last_name'] = $entry->getText();
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #15
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gphoto') . ':' . 'id':
             $id = new Zend_Gdata_Photos_Extension_Id();
             $id->transferFromDOM($child);
             $this->_gphotoId = $id;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'photoid':
             $photoid = new Zend_Gdata_Photos_Extension_PhotoId();
             $photoid->transferFromDOM($child);
             $this->_gphotoPhotoId = $photoid;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #16
0
 /**
  * @param DOMElement $child
  * @return void
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('ga') . ':' . 'property':
             $property = new HCMS_Gdata_Analytics_Extension_Property();
             $property->transferFromDOM($child);
             $this->{$property->getName()} = $property;
             break;
         case $this->lookupNamespace('ga') . ':' . 'tableId':
             $tableId = new HCMS_Gdata_Analytics_Extension_TableId();
             $tableId->transferFromDOM($child);
             $this->_tableId = $tableId;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #17
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gs') . ':' . 'rowCount':
             $rowCount = new Zend_Gdata_Spreadsheets_Extension_RowCount();
             $rowCount->transferFromDOM($child);
             $this->_rowCount = $rowCount;
             break;
         case $this->lookupNamespace('gs') . ':' . 'colCount':
             $colCount = new Zend_Gdata_Spreadsheets_Extension_ColCount();
             $colCount->transferFromDOM($child);
             $this->_colCount = $colCount;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #18
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('apps') . ':' . 'emailList':
             $emailList = new Zend_Gdata_Gapps_Extension_EmailList();
             $emailList->transferFromDOM($child);
             $this->_emailList = $emailList;
             break;
         case $this->lookupNamespace('gd') . ':' . 'feedLink':
             $feedLink = new Zend_Gdata_Extension_FeedLink();
             $feedLink->transferFromDOM($child);
             $this->_feedLink[] = $feedLink;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #19
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('apps') . ':' . 'login':
             $login = new Zend_Gdata_Gapps_Extension_Login();
             $login->transferFromDOM($child);
             $this->_login = $login;
             break;
         case $this->lookupNamespace('apps') . ':' . 'nickname':
             $nickname = new Zend_Gdata_Gapps_Extension_Nickname();
             $nickname->transferFromDOM($child);
             $this->_nickname = $nickname;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #20
0
 /**
  * @param DOMElement $child
  * @return void
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('analytics') . ':' . 'dimension':
             $dimension = new Zend_Gdata_Analytics_Extension_Dimension();
             $dimension->transferFromDOM($child);
             $this->_dimensions[] = $dimension;
             break;
         case $this->lookupNamespace('analytics') . ':' . 'metric':
             $metric = new Zend_Gdata_Analytics_Extension_Metric();
             $metric->transferFromDOM($child);
             $this->_metrics[] = $metric;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #21
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gCal') . ':' . 'accesslevel':
             $accessLevel = new Zend_Gdata_Calendar_Extension_AccessLevel();
             $accessLevel->transferFromDOM($child);
             $this->_accessLevel = $accessLevel;
             break;
         case $this->lookupNamespace('gCal') . ':' . 'color':
             $color = new Zend_Gdata_Calendar_Extension_Color();
             $color->transferFromDOM($child);
             $this->_color = $color;
             break;
         case $this->lookupNamespace('gCal') . ':' . 'hidden':
             $hidden = new Zend_Gdata_Calendar_Extension_Hidden();
             $hidden->transferFromDOM($child);
             $this->_hidden = $hidden;
             break;
         case $this->lookupNamespace('gCal') . ':' . 'selected':
             $selected = new Zend_Gdata_Calendar_Extension_Selected();
             $selected->transferFromDOM($child);
             $this->_selected = $selected;
             break;
         case $this->lookupNamespace('gCal') . ':' . 'timezone':
             $timezone = new Zend_Gdata_Calendar_Extension_Timezone();
             $timezone->transferFromDOM($child);
             $this->_timezone = $timezone;
             break;
         case $this->lookupNamespace('gd') . ':' . 'where':
             $where = new Zend_Gdata_Extension_Where();
             $where->transferFromDOM($child);
             $this->_where[] = $where;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #22
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gphoto') . ':' . 'nickname':
             $nickname = new Zend_Gdata_Photos_Extension_Nickname();
             $nickname->transferFromDOM($child);
             $this->_gphotoNickname = $nickname;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'thumbnail':
             $thumbnail = new Zend_Gdata_Photos_Extension_Thumbnail();
             $thumbnail->transferFromDOM($child);
             $this->_gphotoThumbnail = $thumbnail;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'user':
             $user = new Zend_Gdata_Photos_Extension_User();
             $user->transferFromDOM($child);
             $this->_gphotoUser = $user;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'quotacurrent':
             $quotaCurrent = new Zend_Gdata_Photos_Extension_QuotaCurrent();
             $quotaCurrent->transferFromDOM($child);
             $this->_gphotoQuotaCurrent = $quotaCurrent;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'quotalimit':
             $quotaLimit = new Zend_Gdata_Photos_Extension_QuotaLimit();
             $quotaLimit->transferFromDOM($child);
             $this->_gphotoQuotaLimit = $quotaLimit;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'maxPhotosPerAlbum':
             $maxPhotosPerAlbum = new Zend_Gdata_Photos_Extension_MaxPhotosPerAlbum();
             $maxPhotosPerAlbum->transferFromDOM($child);
             $this->_gphotoMaxPhotosPerAlbum = $maxPhotosPerAlbum;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #23
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('yt') . ':' . 'videoid':
             $videoId = new Zend_Gdata_YouTube_Extension_VideoId();
             $videoId->transferFromDOM($child);
             $this->_videoId = $videoId;
             break;
         case $this->lookupNamespace('yt') . ':' . 'username':
             $username = new Zend_Gdata_YouTube_Extension_Username();
             $username->transferFromDOM($child);
             $this->_username = $username;
             break;
         case $this->lookupNamespace('gd') . ':' . 'rating':
             $rating = new Zend_Gdata_Extension_Rating();
             $rating->transferFromDOM($child);
             $this->_rating = $rating;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #24
0
 /**
  * Constructor for Zend_Gdata_Books_CollectionEntry which
  * Describes an entry in a feed of collections
  *
  * @param DOMElement $element (optional) DOMElement from which this
  *          object should be constructed.
  */
 public function __construct($element = null)
 {
     $this->registerAllNamespaces(Zend_Gdata_Books::$namespaces);
     parent::__construct($element);
 }
Example #25
0
 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('apps') . ':' . 'property':
             $property = new Zend_Gdata_Gapps_Extension_Property();
             $property->transferFromDOM($child);
             $this->_property[] = $property;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them in the $_entry array based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gd') . ':' . 'feedLink':
             $feedLink = new Zend_Gdata_Extension_FeedLink();
             $feedLink->transferFromDOM($child);
             $this->_feedLink[] = $feedLink;
             break;
         case $this->lookupNamespace('media') . ':' . 'thumbnail':
             $mediaThumbnail = new Zend_Gdata_Media_Extension_MediaThumbnail();
             $mediaThumbnail->transferFromDOM($child);
             $this->_mediaThumbnail = $mediaThumbnail;
             break;
         case $this->lookupNamespace('yt') . ':' . 'countHint':
             $countHint = new Zend_Gdata_YouTube_Extension_CountHint();
             $countHint->transferFromDOM($child);
             $this->_countHint = $countHint;
             break;
         case $this->lookupNamespace('yt') . ':' . 'playlistTitle':
             $playlistTitle = new Zend_Gdata_YouTube_Extension_PlaylistTitle();
             $playlistTitle->transferFromDOM($child);
             $this->_playlistTitle = $playlistTitle;
             break;
         case $this->lookupNamespace('yt') . ':' . 'playlistId':
             $playlistId = new Zend_Gdata_YouTube_Extension_PlaylistId();
             $playlistId->transferFromDOM($child);
             $this->_playlistId = $playlistId;
             break;
         case $this->lookupNamespace('yt') . ':' . 'queryString':
             $queryString = new Zend_Gdata_YouTube_Extension_QueryString();
             $queryString->transferFromDOM($child);
             $this->_queryString = $queryString;
             break;
         case $this->lookupNamespace('yt') . ':' . 'username':
             $username = new Zend_Gdata_YouTube_Extension_Username();
             $username->transferFromDOM($child);
             $this->_username = $username;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them as members of this entry based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gphoto') . ':' . 'access':
             $access = new Zend_Gdata_Photos_Extension_Access();
             $access->transferFromDOM($child);
             $this->_gphotoAccess = $access;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'location':
             $location = new Zend_Gdata_Photos_Extension_Location();
             $location->transferFromDOM($child);
             $this->_gphotoLocation = $location;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'name':
             $name = new Zend_Gdata_Photos_Extension_Name();
             $name->transferFromDOM($child);
             $this->_gphotoName = $name;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'numphotos':
             $numPhotos = new Zend_Gdata_Photos_Extension_NumPhotos();
             $numPhotos->transferFromDOM($child);
             $this->_gphotoNumPhotos = $numPhotos;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'commentCount':
             $commentCount = new Zend_Gdata_Photos_Extension_CommentCount();
             $commentCount->transferFromDOM($child);
             $this->_gphotoCommentCount = $commentCount;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'commentingEnabled':
             $commentingEnabled = new Zend_Gdata_Photos_Extension_CommentingEnabled();
             $commentingEnabled->transferFromDOM($child);
             $this->_gphotoCommentingEnabled = $commentingEnabled;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'id':
             $id = new Zend_Gdata_Photos_Extension_Id();
             $id->transferFromDOM($child);
             $this->_gphotoId = $id;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'user':
             $user = new Zend_Gdata_Photos_Extension_User();
             $user->transferFromDOM($child);
             $this->_gphotoUser = $user;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'timestamp':
             $timestamp = new Zend_Gdata_Photos_Extension_Timestamp();
             $timestamp->transferFromDOM($child);
             $this->_gphotoTimestamp = $timestamp;
             break;
         case $this->lookupNamespace('gphoto') . ':' . 'nickname':
             $nickname = new Zend_Gdata_Photos_Extension_Nickname();
             $nickname->transferFromDOM($child);
             $this->_gphotoNickname = $nickname;
             break;
         case $this->lookupNamespace('georss') . ':' . 'where':
             $geoRssWhere = new Zend_Gdata_Geo_Extension_GeoRssWhere();
             $geoRssWhere->transferFromDOM($child);
             $this->_geoRssWhere = $geoRssWhere;
             break;
         case $this->lookupNamespace('media') . ':' . 'group':
             $mediaGroup = new Zend_Gdata_Media_Extension_MediaGroup();
             $mediaGroup->transferFromDOM($child);
             $this->_mediaGroup = $mediaGroup;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #28
0
 /**
  * Creates individual Entry objects of the appropriate type and
  * stores them in the $_entry array based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('yt') . ':' . 'description':
             $description = new Zend_Gdata_YouTube_Extension_Description();
             $description->transferFromDOM($child);
             $this->_description = $description;
             break;
         case $this->lookupNamespace('yt') . ':' . 'aboutMe':
             $aboutMe = new Zend_Gdata_YouTube_Extension_AboutMe();
             $aboutMe->transferFromDOM($child);
             $this->_aboutMe = $aboutMe;
             break;
         case $this->lookupNamespace('yt') . ':' . 'age':
             $age = new Zend_Gdata_YouTube_Extension_Age();
             $age->transferFromDOM($child);
             $this->_age = $age;
             break;
         case $this->lookupNamespace('yt') . ':' . 'username':
             $username = new Zend_Gdata_YouTube_Extension_Username();
             $username->transferFromDOM($child);
             $this->_username = $username;
             break;
         case $this->lookupNamespace('yt') . ':' . 'books':
             $books = new Zend_Gdata_YouTube_Extension_Books();
             $books->transferFromDOM($child);
             $this->_books = $books;
             break;
         case $this->lookupNamespace('yt') . ':' . 'company':
             $company = new Zend_Gdata_YouTube_Extension_Company();
             $company->transferFromDOM($child);
             $this->_company = $company;
             break;
         case $this->lookupNamespace('yt') . ':' . 'hobbies':
             $hobbies = new Zend_Gdata_YouTube_Extension_Hobbies();
             $hobbies->transferFromDOM($child);
             $this->_hobbies = $hobbies;
             break;
         case $this->lookupNamespace('yt') . ':' . 'hometown':
             $hometown = new Zend_Gdata_YouTube_Extension_Hometown();
             $hometown->transferFromDOM($child);
             $this->_hometown = $hometown;
             break;
         case $this->lookupNamespace('yt') . ':' . 'location':
             $location = new Zend_Gdata_YouTube_Extension_Location();
             $location->transferFromDOM($child);
             $this->_location = $location;
             break;
         case $this->lookupNamespace('yt') . ':' . 'movies':
             $movies = new Zend_Gdata_YouTube_Extension_Movies();
             $movies->transferFromDOM($child);
             $this->_movies = $movies;
             break;
         case $this->lookupNamespace('yt') . ':' . 'music':
             $music = new Zend_Gdata_YouTube_Extension_Music();
             $music->transferFromDOM($child);
             $this->_music = $music;
             break;
         case $this->lookupNamespace('yt') . ':' . 'occupation':
             $occupation = new Zend_Gdata_YouTube_Extension_Occupation();
             $occupation->transferFromDOM($child);
             $this->_occupation = $occupation;
             break;
         case $this->lookupNamespace('yt') . ':' . 'school':
             $school = new Zend_Gdata_YouTube_Extension_School();
             $school->transferFromDOM($child);
             $this->_school = $school;
             break;
         case $this->lookupNamespace('yt') . ':' . 'gender':
             $gender = new Zend_Gdata_YouTube_Extension_Gender();
             $gender->transferFromDOM($child);
             $this->_gender = $gender;
             break;
         case $this->lookupNamespace('yt') . ':' . 'relationship':
             $relationship = new Zend_Gdata_YouTube_Extension_Relationship();
             $relationship->transferFromDOM($child);
             $this->_relationship = $relationship;
             break;
         case $this->lookupNamespace('yt') . ':' . 'firstName':
             $firstName = new Zend_Gdata_YouTube_Extension_FirstName();
             $firstName->transferFromDOM($child);
             $this->_firstName = $firstName;
             break;
         case $this->lookupNamespace('yt') . ':' . 'lastName':
             $lastName = new Zend_Gdata_YouTube_Extension_LastName();
             $lastName->transferFromDOM($child);
             $this->_lastName = $lastName;
             break;
         case $this->lookupNamespace('yt') . ':' . 'statistics':
             $statistics = new Zend_Gdata_YouTube_Extension_Statistics();
             $statistics->transferFromDOM($child);
             $this->_statistics = $statistics;
             break;
         case $this->lookupNamespace('media') . ':' . 'thumbnail':
             $thumbnail = new Zend_Gdata_Media_Extension_MediaThumbnail();
             $thumbnail->transferFromDOM($child);
             $this->_thumbnail = $thumbnail;
             break;
         case $this->lookupNamespace('gd') . ':' . 'feedLink':
             $feedLink = new Zend_Gdata_Extension_FeedLink();
             $feedLink->transferFromDOM($child);
             $this->_feedLink[] = $feedLink;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #29
0
 /**
  * Creates individual objects of the appropriate type and stores
  * them in this object based upon DOM data.
  *
  * @param DOMNode $child The DOMNode to process.
  */
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('dc') . ':' . 'creator':
             $creators = new Zend_Gdata_DublinCore_Extension_Creator();
             $creators->transferFromDOM($child);
             $this->_creators[] = $creators;
             break;
         case $this->lookupNamespace('dc') . ':' . 'date':
             $dates = new Zend_Gdata_DublinCore_Extension_Date();
             $dates->transferFromDOM($child);
             $this->_dates[] = $dates;
             break;
         case $this->lookupNamespace('dc') . ':' . 'description':
             $descriptions = new Zend_Gdata_DublinCore_Extension_Description();
             $descriptions->transferFromDOM($child);
             $this->_descriptions[] = $descriptions;
             break;
         case $this->lookupNamespace('dc') . ':' . 'format':
             $formats = new Zend_Gdata_DublinCore_Extension_Format();
             $formats->transferFromDOM($child);
             $this->_formats[] = $formats;
             break;
         case $this->lookupNamespace('dc') . ':' . 'identifier':
             $identifiers = new Zend_Gdata_DublinCore_Extension_Identifier();
             $identifiers->transferFromDOM($child);
             $this->_identifiers[] = $identifiers;
             break;
         case $this->lookupNamespace('dc') . ':' . 'language':
             $languages = new Zend_Gdata_DublinCore_Extension_Language();
             $languages->transferFromDOM($child);
             $this->_languages[] = $languages;
             break;
         case $this->lookupNamespace('dc') . ':' . 'publisher':
             $publishers = new Zend_Gdata_DublinCore_Extension_Publisher();
             $publishers->transferFromDOM($child);
             $this->_publishers[] = $publishers;
             break;
         case $this->lookupNamespace('dc') . ':' . 'subject':
             $subjects = new Zend_Gdata_DublinCore_Extension_Subject();
             $subjects->transferFromDOM($child);
             $this->_subjects[] = $subjects;
             break;
         case $this->lookupNamespace('dc') . ':' . 'title':
             $titles = new Zend_Gdata_DublinCore_Extension_Title();
             $titles->transferFromDOM($child);
             $this->_titles[] = $titles;
             break;
         case $this->lookupNamespace('gd') . ':' . 'comments':
             $comments = new Zend_Gdata_Extension_Comments();
             $comments->transferFromDOM($child);
             $this->_comments = $comments;
             break;
         case $this->lookupNamespace('gbs') . ':' . 'embeddability':
             $embeddability = new Zend_Gdata_Books_Extension_Embeddability();
             $embeddability->transferFromDOM($child);
             $this->_embeddability = $embeddability;
             break;
         case $this->lookupNamespace('gd') . ':' . 'rating':
             $rating = new Zend_Gdata_Extension_Rating();
             $rating->transferFromDOM($child);
             $this->_rating = $rating;
             break;
         case $this->lookupNamespace('gbs') . ':' . 'review':
             $review = new Zend_Gdata_Books_Extension_Review();
             $review->transferFromDOM($child);
             $this->_review = $review;
             break;
         case $this->lookupNamespace('gbs') . ':' . 'viewability':
             $viewability = new Zend_Gdata_Books_Extension_Viewability();
             $viewability->transferFromDOM($child);
             $this->_viewability = $viewability;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }
Example #30
0
 protected function takeChildFromDOM($child)
 {
     $absoluteNodeName = $child->namespaceURI . ':' . $child->localName;
     switch ($absoluteNodeName) {
         case $this->lookupNamespace('gd') . ':' . 'where':
             $where = new Zend_Gdata_Extension_Where();
             $where->transferFromDOM($child);
             $this->_where[] = $where;
             break;
         case $this->lookupNamespace('gd') . ':' . 'when':
             $when = new Zend_Gdata_Extension_When();
             $when->transferFromDOM($child);
             $this->_when[] = $when;
             break;
         case $this->lookupNamespace('gd') . ':' . 'who':
             $who = new Zend_Gdata_Extension_Who();
             $who->transferFromDOM($child);
             $this->_who[] = $who;
             break;
         case $this->lookupNamespace('gd') . ':' . 'recurrence':
             $recurrence = new Zend_Gdata_Extension_Recurrence();
             $recurrence->transferFromDOM($child);
             $this->_recurrence = $recurrence;
             break;
         case $this->lookupNamespace('gd') . ':' . 'eventStatus':
             $eventStatus = new Zend_Gdata_Extension_EventStatus();
             $eventStatus->transferFromDOM($child);
             $this->_eventStatus = $eventStatus;
             break;
         case $this->lookupNamespace('gd') . ':' . 'comments':
             $comments = new Zend_Gdata_Extension_Comments();
             $comments->transferFromDOM($child);
             $this->_comments = $comments;
             break;
         case $this->lookupNamespace('gd') . ':' . 'transparency':
             $transparency = new Zend_Gdata_Extension_Transparency();
             $transparency->transferFromDOM($child);
             $this->_transparency = $transparency;
             break;
         case $this->lookupNamespace('gd') . ':' . 'visibility':
             $visiblity = new Zend_Gdata_Extension_Visibility();
             $visiblity->transferFromDOM($child);
             $this->_visibility = $visiblity;
             break;
         case $this->lookupNamespace('gd') . ':' . 'recurrenceException':
             require_once 'vendor/Zend/Gdata/Extension/RecurrenceException.php';
             $recurrenceException = new Zend_Gdata_Extension_RecurrenceException();
             $recurrenceException->transferFromDOM($child);
             $this->_recurrenceException[] = $recurrenceException;
             break;
         case $this->lookupNamespace('gd') . ':' . 'originalEvent':
             $originalEvent = new Zend_Gdata_Extension_OriginalEvent();
             $originalEvent->transferFromDOM($child);
             $this->_originalEvent = $originalEvent;
             break;
         case $this->lookupNamespace('gd') . ':' . 'extendedProperty':
             $extProp = new Zend_Gdata_Extension_ExtendedProperty();
             $extProp->transferFromDOM($child);
             $this->_extendedProperty[] = $extProp;
             break;
         case $this->lookupNamespace('gd') . ':' . 'entryLink':
             $entryLink = new Zend_Gdata_Extension_EntryLink();
             $entryLink->transferFromDOM($child);
             $this->_entryLink = $entryLink;
             break;
         default:
             parent::takeChildFromDOM($child);
             break;
     }
 }