PHP Class OEModule\PatientTicketing\controllers\AdminController

Inheritance: extends ModuleAdminController
Exibir arquivo Open project: openeyes/openeyes

Public Properties

Property Type Description
$QUEUESET_SERVICE
$QUEUE_SERVICE
$TICKET_SERVICE

Public Methods

Method Description
actionActivateQueue ( ) Marks the given Queue as active.
actionAddQueue ( null $parent_id = null ) Create a new Queue with the optional given parent.
actionAddQueueSet ( ) Create a new QueueSet along with its initial queue (cannot have a queue set without an initial queue).
actionClinicLocations ( )
actionDeactivateQueue ( ) Marks the given Queue inactive.
actionDeleteQueue ( ) Will only successfully delete a Queue if no ticket has ever been assigned to it, otherwise will throw an exception. Should only have been called when the values return by actionGetQueueTicketCount are zero.
actionGetQueueTicketStatus ( $id ) Retrieve the count of ticket assignments for the given Queue and whether it can be deleted.
actionIndex ( ) Render the main admin screen.
actionLoadQueueNav ( $id ) Generates an HTML list layout of the given Queue and its Outcome Queues.
actionQueueSetCategories ( )
actionQueueSetPermissions ( $id ) interface for setting the user permissions for a queueset.
actionTicketAssignOutcomes ( )
actionUpdateQueue ( $id ) Update the given Queue.
actionUpdateQueueSet ( $id ) Update the Queue Set specified by the id.
filters ( ) : array Define the actions limited to POST requests.

Protected Methods

Method Description
beforeAction ( $action )
deactivateQueue ( $queue, boolean $cascade = true ) Deactivate a Queue, and if $cascade is true, then deactivate it's children.
saveQueue ( $queue, null $parent = null ) Performs the update/create process on a Queue.

Method Details

actionActivateQueue() public method

Marks the given Queue as active.
public actionActivateQueue ( )

actionAddQueue() public method

Create a new Queue with the optional given parent.
public actionAddQueue ( null $parent_id = null )
$parent_id null

actionAddQueueSet() public method

Create a new QueueSet along with its initial queue (cannot have a queue set without an initial queue).
public actionAddQueueSet ( )

actionClinicLocations() public method

actionDeactivateQueue() public method

Marks the given Queue inactive.

actionDeleteQueue() public method

Will only successfully delete a Queue if no ticket has ever been assigned to it, otherwise will throw an exception. Should only have been called when the values return by actionGetQueueTicketCount are zero.
public actionDeleteQueue ( )

actionGetQueueTicketStatus() public method

Retrieve the count of ticket assignments for the given Queue and whether it can be deleted.
public actionGetQueueTicketStatus ( $id )
$id

actionIndex() public method

Render the main admin screen.
public actionIndex ( )

actionLoadQueueNav() public method

Generates an HTML list layout of the given Queue and its Outcome Queues.
public actionLoadQueueNav ( $id )
$id

actionQueueSetCategories() public method

actionQueueSetPermissions() public method

interface for setting the user permissions for a queueset.
public actionQueueSetPermissions ( $id )
$id

actionTicketAssignOutcomes() public method

actionUpdateQueue() public method

Update the given Queue.
public actionUpdateQueue ( $id )
$id

actionUpdateQueueSet() public method

Update the Queue Set specified by the id.
public actionUpdateQueueSet ( $id )
$id

beforeAction() protected method

protected beforeAction ( $action )

deactivateQueue() protected method

Deactivate a Queue, and if $cascade is true, then deactivate it's children.
protected deactivateQueue ( $queue, boolean $cascade = true )
$queue
$cascade boolean

filters() public method

Define the actions limited to POST requests.
public filters ( ) : array
return array

saveQueue() protected method

Performs the update/create process on a Queue.
protected saveQueue ( $queue, null $parent = null )
$queue
$parent null

Property Details

$QUEUESET_SERVICE public_oe static_oe property

public static $QUEUESET_SERVICE

$QUEUE_SERVICE public_oe static_oe property

public static $QUEUE_SERVICE

$TICKET_SERVICE public_oe static_oe property

public static $TICKET_SERVICE