/** * Widget's init function. */ public function init() { parent::init(); list($name, $id) = $this->resolveNameID(); $this->options['id'] = ArrayHelper::getValue($this->options, 'id', $id); $this->options['name'] = ArrayHelper::getValue($this->options, 'name', $name); }
/** * Widget's initialization method */ public function init() { parent::init(); if (!$this->selector) { $this->selector = '#' . ArrayHelper::getValue($this->options, 'id'); } }
/** * Widget's initialization method */ public function init() { parent::init(); // if there is no renderTo id, build the layer with current id and initialize renderTo option if (!isset($this->clientOptions['chart']) || !isset($this->clientOptions['chart']['renderTo'])) { echo \CHtml::tag('div', $this->options); if (isset($this->clientOptions['chart']) && is_array($this->clientOptions['chart'])) { $this->clientOptions['chart']['renderTo'] = $this->options['id']; } else { $this->clientOptions['chart'] = array('renderTo' => $this->options['id']); } } }