PHP Class OEModule\PatientTicketing\services\PatientTicketing_QueueService

Inheritance: extends Services\ModelService
Afficher le fichier Open project: openeyes/openeyes

Protected Properties

Свойство Type Description
$operations
$primary_model

Méthodes publiques

Méthode 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 méthode

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
Résultat boolean

delete() public méthode

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

getCurrentTicketCount() public méthode

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

getDependentQueues() public méthode

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

getRootQueue() public méthode

public getRootQueue ( $queue_id )

modelToResource() public méthode

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

Property Details

$operations protected_oe static_oe property

protected static $operations

$primary_model protected_oe static_oe property

protected static $primary_model