本文整理汇总了PHP中ETFactory::registerAdminController方法的典型用法代码示例。如果您正苦于以下问题:PHP ETFactory::registerAdminController方法的具体用法?PHP ETFactory::registerAdminController怎么用?PHP ETFactory::registerAdminController使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ETFactory
的用法示例。
在下文中一共展示了ETFactory::registerAdminController方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($rootDirectory)
{
parent::__construct($rootDirectory);
ETFactory::register("pagesModel", "PagesModel", dirname(__FILE__) . "/PagesModel.class.php");
ETFactory::registerAdminController("pages", "PagesAdminController", dirname(__FILE__) . "/PagesAdminController.class.php");
ETFactory::registerController("pages", "PagesController", dirname(__FILE__) . "/PagesController.class.php");
}
示例2: __construct
public function __construct($rootDirectory)
{
parent::__construct($rootDirectory);
// Register the profile_field model which provides convenient methods to
// manage profile data.
ETFactory::register("profileFieldModel", "ProfileFieldModel", dirname(__FILE__) . "/ProfileFieldModel.class.php");
// Register the profiles admin controller which provides an interface for
// administrators to manage custom profile fields.
ETFactory::registerAdminController("profiles", "ProfilesAdminController", dirname(__FILE__) . "/ProfilesAdminController.class.php");
}
示例3: foreach
ETFactory::registerController("user", "ETUserController", PATH_CONTROLLERS . "/ETUserController.class.php");
ETFactory::registerController("settings", "ETSettingsController", PATH_CONTROLLERS . "/ETSettingsController.class.php");
ETFactory::registerController("channels", "ETChannelsController", PATH_CONTROLLERS . "/ETChannelsController.class.php");
ETFactory::registerController("member", "ETMemberController", PATH_CONTROLLERS . "/ETMemberController.class.php");
ETFactory::registerController("members", "ETMembersController", PATH_CONTROLLERS . "/ETMembersController.class.php");
// ETFactory::registerController("feed", "ETFeedController", PATH_CONTROLLERS."/ETFeedController.class.php");
ETFactory::registerController("admin", "ETAdminController", PATH_CONTROLLERS . "/ETAdminController.class.php");
ETFactory::registerAdminController("dashboard", "ETDashboardAdminController", PATH_CONTROLLERS . "/admin/ETDashboardAdminController.class.php");
ETFactory::registerAdminController("settings", "ETSettingsAdminController", PATH_CONTROLLERS . "/admin/ETSettingsAdminController.class.php");
ETFactory::registerAdminController("appearance", "ETAppearanceAdminController", PATH_CONTROLLERS . "/admin/ETAppearanceAdminController.class.php");
ETFactory::registerAdminController("channels", "ETChannelsAdminController", PATH_CONTROLLERS . "/admin/ETChannelsAdminController.class.php");
ETFactory::registerAdminController("plugins", "ETPluginsAdminController", PATH_CONTROLLERS . "/admin/ETPluginsAdminController.class.php");
ETFactory::registerAdminController("groups", "ETGroupsAdminController", PATH_CONTROLLERS . "/admin/ETGroupsAdminController.class.php");
ETFactory::registerAdminController("languages", "ETLanguagesAdminController", PATH_CONTROLLERS . "/admin/ETLanguagesAdminController.class.php");
if (C("esoTalk.registration.requireConfirmation") == "approval") {
ETFactory::registerAdminController("unapproved", "ETUnapprovedAdminController", PATH_CONTROLLERS . "/admin/ETUnapprovedAdminController.class.php");
}
}
//***** 5. SET UP PLUGINS
if (C("esoTalk.installed")) {
foreach (C("esoTalk.enabledPlugins") as $v) {
if (file_exists($file = PATH_PLUGINS . "/" . sanitizeFileName($v) . "/plugin.php")) {
include_once $file;
}
$className = "ETPlugin_{$v}";
if (!class_exists($className)) {
continue;
}
ET::$plugins[$v] = new $className("addons/plugins/" . $v);
ET::$plugins[$v]->boot();
}
示例4: foreach
ETFactory::registerController("conversation", "ETConversationController", PATH_CONTROLLERS . "/ETConversationController.class.php");
ETFactory::registerController("post", "ETPostController", PATH_CONTROLLERS . "/ETPostController.class.php");
ETFactory::registerController("user", "ETUserController", PATH_CONTROLLERS . "/ETUserController.class.php");
ETFactory::registerController("settings", "ETSettingsController", PATH_CONTROLLERS . "/ETSettingsController.class.php");
ETFactory::registerController("channels", "ETChannelsController", PATH_CONTROLLERS . "/ETChannelsController.class.php");
ETFactory::registerController("member", "ETMemberController", PATH_CONTROLLERS . "/ETMemberController.class.php");
ETFactory::registerController("members", "ETMembersController", PATH_CONTROLLERS . "/ETMembersController.class.php");
// ETFactory::registerController("feed", "ETFeedController", PATH_CONTROLLERS."/ETFeedController.class.php");
ETFactory::registerController("admin", "ETAdminController", PATH_CONTROLLERS . "/ETAdminController.class.php");
ETFactory::registerAdminController("dashboard", "ETDashboardAdminController", PATH_CONTROLLERS . "/admin/ETDashboardAdminController.class.php");
ETFactory::registerAdminController("settings", "ETSettingsAdminController", PATH_CONTROLLERS . "/admin/ETSettingsAdminController.class.php");
ETFactory::registerAdminController("appearance", "ETAppearanceAdminController", PATH_CONTROLLERS . "/admin/ETAppearanceAdminController.class.php");
ETFactory::registerAdminController("channels", "ETChannelsAdminController", PATH_CONTROLLERS . "/admin/ETChannelsAdminController.class.php");
ETFactory::registerAdminController("plugins", "ETPluginsAdminController", PATH_CONTROLLERS . "/admin/ETPluginsAdminController.class.php");
ETFactory::registerAdminController("groups", "ETGroupsAdminController", PATH_CONTROLLERS . "/admin/ETGroupsAdminController.class.php");
ETFactory::registerAdminController("languages", "ETLanguagesAdminController", PATH_CONTROLLERS . "/admin/ETLanguagesAdminController.class.php");
}
//***** 5. SET UP PLUGINS
if (C("esoTalk.installed")) {
foreach (C("esoTalk.enabledPlugins") as $v) {
if (file_exists($file = PATH_PLUGINS . "/" . sanitizeFileName($v) . "/plugin.php")) {
include_once $file;
}
$className = "ETPlugin_{$v}";
if (class_exists($className)) {
ET::$plugins[$v] = new $className("plugins/" . $v);
}
}
}
//***** 6. INITIALIZE SESSION AND DATABASE, AND CACHE
// Initialize the cache.