FormActions
class FormActions (View source)
Class to manage building of HTML components
Properties
| DoliDB | $db | ||
| string | $error |
Methods
__construct($db)
Constructor
form_select_status_action($formname, string $selected, $canedit = 1, $htmlname = 'complete', $showempty = 0, $onlyselect = 0, $morecss = 'maxwidth100', $nooutput = 0)
Show list of action status
int
showactions($object, string $typeelement, int $socid = 0, $forceshowtitle = 0, $morecss = 'listactions', $max = 0, $moreparambacktopage = '', $morehtmlcenter = '', $assignedtouser = 0)
Show list of actions for element
select_type_actions($selected = '', string $htmlname = 'actioncode', $excludetype = '', $onlyautoornot = 0, $hideinfohelp = 0, $multiselect = 0, $nooutput = 0, $morecss = 'minwidth300', $showempty = 0)
Output html select list of type of event
Details
__construct($db)
Constructor
@param DoliDB $db Database handler
form_select_status_action($formname, string $selected, $canedit = 1, $htmlname = 'complete', $showempty = 0, $onlyselect = 0, $morecss = 'maxwidth100', $nooutput = 0)
Show list of action status
@param string $formname Name of form where select is included
int
showactions($object, string $typeelement, int $socid = 0, $forceshowtitle = 0, $morecss = 'listactions', $max = 0, $moreparambacktopage = '', $morehtmlcenter = '', $assignedtouser = 0)
Show list of actions for element
@param Object $object Object
select_type_actions($selected = '', string $htmlname = 'actioncode', $excludetype = '', $onlyautoornot = 0, $hideinfohelp = 0, $multiselect = 0, $nooutput = 0, $morecss = 'minwidth300', $showempty = 0)
Output html select list of type of event
@param string[]|string $selected Type pre-selected (can be 'manual', 'auto' or 'AC_xxx'). Can be an array too.