public function indexAction()
 {
     $specimenTable = new Fossil_Model_Table_Specimen();
     $data = $specimenTable->fetchRow($specimenTable->select()->where('id = ?', 5000))->toArray();
     $specimen = new Fossil_Model_Specimen($data);
     $this->view->content = $specimen->getForm()->render();
 }
Exemple #2
0
 public function getPairs()
 {
     $specimen = new Fossil_Model_Table_Specimen();
     $metadata = $specimen->info('metadata');
     $datatype = $metadata['side']['DATA_TYPE'];
     $nullable = $metadata['side']['NULLABLE'];
     preg_match("/.*\\('(.*)'\\).*/", $datatype, $matches);
     $values = explode("','", $matches[1]);
     if (true == $nullable) {
         $values[] = '';
     }
     return array_combine($values, $values);
 }