public static function fromUiConfArray($arr) { $newArr = new KalturaUiConfArray(); foreach ($arr as $obj) { $nObj = new KalturaUiConf(); $nObj->fromUiConf($obj); $newArr[] = $nObj; } return $newArr; }
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 toObject($object_to_fill = null, $props_to_skip = array()) { if ($object_to_fill instanceof uiConf) { if ($this->isPublic === true) { $object_to_fill->setDisplayInSearch(mySearchUtils::DISPLAY_IN_SEARCH_KALTURA_NETWORK); } else { $object_to_fill->setDisplayInSearch(mySearchUtils::DISPLAY_IN_SEARCH_NONE); } } return parent::toObject($object_to_fill, $props_to_skip); }
function update($id, KalturaUiConf $uiConf) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "uiConf", $uiConf->toParams()); $this->client->queueServiceActionCall("uiconf", "update", $kparams); if ($this->client->isMultiRequest()) { return null; } $resultObject = $this->client->doQueue(); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaUiConf"); return $resultObject; }
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->fromUiConf($uiConfClone); return $uiConf; }
function update($id, KalturaUiConf $uiConf) { $kparams = array(); $this->client->addParam($kparams, "id", $id); $this->client->addParam($kparams, "uiConf", $uiConf->toParams()); $resultObject = $this->client->callService("uiconf", "update", $kparams); $this->client->throwExceptionIfError($resultObject); $this->client->validateObjectType($resultObject, "KalturaUiConf"); return $resultObject; }