dolibarr 20.0.0
ActionsTicket Class Reference

Class Actions of the module ticket. More...

Inheritance diagram for ActionsTicket:
Collaboration diagram for ActionsTicket:

Public Member Functions

 __construct ($db)
 Constructor.
 
 getInstanceDao ()
 Instantiation of DAO class.
 
 fetch ($id=0, $ref='', $track_id='')
 Fetch object.
 
 getLibStatut ($mode=0)
 Print statut.
 
 getInfo ($id)
 Get ticket info.
 
 getTitle ($action='')
 Get action title.
 
 viewTicketOriginalMessage ($user, $action, $object)
 Show ticket original message.
 
 viewTicketMessages ($show_private, $show_user, $object)
 View html list of message for ticket.
 
 viewTicketTimelineMessages ($show_private, $show_user, Ticket $object)
 View list of message for ticket with timeline display.
 
 viewStatusActions (Ticket $object)
 Print html navbar with link to set ticket status.
 
 emailElementlist ($parameters, &$object, &$action, $hookmanager)
 Hook to add email element template.
 

Public Attributes

 $errno = 0
 Numero de l'erreur.
 

Additional Inherited Members

- Protected Member Functions inherited from CommonHookActions
 isContext ($parameters, $allContexts)
 Check context of hook.
 

Detailed Description

Class Actions of the module ticket.

Definition at line 41 of file actions_ticket.class.php.

Constructor & Destructor Documentation

◆ __construct()

ActionsTicket::__construct ( $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 97 of file actions_ticket.class.php.

Member Function Documentation

◆ emailElementlist()

ActionsTicket::emailElementlist ( $parameters,
& $object,
& $action,
$hookmanager )

Hook to add email element template.

Parameters
array$parametersParameters
Ticket$objectObject for action
string$actionAction string
HookManager$hookmanagerHookmanager object
Returns
int

Definition at line 513 of file actions_ticket.class.php.

◆ fetch()

ActionsTicket::fetch ( $id = 0,
$ref = '',
$track_id = '' )

Fetch object.

Parameters
int$idID of ticket
string$refReference of ticket
string$track_idTrack ID of ticket (for public area)
Returns
int Return integer <0 if KO, >0 if OK

Definition at line 122 of file actions_ticket.class.php.

References getInstanceDao().

◆ getInfo()

ActionsTicket::getInfo ( $id)

Get ticket info.

Parameters
int$idObject id
Returns
void

Definition at line 147 of file actions_ticket.class.php.

References description, and getInstanceDao().

◆ getInstanceDao()

ActionsTicket::getInstanceDao ( )

Instantiation of DAO class.

Returns
void

Definition at line 107 of file actions_ticket.class.php.

Referenced by fetch(), getInfo(), and getLibStatut().

◆ getLibStatut()

ActionsTicket::getLibStatut ( $mode = 0)

Print statut.

Parameters
int$modeDisplay mode
Returns
string Label of status

Definition at line 134 of file actions_ticket.class.php.

References getInstanceDao().

◆ getTitle()

ActionsTicket::getTitle ( $action = '')

Get action title.

Parameters
string$actionType of action
Returns
string Title of action

Definition at line 162 of file actions_ticket.class.php.

◆ viewStatusActions()

ActionsTicket::viewStatusActions ( Ticket $object)

Print html navbar with link to set ticket status.

Parameters
Ticket$objectTicket sup
Returns
void

Definition at line 463 of file actions_ticket.class.php.

References $object, getDolGlobalString(), and newToken().

◆ viewTicketMessages()

ActionsTicket::viewTicketMessages ( $show_private,
$show_user,
$object )

View html list of message for ticket.

Parameters
boolean$show_privateShow private messages
boolean$show_userShow user who make action
Ticket$objectObject ticket
Returns
void

Definition at line 258 of file actions_ticket.class.php.

References $object, dol_mimetype(), dol_print_error(), GETPOST(), img_mime(), img_picto(), and viewTicketOriginalMessage().

◆ viewTicketOriginalMessage()

ActionsTicket::viewTicketOriginalMessage ( $user,
$action,
$object )

Show ticket original message.

Parameters
User$userUser which display
string$actionAction mode
Ticket$objectObject ticket
Returns
void

Definition at line 187 of file actions_ticket.class.php.

References $object, dol_string_nohtmltag(), dolPrintHTML(), getDolGlobalString(), GETPOST(), img_edit(), and newToken().

Referenced by viewTicketMessages().

◆ viewTicketTimelineMessages()

ActionsTicket::viewTicketTimelineMessages ( $show_private,
$show_user,
Ticket $object )

View list of message for ticket with timeline display.

Parameters
boolean$show_privateShow private messages
boolean$show_userShow user who make action
Ticket$objectObject ticket
Returns
void

Definition at line 407 of file actions_ticket.class.php.

References $object, dol_print_date(), and GETPOST().


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