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


PHP WikiaSpecialPageController::__construct方法代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct('Phalanx', 'phalanx');
     $this->includable(false);
     $this->title = SpecialPage::getTitleFor('Phalanx');
     $this->service = new PhalanxService();
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:7,代码来源:PhalanxSpecialController.class.php

示例2: __construct

 public function __construct()
 {
     global $wgFlowerUrl;
     parent::__construct('Tasks', '', false);
     $this->flowerUrl = $wgFlowerUrl;
     $this->userAccessRequirementDefault('tasks-user');
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:7,代码来源:TasksSpecialController.class.php

示例3: __construct

 public function __construct()
 {
     //$this->controllerData[] = 'foo';
     //$this->controllerData[] = 'bar';
     // standard SpecialPage constructor call
     parent::__construct('ErrorPage', '', false);
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:7,代码来源:ErrorPageSpecialController.class.php

示例4: __construct

 public function __construct()
 {
     parent::__construct('Places');
     // allow Special:Places to be included in article content
     // use {{Special:Places}}
     $this->includable(true);
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:7,代码来源:PlacesSpecialController.class.php

示例5: __construct

 public function __construct()
 {
     parent::__construct('UserSignup', '', false);
     // Disable captcha for automated tests and wikia mobile and sites disabling it, e.g. Internal
     if ($this->shouldDisableCaptcha()) {
         $this->disableCaptcha();
     }
 }
开发者ID:yusufchang,项目名称:app,代码行数:8,代码来源:UserSignupSpecialController.class.php

示例6: __construct

 /**
  * Handles dependency-building and special page routing before calling controller actions
  */
 public function __construct()
 {
     // note: this is required since we haven't constructed $this->wg yet
     global $wgWikiaSearchIsDefault;
     $specialPageName = $wgWikiaSearchIsDefault ? 'Search' : 'WikiaSearch';
     $this->queryServiceFactory = new Wikia\Search\QueryService\Factory();
     parent::__construct($specialPageName, $specialPageName, false);
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:11,代码来源:WikiaSearchController.class.php

示例7: __construct

 public function __construct(WikiaApp $app = null)
 {
     // we setting app here to make it accessible from hook handler
     $this->app = $app;
     $this->newWikis = F::build('NewWikis');
     $this->methodMapper[self::SPECIAL_PAGE_NAME1] = 'getActive';
     $this->methodMapper[self::SPECIAL_PAGE_NAME2] = 'getAll';
     // standard SpecialPage constructor call
     parent::__construct(self::SPECIAL_PAGE_NAME2, '', false);
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:10,代码来源:NewWikisController.class.php

示例8: __construct

 /**
  * Handles dependency-building and special page routing before calling controller actions 
  */
 public function __construct()
 {
     // note: this is required since we haven't constructed $this->wg yet
     global $wgWikiaSearchIsDefault;
     // Solarium_Client dependency handled in class constructor call in WikiaSearch.setup.php
     $this->wikiaSearch = F::build('WikiaSearch');
     $this->wikiaSearchIndexer = F::build('WikiaSearchIndexer');
     $specialPageName = $wgWikiaSearchIsDefault ? 'Search' : 'WikiaSearch';
     parent::__construct($specialPageName, $specialPageName, false);
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:13,代码来源:WikiaSearchController.class.php

示例9: __construct

 public function __construct()
 {
     parent::__construct('Promote');
     if ($this->wg->User->isLoggedIn()) {
         //fix for fb#49401 -- the page for anons looks better without this stylesheet
         //apparently it's also fix for fb#49394 -- the page for anons looks better without this stylesheet
         //FIXME: this is an asset of AdminDashboard extension; why is it added here? Maybe we should use some logic of AdminDashboard to load this asset and remove it from here
         $this->wg->Out->addStyle(AssetsManager::getInstance()->getSassCommonURL('extensions/wikia/AdminDashboard/css/AdminDashboard.scss'));
     }
     $this->wg->Out->addStyle(AssetsManager::getInstance()->getSassCommonURL('extensions/wikia/SpecialPromote/css/SpecialPromote.scss'));
     $this->helper = F::build('SpecialPromoteHelper');
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:12,代码来源:SpecialPromoteController.class.php

示例10: __construct

 public function __construct()
 {
     parent::__construct('UserManagement', 'usermanagement', false);
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:4,代码来源:SpecialUserManagementController.class.php

示例11: __construct

 public function __construct()
 {
     $this->searchedKeywords = new SearchedKeywords(F::app());
     parent::__construct('SearchedKeywords', 'SearchedKeywords', false);
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:5,代码来源:SearchedKeywordsController.class.php

示例12:

 function __construct()
 {
     parent::__construct('Flags', 'flags', true);
 }
开发者ID:Tjorriemorrie,项目名称:app,代码行数:4,代码来源:SpecialFlagsController.class.php

示例13: __construct

 public function __construct()
 {
     parent::__construct('WikiMap', '', false, false, "default", true);
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:4,代码来源:WikiMapSpecialController.class.php

示例14: __construct

 public function __construct()
 {
     // standard SpecialPage constructor call
     parent::__construct(NewWikisController::SPECIAL_PAGE_NAME1, '', false);
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:5,代码来源:ActiveNewWikisController.class.php

示例15: __construct

 public function __construct()
 {
     parent::__construct('WikiFeatures', 'wikifeaturesview');
 }
开发者ID:schwarer2006,项目名称:wikia,代码行数:4,代码来源:WikiFeaturesSpecialController.class.php


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