init() public méthode

public init ( )
 public function init()
 {
     parent::init();
     if ($this->tagsSeparator == null) {
         $this->tagsSeparator = ',';
     }
 }
Exemple #2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if (Setting::Get('defaultDateInputFormat', 'admin') != '') {
         $this->dateInputFormat = Setting::Get('defaultDateInputFormat', 'admin');
     }
 }
Exemple #3
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if (Yii::$app->getModule('admin')->settings->get('defaultDateInputFormat') != '') {
         $this->dateInputFormat = Yii::$app->getModule('admin')->settings->get('defaultDateInputFormat');
     }
 }
Exemple #4
0
 /**
  * @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();
 }
Exemple #5
0
 /**
  * @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);
     }
 }
Exemple #6
0
 public function init()
 {
     parent::init();
     $this->_intlLoaded = extension_loaded('intl');
 }
Exemple #7
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->initTranslations();
     if ($this->encoding === null) {
         $this->encoding = Yii::$app->charset;
     }
 }