PHP Класс OphCoTherapyapplication_ExceptionalCircumstances_PastIntervention

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

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

Свойство Тип Описание
$_va_list internal store of valid va values that can be selected for start and end VA

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

Метод Описание
attributeLabels ( ) : array
getStopReasonText ( ) : string get the text for the stopping reason for this treatment.
getTreatmentName ( ) : string get the treatment name for this past intervention.
getTreatmentOptions ( $selected_id ) : array get the treatment options for this intervention.
getVaOptions ( ) : array gets the valid VA values for use in a form.
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
relations ( ) : array
requiredDependingOnTreatmentType ( string $attribute, array $params ) validate the right type of treatment is set on the model depending on the treatment type.
requiredIfRelevantTreatmentIsOther ( string $attribute, array $params ) validate that a treatment is given if the treatment is 'other'.
requiredIfStopReasonIsOther ( string $attribute, array $params ) validate that a reason is given if the stop reason select is of type other.
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
setDefaultOptions ( ) Set default values for forms on create.
tableName ( ) : string
validateEarlierOrEqualDate ( $attribute, $params ) validate a date is earlier or equal to another.

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

Метод Описание
afterSave ( )
beforeSave ( )
beforeValidate ( )

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

afterSave() защищенный Метод

protected afterSave ( )

attributeLabels() публичный Метод

public attributeLabels ( ) : array
Результат array customized attribute labels (name=>label)

beforeSave() защищенный Метод

protected beforeSave ( )

beforeValidate() защищенный Метод

protected beforeValidate ( )

getStopReasonText() публичный Метод

get the text for the stopping reason for this treatment.
public getStopReasonText ( ) : string
Результат string

getTreatmentName() публичный Метод

get the treatment name for this past intervention.
public getTreatmentName ( ) : string
Результат string

getTreatmentOptions() публичный Метод

get the treatment options for this intervention.
public getTreatmentOptions ( $selected_id ) : array
Результат array $options key,value pair list

getVaOptions() публичный Метод

gets the valid VA values for use in a form.
public getVaOptions ( ) : array
Результат array key, value pair list

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

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

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

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

requiredDependingOnTreatmentType() публичный Метод

validate the right type of treatment is set on the model depending on the treatment type.
public requiredDependingOnTreatmentType ( string $attribute, array $params )
$attribute string
$params array - must include boolean flag for key of relevant

requiredIfRelevantTreatmentIsOther() публичный Метод

validate that a treatment is given if the treatment is 'other'.
public requiredIfRelevantTreatmentIsOther ( string $attribute, array $params )
$attribute string
$params array

requiredIfStopReasonIsOther() публичный Метод

validate that a reason is given if the stop reason select is of type other.
public requiredIfStopReasonIsOther ( string $attribute, array $params )
$attribute string
$params array

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

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

setDefaultOptions() публичный Метод

Set default values for forms on create.
public setDefaultOptions ( )

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

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

validateEarlierOrEqualDate() публичный Метод

validate a date is earlier or equal to another.
public validateEarlierOrEqualDate ( $attribute, $params )
$attribute - the element attribute that must be an earlier date
$params - 'later_date' is the attribute to compare it with

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

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

internal store of valid va values that can be selected for start and end VA
protected $_va_list