PHP Class Element_OphTrIntravitrealinjection_Treatment

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

Méthodes publiques

Свойство Type Description
$service

Méthodes publiques

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

Méthodes protégées

Méthode Description
afterSave ( )
beforeSave ( )
beforeValidate ( ) clear out sided fields to prevent validation of irrelevant data.

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

(non-PHPdoc)
See also: CModel::beforeValidate()
protected beforeValidate ( )

getInfoText() public méthode

returns information text summarising the event (eye and drug used).
public getInfoText ( ) : string
Résultat string $info_text

getIopLoweringDrugValues() public méthode

Get ids of IOP lowering drugs currently associated with the element.

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.

requiredIfBoolean() public méthode

public requiredIfBoolean ( $attribute, $params )

rules() public méthode

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

setDefaultOptions() public méthode

(non-PHPdoc).
See also: SplitEventTypeElement::setDefaultOptions()
public setDefaultOptions ( )

sidedFields() public méthode

public sidedFields ( )

tableName() public méthode

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

todayOrFutureValidation() public méthode

checks if the given attribute on the element is today or in the future.
public todayOrFutureValidation ( string $attribute, array $params )
$attribute string
$params array

todayOrFutureValidationIfSide() public méthode

wrapper around the todayOrFutureValidation that only checks the attribute if the element is for the given side.
public todayOrFutureValidationIfSide ( string $attribute, array $params )
$attribute string
$params array

typeIfSide() public méthode

public typeIfSide ( $attribute, $params )

updateIOPLoweringDrugs() public méthode

update the ioplowering assignments for the given side and stage.
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

Property Details

$service public_oe property

public $service