/**
  * Pass user ID of user you want to get data about
  */
 function __construct($userId)
 {
     $this->userId = intval($userId);
     $this->user = null;
     $this->optionsAllWikis = array();
     parent::__construct();
 }
Example #2
0
 public function __construct($data = array())
 {
     foreach ($data as $key => $value) {
         $this->{$key} = $value;
     }
     parent::__construct();
 }
Example #3
0
 public function __construct()
 {
     parent::__construct();
     if (is_null($this->config)) {
         $this->config = $this->app->wg->WAMPageConfig;
     }
 }
 /**
  * @param string $userRegion - A two character country code
  */
 public function __construct($userRegion)
 {
     parent::__construct();
     $this->initializeBlacklist();
     $this->userRegion = $userRegion;
     $this->limit = static::LIMIT;
     $this->source = $this->getSource();
     $this->sort = static::SORT;
 }
Example #5
0
 public function __construct($code, $days)
 {
     $this->code = $code;
     $this->days = $days;
     for ($i = $days * -1; $i < 0; $i++) {
         $this->day_list[] = date('Y-m-d', strtotime("{$i} day"));
     }
     parent::__construct();
 }
 public function __construct($data = array(), $dbw = null)
 {
     $this->data = $data;
     $this->dbw = $dbw;
     foreach ($data as $key => $value) {
         $this->{$key} = $value;
     }
     parent::__construct();
 }
Example #7
0
 public function __construct($app = null)
 {
     parent::__construct();
     if (!empty($app)) {
         $this->setApp($app);
     }
     $this->statuses = ['NOT_PUBLISHED' => 1, 'PUBLISHED' => 2];
     $this->editableModules = [WikiaHubsModuleSliderService::MODULE_ID => 'slider', WikiaHubsModuleWikiaspicksService::MODULE_ID => 'wikias-picks', WikiaHubsModuleFeaturedvideoService::MODULE_ID => 'featured-video', WikiaHubsModuleExploreService::MODULE_ID => 'explore', WikiaHubsModuleFromthecommunityService::MODULE_ID => 'from-the-community', WikiaHubsModulePollsService::MODULE_ID => 'polls', WikiaHubsModulePopularvideosService::MODULE_ID => 'popular-videos'];
     if ($this->wg->DisableWAMOnHubs) {
         $this->nonEditableModules[WikiaHubsModuleWikiastatsService::MODULE_ID] = 'wikia-stats';
     } else {
         $this->nonEditableModules[WikiaHubsModuleWAMService::MODULE_ID] = 'wam';
     }
     $this->modules = $this->editableModules + $this->nonEditableModules;
     $this->modulesCount = count($this->editableModules);
 }
 public function __construct($lang)
 {
     parent::__construct();
     $this->setUpModel();
     $this->lang = $lang;
 }
Example #9
0
 public function __construct($wikiId)
 {
     $this->wikiId = $wikiId;
     parent::__construct();
 }
 public function __construct($useSharedMemcKey = false)
 {
     parent::__construct();
     $this->useSharedMemcKey = $useSharedMemcKey;
 }
Example #11
0
 public function __construct()
 {
     parent::__construct();
 }