summaryrefslogtreecommitdiffstats
path: root/app/class/form.class.php
diff options
context:
space:
mode:
authorM <m@lfurio.us>2015-12-08 18:51:20 -0500
committerM <m@lfurio.us>2015-12-08 18:51:20 -0500
commit2896ade5e1257045513f871d59e6e4eaac27e317 (patch)
tree6cc748defa91944049ff67735b77d24d773c5ffb /app/class/form.class.php
parentf83a90323bb359f995e7359a917eb9470a5e40e0 (diff)
downloadscrott-2896ade5e1257045513f871d59e6e4eaac27e317.tar.gz
scrott-2896ade5e1257045513f871d59e6e4eaac27e317.zip
+ Added bool field type to Form class
Diffstat (limited to 'app/class/form.class.php')
-rw-r--r--app/class/form.class.php8
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)