PHP Класс Element_OphCoTherapyapplication_ExceptionalCircumstances

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

Открытые свойства

Свойство Тип Описание
$service

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

Свойство Тип Описание
$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