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']; } }
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; } }
public function fillObjectFromXml(SimpleXMLElement $xmlElement) { parent::fillObjectFromXml($xmlElement); $attr = $xmlElement->attributes(); if (isset($attr['field'])) { $this->field = (string) $attr['field']; } }