/** * 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') . ':' . 'login': $login = new Extension\Login(); $login->transferFromDOM($child); $this->_login = $login; break; case $this->lookupNamespace('apps') . ':' . 'nickname': $nickname = new Extension\Nickname(); $nickname->transferFromDOM($child); $this->_nickname = $nickname; 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('apps') . ':' . 'login': $login = new Extension\Login(); $login->transferFromDOM($child); $this->_login = $login; break; case $this->lookupNamespace('apps') . ':' . 'name': $name = new Extension\Name(); $name->transferFromDOM($child); $this->_name = $name; break; case $this->lookupNamespace('apps') . ':' . 'quota': $quota = new 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; } }