Пример #1
0
 public static function fromDbArray(array $arr, KalturaDetachedResponseProfile $responseProfile = null)
 {
     $newArr = new KalturaUiConfArray();
     foreach ($arr as $obj) {
         $nObj = new KalturaUiConf();
         $nObj->fromObject($obj, $responseProfile);
         $newArr[] = $nObj;
     }
     return $newArr;
 }
 public function fromObject($source_object)
 {
     if ($source_object instanceof uiConf) {
         if ($source_object->getDisplayInSearch() == mySearchUtils::DISPLAY_IN_SEARCH_KALTURA_NETWORK) {
             $this->isPublic = true;
         } else {
             $this->isPublic = false;
         }
     }
     return parent::fromObject($source_object);
 }
Пример #3
0
 function cloneAction($id)
 {
     $dbUiConf = uiConfPeer::retrieveByPK($id);
     if (!$dbUiConf) {
         throw new KalturaAPIException(APIErrors::INVALID_UI_CONF_ID, $id);
     }
     $ui_conf_verride_params = new uiConf();
     $ui_conf_verride_params->setPartnerId($this->getPartnerId());
     $ui_conf_verride_params->setDisplayInSearch(1);
     // the cloned ui_conf should NOT be a template
     $uiConfClone = $dbUiConf->cloneToNew($ui_conf_verride_params);
     $uiConf = new KalturaUiConf();
     $uiConf->fromObject($uiConfClone, $this->getResponseProfile());
     return $uiConf;
 }