當前位置: 首頁>>代碼示例>>PHP>>正文


PHP KalturaFilter類代碼示例

本文整理匯總了PHP中KalturaFilter的典型用法代碼示例。如果您正苦於以下問題:PHP KalturaFilter類的具體用法?PHP KalturaFilter怎麽用?PHP KalturaFilter使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了KalturaFilter類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: fromObject

 public function fromObject($dbData)
 {
     /* @var $dbData kCopyJobData */
     $filter = $dbData->getFilter();
     $filterType = get_class($filter);
     switch ($filterType) {
         case 'entryFilter':
             $this->filter = new KalturaBaseEntryFilter();
             $this->templateObject = new KalturaBaseEntry();
             break;
         case 'categoryFilter':
             $this->filter = new KalturaCategoryFilter();
             $this->templateObject = new KalturaCategory();
             break;
         case 'categoryEntryFilter':
             $this->filter = new KalturaCategoryEntryFilter();
             $this->templateObject = new KalturaCategoryEntry();
             break;
         case 'categoryKuserFilter':
             $this->filter = new KalturaCategoryUserFilter();
             $this->templateObject = new KalturaCategoryUser();
             break;
         default:
             $this->filter = KalturaPluginManager::loadObject('KalturaFilter', $filterType);
     }
     if ($this->filter) {
         $this->filter->fromObject($filter);
     }
     if ($this->templateObject) {
         $this->templateObject->fromObject($dbData->getTemplateObject());
     }
     return parent::fromObject($dbData);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:33,代碼來源:KalturaCopyJobData.php

示例2: doFromObject

 public function doFromObject($dbData, KalturaDetachedResponseProfile $responseProfile = null)
 {
     /* @var $dbData kIndexJobData */
     $filter = $dbData->getFilter();
     $filterType = get_class($filter);
     switch ($filterType) {
         case 'entryFilter':
             $this->filter = new KalturaBaseEntryFilter();
             break;
         case 'categoryFilter':
             $this->filter = new KalturaCategoryFilter();
             break;
         case 'categoryEntryFilter':
             $this->filter = new KalturaCategoryEntryFilter();
             break;
         case 'categoryKuserFilter':
             $this->filter = new KalturaCategoryUserFilter();
             break;
         case 'kuserFilter':
             $this->filter = new KalturaUserFilter();
             break;
         default:
             $this->filter = KalturaPluginManager::loadObject('KalturaFilter', $filterType);
     }
     if ($this->filter) {
         $this->filter->fromObject($filter);
     }
     parent::doFromObject($dbData, $responseProfile);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:29,代碼來源:KalturaIndexJobData.php

示例3: doFromObject

 /**
  * @param ScheduledTaskProfile $srcObj
  */
 public function doFromObject($srcObj, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($srcObj, $responseProfile);
     $this->objectTasks = KalturaObjectTaskArray::fromDbArray($srcObj->getObjectTasks());
     $filterType = $srcObj->getObjectFilterApiType();
     if (!class_exists($filterType)) {
         KalturaLog::err(sprintf('Class %s not found, cannot initiate object filter instance', $filterType));
         $this->objectFilter = new KalturaFilter();
     } else {
         $this->objectFilter = new $filterType();
     }
     $this->objectFilter->fromObject($srcObj->getObjectFilter());
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:16,代碼來源:KalturaScheduledTaskProfile.php

示例4: doFromObject

 public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($source_object, $responseProfile);
     /* @var $source_object kBulkUploadFilterJobData */
     $this->filter = null;
     switch (get_class($source_object->getFilter())) {
         case 'categoryEntryFilter':
             $this->filter = new KalturaCategoryEntryFilter();
             break;
         case 'entryFilter':
             $this->filter = new KalturaBaseEntryFilter();
             break;
         default:
             break;
     }
     if ($this->filter) {
         $this->filter->fromObject($source_object->getFilter());
     }
     $this->templateObject = null;
     switch (get_class($source_object->getTemplateObject())) {
         case 'categoryEntry':
             $this->templateObject = new KalturaCategoryEntry();
             break;
         default:
             break;
     }
     if ($this->templateObject) {
         $this->templateObject->fromObject($source_object->getTemplateObject());
     }
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:30,代碼來源:KalturaBulkUploadFilterJobData.php

示例5: toObject

 public function toObject($object = null, $props_to_skip = array())
 {
     /* @var $object TagFilter */
     $object->set('_eq_tag', str_replace(kTagFlowManager::$specialCharacters, kTagFlowManager::$specialCharactersReplacement, $this->tagEqual));
     $object->set('_likex_tag', str_replace(kTagFlowManager::$specialCharacters, kTagFlowManager::$specialCharactersReplacement, $this->tagStartsWith));
     return parent::toObject($object, $props_to_skip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:KalturaTagFilter.php

示例6: toObject

 public function toObject($coreFilter = null, $props_to_skip = array())
 {
     if (is_null($coreFilter)) {
         $coreFilter = new categoryKuserFilter();
     }
     return parent::toObject($coreFilter, $props_to_skip);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:7,代碼來源:KalturaCategoryUserProviderFilter.php

示例7: getOrderByMap

 public function getOrderByMap()
 {
     return array_merge(parent::getOrderByMap(), $this->order_by_map);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:4,代碼來源:KalturaBulkUploadBaseFilter.php

示例8: getOrderByMap

 public function getOrderByMap()
 {
     return array_merge(parent::getOrderByMap(), self::$order_by_map);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:4,代碼來源:KalturaBaseSyndicationFeedBaseFilter.php

示例9: getOrderByMap

 public function getOrderByMap()
 {
     return array_merge(parent::getOrderByMap(), KalturaDwhHourlyPartnerBaseFilter::$order_by_map);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:4,代碼來源:KalturaDwhHourlyPartnerBaseFilter.php


注:本文中的KalturaFilter類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。