/** * Short description of method getOptions * * @access public * @author Joel Bout, <*****@*****.**> * @param string format * @return array */ public function getOptions($format = 'flat') { switch ($format) { case 'structured': $returnValue = parent::getOptions(); break; case 'flat': default: $returnValue = tao_helpers_form_GenerisFormFactory::extractTreeData(parent::getOptions()); break; } return (array) $returnValue; }