ActionsTicket
class ActionsTicket extends CommonHookActions (View source)
Class Actions of the module ticket
Properties
| ?string | $resprints | from CommonHookActions | |
| mixed|mixed[][] | $results | from CommonHookActions | |
| string | $error | ||
| string[] | $errors | ||
| string[] | $warnings | from CommonHookActions | |
| DoliDB | $db | ||
| Ticket | $dao | ||
| string | $mesg | ||
| int | $errno | ||
| string | $template_dir | ||
| string | $template | ||
| string | $label | ||
| string | $description | ||
| int | $fk_statut | ||
| int | $fk_soc |
Methods
bool
isContext(array<string, mixed> $parameters, string[]|string $allContexts)
Check context of hook
from
CommonHookActions
__construct($db)
Constructor
void
getInstanceDao()
Instantiation of DAO class
int
fetch(int $id = 0, string $ref = '', string $track_id = '')
Fetch object
string
getLibStatut(int $mode = 0)
Print statut
void
getInfo(int $id)
Get ticket info
void
void
viewTicketMessages(bool $show_private, bool $show_user, Ticket $object)
View html list of message for ticket
void
viewTicketTimelineMessages(bool $show_private, bool $show_user, Ticket $object)
View list of message for ticket with timeline display
void
Details
protected bool
isContext(array<string, mixed> $parameters, string[]|string $allContexts)
Check context of hook
__construct($db)
Constructor
@param DoliDB $db Database handler
void
getInstanceDao()
Instantiation of DAO class
int
fetch(int $id = 0, string $ref = '', string $track_id = '')
Fetch object
string
getLibStatut(int $mode = 0)
Print statut
void
getInfo(int $id)
Get ticket info
string
getTitle(string $action = '', Ticket|null $object = null)
Get action title
void
viewTicketOriginalMessage(User $user, string $action, Ticket $object)
Show ticket original message
void
viewTicketMessages(bool $show_private, bool $show_user, Ticket $object)
View html list of message for ticket
void
viewTicketTimelineMessages(bool $show_private, bool $show_user, Ticket $object)
View list of message for ticket with timeline display
void
viewStatusActions(Ticket $object)
Print html navbar with link to set ticket status