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


PHP KalturaObject::toInsertableObject方法代碼示例

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


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

示例1: toObject

 public function toObject($dbData = null, $props_to_skip = array())
 {
     if (is_null($dbData)) {
         $dbData = new kCopyJobData();
     }
     $dbData->setTemplateObject($this->templateObject->toInsertableObject());
     return parent::toObject($dbData, $props_to_skip);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:8,代碼來源:KalturaCopyJobData.php

示例2: toInsertableObject

 public function toInsertableObject($object_to_fill = null, $props_to_skip = array())
 {
     $object_to_fill = parent::toInsertableObject($object_to_fill, $props_to_skip);
     if (empty($this->userId)) {
         $currentKsKuser = kCurrentContext::getCurrentKsKuserId();
         $object_to_fill->setKuserId($currentKsKuser);
     } else {
         $kuser = kuserPeer::getKuserByPartnerAndUid(kCurrentContext::$ks_partner_id, $this->userId);
         if (!$kuser) {
             throw new KalturaAPIException(KalturaErrors::INVALID_USER_ID, $this->userId);
         }
         $object_to_fill->setKuserId($kuser->getKuserId());
     }
     $object_to_fill->setPartnerId(kCurrentContext::getCurrentPartnerId());
     return $object_to_fill;
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:16,代碼來源:KalturaUserEntry.php

示例3: toInsertableObject

 /**
  * @param Annotation $dbAnnotation
  * @param array $propsToSkip
  * @return Annotation
  */
 public function toInsertableObject($dbAnnotation = null, $propsToSkip = array())
 {
     if (is_null($dbAnnotation)) {
         $dbAnnotation = new Annotation();
     }
     return parent::toInsertableObject($dbAnnotation, $propsToSkip);
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:12,代碼來源:KalturaAnnotation.php

示例4: toInsertableObject

 /**
  * @param AuditTrail $dbAuditTrail
  * @param array $propsToSkip
  * @return AuditTrail
  */
 public function toInsertableObject($dbAuditTrail = null, $propsToSkip = array())
 {
     if (is_null($dbAuditTrail)) {
         $dbAuditTrail = new AuditTrail();
     }
     return parent::toInsertableObject($dbAuditTrail, $propsToSkip);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:12,代碼來源:KalturaAuditTrail.php

示例5: toInsertableObject

 public function toInsertableObject($object_to_fill = null, $props_to_skip = array())
 {
     if (is_null($object_to_fill)) {
         KalturaLog::alert("No object returned from toInsertableObject, object_to_fill [" . get_class($object_to_fill) . "], this [" . get_class($this) . "] line [" . __LINE__ . "]");
         return null;
     }
     $dbObject = parent::toInsertableObject($object_to_fill, $props_to_skip);
     if (!$dbObject) {
         KalturaLog::alert("No object returned from toInsertableObject, object_to_fill [" . get_class($object_to_fill) . "], this [" . get_class($this) . "] line [" . __LINE__ . "]");
         return null;
     }
     $pluginsData = $this->createPluginDataMap();
     $dbObject->setPluginsData($pluginsData);
     return $dbObject;
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:15,代碼來源:KalturaBulkUploadResult.php

示例6: toInsertableObject

 public function toInsertableObject($dbAppToken = null, $skip = array())
 {
     $partnerId = kCurrentContext::getCurrentPartnerId();
     $partner = PartnerPeer::retrieveByPK($partnerId);
     if ($this->isNull('sessionDuration')) {
         $this->sessionDuration = $partner->getKsMaxExpiryInSeconds();
     }
     $dbAppToken = parent::toInsertableObject($dbAppToken, $skip);
     /* @var $dbAppToken AppToken */
     $dbAppToken->setPartnerId($partnerId);
     $dbAppToken->setToken(bin2hex(openssl_random_pseudo_bytes(16)));
     $dbAppToken->setStatus(AppTokenStatus::ACTIVE);
     return $dbAppToken;
 }
開發者ID:kubrickfr,項目名稱:server,代碼行數:14,代碼來源:KalturaAppToken.php

示例7: toInsertableObject

 public function toInsertableObject($object_to_fill = null, $props_to_skip = array())
 {
     $hasPrivacyContext = false;
     if ($this->privacyContext) {
         $hasPrivacyContext = true;
     } elseif ($this->parentId != null) {
         $parentCategory = categoryPeer::retrieveByPK($this->parentId);
         if (!$parentCategory) {
             throw new KalturaAPIException(KalturaErrors::CATEGORY_NOT_FOUND, $this->parentId);
         }
         if ($parentCategory->getPrivacyContexts()) {
             $hasPrivacyContext = true;
         }
     }
     if ($hasPrivacyContext) {
         if (!$this->owner && $this->inheritanceType != KalturaInheritanceType::INHERIT) {
             if (kCurrentContext::getCurrentKsKuser()) {
                 $this->owner = kCurrentContext::getCurrentKsKuser()->getPuserId();
             }
         }
     }
     return parent::toInsertableObject($object_to_fill, $props_to_skip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:23,代碼來源:KalturaCategory.php

示例8: toInsertableObject

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

示例9: toInsertableObject

 public function toInsertableObject($dbObject = null, $skip = array())
 {
     if (is_null($this->permissionLevel)) {
         $category = categoryPeer::retrieveByPK($this->categoryId);
         if (!$category) {
             throw new KalturaAPIException(KalturaErrors::CATEGORY_NOT_FOUND, $this->categoryId);
         }
         $this->permissionLevel = $category->getDefaultPermissionLevel();
     }
     return parent::toInsertableObject($dbObject, $skip);
 }
開發者ID:GElkayam,項目名稱:server,代碼行數:11,代碼來源:KalturaCategoryUser.php

示例10: toInsertableObject

 public function toInsertableObject($object_to_fill = null, $props_to_skip = array())
 {
     return parent::toInsertableObject(new mediaInfo(), $props_to_skip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:4,代碼來源:KalturaMediaInfo.php

示例11: toInsertableObject

 public function toInsertableObject($object_to_fill = null, $props_to_skip = array())
 {
     if (is_null($object_to_fill)) {
         $object_to_fill = new EdgeServer();
     }
     return parent::toInsertableObject($object_to_fill, $props_to_skip);
 }
開發者ID:AdiTal,項目名稱:server,代碼行數:7,代碼來源:KalturaEdgeServer.php

示例12: toInsertableObject

 public function toInsertableObject($object_to_fill = null, $props_to_skip = array())
 {
     $dbObject = parent::toInsertableObject(new BulkUploadResult(), $props_to_skip);
     $pluginsData = array();
     if ($this->pluginsData && $this->pluginsData instanceof KalturaBulkUploadPluginDataArray) {
         foreach ($this->pluginsData as $data) {
             //				KalturaLog::debug("Plugins data item is " . get_class($data));
             if ($data instanceof KalturaBulkUploadPluginData) {
                 $pluginsData[$data->field] = $data->value;
             }
         }
     }
     KalturaLog::debug("Plugins data array:\n" . print_r($pluginsData, true));
     $dbObject->setPluginsData($pluginsData);
     return $dbObject;
 }
開發者ID:richhl,項目名稱:kalturaCE,代碼行數:16,代碼來源:KalturaBulkUploadResult.php

示例13: toInsertableObject

 public function toInsertableObject($objectToFill = null, $propertiesToSkip = array())
 {
     if (is_null($this->status)) {
         $this->status = KalturaScheduledTaskProfileStatus::DISABLED;
     }
     return parent::toInsertableObject($objectToFill, $propertiesToSkip);
 }
開發者ID:DBezemer,項目名稱:server,代碼行數:7,代碼來源:KalturaScheduledTaskProfile.php


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