PHP Class OphDrPrescription_Item

Inheritance: extends BaseActiveRecordVersioned
Show file Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
afterValidate ( )
attributeLabels ( ) : array
getDescription ( )
loadDefaults ( )
model ( $className = __CLASS__ ) : OphDrPrescription_Item 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.
stopDateFromDuration ( ) : DateTime | null
tableName ( ) : string
validateRouteOption ( $attribute, $params )

Method Details

afterValidate() public method

public afterValidate ( )

attributeLabels() public method

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

getDescription() public method

public getDescription ( )

loadDefaults() public method

public loadDefaults ( )

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : OphDrPrescription_Item
return OphDrPrescription_Item 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.

stopDateFromDuration() public method

public stopDateFromDuration ( ) : DateTime | null
return DateTime | null

tableName() public method

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

validateRouteOption() public method

public validateRouteOption ( $attribute, $params )