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

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 showForm ($withdolfichehead=0, $mode= 'edit')
 Show the form to input ticket. More...
 
 selectTypesTickets ($selected= '', $htmlname= 'tickettype', $filtertype= '', $format=0, $empty=0, $noadmininfo=0, $maxlength=0, $morecss= '')
 Return html list of tickets type. More...
 
 selectGroupTickets ($selected= '', $htmlname= 'ticketcategory', $filtertype= '', $format=0, $empty=0, $noadmininfo=0, $maxlength=0, $morecss= '')
 Return html list of ticket anaytic codes. More...
 
 selectSeveritiesTickets ($selected= '', $htmlname= 'ticketseverity', $filtertype= '', $format=0, $empty=0, $noadmininfo=0, $maxlength=0, $morecss= '')
 Return html list of ticket severitys. More...
 
 clear_attached_files ()
 Clear list of attached files in send mail form (also stored in session) More...
 
 showMessageForm ($width= '40%')
 Show the form to add message on ticket. More...
 

Detailed Description

Definition at line 42 of file html.formticket.class.php.

Constructor & Destructor Documentation

FormTicket::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 104 of file html.formticket.class.php.

References db.

Member Function Documentation

FormTicket::clear_attached_files ( )

Clear list of attached files in send mail form (also stored in session)

Returns
void

Definition at line 742 of file html.formticket.class.php.

References dol_delete_dir_recursive().

Referenced by showMessageForm().

FormTicket::selectGroupTickets (   $selected = '',
  $htmlname = 'ticketcategory',
  $filtertype = '',
  $format = 0,
  $empty = 0,
  $noadmininfo = 0,
  $maxlength = 0,
  $morecss = '' 
)

Return html list of ticket anaytic codes.

Parameters
string$selectedId categorie pre-selectionnée
string$htmlnameNom de la zone select
string$filtertypeTo filter on field type in llx_c_ticket_category (array('code'=>xx,'label'=>zz))
int$format0=id+libelle, 1=code+code, 2=code+libelle, 3=id+code
int$empty1=peut etre vide, 0 sinon
int$noadmininfo0=Add admin info, 1=Disable admin info
int$maxlengthMax length of label
string$morecssMore CSS
Returns
void

Definition at line 548 of file html.formticket.class.php.

References ajax_combobox(), db, dol_syslog(), dol_trunc(), if, info_admin(), and print.

Referenced by showForm().

FormTicket::selectSeveritiesTickets (   $selected = '',
  $htmlname = 'ticketseverity',
  $filtertype = '',
  $format = 0,
  $empty = 0,
  $noadmininfo = 0,
  $maxlength = 0,
  $morecss = '' 
)

Return html list of ticket severitys.

Parameters
string$selectedId severity pre-selectionnée
string$htmlnameNom de la zone select
string$filtertypeTo filter on field type in llx_c_ticket_severity (array('code'=>xx,'label'=>zz))
int$format0=id+libelle, 1=code+code, 2=code+libelle, 3=id+code
int$empty1=peut etre vide, 0 sinon
int$noadmininfo0=Add admin info, 1=Disable admin info
int$maxlengthMax length of label
string$morecssMore CSS
Returns
void

Definition at line 649 of file html.formticket.class.php.

References ajax_combobox(), db, dol_syslog(), dol_trunc(), if, info_admin(), and print.

Referenced by showForm().

FormTicket::selectTypesTickets (   $selected = '',
  $htmlname = 'tickettype',
  $filtertype = '',
  $format = 0,
  $empty = 0,
  $noadmininfo = 0,
  $maxlength = 0,
  $morecss = '' 
)

Return html list of tickets type.

Parameters
string$selectedId du type pre-selectionne
string$htmlnameNom de la zone select
string$filtertypeTo filter on field type in llx_c_ticket_type (array('code'=>xx,'label'=>zz))
int$format0=id+libelle, 1=code+code, 2=code+libelle, 3=id+code
int$empty1=peut etre vide, 0 sinon
int$noadmininfo0=Add admin info, 1=Disable admin info
int$maxlengthMax length of label
string$morecssMore CSS
Returns
void

Definition at line 453 of file html.formticket.class.php.

References ajax_combobox(), db, dol_syslog(), dol_trunc(), if, info_admin(), and print.

Referenced by showForm().

FormTicket::showForm (   $withdolfichehead = 0,
  $mode = 'edit' 
)

Show the form to input ticket.

Parameters
int$withdolficheheadWith dol_fiche_head
string$modeMode ('create' or 'edit')
Returns
void

Definition at line 131 of file html.formticket.class.php.

References db, dol_buildpath(), dol_get_fiche_end(), dol_get_fiche_head(), dol_include_once(), GETPOST(), GETPOSTISSET(), img_mime(), img_picto(), print, selectGroupTickets(), selectSeveritiesTickets(), and selectTypesTickets().

FormTicket::showMessageForm (   $width = '40%')

Show the form to add message on ticket.

Parameters
string$widthWidth of form
Returns
void

Definition at line 765 of file html.formticket.class.php.

References clear_attached_files(), db, dol_escape_htmltag(), dol_mimetype(), dol_nl2br(), dol_textishtml(), GETPOST(), GETPOSTISSET(), img_mime(), info_admin(), make_substitutions(), print, and setEventMessages().


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