Download the PHP package openlss/lib-form without Composer
On this page you can find all versions of the php package openlss/lib-form. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openlss/lib-form
More information about openlss/lib-form
Files in openlss/lib-form
Package lib-form
Short Description Abstract set of common handling for Form helper libraries
License LGPL-3.0+
Homepage http://openlss.org
Informations about the package lib-form
openlss/lib-form
Form helpers for creating radio buttons, drop downs, and checkboxes
It contains classes for each field type as show below
openlss/lib-form-checkbox
Checkbox builder for HTML pages can be used with various templating
Usage
toString
To get the HTML from this class simply transform it to a string.
Examples
Reference
(object) _get()
Shortcut for constructor
(object) setOptions($arr)
Sets the options to this array
(object) addOption($key,$value)
Adds an option
(object) setName($name)
Set name of the checkbox elements
(object) setValue($value)
Set the current value to be checked (can be an array for multiple checkboxes)
(object) addValue($value)
Adds a set value to the array
(void) breakAfterEach()
Call this to turn on line breaks after each checkbox
(object) addCssClass($class)
Adds a CSS class to each element
(objet) addExtra($extra)
Add extra parameters to the HTML element containing the object
openlss/lib-form-drop
Dropdown select builder for HTML pages can be used with various templating
Usage
toString
To get the HTML from this class simply transform it to a string.
Examples
Reference
(object) _get()
Shortcut for constructor
(object) setOptions($arr)
Sets the options to this array
(object) addOption($key,$value)
Adds an option
(object) setName($name)
Set name of the checkbox elements
(object) setValue($value)
Set the current value to be checked
(object) addCssClass($class)
Adds a CSS class to each element
(objet) addExtra($extra)
Add extra parameters to the HTML element containing the object
openlss/lib-form-radio
Radio button builder for HTML pages can be used with various templating
Usage
toString
To get the HTML from this class simply transform it to a string.
Examples
Reference
(object) _get()
Shortcut for constructor
(object) setOptions($arr)
Sets the options to this array
(object) addOption($key,$value)
Adds an option
(object) setName($name)
Set name of the checkbox elements
(object) setValue($value)
Set the current value to be checked
(object) addCssClass($class)
Adds a CSS class to each element
(objet) addExtra($extra)
Add extra parameters to the HTML element containing the object