PHP 클래스 Traq\Controllers\Tickets

부터: 3.0.0
저자: Jack P.
상속: extends AppController
파일 보기 프로젝트 열기: nirix/traq

공개 메소드들

메소드 설명
__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.

보호된 메소드들

메소드 설명
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.

메소드 상세

__construct() 공개 메소드

public __construct ( )

createAction() 공개 메소드

Create ticket.
public createAction ( )

editDescriptionAction() 공개 메소드

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

makeChanges() 보호된 메소드

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

newAction() 공개 메소드

New ticket form.
public newAction ( )

saveDescriptionAction() 공개 메소드

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

showAction() 공개 메소드

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

ticketParams() 보호된 메소드

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

ticketParamsPermissionable() 보호된 메소드

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
리턴 array

ticketParamsUpdate() 보호된 메소드

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

updateAction() 공개 메소드

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