PHP 클래스 OEModule\PatientTicketing\services\PatientTicketing_QueueService

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

보호된 프로퍼티들

프로퍼티 타입 설명
$operations
$primary_model

공개 메소드들

메소드 설명
canDeleteQueue ( $queue_id ) : boolean Check if the given Queue can be deleted (has no tickets assigned and no dependent queues with tickets).
delete ( $queue_id ) Delete the queue and the queues that are are solely dependent on it.
getCurrentTicketCount ( $queue_id ) : mixed Wrapper to get the current ticket count for the Queue.
getDependentQueues ( PatientTicketing_Queue $qr, $include_closing = true ) : Queue[] Get the dependent queues for given Queue resource.
getRootQueue ( $queue_id )
modelToResource ( OEModule\PatientTicketing\models\Queue $queue ) : resource Pass through wrapper to generate Queue Resource.
search ( array $params )

메소드 상세

canDeleteQueue() 공개 메소드

Check if the given Queue can be deleted (has no tickets assigned and no dependent queues with tickets).
public canDeleteQueue ( $queue_id ) : boolean
$queue_id
리턴 boolean

delete() 공개 메소드

Delete the queue and the queues that are are solely dependent on it.
public delete ( $queue_id )
$queue_id

getCurrentTicketCount() 공개 메소드

Wrapper to get the current ticket count for the Queue.
public getCurrentTicketCount ( $queue_id ) : mixed
$queue_id
리턴 mixed

getDependentQueues() 공개 메소드

Get the dependent queues for given Queue resource.
public getDependentQueues ( PatientTicketing_Queue $qr, $include_closing = true ) : Queue[]
$qr PatientTicketing_Queue losing
리턴 OEModule\PatientTicketing\models\Queue[]

getRootQueue() 공개 메소드

public getRootQueue ( $queue_id )

modelToResource() 공개 메소드

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

프로퍼티 상세

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

protected static $operations

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

protected static $primary_model