コード例 #1
0
ファイル: LikeService.php プロジェクト: DBezemer/server
 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if (!LikePlugin::isAllowedPartner($this->getPartnerId())) {
         throw new KalturaAPIException(KalturaErrors::FEATURE_FORBIDDEN, LikePlugin::PLUGIN_NAME);
     }
     if ((!kCurrentContext::$ks_uid || kCurrentContext::$ks_uid == "") && $actionName != "list") {
         throw new KalturaAPIException(KalturaErrors::INVALID_USER_ID);
     }
 }
コード例 #2
0
 public function initService($serviceId, $serviceName, $actionName)
 {
     parent::initService($serviceId, $serviceName, $actionName);
     if (!LikePlugin::isAllowedPartner($this->getPartnerId())) {
         throw new KalturaAPIException(KalturaErrors::SERVICE_FORBIDDEN, $this->serviceName . '->' . $this->actionName);
     }
     if (!kCurrentContext::$ks_uid || kCurrentContext::$ks_uid == "") {
         throw new KalturaAPIException(KalturaErrors::INVALID_USER_ID);
     }
 }