protected function __construct(Zend_Form $form) { $this->setForm($form); $this->setSelectedFields($this->getAllFieldsArray()); //TODO - Auslagern? Zend_Text_Table::setOutputCharset('ISO-8859-1'); $this->setZendTextTable(new Zend_Text_Table(array('columnWidths' => array(20, 50)))); }
public function testTableDecoratorEncodingDefault() { Zend_Text_Table::setOutputCharset('iso-8859-15'); $table = new Zend_Text_Table(array('columnWidths' => array(10))); $row = new Zend_Text_Table_Row(); $row->createColumn('foobar'); $table->appendRow($row); $this->assertEquals($table->render(), "+----------+\n|foobar |\n+----------+\n"); }