/** * Retrieve a UIConf by id with no partner limitation * * @action get * @param int $id * @return KalturaUiConfAdmin * * @throws APIErrors::INVALID_UI_CONF_ID */ function getAction($id) { $dbUiConf = uiConfPeer::retrieveByPK($id); if (!$dbUiConf) { throw new KalturaAPIException(APIErrors::INVALID_UI_CONF_ID, $id); } $uiConf = new KalturaUiConfAdmin(); $uiConf->fromObject($dbUiConf); return $uiConf; }
public static function fromDbArray(array $arr, KalturaDetachedResponseProfile $responseProfile = null) { $newArr = new KalturaUiConfAdminArray(); foreach ($arr as $obj) { $nObj = new KalturaUiConfAdmin(); $nObj->fromObject($obj, $responseProfile); $newArr[] = $nObj; } return $newArr; }