예제 #1
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'note note-' . $this->type);
     echo Html::beginTag('div', $this->options);
     echo $this->renderTitle();
 }
예제 #2
0
 /**
  * Executes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     ob_start();
     ob_implicit_flush(false);
 }
예제 #3
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, trim(sprintf('panel %s', $this->type)));
     echo Html::beginTag('div', $this->options);
     $this->_renderTitle();
     Html::addCssClass($this->bodyOptions, 'panel-body');
     echo Html::beginTag('div', $this->bodyOptions);
 }
예제 #4
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     $this->initOptions();
     echo $this->renderToggleButton() . "\n";
     echo Html::beginTag('div', $this->options) . "\n";
     echo $this->renderHeader() . "\n";
     echo $this->renderBodyBegin() . "\n";
 }
예제 #5
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     if (!$this->hasModel() && $this->name === null) {
         throw new InvalidConfigException("Either 'name', or 'model' and 'attribute' properties must be specified.");
     }
     if (!isset($this->options['id'])) {
         $this->options['id'] = $this->hasModel() ? Html::getInputId($this->model, $this->attribute) : $this->getId();
     }
     parent::init();
 }
예제 #6
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, 'panel-group accordion');
 }
예제 #7
0
 /**
  * Initializes the widget.
  */
 public function init()
 {
     parent::init();
     Html::addCssClass($this->options, trim(sprintf('portlet %s %s', $this->type, $this->background)));
     echo Html::beginTag('div', $this->options);
     $this->_renderTitle();
     Html::addCssClass($this->bodyOptions, 'portlet-body');
     echo Html::beginTag('div', $this->bodyOptions);
     $this->_renderScrollerBegin();
 }