protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { case $this->lookupNamespace('yt') . ':' . 'state': $state = new Zend_Gdata_YouTube_Extension_State(); $state->transferFromDOM($child); $this->_state = $state; break; default: parent::takeChildFromDOM($child); break; } }
/** * Given a child DOMNode, tries to determine how to map the data into * object instance members. If no mapping is defined, Extension_Element * objects are created and stored in an array. * * @param DOMNode $child The DOMNode needed to be handled */ protected function takeChildFromDOM($child) { $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; switch ($absoluteNodeName) { case $this->lookupNamespace('sc') . ':' . 'excluded_destination': $this->_destinations[$child->getAttribute('dest')] = self::DEST_MODE_EXCLUDED; break; case $this->lookupNamespace('sc') . ':' . 'required_destination': $this->_destinations[$child->getAttribute('dest')] = self::DEST_MODE_REQUIRED; break; default: parent::takeChildFromDOM($child); } }