/** * @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.'); } }
/** * @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; }
/** * @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; }
/** * @inheritdoc */ public function init() { $this->_msgCat = 'kvdynagrid'; parent::init(); $this->initSettings(); }
/** * Sets the value of a component property. * This method will check in the following order and act accordingly: * * - a property defined by a setter: set the property value * - an event in the format of "on xyz": attach the handler to the event "xyz" * - a behavior in the format of "as xyz": attach the behavior named as "xyz" * - a property of a behavior: set the behavior property value * - a element defined in `_static` property array * - if `static::MAGIC_PROPERTIES` is `true`, add item to `_static` property array * * @param type $name * @param type $value * @throws UnknownPropertyException */ public function __set($name, $value) { try { parent::__set($name, $value); } catch (UnknownPropertyException $e) { if (isset($this->_static[$name]) || static::MAGIC_PROPERTIES) { if (static::MAGIC_PROPERTIES) { Yii::trace('magic property set (' . $name . '=' . $value . ')', __CLASS__); } $this->_static[$name] = $value; } else { throw $e; } } }
public function init() { $this->_msgCat = 'kvmarkdown'; parent::init(); }
/** * Initialize the module */ public function init() { $this->_msgCat = 'user'; parent::init(); $this->setConfig(); }