/** * 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('openSearch') . ':' . 'totalResults': $totalResults = new Extension\OpenSearchTotalResults(); $totalResults->transferFromDOM($child); $this->_totalResults = $totalResults; break; case $this->lookupNamespace('openSearch') . ':' . 'startIndex': $startIndex = new Extension\OpenSearchStartIndex(); $startIndex->transferFromDOM($child); $this->_startIndex = $startIndex; break; case $this->lookupNamespace('openSearch') . ':' . 'itemsPerPage': $itemsPerPage = new Extension\OpenSearchItemsPerPage(); $itemsPerPage->transferFromDOM($child); $this->_itemsPerPage = $itemsPerPage; break; default: parent::takeChildFromDOM($child); break; } }