PHP Class OphCoTherapyapplication_ExceptionalCircumstances_PastIntervention

The followings are the available columns in table:
Inheritance: extends BaseActiveRecordVersioned
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Protected Properties

Свойство Type Description
$_va_list internal store of valid va values that can be selected for start and end VA

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
afterSave ( )
beforeSave ( )
beforeValidate ( )

Method Details

afterSave() protected méthode

protected afterSave ( )

attributeLabels() public méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

beforeSave() protected méthode

protected beforeSave ( )

beforeValidate() protected méthode

protected beforeValidate ( )

getStopReasonText() public méthode

get the text for the stopping reason for this treatment.
public getStopReasonText ( ) : string
Résultat string

getTreatmentName() public méthode

get the treatment name for this past intervention.
public getTreatmentName ( ) : string
Résultat string

getTreatmentOptions() public méthode

get the treatment options for this intervention.
public getTreatmentOptions ( $selected_id ) : array
Résultat array $options key,value pair list

getVaOptions() public méthode

gets the valid VA values for use in a form.
public getVaOptions ( ) : array
Résultat array key, value pair list

model() public static méthode

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
Résultat the static model class

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

requiredDependingOnTreatmentType() public méthode

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() public méthode

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

requiredIfStopReasonIsOther() public méthode

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 méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

setDefaultOptions() public méthode

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

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name

validateEarlierOrEqualDate() public méthode

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

Property Details

$_va_list protected_oe property

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