當前位置: 首頁>>代碼示例>>PHP>>正文


PHP WikiaSpecialPageController類代碼示例

本文整理匯總了PHP中WikiaSpecialPageController的典型用法代碼示例。如果您正苦於以下問題:PHP WikiaSpecialPageController類的具體用法?PHP WikiaSpecialPageController怎麽用?PHP WikiaSpecialPageController使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了WikiaSpecialPageController類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: __construct

 public function __construct()
 {
     WikiaSpecialPageController::__construct('PromoteImageReview', 'promoteimagereview', false);
 }
開發者ID:schwarer2006,項目名稱:wikia,代碼行數:4,代碼來源:PromoteImageReviewSpecialController.class.php

示例2: __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

示例3: __construct

 public function __construct()
 {
     global $wgFlowerUrl;
     parent::__construct('Tasks', '', false);
     $this->flowerUrl = $wgFlowerUrl;
     $this->userAccessRequirementDefault('tasks-user');
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:7,代碼來源:TasksSpecialController.class.php

示例4: __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

示例5: __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

示例6: __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

示例7: __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

示例8: __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

示例9: __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

示例10: __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

示例11: __construct

 public function __construct()
 {
     parent::__construct('UserManagement', 'usermanagement', false);
 }
開發者ID:schwarer2006,項目名稱:wikia,代碼行數:4,代碼來源:SpecialUserManagementController.class.php

示例12: __construct

 public function __construct()
 {
     $this->searchedKeywords = new SearchedKeywords(F::app());
     parent::__construct('SearchedKeywords', 'SearchedKeywords', false);
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:5,代碼來源:SearchedKeywordsController.class.php

示例13:

 function __construct()
 {
     parent::__construct('Flags', 'flags', true);
 }
開發者ID:Tjorriemorrie,項目名稱:app,代碼行數:4,代碼來源:SpecialFlagsController.class.php

示例14: __construct

 public function __construct()
 {
     parent::__construct('WikiMap', '', false, false, "default", true);
 }
開發者ID:schwarer2006,項目名稱:wikia,代碼行數:4,代碼來源:WikiMapSpecialController.class.php

示例15: __construct

 public function __construct()
 {
     // standard SpecialPage constructor call
     parent::__construct(NewWikisController::SPECIAL_PAGE_NAME1, '', false);
 }
開發者ID:schwarer2006,項目名稱:wikia,代碼行數:5,代碼來源:ActiveNewWikisController.class.php


注:本文中的WikiaSpecialPageController類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。