Beispiel #1
0
 public function render($view, $data = null, $return = false)
 {
     if (is_array($data)) {
         $data = array_merge($data, get_object_vars($this));
     } else {
         $data = get_object_vars($this);
     }
     parent::render($view, $data, $return);
 }
 public function renderBelongsToSelection()
 {
     CWidget::render(strtolower($this->style), array('id' => $this->relation . '_options', 'model' => $this->_model, 'field' => $this->field, 'data' => $this->getRelatedData(), 'htmlOptions' => $this->htmlOptions));
 }