public function testSetGetColumns() { $form = new Application_Form_Model_Table(); $columns = array(array('label' => 'col1')); $form->setColumns($columns); $this->assertEquals($columns, $form->getColumns()); }
/** * Erzeugt das Formular für die Darstellung der Modeltabelle auf der Indexseite. * @return Application_Form_Model_Table * TODO Konfigurierbare Tabelle mit Links für Editing/Deleting */ public function getIndexForm() { $form = new Application_Form_Model_Table(); $form->setModels($this->getAllModels()); $form->setColumns(array(array('label' => $this->getModelClass()))); $form->setController($this); return $form; }