Beispiel #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'];
     }
     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);
     //		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'];
     }
 }
 private function addEntryAdvancedSearchFilter(KalturaCaptionAssetItemFilter $captionAssetItemFilter, entryFilter $entryCoreFilter)
 {
     //create advanced filter on entry caption
     $entryCaptionAdvancedSearch = new EntryCaptionAssetSearchFilter();
     $entryCaptionAdvancedSearch->setContentLike($captionAssetItemFilter->contentLike);
     $entryCaptionAdvancedSearch->setContentMultiLikeAnd($captionAssetItemFilter->contentMultiLikeAnd);
     $entryCaptionAdvancedSearch->setContentMultiLikeOr($captionAssetItemFilter->contentMultiLikeOr);
     $inputAdvancedSearch = $entryCoreFilter->getAdvancedSearch();
     if (!is_null($inputAdvancedSearch)) {
         $advancedSearchOp = new AdvancedSearchFilterOperator();
         $advancedSearchOp->setType(AdvancedSearchFilterOperator::SEARCH_AND);
         $advancedSearchOp->setItems(array($inputAdvancedSearch, $entryCaptionAdvancedSearch));
         $entryCoreFilter->setAdvancedSearch($advancedSearchOp);
     } else {
         $entryCoreFilter->setAdvancedSearch($entryCaptionAdvancedSearch);
     }
 }
 public function fillObjectFromXml(SimpleXMLElement $xmlElement)
 {
     parent::fillObjectFromXml($xmlElement);
     $attr = $xmlElement->attributes();
     if (isset($attr['field'])) {
         $this->field = (string) $attr['field'];
     }
 }