Beispiel #1
0
function compareServiceNames($obj1, $obj2)
{
    return strcmp($obj1->serviceId, $obj2->serviceId);
}
$config = new Zend_Config_Ini("../../config/testme.ini", null, array('allowModifications' => true));
$config = KalturaPluginManager::mergeConfigs($config, 'testme', false);
$indexConfig = $config->get('testmedoc');
$include = $indexConfig->get("include");
$exclude = $indexConfig->get("exclude");
$excludePaths = $indexConfig->get("excludepaths");
$additional = $indexConfig->get("additional");
$clientGenerator = new DummyForDocsClientGenerator();
$clientGenerator->setIncludeOrExcludeList($include, $exclude, $excludePaths);
echo $include;
$clientGenerator->setAdditionalList($additional);
$clientGenerator->load();
$list = array();
$services = $clientGenerator->getServices();
foreach ($services as $serviceId => $serviceReflector) {
    /* @var $serviceReflector KalturaServiceActionItem */
    $actions = $serviceReflector->actionMap;
    foreach ($actions as $actionId => &$actionCallback) {
        // we need only the keys
        $actionCallback = null;
    }
    $list[$serviceId] = $actions;
}
$clientGenerator->setIncludeList($list);
$enums = $clientGenerator->getEnums();
$stringEnums = $clientGenerator->getStringEnums();
$arrays = $clientGenerator->getArrays();