예제 #1
0
 public function fillObjectFromXml(SimpleXMLElement $xmlElement)
 {
     parent::fillObjectFromXml($xmlElement);
     //		KalturaLog::debug('Fill object from XML [' . $xmlElement->asXML() . ']');
     $attr = $xmlElement->attributes();
     if (isset($attr['metadataProfileId'])) {
         $this->metadataProfileId = (int) $attr['metadataProfileId'];
     }
     if (isset($attr['orderBy'])) {
         $this->orderBy = (string) $attr['orderBy'];
     }
     if (isset($attr['operatorType'])) {
         $this->type = (int) $attr['operatorType'];
     }
 }
예제 #2
0
 public function fillObjectFromXml(SimpleXMLElement $xmlElement)
 {
     parent::fillObjectFromXml($xmlElement);
     //		KalturaLog::debug('Fill object from XML [' . $xmlElement->asXML() . ']');
     $attr = $xmlElement->attributes();
     if (isset($attr['metadataProfileId'])) {
         $this->metadataProfileId = (int) $attr['metadataProfileId'];
     }
     if (isset($attr['orderBy'])) {
         $this->orderBy = (string) $attr['orderBy'];
     }
     if (isset($attr['operatorType'])) {
         $this->type = (int) $attr['operatorType'];
     }
     foreach ($xmlElement->item as $child) {
         $attr = $child->attributes();
         if (!isset($attr['type'])) {
             continue;
         }
         $type = (string) $attr['type'];
         $item = new $type();
         $item->fillObjectFromXml($child);
         $this->items[] = $item;
     }
 }
예제 #3
0
 public function fillObjectFromXml(SimpleXMLElement $xmlElement)
 {
     parent::fillObjectFromXml($xmlElement);
     $attr = $xmlElement->attributes();
     if (isset($attr['field'])) {
         $this->field = (string) $attr['field'];
     }
 }