public function __construct() { parent::__construct(); $this->js = ''; if (I2CE_ModuleFactory::instance()->isEnabled('StretchPage')) { $this->js .= 'if ( PageStretch ) { PageStretch.stretchPage(); }'; } $this->js_func = ''; }
public function __construct() { parent::__construct(); $this->date_pickers = array(); if (class_exists('IntlDateFormatter')) { $locale = I2CE_Locales::getPreferredLocale(); $config = I2CE::getConfig()->modules->DatePicker; $intl_setup = false; $config->setIfIsSet($intl_setup, "intl_setup/{$locale}"); if (!$intl_setup) { $formatter = array('months' => new IntlDateFormatter($locale, null, null, 'UTC', null, 'MMMM'), 'days' => new IntlDateFormatter($locale, null, null, 'UTC', null, 'EEEE')); foreach (self::$intl_times as $type => $times) { foreach ($times as $idx => $time) { if (!$config->is_translated($locale, "options/{$type}/{$idx}")) { $config->setTranslatable("options/{$type}/{$idx}"); $config->setTranslation($locale, $formatter[$type]->format($time), "options/{$type}/{$idx}"); } } } } $config->intl_setup->{$locale} = 1; } }
/** * Create this module object to set the current user. */ public function __construct() { parent::__construct(); $this->user = new I2CE_User(); }
public function __construct() { parent::__construct(); $this->isReview = false; }
public function __construct() { parent::__construct(); }
public function __construct() { parent::__construct(); $this->color_triples = array(); $this->update_colors = array(); }
/** * The constructor */ public function __construct() { parent::__construct(); $this->errors = array(); }
public function __construct() { parent::__construct(); $this->db = MDB2::singleton(); I2CE::pearError($this->db, "Error getting database connection: "); }