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


PHP Services::createServiceAlias方法代码示例

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


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

示例1: ConfigurationProperties

<?php

/**
 * Set up the PluginManager
 *
 * USAGE: Copy this file to plugins.conf.php to set custom values.
 *
 * @package segue.config
 * 
 * @copyright Copyright &copy; 2005, Middlebury College
 * @license http://www.gnu.org/copyleft/gpl.html GNU General Public License (GPL)
 *
 * @version $Id: plugins_default.conf.php,v 1.8 2008/04/04 20:23:13 achapin Exp $
 */
require_once MYDIR . "/main/library/PluginManager/PluginManager.class.php";
Services::registerService("PluginManager", "PluginManager");
Services::createServiceAlias("PluginManager", "Plugs");
$configuration = new ConfigurationProperties();
$configuration->addProperty('plugin_dir', $dir = MYDIR . "/plugins");
$configuration->addProperty('plugin_path', $path = MYPATH . "/plugins");
$configuration->addProperty('authN_priority', $prior = 'Middlebury LDAP');
Services::startManagerAsService("PluginManager", $context, $configuration);
//   	$pluginManager = Services::getService("PluginManager");
//  	$pluginManager->enablePlugin(new Type ('SeguePlugins', 'edu.middlebury', 'Tags'));
// 	$pluginManager->installPlugin(new Type ('SeguePlugins', 'edu.middlebury', 'Download'));
// 	$pluginManager->installPlugin(new Type ('SeguePlugins', 'edu.middlebury', 'Assignment'));
开发者ID:adamfranco,项目名称:segue,代码行数:26,代码来源:plugins_default.conf.php

示例2:

    Services::createServiceAlias("RepositoryManager", "Repository");
}
/**
 * load the SchedulingManager.
 */
if (LOAD_SCHEDULING) {
    require_once HARMONI . "oki2/scheduling/HarmoniSchedulingManager.class.php";
    Services::registerService("SchedulingManager", "HarmoniSchedulingManager");
    Services::createServiceAlias("SchedulingManager", "Scheduling");
}
/**
 * load the CourseManagementManager.
 */
if (LOAD_COURSE_MANAGEMENT) {
    require_once HARMONI . "oki2/coursemanagement/CourseManagementManager.class.php";
    Services::registerService("CourseManagementManager", "HarmoniCourseManagementManager");
    Services::createServiceAlias("CourseManagementManager", "CourseManagement");
}
if (LOAD_GRADING) {
    require_once HARMONI . "oki2/grading/HarmoniGradingManager.class.php";
    Services::registerService("GradingManager", "HarmoniGradingManager");
    Services::createServiceAlias("GradingManager", "Grading");
}
/**
 * load the TaggingManager.
 */
if (LOAD_TAGGING) {
    require_once HARMONI . "Tagging/TagManager.class.php";
    Services::registerService("TagManager", "TagManager");
    Services::createServiceAlias("TagManager", "Tagging");
}
开发者ID:adamfranco,项目名称:harmoni,代码行数:31,代码来源:services.cfg.php


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