Property | Type | Description | |
---|---|---|---|
$service |
Method | Description | |
---|---|---|
attributeLabels ( ) : array | ||
getInfoText ( ) : string | returns information text summarising the event (eye and drug used). | |
getIopLoweringDrugValues ( ) | Get ids of IOP lowering drugs currently associated with the element. | |
model ( $className = __CLASS__ ) : the | Returns the static model of the specified AR class. | |
relations ( ) : array | ||
requiredIfBoolean ( $attribute, $params ) | ||
rules ( ) : array | ||
search ( ) : CActiveDataProvider | Retrieves a list of models based on the current search/filter conditions. | |
setDefaultOptions ( ) | (non-PHPdoc). | |
sidedFields ( ) | ||
tableName ( ) : string | ||
todayOrFutureValidation ( string $attribute, array $params ) | checks if the given attribute on the element is today or in the future. | |
todayOrFutureValidationIfSide ( string $attribute, array $params ) | wrapper around the todayOrFutureValidation that only checks the attribute if the element is for the given side. | |
typeIfSide ( $attribute, $params ) | ||
updateIOPLoweringDrugs ( string $side, boolean $is_pre = true, int[] $ioplowering_ids = [] ) | update the ioplowering assignments for the given side and stage. |
Method | Description | |
---|---|---|
afterSave ( ) | ||
beforeSave ( ) | ||
beforeValidate ( ) | clear out sided fields to prevent validation of irrelevant data. |
public attributeLabels ( ) : array | ||
return | array | customized attribute labels (name=>label) |
public getInfoText ( ) : string | ||
return | string | $info_text |
public getIopLoweringDrugValues ( ) |
public static model ( $className = __CLASS__ ) : the | ||
return | the | static model class |
public search ( ) : CActiveDataProvider | ||
return | CActiveDataProvider | the data provider that can return the models based on the search/filter conditions. |
public todayOrFutureValidation ( string $attribute, array $params ) | ||
$attribute | string | |
$params | array |
public todayOrFutureValidationIfSide ( string $attribute, array $params ) | ||
$attribute | string | |
$params | array |
public updateIOPLoweringDrugs ( string $side, boolean $is_pre = true, int[] $ioplowering_ids = [] ) | ||
$side | string | |
$is_pre | boolean | |
$ioplowering_ids | int[] | - array of ioplowering ids to assign to the element |