本文整理汇总了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 © 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'));
示例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");
}