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

Class Actions of the module ticket. More...

Inheritance diagram for ActionsTicket:
Inheritance graph
[legend]
Collaboration diagram for ActionsTicket:
Collaboration graph
[legend]

Public Member Functions

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

Public Attributes

 $errno = 0
 Numero de l'erreur.
 

Detailed Description

Class Actions of the module ticket.

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

Constructor & Destructor Documentation

◆ __construct()

ActionsTicket::__construct (   $db)

Constructor.

Parameters
DoliDB$dbDatabase handler

Definition at line 95 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 451 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 <0 if KO, >0 if OK

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

◆ getInfo()

ActionsTicket::getInfo (   $id)

Get ticket info.

Parameters
int$idObject id
Returns
void

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

◆ getInstanceDao()

ActionsTicket::getInstanceDao ( )

Instantiation of DAO class.

Returns
void

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

◆ getLibStatut()

ActionsTicket::getLibStatut (   $mode = 0)

Print statut.

Parameters
int$modeDisplay mode
Returns
string Label of status

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

◆ getTitle()

ActionsTicket::getTitle (   $action = '')

Get action title.

Parameters
string$actionType of action
Returns
string Title of action

Definition at line 160 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 405 of file actions_ticket.class.php.

◆ 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 266 of file actions_ticket.class.php.

◆ viewTicketOriginalMessage()

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

Show ticket original message.

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

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

◆ 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 349 of file actions_ticket.class.php.


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