PHP Class Traq\Controllers\Tickets

Since: 3.0.0
Author: Jack P.
Inheritance: extends AppController
Mostra file Open project: nirix/traq

Public Methods

Method 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.

Protected Methods

Method 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 method

public __construct ( )

createAction() public method

Create ticket.
public createAction ( )

editDescriptionAction() public method

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

makeChanges() protected method

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

newAction() public method

New ticket form.
public newAction ( )

saveDescriptionAction() public method

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

showAction() public method

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

ticketParams() protected method

Get params for a new ticket.
protected ticketParams ( ) : array
return array

ticketParamsPermissionable() protected method

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
return array

ticketParamsUpdate() protected method

Get params for a ticket update.
protected ticketParamsUpdate ( ) : array
return array

updateAction() public method

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