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


PHP KalturaObject類代碼示例

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


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

示例1: 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

示例2: 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

示例3: toObject

 public function toObject($dbObject = null, $skip = array())
 {
     if (is_null($dbObject)) {
         $dbObject = new kObjectTask();
     }
     return parent::toObject($dbObject, $skip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:KalturaObjectTask.php

示例4: toObject

 public function toObject($object = null, $skipProperties = array())
 {
     if (!$object) {
         $object = new kFilterPager();
     }
     return parent::toObject($object, $skipProperties);
 }
開發者ID:AdiTal,項目名稱:server,代碼行數:7,代碼來源:KalturaFilterPager.php

示例5: fromObject

 public function fromObject($sourceObject)
 {
     if (!$sourceObject) {
         return;
     }
     parent::fromObject($sourceObject);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:7,代碼來源:KalturaUserLoginData.php

示例6: toObject

 public function toObject($dbObject = null, $skip = array())
 {
     if (!$dbObject) {
         $dbObject = new kFileSyncDescriptor();
     }
     return parent::toObject($dbObject, $skip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:KalturaFileSyncDescriptor.php

示例7: doFromObject

 public function doFromObject($source_object, KalturaDetachedResponseProfile $responseProfile = null)
 {
     parent::doFromObject($source_object, $responseProfile);
     if ($this->shouldGet('updateParams', $responseProfile)) {
         $this->updateParams = KalturaStringArray::fromStringArray($source_object->getUpdateParams());
     }
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:KalturaDistributionFieldConfig.php

示例8: toObject

 public function toObject($dbObject = null, $propsToSkip = array())
 {
     if (!$dbObject) {
         $dbObject = new kLiveStreamPushPublishConfiguration();
     }
     return parent::toObject($dbObject, $propsToSkip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:KalturaLiveStreamPushPublishConfiguration.php

示例9: getArrayType

 /**
  * When reflecting an array, returns the type of the array as string
  *
  * @return string
  */
 public function getArrayType()
 {
     if ($this->isArray()) {
         return $this->_instance->getType();
     }
     return null;
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:12,代碼來源:KalturaTypeReflector.php

示例10: toObject

 public function toObject($dbObject = null, $skip = array())
 {
     if (is_null($dbObject)) {
         $dbObject = new UserLoginData();
     }
     return parent::toObject($dbObject, $skip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:KalturaUserLoginData.php

示例11: toObject

 public function toObject($object = null, $propertiesToSkip = array())
 {
     if (is_null($object)) {
         $object = new kResponseProfileMapping();
     }
     return parent::toObject($object, $propertiesToSkip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:KalturaResponseProfileMapping.php

示例12: toObject

 public function toObject($dbObject = null, $skip = array())
 {
     if (is_null($dbObject)) {
         $dbObject = new kDistributionThumbDimensions();
     }
     return parent::toObject($dbObject, $skip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:KalturaDistributionThumbDimensions.php

示例13: toObject

 public function toObject($dbData = null, $props_to_skip = array())
 {
     if (is_null($dbData)) {
         $dbData = new kConvertCollectionFlavorData();
     }
     return parent::toObject($dbData, $props_to_skip);
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:7,代碼來源:KalturaConvertCollectionFlavorData.php

示例14: toObject

 public function toObject($objectToFill = null, $propsToSkip = array())
 {
     if (is_null($objectToFill)) {
         $objectToFill = new kScope();
     }
     return parent::toObject($objectToFill, $propsToSkip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:KalturaScope.php

示例15: toObject

 public function toObject($dbObject = null, $skip = array())
 {
     if (is_null($dbObject)) {
         return new kDistributionValidationError();
     }
     return parent::toObject($dbObject, $skip);
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:7,代碼來源:KalturaDistributionValidationError.php


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