PHP 클래스 Element_OphCoTherapyapplication_ExceptionalCircumstances

The followings are the available columns in table:
상속: extends SplitEventTypeElement
파일 보기 프로젝트 열기: openeyes/openeyes

공개 프로퍼티들

프로퍼티 타입 설명
$service

보호된 프로퍼티들

프로퍼티 타입 설명
$auto_update_relations
$relation_defaults

공개 메소드들

메소드 설명
attributeLabels ( ) : array
getDeviationReasonsForSide ( stringh $side ) : OphCoTherapyapplication_ExceptionalCircumstances_DeviationReason[] get the possible deviation reasons for the side (encapsulated to ensure we get any reasons that may no longer be enabled).
getFileCollectionValuesForSide ( $side ) Get ids of the file collections in use by the element for a given side.
getStandardInterventionsForSide ( string $side ) : OphCoTherapyapplication_ExceptionalCircumstances_StandardIntervention[] get list of valid standard interventions for this element on the given side.
getStartPeriodsForSide ( type $side ) : type get the valid stat periods for the given side.
isRequiredInUI ( ) : boolean Is this a required element to be displayed in the UI? This element is not required by default, but we still want to prevent users from removing it in the UI.
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
needDeviationReasonForSide ( string $side ) : boolean Returns whether we need to the deviation reason to be populated for the given side.
relations ( ) : array
requiredIfPatientFactors ( string $attribute, array $params )
requiredIfStandardInterventionDoesNotExists ( $attribute, $params ) * requirement validation if a standard intervention does not exist
requiredIfStandardInterventionExists ( string $attribute, array $params ) check that the standard intervention description is given if the element is flagged appropriately.
requiredIfStandardInterventionNotUsed ( string $attribute, array $params ) validates attribute if there is standard intervention and it is not being used.
requiredIfUrgent ( string $attribute, array $params ) validation of an attribute if the $side start_period is flagged as urgent.
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
sidedFields ( )
tableName ( ) : string

보호된 메소드들

메소드 설명
afterSave ( )
afterValidate ( )
beforeSave ( )
beforeValidate ( )

메소드 상세

afterSave() 보호된 메소드

protected afterSave ( )

afterValidate() 보호된 메소드

protected afterValidate ( )

attributeLabels() 공개 메소드

public attributeLabels ( ) : array
리턴 array customized attribute labels (name=>label)

beforeSave() 보호된 메소드

protected beforeSave ( )

beforeValidate() 보호된 메소드

protected beforeValidate ( )

getDeviationReasonsForSide() 공개 메소드

get the possible deviation reasons for the side (encapsulated to ensure we get any reasons that may no longer be enabled).
public getDeviationReasonsForSide ( stringh $side ) : OphCoTherapyapplication_ExceptionalCircumstances_DeviationReason[]
$side stringh
리턴 OphCoTherapyapplication_ExceptionalCircumstances_DeviationReason[]

getFileCollectionValuesForSide() 공개 메소드

Get ids of the file collections in use by the element for a given side.

getStandardInterventionsForSide() 공개 메소드

get list of valid standard interventions for this element on the given side.
public getStandardInterventionsForSide ( string $side ) : OphCoTherapyapplication_ExceptionalCircumstances_StandardIntervention[]
$side string
리턴 OphCoTherapyapplication_ExceptionalCircumstances_StandardIntervention[]

getStartPeriodsForSide() 공개 메소드

get the valid stat periods for the given side.
public getStartPeriodsForSide ( type $side ) : type
$side type
리턴 type

isRequiredInUI() 공개 메소드

Is this a required element to be displayed in the UI? This element is not required by default, but we still want to prevent users from removing it in the UI.
public isRequiredInUI ( ) : boolean
리턴 boolean

model() 공개 정적인 메소드

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
리턴 the static model class

needDeviationReasonForSide() 공개 메소드

Returns whether we need to the deviation reason to be populated for the given side.
public needDeviationReasonForSide ( string $side ) : boolean
$side string
리턴 boolean

relations() 공개 메소드

public relations ( ) : array
리턴 array relational rules.

requiredIfPatientFactors() 공개 메소드

public requiredIfPatientFactors ( string $attribute, array $params )
$attribute string
$params array

requiredIfStandardInterventionDoesNotExists() 공개 메소드

* requirement validation if a standard intervention does not exist
public requiredIfStandardInterventionDoesNotExists ( $attribute, $params )

requiredIfStandardInterventionExists() 공개 메소드

check that the standard intervention description is given if the element is flagged appropriately.
public requiredIfStandardInterventionExists ( string $attribute, array $params )
$attribute string
$params array

requiredIfStandardInterventionNotUsed() 공개 메소드

validates attribute if there is standard intervention and it is not being used.
public requiredIfStandardInterventionNotUsed ( string $attribute, array $params )
$attribute string
$params array

requiredIfUrgent() 공개 메소드

validation of an attribute if the $side start_period is flagged as urgent.
public requiredIfUrgent ( string $attribute, array $params )
$attribute string
$params array

rules() 공개 메소드

public rules ( ) : array
리턴 array validation rules for model attributes.

sidedFields() 공개 메소드

public sidedFields ( )

tableName() 공개 메소드

public tableName ( ) : string
리턴 string the associated database table name

프로퍼티 상세

$auto_update_relations 보호되어 있는 프로퍼티

protected $auto_update_relations

$relation_defaults 보호되어 있는 프로퍼티

protected $relation_defaults

$service 공개적으로 프로퍼티

public $service