Esempio n. 1
0
 public function addField($field, $title = null, $css_class = null)
 {
     if (is_object($field)) {
         $field->setTable($this);
         $this->fields[$field->name] = $field;
     } else {
         $name = $field;
         $field = new HtmlTableField(array('name' => $name, 'title' => $title, 'css_class' => $css_class));
         $field->setTable($this);
         $this->fields[$name] = $field;
     }
     return $this;
 }
Esempio n. 2
0
 public function getValue()
 {
     if ($this->transformer) {
         return $this->transformer->get($this->getRow());
     }
     return parent::getValue();
 }