PHP Class OphCoTherapyapplication_Treatment

The followings are the available columns in table:
Inheritance: extends BaseActiveRecordVersioned
Show file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method 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

Protected Methods

Method Description
afterSave ( )
beforeSave ( )
beforeValidate ( )

Method Details

afterSave() protected method

protected afterSave ( )

attributeLabels() public method

public attributeLabels ( ) : array
return array customized attribute labels (name=>label)

availableOrPk() public method

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

beforeSave() protected method

protected beforeSave ( )

beforeValidate() protected method

protected beforeValidate ( )

defaultScope() public method

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

getDisplayCost() public method

public getDisplayCost ( )

getDisplayMonitoringFrequency() public method

getName() public method

public getName ( )

getTreatmentDrugs() public method

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

model() public static method

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

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

public rules ( ) : array
return array validation rules for model attributes.

setDefaultOptions() public method

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

tableName() public method

public tableName ( ) : string
return string the associated database table name