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;
 }
<?php

require_once "../../bootstrap.php";
KalturaLog::setContext("TESTME");
$service = $_GET["service"];
$serviceMap = KalturaServicesMap::getMap();
$serviceActionItem = $serviceMap[strtolower($service)];
if (!$service) {
    exit;
}
/* @var $serviceActionItem KalturaServiceActionItem */
$actionsArray = $serviceActionItem->actionMap;
$actionNames = array_keys($actionsArray);
sort($actionNames);
$actions = array();
foreach ($actionNames as $actionName) {
    $actionReflector = new KalturaActionReflector($service, $actionName, $actionsArray[$actionName]);
    $actionInfo = $actionReflector->getActionInfo();
    $actionDisplayName = $actionReflector->getActionId();
    $actionLabel = $actionReflector->getActionName();
    if ($actionInfo->deprecated) {
        $actionLabel .= ' (deprecated)';
    }
    $actions[] = array('action' => $actionName, 'name' => $actionName, 'label' => $actionLabel);
}
echo json_encode($actions);