Property | Type | Description | |
---|---|---|---|
$_va_list | internal store of valid va values that can be selected for start and end VA |
Method | 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. |
Method | Description | |
---|---|---|
afterSave ( ) | ||
beforeSave ( ) | ||
beforeValidate ( ) |
public attributeLabels ( ) : array | ||
return | array | customized attribute labels (name=>label) |
public getStopReasonText ( ) : string | ||
return | string |
public getTreatmentName ( ) : string | ||
return | string |
public getTreatmentOptions ( $selected_id ) : array | ||
return | array | $options key,value pair list |
public getVaOptions ( ) : array | ||
return | array | key, value pair list |
public static model ( $className = __CLASS__ ) : the | ||
return | the | static model class |
public requiredDependingOnTreatmentType ( string $attribute, array $params ) | ||
$attribute | string | |
$params | array | - must include boolean flag for key of relevant |
public requiredIfRelevantTreatmentIsOther ( string $attribute, array $params ) | ||
$attribute | string | |
$params | array |
public requiredIfStopReasonIsOther ( string $attribute, array $params ) | ||
$attribute | string | |
$params | array |
public search ( ) : CActiveDataProvider | ||
return | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
public setDefaultOptions ( ) |
public validateEarlierOrEqualDate ( $attribute, $params ) | ||
$attribute | - the element attribute that must be an earlier date | |
$params | - 'later_date' is the attribute to compare it with |