dolibarr  19.0.0-dev
Public Member Functions | List of all members
FormTicket Class Reference

Public Member Functions

 __construct ($db)
 Constructor. More...
 
 showForm ($withdolfichehead=0, $mode='edit', $public=0, Contact $with_contact=null, $action='')
 Show the form to input ticket. More...
 
 selectTypesTickets ($selected='', $htmlname='tickettype', $filtertype='', $format=0, $empty=0, $noadmininfo=0, $maxlength=0, $morecss='', $multiselect=0)
 Return html list of tickets type. More...
 
 selectGroupTickets ($selected='', $htmlname='ticketcategory', $filtertype='', $format=0, $empty=0, $noadmininfo=0, $maxlength=0, $morecss='', $use_multilevel=0, $outputlangs=null)
 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 (priorities) 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 44 of file html.formticket.class.php.

Constructor & Destructor Documentation

◆ __construct()

FormTicket::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

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

Member Function Documentation

◆ clear_attached_files()

FormTicket::clear_attached_files ( )

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

Returns
void

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

◆ selectGroupTickets()

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 anaytic codes.

Parameters
string$selectedId pre-selected category
string$htmlnameName of select component
string$filtertypeTo filter on some properties in llx_c_ticket_category ('public = 1'). This parameter must not come from input of users.
int$format0 = id+label, 1 = code+code, 2 = code+label, 3 = id+code
int$empty1 = can be empty, 0 = or not
int$noadmininfo0 = ddd admin info, 1 = disable admin info
int$maxlengthMax length of label
string$morecssMore CSS
int$use_multilevelIf > 0 create a multilevel select which use $htmlname example: $use_multilevel = 1 permit to have 2 select boxes.
Translate$outputlangsOutput language
Returns
string|void String of HTML component

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

◆ selectSeveritiesTickets()

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

Return html list of ticket severitys (priorities)

Parameters
string$selectedId severity pre-selected
string$htmlnameName of the select area
string$filtertypeTo filter on field type in llx_c_ticket_severity (array('code'=>xx,'label'=>zz))
int$format0 = id+label, 1 = code+code, 2 = code+label, 3 = id+code
int$empty1 = can be empty, 0 = or not
int$noadmininfo0 = add admin info, 1 = disable admin info
int$maxlengthMax length of label
string$morecssMore CSS
Returns
void

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

◆ selectTypesTickets()

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

Return html list of tickets type.

Parameters
string | array$selectedId of preselected field or array of Ids
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
int$multiselectIs multiselect ?
Returns
void

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

◆ showForm()

FormTicket::showForm (   $withdolfichehead = 0,
  $mode = 'edit',
  $public = 0,
Contact  $with_contact = null,
  $action = '' 
)

Show the form to input ticket.

Parameters
int$withdolficheheadWith dol_get_fiche_head() and dol_get_fiche_end()
string$modeMode ('create' or 'edit')
int$public1=If we show the form for the public interface
Contact | null$with_contact[=NULL] Contact to link to this ticket if it exists
string$action[=''] Action in card
Returns
void

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

◆ showMessageForm()

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

Show the form to add message on ticket.

Parameters
string$widthWidth of form
Returns
void

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


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