CustomForm
class CustomForm extends Form (View source)
CustomForm class
Properties
object | $other |
Methods
Constructor
Return a checkbox
Return a text input
Return a text area
Return a text area with editor (if WYSIWYG editor module is activated)
Return a file input
Return a number input
Return a range input
Return a date input
Return a datetime input
Return a list
Return a multi select list
Return a radio list
Return a check list
Return a color input
Return products list
Details
at line 40
__construct(DoliDB $db)
Constructor
at line 57
string
checkBox($name, $value = '', $id = '', $class = '', $checked = false, $disabled = false)
Return a checkbox
at line 70
string
textInput($name, $value, $size = 8)
Return a text input
at line 83
string
textArea($name, $value, $rows = '3')
Return a text area
at line 97
string
textEditor($name, $value, $toolbarname = 'dolibarr_details', $height = 100)
Return a text area with editor (if WYSIWYG editor module is activated)
at line 116
string
fileInput($name, $accept = '')
Return a file input
at line 130
string
numberInput($name, $value, $min, $max = 100)
Return a number input
at line 144
string
rangeInput($name, $value, $min, $max = 100)
Return a range input
at line 157
string
dateInput($name, $value, $addnowlink = true)
Return a date input
at line 171
string
datetimeInput($name, $value, $addnowlink = true)
Return a datetime input
at line 186
string
listInput($name, $values, $selected, $show_empty, $translate = true)
Return a list
at line 202
string
multiSelectListInput($name, $values, $selected, $translate = true, $width = '100%')
Return a multi select list
at line 215
string
radioList($name, $values, $selected)
Return a radio list
at line 249
string
checkList($name, $values, $selected)
Return a check list
at line 280
string
colorInput($name, $value)
Return a color input
at line 293
string
productList($name, $value, $show_empty = '1')
Return products list