PHP Class OEModule\PatientTicketing\services\PatientTicketing_QueueService

Inheritance: extends Services\ModelService
ファイルを表示 Open project: openeyes/openeyes

Protected Properties

Property Type Description
$operations
$primary_model

Public Methods

Method Description
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 )

Method Details

canDeleteQueue() public method

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

delete() public method

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

getCurrentTicketCount() public method

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

getDependentQueues() public method

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

getRootQueue() public method

public getRootQueue ( $queue_id )

modelToResource() public method

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

Property Details

$operations protected_oe static_oe property

protected static $operations

$primary_model protected_oe static_oe property

protected static $primary_model