PHP Class OphCoTherapyapplication_Treatment

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

Méthodes publiques

Méthode Description
attributeLabels ( ) : array
availableOrPk ( $id ) scope to only get treatments where the drug is available.
defaultScope ( ) set the ordering based on the drug for the treatment.
getDisplayCost ( )
getDisplayMonitoringFrequency ( )
getName ( )
getTreatmentDrugs ( ) : OphTrIntravitrealinjection_Treatment_Drug[] return a list of treatment drugs for use in admin.
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
relations ( ) : array
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

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)

availableOrPk() public méthode

scope to only get treatments where the drug is available.
public availableOrPk ( $id )

beforeSave() protected méthode

protected beforeSave ( )

beforeValidate() protected méthode

protected beforeValidate ( )

defaultScope() public méthode

(non-PHPdoc)
See also: CActiveRecord::defaultScope()
public defaultScope ( )

getDisplayCost() public méthode

public getDisplayCost ( )

getDisplayMonitoringFrequency() public méthode

getName() public méthode

public getName ( )

getTreatmentDrugs() public méthode

return a list of treatment drugs for use in admin.
public getTreatmentDrugs ( ) : OphTrIntravitrealinjection_Treatment_Drug[]
Résultat OphTrIntravitrealinjection_Treatment_Drug[]

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.

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