diff options
author | M <m@lfurio.us> | 2015-12-08 18:51:20 -0500 |
---|---|---|
committer | M <m@lfurio.us> | 2015-12-08 18:51:20 -0500 |
commit | 2896ade5e1257045513f871d59e6e4eaac27e317 (patch) | |
tree | 6cc748defa91944049ff67735b77d24d773c5ffb | |
parent | f83a90323bb359f995e7359a917eb9470a5e40e0 (diff) | |
download | scrott-2896ade5e1257045513f871d59e6e4eaac27e317.tar.gz scrott-2896ade5e1257045513f871d59e6e4eaac27e317.zip |
+ Added bool field type to Form class
-rw-r--r-- | app/class/form.class.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/app/class/form.class.php b/app/class/form.class.php index d3af399..808de27 100644 --- a/app/class/form.class.php +++ b/app/class/form.class.php @@ -78,6 +78,14 @@ class Form } /* + * Add new boolean field to the form + */ + function field_bool($name) + { + $this->field_enum($name, array("true", "false"), "false"); + } + + /* * Populate the form with input data from web page */ function populate($input) |