function __construct() { //Some internal methods called from this controller need the skin to be wikiamobile //It makes sense to set it explicitly here as other skins shouldn't use it anyway RequestContext::getMain()->setSkin(Skin::newFromKey('wikiamobile')); parent::__construct(); }
public function __construct($name = null, $restriction = '', $listed = true, $function = false, $file = 'default', $includable = false) { if ($name == null) { throw new WikiaException('First parameter of WikiaSpecialPage constructor must not be null'); } $this->specialPage = new SpecialPage($name, $restriction, $listed, $function, $file, $includable); parent::__construct(); }
public function __construct($name = null, $restriction = '', $listed = true, $function = false, $file = 'default', $includable = false) { if ($name == null) { throw new WikiaException('First parameter of WikiaSpecialPage constructor must not be null'); } $this->specialPage = F::build('SpecialPage', array($name, $restriction, $listed, $function, $file, $includable)); F::setInstance(get_class($this), $this); parent::__construct(); }
/** * Constructor method. * Sets defaults -- no writing to memache, and a default search indexer instance */ public function __construct() { parent::__construct(); $this->service = new MediaWikiService(); $this->service->setGlobal('AllowMemcacheWrites', false)->setGlobal('AppStripsHtml', true); if (function_exists('newrelic_disable_autorum')) { newrelic_disable_autorum(); } if (function_exists('newrelic_background_job')) { newrelic_background_job(true); } }
public function __construct(Title $templateTitle) { $this->title = $templateTitle; parent::__construct(); }
public function __construct() { parent::__construct(); $this->model = new WAMPageModel(); }
/** * @desc Constructor, gets the configuration from global $wgLyricsSolariumOptions variable and sets data handler */ public function __construct() { parent::__construct(); $this->lyricsApiHandler = new SolrLyricsApiHandler(F::app()->wg->LyricsApiSolrariumConfig); }
public function __construct() { parent::__construct(); $this->fbClientFactory = new \FacebookClientFactory(); }
public function __construct() { parent::__construct(); $this->mercuryApi = new MercuryApi(); }
public function __construct() { parent::__construct('GamingMaps', '', false); }
public function __construct() { parent::__construct(); $this->helper = new WikiaHomePageHelper(); $this->wg->Out->addStyle(AssetsManager::getInstance()->getSassCommonURL('extensions/wikia/WikiaHomePage/css/WikiaHomePage.scss')); }
public function __construct() { parent::__construct('WikiaHubsV3', '', false); }
public function __construct() { parent::__construct(); $this->initWikiDataModel(); }
public function __construct() { parent::__construct(); $this->fbClientFactory = new \FacebookClientFactory(); $this->userLoginHelper = new \UserLoginHelper(); }
public function __construct() { parent::__construct(); $this->helper = new ArticleNavigationHelper(); }
public function __construct() { parent::__construct(); $this->helper = new GlobalNavigationHelper(); $this->wikiaLogoHelper = new WikiaLogoHelper(); }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->mapsModel = new WikiaMaps($this->wg->IntMapConfig); }