PHP 클래스 OEModule\PatientTicketing\services\PatientTicketing_TicketService

상속: extends Services\ModelService
파일 보기 프로젝트 열기: openeyes/openeyes

보호된 프로퍼티들

프로퍼티 타입 설명
$primary_model

공개 메소드들

메소드 설명
getCategoryForTicket ( Ticket $ticket ) : QueueSetCategory Get the queueset category for the given ticket.
getTicketActionLabel ( Ticket $ticket ) : array | mixed | null | string
getTicketEpisode ( Ticket $ticket ) : Episode | null Get the episode for the ticket if one exists.
getTicketsForPatient ( Patient $patient, boolean $active = true ) : Ticket[]
modelToResource ( OEModule\PatientTicketing\models\Ticket $ticket ) : resource Pass through wrapper to generate Queue Resource.

메소드 상세

getCategoryForTicket() 공개 메소드

Get the queueset category for the given ticket.
public getCategoryForTicket ( Ticket $ticket ) : QueueSetCategory
$ticket OEModule\PatientTicketing\models\Ticket
리턴 OEModule\PatientTicketing\models\QueueSetCategory

getTicketActionLabel() 공개 메소드

public getTicketActionLabel ( Ticket $ticket ) : array | mixed | null | string
$ticket OEModule\PatientTicketing\models\Ticket
리턴 array | mixed | null | string

getTicketEpisode() 공개 메소드

Get the episode for the ticket if one exists.
public getTicketEpisode ( Ticket $ticket ) : Episode | null
$ticket OEModule\PatientTicketing\models\Ticket
리턴 Episode | null

getTicketsForPatient() 공개 메소드

public getTicketsForPatient ( Patient $patient, boolean $active = true ) : Ticket[]
$patient Patient
$active boolean
리턴 OEModule\PatientTicketing\models\Ticket[]

modelToResource() 공개 메소드

Pass through wrapper to generate Queue Resource.
public modelToResource ( OEModule\PatientTicketing\models\Ticket $ticket ) : resource
$ticket OEModule\PatientTicketing\models\Ticket
리턴 resource

프로퍼티 상세

$primary_model 보호되어 있는 정적으로 프로퍼티

protected static $primary_model