示例#1
0
 public function testSetGetColumns()
 {
     $form = new Application_Form_Model_Table();
     $columns = array(array('label' => 'col1'));
     $form->setColumns($columns);
     $this->assertEquals($columns, $form->getColumns());
 }
示例#2
0
 /**
  * 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;
 }