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 init()
 {
     parent::init();
     $request = $this->getRequest();
     $this->accessService = new ApiAccessService($request);
     $this->docsService = (new ApiDocsServiceFactory())->getApiDocsService($request);
 }
 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()
 {
     parent::__construct();
     $this->helper = new GlobalNavigationHelper();
     $this->wikiaLogoHelper = new WikiaLogoHelper();
 }
 public function __construct()
 {
     parent::__construct();
 }
 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();
 }
Esempio n. 12
0
 public function __construct()
 {
     parent::__construct();
     $this->initWikiDataModel();
 }
 public function __construct()
 {
     parent::__construct('GamingMaps', '', false);
 }
 public function __construct()
 {
     parent::__construct();
     $this->mapsModel = new WikiaMaps($this->wg->IntMapConfig);
 }
 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();
     $this->helper = new ArticleNavigationHelper();
 }
 public function init()
 {
     parent::init();
     $this->initCacheValidityTimes();
     $this->initFormat();
     $this->initModel();
     $this->initVertical();
     $this->initHubTimestamp();
 }
 protected function getSkipMethods()
 {
     return array_merge(parent::getSkipMethods(), ['getApiVersion', 'blockIfNonCommercialOnly', 'hideNonCommercialContent']);
 }
 public function __construct()
 {
     parent::__construct();
     $this->mercuryApi = new MercuryApi();
 }
 /**
  * Prints documentation for current controller.
  * API controller methods are required to return
  * JSON data but in this case HTML is required.
  */
 public function help()
 {
     $this->response->setFormat('html');
     parent::help();
 }
 public function __construct()
 {
     parent::__construct();
     $this->fbClientFactory = new \FacebookClientFactory();
     $this->userLoginHelper = new \UserLoginHelper();
 }