diff -r 877f952ae2bd -r 6b6c2214f778 web/lib/Zend/Gdata/Analytics/AccountEntry.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/web/lib/Zend/Gdata/Analytics/AccountEntry.php Thu Mar 21 19:52:38 2013 +0100 @@ -0,0 +1,102 @@ +registerAllNamespaces(Zend_Gdata_Analytics::$namespaces); + parent::__construct($element); + } + + /** + * @param DOMElement $child + * @return void + */ + protected function takeChildFromDOM($child) + { + $absoluteNodeName = $child->namespaceURI . ':' . $child->localName; + switch ($absoluteNodeName){ + case $this->lookupNamespace('analytics') . ':' . 'property'; + $property = new Zend_Gdata_Analytics_Extension_Property(); + $property->transferFromDOM($child); + $this->{$property->getName()} = $property; + break; + case $this->lookupNamespace('analytics') . ':' . 'tableId'; + $tableId = new Zend_Gdata_Analytics_Extension_TableId(); + $tableId->transferFromDOM($child); + $this->_tableId = $tableId; + break; + case $this->lookupNamespace('ga') . ':' . 'goal'; + $goal = new Zend_Gdata_Analytics_Extension_Goal(); + $goal->transferFromDOM($child); + $this->_goal = $goal; + break; + default: + parent::takeChildFromDOM($child); + break; + } + } +}