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; }
public function getValue() { if ($this->transformer) { return $this->transformer->get($this->getRow()); } return parent::getValue(); }