本文整理汇总了PHP中WikiaSpecialPageController类的典型用法代码示例。如果您正苦于以下问题:PHP WikiaSpecialPageController类的具体用法?PHP WikiaSpecialPageController怎么用?PHP WikiaSpecialPageController使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了WikiaSpecialPageController类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct()
{
WikiaSpecialPageController::__construct('PromoteImageReview', 'promoteimagereview', false);
}
示例2: __construct
public function __construct()
{
parent::__construct('Phalanx', 'phalanx');
$this->includable(false);
$this->title = SpecialPage::getTitleFor('Phalanx');
$this->service = new PhalanxService();
}
示例3: __construct
public function __construct()
{
global $wgFlowerUrl;
parent::__construct('Tasks', '', false);
$this->flowerUrl = $wgFlowerUrl;
$this->userAccessRequirementDefault('tasks-user');
}
示例4: __construct
public function __construct()
{
//$this->controllerData[] = 'foo';
//$this->controllerData[] = 'bar';
// standard SpecialPage constructor call
parent::__construct('ErrorPage', '', false);
}
示例5: __construct
public function __construct()
{
parent::__construct('Places');
// allow Special:Places to be included in article content
// use {{Special:Places}}
$this->includable(true);
}
示例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();
}
}
示例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);
}
示例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);
}
示例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);
}
示例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');
}
示例11: __construct
public function __construct()
{
parent::__construct('UserManagement', 'usermanagement', false);
}
示例12: __construct
public function __construct()
{
$this->searchedKeywords = new SearchedKeywords(F::app());
parent::__construct('SearchedKeywords', 'SearchedKeywords', false);
}
示例13:
function __construct()
{
parent::__construct('Flags', 'flags', true);
}
示例14: __construct
public function __construct()
{
parent::__construct('WikiMap', '', false, false, "default", true);
}
示例15: __construct
public function __construct()
{
// standard SpecialPage constructor call
parent::__construct(NewWikisController::SPECIAL_PAGE_NAME1, '', false);
}