PHP Класс OEModule\PatientTicketing\models\Queue

The followings are the available columns in table:
Наследование: extends BaseActiveRecordVersioned
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$FIELD_PREFIX used to prevent form field name conflicts
$auto_update_relations

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
getAssignmentFieldDefinitions ( ) : array Returns the fields that have been defined for this Queue when a ticket is assigned to it.

Приватные методы

Метод Описание
mergeRootQueues ( $root, $candidates ) : array Helper method for handling the construction of the root node set.

Описание методов

addTicket() публичный метод

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() публичный метод

assignment field validation.
public afterValidate ( )

behaviors() публичный метод

public behaviors ( )

closing() публичный метод

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

getAssignmentFieldDefinitions() защищенный метод

Returns the fields that have been defined for this Queue when a ticket is assigned to it.
protected getAssignmentFieldDefinitions ( ) : array
Результат array

getCurrentTicketCount() публичный метод

Get the number of tickets that are currently assigned to this queue.
public getCurrentTicketCount ( ) : array
Результат array

getDependentQueueIds() публичный метод

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
Результат array

getFormFields() публичный метод

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'
Результат array(array('id'

getOutcomeData() публичный метод

Get simple data structure of possible outcomes for this Queue.
public getOutcomeData ( boolean $json = true ) : array | string
$json boolean
Результат array | string

getQueueSet() публичный метод

Get the QueueSet this Queue belongs to.
public getQueueSet ( ) : QueueSet
Результат QueueSet

getRelatedEventTypes() публичный метод

public getRelatedEventTypes ( $json = true )

getRootQueue() публичный метод

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
Результат Queue[] | Queue

model() публичный статический метод

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : OphTrOperationnote_GlaucomaTube_PlatePosition
Результат OphTrOperationnote_GlaucomaTube_PlatePosition the static model class

notClosing() публичный метод

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

relations() публичный метод

public relations ( ) : array
Результат array relational rules.

rules() публичный метод

public rules ( ) : array
Результат array validation rules for model attributes.

tableName() публичный метод

public tableName ( ) : string
Результат string the associated database table name

validJSON() публичный метод

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

Описание свойств

$FIELD_PREFIX защищенное статическое свойство

used to prevent form field name conflicts
protected static $FIELD_PREFIX

$auto_update_relations защищенное свойство

protected $auto_update_relations