dolibarr  13.0.2
Public Member Functions | List of all members
FormActions Class Reference

Class to manage building of HTML components. More...

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 form_select_status_action ($formname, $selected, $canedit=1, $htmlname= 'complete', $showempty=0, $onlyselect=0, $morecss= 'maxwidth100')
 Show list of action status. More...
 
 showactions ($object, $typeelement, $socid=0, $forceshowtitle=0, $morecss= 'listactions', $max=0, $moreparambacktopage= '', $morehtmlcenter= '')
 Show list of actions for element. More...
 
 select_type_actions ($selected= '', $htmlname= 'actioncode', $excludetype= '', $onlyautoornot=0, $hideinfohelp=0, $multiselect=0, $nooutput=0, $morecss= '')
 Output html select list of type of event. More...
 

Detailed Description

Class to manage building of HTML components.

Definition at line 30 of file html.formactions.class.php.

Constructor & Destructor Documentation

FormActions::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 48 of file html.formactions.class.php.

References db.

Member Function Documentation

FormActions::form_select_status_action (   $formname,
  $selected,
  $canedit = 1,
  $htmlname = 'complete',
  $showempty = 0,
  $onlyselect = 0,
  $morecss = 'maxwidth100' 
)

Show list of action status.

Parameters
string$formnameName of form where select is included
string$selectedPreselected value (-1..100)
int$canedit1=can edit, 0=read only
string$htmlnameName of html prefix for html fields (selectX and valX)
integer$showemptyShow an empty line if select is used
integer$onlyselect0=Standard, 1=Hide percent of completion and force usage of a select list, 2=Same than 1 and add "Incomplete (Todo+Running)
string$morecssMore css on select field
Returns
void

Definition at line 67 of file html.formactions.class.php.

References print.

FormActions::select_type_actions (   $selected = '',
  $htmlname = 'actioncode',
  $excludetype = '',
  $onlyautoornot = 0,
  $hideinfohelp = 0,
  $multiselect = 0,
  $nooutput = 0,
  $morecss = '' 
)

Output html select list of type of event.

Parameters
array | string$selectedType pre-selected (can be 'manual', 'auto' or 'AC_xxx'). Can be an array too.
string$htmlnameName of select field
string$excludetypeA type to exclude ('systemauto', 'system', '')
integer$onlyautoornot1=Group all type AC_XXX into 1 line AC_MANUAL. 0=Keep details of type, -1=Keep details and add a combined line "All manual"
int$hideinfohelp1=Do not show info help, 0=Show, -1=Show+Add info to tell how to set default value
int$multiselect1=Allow multiselect of action type
int$nooutput1=No output
string$morecssMore css to add to SELECT component.
Returns
string

Definition at line 341 of file html.formactions.class.php.

References db, info_admin(), and print.

FormActions::showactions (   $object,
  $typeelement,
  $socid = 0,
  $forceshowtitle = 0,
  $morecss = 'listactions',
  $max = 0,
  $moreparambacktopage = '',
  $morehtmlcenter = '' 
)

Show list of actions for element.

Parameters
Object$objectObject
string$typeelement'invoice', 'propal', 'order', 'invoice_supplier', 'order_supplier', 'fichinter'
int$socidSocid of user
int$forceshowtitleShow title even if there is no actions to show
string$morecssMore css on table
int$maxMax number of record
string$moreparambacktopageMore param for the backtopage
string$morehtmlcenterMore html text on center of title line
Returns
int <0 if KO, >=0 if OK

Definition at line 169 of file html.formactions.class.php.

References $_SERVER, db, dol_getdate(), dol_now(), dol_print_date(), dol_print_error(), dolGetButtonTitle(), ActionComm\getActions(), getTitleFieldOfList(), img_picto(), load_fiche_titre(), and print.


The documentation for this class was generated from the following file: