当前位置: 首页>>代码示例>>PHP>>正文


PHP KalturaPluginManager::mergeConfigs方法代码示例

本文整理汇总了PHP中KalturaPluginManager::mergeConfigs方法的典型用法代码示例。如果您正苦于以下问题:PHP KalturaPluginManager::mergeConfigs方法的具体用法?PHP KalturaPluginManager::mergeConfigs怎么用?PHP KalturaPluginManager::mergeConfigs使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在KalturaPluginManager的用法示例。


在下文中一共展示了KalturaPluginManager::mergeConfigs方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: isset

}
//pass the name of the generator as the first argument of the command line to
//generate a single library. if this argument is empty or 'all', generator will create all libs.
$generateSingle = isset($argv[1]) ? $argv[1] : null;
//second command line argument specifies the output path, if not specified will default to
//<content root>/content/clientlibs
if (isset($argv[2])) {
    $outputPathBase = $argv[2];
} else {
    $root = myContentStorage::getFSContentRootPath();
    $outputPathBase = "{$root}/content/clientlibs";
}
kFile::fullMkdir($outputPathBase);
//pull the generator config ini
$config = new Zend_Config_Ini(__DIR__ . '/../configurations/generator.ini', null, array('allowModifications' => true));
$config = KalturaPluginManager::mergeConfigs($config, 'generator', false);
$libsToGenerate = null;
if (strtolower($generateSingle) == 'all') {
    $generateSingle = null;
} elseif (!$generateSingle) {
    $libsToGenerate = file(__DIR__ . '/../configurations/generator.defaults.ini');
    foreach ($libsToGenerate as $key => &$default) {
        $default = strtolower(trim($default, " \t\r\n"));
    }
}
//if we got specific generator request, tes if this requested generator does exist
if ($generateSingle != null) {
    $libsToGenerate = array_map('strtolower', array_intersect(explode(',', $generateSingle), array_keys($config->toArray())));
}
//get the API version
$apiVersion = KALTURA_API_VERSION;
开发者ID:DBezemer,项目名称:server,代码行数:31,代码来源:generate.php

示例2: _initConfig

 protected function _initConfig()
 {
     $this->bootstrap('autoloaders');
     $this->bootstrap('log');
     $this->bootstrap('plugins');
     $config = $this->getConfig();
     $configSettings = $config->settings;
     $configName = $configSettings->applicationName;
     $config = KalturaPluginManager::mergeConfigs($config, $configName, false);
     Zend_Registry::set('config', $config);
     return $config;
 }
开发者ID:DBezemer,项目名称:server,代码行数:12,代码来源:InfraBootstrapper.php

示例3: compareTypeNames

<?php

function compareTypeNames($obj1, $obj2)
{
    return strcmp($obj1->getType(), $obj2->getType());
}
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;
    }
开发者ID:DBezemer,项目名称:server,代码行数:31,代码来源:left_pane.php

示例4: Zend_Config_Ini

<?php

$config = new Zend_Config_Ini("../../config/testme.ini", null, array('allowModifications' => true));
$config = KalturaPluginManager::mergeConfigs($config, 'xsddoc', false);
$indexConfig = $config->get('xsddoc');
$exclude = explode(',', $indexConfig->get("exclude"));
$schemaReflector = KalturaTypeReflectorCacher::get('KalturaSchemaType');
$schemas = $schemaReflector->getConstants();
?>
<div class="left">
	<div class="left-content">
		<div id="general">
			<h2>General</h2>
			<ul>
				<li><a href="?page=overview">Overview</a></li>
			</ul>
		</div>

		<div id="schemas">
			<h2>Schemas</h2>
			<ul class="schemas">
			<?php 
foreach ($schemas as $schema) {
    ?>
				<li class="schema">
					<a href="?type=<?php 
    echo $schema->getDefaultValue();
    ?>
"><?php 
    echo $schema->getDescription();
    ?>
开发者ID:DBezemer,项目名称:server,代码行数:31,代码来源:left_pane.php


注:本文中的KalturaPluginManager::mergeConfigs方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。