PHP Class Measurement

显示文件 Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
attach ( Episode | Event $entity, boolean $origin = false ) : MeasurementReference Attach this measurement to an Episode or Event
findAllForPatient ( Patient $patient )
getMeasurementType ( )
getPatientMeasurement ( )
getPatient_id ( )
setPatient_id ( $id )

Protected Methods

Method Description
afterValidate ( )
beforeSave ( )
instantiate ( array $attributes ) : CActiveRecord Override to allow us to have classes defined outside of core that store the data in a different way

Method Details

afterValidate() protected method

protected afterValidate ( )

attach() public method

Attach this measurement to an Episode or Event
public attach ( Episode | Event $entity, boolean $origin = false ) : MeasurementReference
$entity Episode | Event
$origin boolean
return MeasurementReference

beforeSave() protected method

protected beforeSave ( )

findAllForPatient() public method

public findAllForPatient ( Patient $patient )
$patient Patient

getMeasurementType() public method

public getMeasurementType ( )

getPatientMeasurement() public method

getPatient_id() public method

public getPatient_id ( )

instantiate() protected method

Override to allow us to have classes defined outside of core that store the data in a different way
protected instantiate ( array $attributes ) : CActiveRecord
$attributes array
return CActiveRecord

setPatient_id() public method

public setPatient_id ( $id )