public function init() { parent::init(); if ($this->tagsSeparator == null) { $this->tagsSeparator = ','; } }
/** * @inheritdoc */ public function init() { parent::init(); if (Setting::Get('defaultDateInputFormat', 'admin') != '') { $this->dateInputFormat = Setting::Get('defaultDateInputFormat', 'admin'); } }
/** * @inheritdoc */ public function init() { parent::init(); if (Yii::$app->getModule('admin')->settings->get('defaultDateInputFormat') != '') { $this->dateInputFormat = Yii::$app->getModule('admin')->settings->get('defaultDateInputFormat'); } }
/** * @inheritdoc */ public function init() { $this->datetimeFormat = 'php:d.m.Y H:i:s'; $this->dateFormat = 'php:d.m.Y'; $this->timeFormat = 'php:H:i:s'; $this->thousandSeparator = ' '; parent::init(); }
/** * @inheritdoc */ public function init() { parent::init(); if ($this->infinityFormat === null) { $this->infinityFormat = [Yii::t('app', 'From infinity', [], $this->locale), Yii::t('app', 'To infinity', [], $this->locale)]; } $this->_intlLoaded = extension_loaded('intl'); if ($this->dropDownPrompt === null) { $this->dropDownPrompt = strip_tags($this->nullDisplay); } if (trim($this->dropDownPrompt) === '') { $this->dropDownPrompt = Yii::t('yii', '(not set)', [], $this->locale); } }
public function init() { parent::init(); $this->_intlLoaded = extension_loaded('intl'); }
/** * @inheritdoc */ public function init() { parent::init(); $this->initTranslations(); if ($this->encoding === null) { $this->encoding = Yii::$app->charset; } }