當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。