Esempio n. 1
0
 /**
  * Initializes the widget.
  * This method is called by {@link CBaseController::createWidget}
  * and {@link CBaseController::beginWidget} after the widget's
  * properties have been initialized.
  */
 public function init()
 {
     parent::init();
     usort($this->data, array($this, "compare"));
     $this->_defaultHtmlOptions = array('id' => $this->getId());
 }
Esempio n. 2
0
 /**
  * Initializes the widget.
  * This method is called by {@link CBaseController::createWidget}
  * and {@link CBaseController::beginWidget} after the widget's
  * properties have been initialized.
  */
 public function init()
 {
     parent::init();
     $this->_defaultHtmlOptions = array('id' => $this->getId());
 }