dolibarr 21.0.0-alpha
|
Public Member Functions | |
__construct ($db) | |
Constructor. | |
showForm ($withdolfichehead=0, $mode='edit', $public=0, $with_contact=null, $action='', $object=null) | |
Show the form to input ticket. | |
selectTypesTickets ($selected='', $htmlname='tickettype', $filtertype='', $format=0, $empty=0, $noadmininfo=0, $maxlength=0, $morecss='', $multiselect=0) | |
Return html list of tickets type. | |
selectGroupTickets ($selected='', $htmlname='ticketcategory', $filtertype='', $format=0, $empty=0, $noadmininfo=0, $maxlength=0, $morecss='', $use_multilevel=0, $outputlangs=null) | |
Return html list of ticket analytic codes. | |
selectSeveritiesTickets ($selected='', $htmlname='ticketseverity', $filtertype='', $format=0, $empty=0, $noadmininfo=0, $maxlength=0, $morecss='') | |
Return html list of ticket severitys (priorities) | |
clear_attached_files () | |
Clear list of attached files in send mail form (also stored in session) | |
showMessageForm ($width='40%') | |
Show the form to add message on ticket. | |
Static Public Member Functions | |
static | checkRequiredFields (array $fields, int &$errors) |
Check required fields. | |
Definition at line 47 of file html.formticket.class.php.
FormTicket::__construct | ( | $db | ) |
Constructor.
Definition at line 207 of file html.formticket.class.php.
References getDolGlobalInt().
|
static |
Check required fields.
array<string,array<string,string>> | $fields Array of fields to check | |
int | $errors | Reference of errors variable |
Definition at line 237 of file html.formticket.class.php.
References GETPOST(), and setEventMessages().
FormTicket::clear_attached_files | ( | ) |
Clear list of attached files in send mail form (also stored in session)
Definition at line 1416 of file html.formticket.class.php.
References dol_delete_dir_recursive().
FormTicket::selectGroupTickets | ( | $selected = '', | |
$htmlname = 'ticketcategory', | |||
$filtertype = '', | |||
$format = 0, | |||
$empty = 0, | |||
$noadmininfo = 0, | |||
$maxlength = 0, | |||
$morecss = '', | |||
$use_multilevel = 0, | |||
$outputlangs = null ) |
Return html list of ticket analytic codes.
string | $selected | Id pre-selected category |
string | $htmlname | Name of select component |
string | $filtertype | To filter on some properties in llx_c_ticket_category ('public = 1'). This parameter must not come from input of users. |
int | $format | 0 = id+label, 1 = code+code, 2 = code+label, 3 = id+code |
int | $empty | 1 = can be empty, 0 = or can't be empty |
int | $noadmininfo | 0 = ddd admin info, 1 = disable admin info |
int | $maxlength | Max length of label |
string | $morecss | More CSS |
int | $use_multilevel | If > 0 create a multilevel select which use $htmlname example: $use_multilevel = 1 permit to have 2 select boxes. |
Translate | $outputlangs | Output language |
Definition at line 967 of file html.formticket.class.php.
References $id, ajax_combobox(), dol_escape_htmltag(), dol_escape_js(), dol_print_error(), dol_syslog(), dol_trunc(), GETPOST(), and info_admin().
Referenced by showForm().
FormTicket::selectSeveritiesTickets | ( | $selected = '', | |
$htmlname = 'ticketseverity', | |||
$filtertype = '', | |||
$format = 0, | |||
$empty = 0, | |||
$noadmininfo = 0, | |||
$maxlength = 0, | |||
$morecss = '' ) |
Return html list of ticket severitys (priorities)
string | $selected | Id severity pre-selected |
string | $htmlname | Name of the select area |
string | $filtertype | To filter on field type in llx_c_ticket_severity (array('code'=>xx,'label'=>zz)) |
int | $format | 0 = id+label, 1 = code+code, 2 = code+label, 3 = id+code |
int | $empty | 1 = can be empty, 0 = or not |
int | $noadmininfo | 0 = add admin info, 1 = disable admin info |
int | $maxlength | Max length of label |
string | $morecss | More CSS |
Definition at line 1321 of file html.formticket.class.php.
References $id, ajax_combobox(), dol_syslog(), dol_trunc(), and info_admin().
Referenced by showForm().
FormTicket::selectTypesTickets | ( | $selected = '', | |
$htmlname = 'tickettype', | |||
$filtertype = '', | |||
$format = 0, | |||
$empty = 0, | |||
$noadmininfo = 0, | |||
$maxlength = 0, | |||
$morecss = '', | |||
$multiselect = 0 ) |
Return html list of tickets type.
string | int[] | $selected | Id of preselected field or array of Ids |
string | $htmlname | Nom de la zone select |
string | $filtertype | To filter on field type in llx_c_ticket_type (array('code'=>xx,'label'=>zz)) |
int | $format | 0=id+libelle, 1=code+code, 2=code+libelle, 3=id+code |
int | $empty | 1=peut etre vide, 0 sinon |
int | $noadmininfo | 0=Add admin info, 1=Disable admin info |
int | $maxlength | Max length of label |
string | $morecss | More CSS |
int | $multiselect | Is multiselect ? |
Definition at line 868 of file html.formticket.class.php.
References $id, ajax_combobox(), dol_syslog(), dol_trunc(), and info_admin().
Referenced by showForm().
FormTicket::showForm | ( | $withdolfichehead = 0, | |
$mode = 'edit', | |||
$public = 0, | |||
$with_contact = null, | |||
$action = '', | |||
$object = null ) |
Show the form to input ticket.
int | $withdolfichehead | With dol_get_fiche_head() and dol_get_fiche_end() |
'create'|'edit' | $mode Mode ('create' or 'edit') | |
int<0,1> | $public 1=If we show the form for the public interface | |
?Contact | $with_contact | [=NULL] Contact to link to this ticket if it exists |
string | $action | [=''] Action in card |
?Ticket | $object | [=NULL] Ticket object |
Definition at line 260 of file html.formticket.class.php.
References $object, dol_buildpath(), dol_escape_htmltag(), dol_escape_js(), dol_get_fiche_head(), dol_include_once(), GETPOST(), GETPOSTINT(), newToken(), selectGroupTickets(), selectSeveritiesTickets(), selectTypesTickets(), and type.
FormTicket::showMessageForm | ( | $width = '40%' | ) |
Show the form to add message on ticket.
string | $width | Width of form |
Definition at line 1445 of file html.formticket.class.php.
References button, dol_escape_htmltag(), dol_mimetype(), dol_nl2br(), dol_textishtml(), getDolGlobalInt(), getDolGlobalString(), GETPOST(), GETPOSTINT(), img_mime(), img_picto(), info_admin(), make_substitutions(), and setEventMessages().