PHP Class OEModule\PatientTicketing\models\Queue

The followings are the available columns in table:
Inheritance: extends BaseActiveRecordVersioned
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Свойство Type Description
$FIELD_PREFIX used to prevent form field name conflicts
$auto_update_relations

Méthodes publiques

Méthode Description
addTicket ( Ticket $ticket, CWebUser $user, Firm $firm, $data ) Add the given ticket to the Queue for the user and firm.
afterValidate ( ) assignment field validation.
behaviors ( )
closing ( ) A scope to return queues that don't have outcomes.
getCurrentTicketCount ( ) : array Get the number of tickets that are currently assigned to this queue.
getDependentQueueIds ( array $dependent_ids = [] ) : array Get the ids of queues that depend solely on this queue for tickets to be assigned to them.
getFormFields ( ) : array(array('id' Function to return a list of the fields that we are expecting an assignment form to contain for this queue.
getOutcomeData ( boolean $json = true ) : array | string Get simple data structure of possible outcomes for this Queue.
getQueueSet ( ) : QueueSet Get the QueueSet this Queue belongs to.
getRelatedEventTypes ( $json = true )
getRootQueue ( ) : Queue[] | Queue Get the root queue for this particular queue (Note: this assumes that all queues are only in one path, if that model changes this will not work).
model ( $className = __CLASS__ ) : OphTrOperationnote_GlaucomaTube_PlatePosition Returns the static model of the specified AR class.
notClosing ( ) A scope to only return queues that have active outcomes.
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string
validJSON ( $attribute ) Checks the given attribute is valid JSON.

Méthodes protégées

Méthode Description
getAssignmentFieldDefinitions ( ) : array Returns the fields that have been defined for this Queue when a ticket is assigned to it.

Private Methods

Méthode Description
mergeRootQueues ( $root, $candidates ) : array Helper method for handling the construction of the root node set.

Method Details

addTicket() public méthode

Add the given ticket to the Queue for the user and firm.
public addTicket ( Ticket $ticket, CWebUser $user, Firm $firm, $data )
$ticket Ticket
$user CWebUser
$firm Firm
$data

afterValidate() public méthode

assignment field validation.
public afterValidate ( )

behaviors() public méthode

public behaviors ( )

closing() public méthode

A scope to return queues that don't have outcomes.
public closing ( )

getAssignmentFieldDefinitions() protected méthode

Returns the fields that have been defined for this Queue when a ticket is assigned to it.
protected getAssignmentFieldDefinitions ( ) : array
Résultat array

getCurrentTicketCount() public méthode

Get the number of tickets that are currently assigned to this queue.
public getCurrentTicketCount ( ) : array
Résultat array

getDependentQueueIds() public méthode

Get the ids of queues that depend solely on this queue for tickets to be assigned to them.
public getDependentQueueIds ( array $dependent_ids = [] ) : array
$dependent_ids array
Résultat array

getFormFields() public méthode

Function to return a list of the fields that we are expecting an assignment form to contain for this queue.
public getFormFields ( ) : array(array('id'
Résultat array(array('id'

getOutcomeData() public méthode

Get simple data structure of possible outcomes for this Queue.
public getOutcomeData ( boolean $json = true ) : array | string
$json boolean
Résultat array | string

getQueueSet() public méthode

Get the QueueSet this Queue belongs to.
public getQueueSet ( ) : QueueSet
Résultat QueueSet

getRelatedEventTypes() public méthode

public getRelatedEventTypes ( $json = true )

getRootQueue() public méthode

Get the root queue for this particular queue (Note: this assumes that all queues are only in one path, if that model changes this will not work).
public getRootQueue ( ) : Queue[] | Queue
Résultat Queue[] | Queue

model() public static méthode

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : OphTrOperationnote_GlaucomaTube_PlatePosition
Résultat OphTrOperationnote_GlaucomaTube_PlatePosition the static model class

notClosing() public méthode

NOTE: didn't seem to be able to do this with relation definitions.
public notClosing ( )

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name

validJSON() public méthode

Checks the given attribute is valid JSON.
public validJSON ( $attribute )
$attribute

Property Details

$FIELD_PREFIX protected_oe static_oe property

used to prevent form field name conflicts
protected static $FIELD_PREFIX

$auto_update_relations protected_oe property

protected $auto_update_relations