コード例 #1
0
ファイル: plugin.php プロジェクト: ZerGabriel/Pages
 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
0
ファイル: plugin.php プロジェクト: ky0ncheng/esotalk-for-sae
 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
0
ファイル: plugin.php プロジェクト: ky0ncheng/esotalk-for-sae
 public function __construct($rootDirectory)
 {
     parent::__construct($rootDirectory);
     ETFactory::register("attachmentModel", "AttachmentModel", dirname(__FILE__) . "/AttachmentModel.class.php");
     ETFactory::registerController("attachment", "AttachmentController", dirname(__FILE__) . "/AttachmentController.class.php");
 }
コード例 #4
0
ファイル: bootstrap.php プロジェクト: 19eighties/esoTalk
ETFactory::register("sqlRaw", "ETSQLRaw", PATH_LIBRARY . "/ETSQLRaw.class.php");
ETFactory::register("session", "ETSession", PATH_LIBRARY . "/ETSession.class.php");
ETFactory::register("cache", "ETCache", PATH_LIBRARY . "/ETCache.class.php");
ETFactory::register("form", "ETForm", PATH_LIBRARY . "/ETForm.class.php");
ETFactory::register("format", "ETFormat", PATH_LIBRARY . "/ETFormat.class.php");
ETFactory::register("upload", "ETUpload", PATH_LIBRARY . "/ETUpload.class.php");
ETFactory::register("menu", "ETMenu", PATH_LIBRARY . "/ETMenu.class.php");
// Register models.
ETFactory::register("searchModel", "ETSearchModel", PATH_MODELS . "/ETSearchModel.class.php");
ETFactory::register("conversationModel", "ETConversationModel", PATH_MODELS . "/ETConversationModel.class.php");
ETFactory::register("memberModel", "ETMemberModel", PATH_MODELS . "/ETMemberModel.class.php");
ETFactory::register("postModel", "ETPostModel", PATH_MODELS . "/ETPostModel.class.php");
ETFactory::register("channelModel", "ETChannelModel", PATH_MODELS . "/ETChannelModel.class.php");
ETFactory::register("groupModel", "ETGroupModel", PATH_MODELS . "/ETGroupModel.class.php");
ETFactory::register("activityModel", "ETActivityModel", PATH_MODELS . "/ETActivityModel.class.php");
ETFactory::register("upgradeModel", "ETUpgradeModel", PATH_MODELS . "/ETUpgradeModel.class.php");
// If esoTalk hasn't been installed, register the install controller and set it as the default route.
if (!C("esoTalk.installed")) {
    ETFactory::registerController("install", "ETInstallController", PATH_CONTROLLERS . "/ETInstallController.class.php");
    ET::$config["esoTalk.defaultRoute"] = "install";
} elseif (C("esoTalk.version") != ESOTALK_VERSION) {
    ETFactory::registerController("upgrade", "ETUpgradeController", PATH_CONTROLLERS . "/ETUpgradeController.class.php");
} else {
    ETFactory::registerController("conversations", "ETConversationsController", PATH_CONTROLLERS . "/ETConversationsController.class.php");
    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");
コード例 #5
0
ファイル: plugin.php プロジェクト: ZerGabriel/Reputation
 public function __construct($rootDirectory)
 {
     parent::__construct($rootDirectory);
     ETFactory::register("reputationModel", "ReputationModel", dirname(__FILE__) . "/ReputationModel.class.php");
     ETFactory::registerController("reputation", "ReputationController", dirname(__FILE__) . "/ReputationController.class.php");
 }
コード例 #6
0
ファイル: bootstrap.php プロジェクト: m-mori/forum
ETFactory::register("cache", "ETCache", PATH_LIBRARY . "/ETCache.class.php");
ETFactory::register("form", "ETForm", PATH_LIBRARY . "/ETForm.class.php");
ETFactory::register("format", "ETFormat", PATH_LIBRARY . "/ETFormat.class.php");
ETFactory::register("upload", "ETUpload", PATH_LIBRARY . "/ETUpload.class.php");
ETFactory::register("menu", "ETMenu", PATH_LIBRARY . "/ETMenu.class.php");
// Register models.
ETFactory::register("searchModel", "ETSearchModel", PATH_MODELS . "/ETSearchModel.class.php");
ETFactory::register("conversationModel", "ETConversationModel", PATH_MODELS . "/ETConversationModel.class.php");
ETFactory::register("memberModel", "ETMemberModel", PATH_MODELS . "/ETMemberModel.class.php");
ETFactory::register("postModel", "ETPostModel", PATH_MODELS . "/ETPostModel.class.php");
ETFactory::register("channelModel", "ETChannelModel", PATH_MODELS . "/ETChannelModel.class.php");
ETFactory::register("groupModel", "ETGroupModel", PATH_MODELS . "/ETGroupModel.class.php");
ETFactory::register("activityModel", "ETActivityModel", PATH_MODELS . "/ETActivityModel.class.php");
ETFactory::register("upgradeModel", "ETUpgradeModel", PATH_MODELS . "/ETUpgradeModel.class.php");
// 2016/02 add Tags Model
ETFactory::register("tagsModel", "ETTagsModel", PATH_MODELS . "/ETTagsModel.class.php");
// If esoTalk hasn't been installed, register the install controller and set it as the default route.
if (!C("esoTalk.installed")) {
    ETFactory::registerController("install", "ETInstallController", PATH_CONTROLLERS . "/ETInstallController.class.php");
    ET::$config["esoTalk.defaultRoute"] = "install";
} elseif (C("esoTalk.version") != ESOTALK_VERSION) {
    ETFactory::registerController("upgrade", "ETUpgradeController", PATH_CONTROLLERS . "/ETUpgradeController.class.php");
} else {
    ETFactory::registerController("conversations", "ETConversationsController", PATH_CONTROLLERS . "/ETConversationsController.class.php");
    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");