PHP Class Traq\Controllers\Tickets

Since: 3.0.0
Author: Jack P.
Inheritance: extends AppController
Afficher le fichier Open project: nirix/traq

Méthodes publiques

Méthode Description
__construct ( )
createAction ( ) Create ticket.
editDescriptionAction ( integer $id ) Edit ticket description form.
newAction ( ) New ticket form.
saveDescriptionAction ( integer $id ) Save ticket description form.
showAction ( $id ) Handles the view ticket page.
updateAction ( integer $id ) Update ticket.

Méthodes protégées

Méthode Description
makeChanges ( Ticket $ticket, array $data ) : array Make the ticket history changes array.
ticketParams ( ) : array Get params for a new ticket.
ticketParamsPermissionable ( string $setOrChange, array $params = [] ) : array Get ticket data for the field the user is allowed to set or change.
ticketParamsUpdate ( ) : array Get params for a ticket update.

Method Details

__construct() public méthode

public __construct ( )

createAction() public méthode

Create ticket.
public createAction ( )

editDescriptionAction() public méthode

Edit ticket description form.
public editDescriptionAction ( integer $id )
$id integer ticket_id

makeChanges() protected méthode

Make the ticket history changes array.
protected makeChanges ( Ticket $ticket, array $data ) : array
$ticket Traq\Models\Ticket
$data array
Résultat array

newAction() public méthode

New ticket form.
public newAction ( )

saveDescriptionAction() public méthode

Save ticket description form.
public saveDescriptionAction ( integer $id )
$id integer ticket_id

showAction() public méthode

Handles the view ticket page.
public showAction ( $id )

ticketParams() protected méthode

Get params for a new ticket.
protected ticketParams ( ) : array
Résultat array

ticketParamsPermissionable() protected méthode

Get ticket data for the field the user is allowed to set or change.
protected ticketParamsPermissionable ( string $setOrChange, array $params = [] ) : array
$setOrChange string set or change permission type
$params array already existing array of params
Résultat array

ticketParamsUpdate() protected méthode

Get params for a ticket update.
protected ticketParamsUpdate ( ) : array
Résultat array

updateAction() public méthode

Update ticket.
public updateAction ( integer $id )
$id integer id matching ticket_id