Esempio n. 1
0
 protected function shouldUseServiceAction(KalturaActionReflector $actionReflector)
 {
     $serviceId = $actionReflector->getServiceId();
     if ($actionReflector->getActionClassInfo()->serverOnly) {
         KalturaLog::info("Service [" . $serviceId . "] is server only");
         return false;
     }
     $actionId = $actionReflector->getActionId();
     if (strpos($actionReflector->getActionInfo()->clientgenerator, "ignore") !== false) {
         KalturaLog::info("Action [{$actionId}] in service [{$serviceId}] ignored by generator");
         return false;
     }
     if (isset($this->_serviceActions[$serviceId]) && isset($this->_serviceActions[$serviceId][$actionId])) {
         KalturaLog::err("Service [{$serviceId}] action [{$actionId}] already exists!");
         return false;
     }
     return true;
 }