コード例 #1
0
ファイル: Generator.php プロジェクト: dlds/yii2-giixer
 /**
  * Inits generator
  */
 public function init()
 {
     if (!isset($this->templates[self::TMPL_NAME])) {
         $this->templates[self::TMPL_NAME] = $this->metronicTemplate();
     }
     return parent::init();
 }
コード例 #2
0
ファイル: Generator.php プロジェクト: ICHydro/anaconda
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     parent::init();
     $this->providerList = self::getCoreProviders();
 }
コード例 #3
0
ファイル: Generator.php プロジェクト: pafnow/yii2-giiant
 /**
  * Prepare providers
  *
  * @param array $data
  * @param null $formName
  *
  * @return bool|void
  */
 public function init()
 {
     \Yii::trace("Initializing giiant CRUD generator for model '{$this->modelClass}'", __METHOD__);
     parent::init();
 }
コード例 #4
0
ファイル: Generator.php プロジェクト: unyii2/yii2-giiant
 /**
  * {@inheritdoc}
  */
 public function init()
 {
     parent::init();
     if (!$this->providerList) {
         $this->providerList = [];
     }
     $this->providerList = array_merge(self::getCoreProviders(), $this->providerList);
     $this->providerListPostHidded = json_encode($this->providerList);
 }