init() 공개 메소드

public init ( )
예제 #1
0
 public function init()
 {
     parent::init();
     if ($this->tagsSeparator == null) {
         $this->tagsSeparator = ',';
     }
 }
예제 #2
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     if (Setting::Get('defaultDateInputFormat', 'admin') != '') {
         $this->dateInputFormat = Setting::Get('defaultDateInputFormat', 'admin');
     }
 }
예제 #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');
     }
 }
예제 #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();
 }
예제 #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);
     }
 }
예제 #6
0
파일: Formatter.php 프로젝트: ahb360/kalpok
 public function init()
 {
     parent::init();
     $this->_intlLoaded = extension_loaded('intl');
 }
예제 #7
0
 /**
  * @inheritdoc
  */
 public function init()
 {
     parent::init();
     $this->initTranslations();
     if ($this->encoding === null) {
         $this->encoding = Yii::$app->charset;
     }
 }