X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Flib%2Fform%2FForm.class.php;h=cb2f5203a79d96ddac95b59a828a97f9d368feb2;hb=14304210865aab4372e8e726f64d830c0a077de5;hp=704ce7e5a90a86fe12bdced3edbb90b5abe6af27;hpb=cd5e077ecb497431decde4835138b877d63b261c;p=timetracker.git diff --git a/WEB-INF/lib/form/Form.class.php b/WEB-INF/lib/form/Form.class.php index 704ce7e5..cb2f5203 100644 --- a/WEB-INF/lib/form/Form.class.php +++ b/WEB-INF/lib/form/Form.class.php @@ -26,13 +26,9 @@ // | https://www.anuko.com/time_tracker/credits.htm // +----------------------------------------------------------------------+ -// +----------------------------------------------------------------------+ -// | -// | Class generates elements of specification HTML 4.01 -// | http://www.w3.org/TR/1999/REC-html401-19991224 -// | -// +----------------------------------------------------------------------+ - +// Form class is a container for HTML forms we use in the application. +// It contains an array of $elements - which are individual input controls +// belonging to a form. class Form { var $name = ''; // Form name. var $elements = array(); // An array of input controls in form. @@ -89,11 +85,9 @@ class Form { case 'checkbox': import('form.Checkbox'); $el = new Checkbox($params['name']); + break; + // TODO: refactoring ongoing down from here. - if (@$params["checked"]) $el->setChecked(true); - $el->setData(@$params["data"]); - break; - case "checkboxgroup": import('form.CheckboxGroup'); $el = new CheckboxGroup($params["name"]);