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


PHP assetParamsPeer::getIds方法代碼示例

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


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

示例1: toObject

 public function toObject($object_to_fill = null, $props_to_skip = array())
 {
     if (!$object_to_fill) {
         $object_to_fill = new assetParamsConversionProfileFilter();
     }
     $conversionProfileCriteria = new Criteria();
     if ($this->conversionProfileIdEqual) {
         $conversionProfileCriteria->add(conversionProfile2Peer::ID, $this->conversionProfileIdEqual);
     }
     if ($this->conversionProfileIdIn) {
         $conversionProfileCriteria->add(conversionProfile2Peer::ID, explode(',', $this->conversionProfileIdIn), Criteria::IN);
     }
     if ($this->conversionProfileIdFilter) {
         $conversionProfileIdFilter = new conversionProfile2Filter();
         $this->conversionProfileIdFilter->toObject($conversionProfileIdFilter);
         $conversionProfileIdFilter->attachToCriteria($conversionProfileCriteria);
     }
     $this->conversionProfileIdEqual = null;
     $this->conversionProfileIdFilter = null;
     $conversionProfileIdIn = conversionProfile2Peer::getIds($conversionProfileCriteria);
     if (count($conversionProfileIdIn)) {
         $this->conversionProfileIdIn = implode(',', $conversionProfileIdIn);
     } else {
         $this->conversionProfileIdIn = -1;
     }
     // none existing conversion profile
     $assetParamsCriteria = new Criteria();
     if ($this->assetParamsIdEqual) {
         $assetParamsCriteria->add(assetParamsPeer::ID, $this->assetParamsIdEqual);
     }
     if ($this->assetParamsIdIn) {
         $assetParamsCriteria->add(assetParamsPeer::ID, explode(',', $this->assetParamsIdIn), Criteria::IN);
     }
     if ($this->assetParamsIdFilter) {
         $assetParamsIdFilter = new assetParamsFilter();
         $this->assetParamsIdFilter->toObject($assetParamsIdFilter);
         $assetParamsIdFilter->attachToCriteria($assetParamsCriteria);
     }
     $this->assetParamsIdEqual = null;
     $this->assetParamsIdFilter = null;
     $assetParamsIdIn = assetParamsPeer::getIds($assetParamsCriteria);
     if (count($assetParamsIdIn)) {
         $this->assetParamsIdIn = implode(',', $assetParamsIdIn);
     } else {
         $this->assetParamsIdIn = -1;
     }
     // none existing flavor
     return parent::toObject($object_to_fill, $props_to_skip);
 }
開發者ID:EfncoPlugins,項目名稱:Media-Management-based-on-Kaltura,代碼行數:49,代碼來源:KalturaConversionProfileAssetParamsFilter.php


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