コード例 #1
0
ファイル: Module.php プロジェクト: hsleonis/basetech
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->_msgCat = 'kvgrid';
     parent::init();
     if (isset($dummyDemoTranslations)) {
         $messages = Yii::t('kvgrid', 'Add Book') . Yii::t('kvgrid', 'Book Listing') . Yii::t('kvgrid', 'Download Selected') . Yii::t('kvgrid', 'Library') . Yii::t('kvgrid', 'Reset Grid') . Yii::t('kvgrid', 'The page summary displays SUM for first 3 amount columns and AVG for the last.') . Yii::t('kvgrid', 'The table header sticks to the top in this demo as you scroll') . Yii::t('kvgrid', 'Resize table columns just like a spreadsheet by dragging the column edges.');
     }
 }
コード例 #2
0
 /**
  * @inherit doc
  */
 public function init()
 {
     $this->_msgCat = 'kvtree';
     parent::init();
     $this->treeStructure += ['treeAttribute' => 'root', 'leftAttribute' => 'lft', 'rightAttribute' => 'rgt', 'depthAttribute' => 'lvl'];
     $this->dataStructure += ['keyAttribute' => 'id', 'nameAttribute' => 'name', 'iconAttribute' => 'icon', 'iconTypeAttribute' => 'icon_type'];
     $nodeActions = ArrayHelper::getValue($this->treeViewSettings, 'nodeActions', []);
     $nodeActions += [self::NODE_MANAGE => Url::to(['/treemanager/node/manage']), self::NODE_SAVE => Url::to(['/treemanager/node/save']), self::NODE_REMOVE => Url::to(['/treemanager/node/remove']), self::NODE_MOVE => Url::to(['/treemanager/node/move'])];
     $this->treeViewSettings['nodeActions'] = $nodeActions;
 }
コード例 #3
0
 /**
  * @inherit doc
  */
 public function init()
 {
     $this->_msgCat = 'kvtree';
     parent::init();
     $this->treeStructure += ['treeAttribute' => 'root', 'leftAttribute' => 'lft', 'rightAttribute' => 'rgt', 'depthAttribute' => 'lvl'];
     $this->dataStructure += ['keyAttribute' => 'id', 'nameAttribute' => 'name', 'schedule' => 'schedule', 'referId' => 'refer_id', 'creatorId' => 'creator_id', 'created_time' => 'created_time', 'updated_time' => 'updated_time', 'access' => 'access', 'sample' => 'sample'];
     $nodeActions = ArrayHelper::getValue($this->treeViewSettings, 'nodeActions', []);
     $nodeActions += [self::NODE_MANAGE => Url::to(['/treemanager/node/manage']), self::NODE_SAVE => Url::to(['/treemanager/node/save']), self::NODE_REMOVE => Url::to(['/treemanager/node/remove']), self::NODE_MOVE => Url::to(['/treemanager/node/move'])];
     $this->treeViewSettings['nodeActions'] = $nodeActions;
 }
コード例 #4
0
ファイル: Module.php プロジェクト: Romariosss/yii2-dynagrid
 /**
  * @inheritdoc
  */
 public function init()
 {
     $this->_msgCat = 'kvdynagrid';
     parent::init();
     $this->initSettings();
 }
コード例 #5
0
ファイル: Module.php プロジェクト: communityii/yii2-common
 /**
  * Initialize the module
  */
 public function init()
 {
     static::$container = new Container();
     $this->_msgCat = 'user';
     parent::init();
     //        $this->setConfig();
 }
コード例 #6
0
ファイル: Module.php プロジェクト: jia253/centosYii2
 public function init()
 {
     $this->_msgCat = 'kvmarkdown';
     parent::init();
 }
コード例 #7
0
ファイル: Module.php プロジェクト: communityii/yii2-user
 /**
  * Initialize the module
  */
 public function init()
 {
     $this->_msgCat = 'user';
     parent::init();
     $this->setConfig();
 }