hiddenFields = array();
}
/**
* Draw the beginning of the table
*/
public function drawBeginning()
{
echo "\n\n
\n\n";
}
/**
* Draw a field as a table row
* @param $field Field to draw
*/
public function drawField($field)
{
if($field instanceof HiddenField)
{
$this->hiddenFields[] = $field;
return;
}
echo "\t\n";
if ($field instanceOf StaticField)
echo "\t\t";
else if($field->title !== null && !($field instanceOf ButtonField))
echo "\t\t | " . $field->getTitle() . " | \n\t\t";
else
echo "\t\t | | \n\t\t";
if($js = $field->getJs())
echo "\n\t\t\t";
$field->drawInput();
echo " | \n\t
\n";
try
{
if($field->hasError())
echo "\n\t | $field->errorMessage |
\n";
}
catch (NotValidatedException $e){};
}
}
?>