예제 #1
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;
     }
 }
예제 #2
0
 protected function takeAttributeFromDOM($attribute)
 {
     switch ($attribute->localName) {
         case 'name':
             $this->_name = $attribute->nodeValue;
             break;
         case 'value':
             $this->_value = $attribute->nodeValue;
             break;
         default:
             parent::takeAttributeFromDOM($attribute);
     }
 }