PHP 클래스 OEModule\PatientTicketing\models\Queue

The followings are the available columns in table:
상속: extends BaseActiveRecordVersioned
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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