private function getSimpleEditorUiConf() { $c = new Criteria(); $c->addAnd(uiConfPeer::DISPLAY_IN_SEARCH, mySearchUtils::DISPLAY_IN_SEARCH_KALTURA_NETWORK, Criteria::GREATER_EQUAL); $c->addAnd(uiConfPeer::STATUS, uiConf::UI_CONF_STATUS_READY); $c->addAnd(uiConfPeer::OBJ_TYPE, uiConf::UI_CONF_TYPE_EDITOR); $c->addAnd(uiConfPeer::TAGS, 'andromeda_kse_for_kmc', Criteria::LIKE); $c->addAscendingOrderByColumn(uiConfPeer::ID); $uiConf = uiConfPeer::doSelectOne($c); if ($uiConf) { return $uiConf->getId(); } else { return -1; } }
private function getAppStudioTemplatePath() { $template_partner_id = isset($this->templatePartnerId) ? $this->templatePartnerId : self::SYSTEM_DEFAULT_PARTNER; if (!$template_partner_id) { return false; } $c = new Criteria(); $c->addAnd(uiConfPeer::PARTNER_ID, $template_partner_id); $c->addAnd(uiConfPeer::STATUS, uiConf::UI_CONF_STATUS_READY); $c->addAnd(uiConfPeer::OBJ_TYPE, uiConf::UI_CONF_TYPE_KMC_APP_STUDIO); $c->addAnd(uiConfPeer::DISPLAY_IN_SEARCH, mySearchUtils::DISPLAY_IN_SEARCH_KALTURA_NETWORK); $uiConf = uiConfPeer::doSelectOne($c); if ($uiConf) { $sync_key = $uiConf->getSyncKey(uiConf::FILE_SYNC_UICONF_SUB_TYPE_DATA); if ($sync_key) { $file_sync = kFileSyncUtils::getLocalFileSyncForKey($sync_key, true); if ($file_sync) { return "/" . $file_sync->getFilePath(); } } } return false; }