PHP Class OEModule\OphCiExamination\models\Element_OphCiExamination_ColourVision

The followings are the available columns in table:
Inheritance: extends SplitEventTypeElement
Show file Open project: openeyes/openeyes

Protected Properties

Property Type Description
$_readings_by_method

Public Methods

Method Description
attributeLabels ( ) : array
canViewPrevious ( )
delete ( ) extends standard delete method to remove all the treatments.
getReading ( string $side, OphCiExamination_ColourVision_Method $method ) : OphCiExamination_ColourVision_Readin | null Get the colour vision reading for the given side and method if it's defined.
getUnusedReadingMethods ( string $side ) : OphCiExamination_ColourVision_Method[] Get the colour vision reading methods that have not been used for this element.
model ( $className = __CLASS__ ) : OEModule\OphCiExamination\models\Element_OphCiExamination_Dilation 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.
tableName ( ) : string
updateReadings ( $side, array $readings ) Update the dilation treatments - depends on their only being one treatment of a particular drug on a given side.

Protected Methods

Method Description
afterValidate ( ) Validate each of the readings.

Method Details

afterValidate() protected method

Validate each of the readings.
protected afterValidate ( )

attributeLabels() public method

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

canViewPrevious() public method

public canViewPrevious ( )

delete() public method

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

getReading() public method

Get the colour vision reading for the given side and method if it's defined.
public getReading ( string $side, OphCiExamination_ColourVision_Method $method ) : OphCiExamination_ColourVision_Readin | null
$side string - left or right
$method OphCiExamination_ColourVision_Method
return OphCiExamination_ColourVision_Readin | null

getUnusedReadingMethods() public method

Get the colour vision reading methods that have not been used for this element.
public getUnusedReadingMethods ( string $side ) : OphCiExamination_ColourVision_Method[]
$side string
return OphCiExamination_ColourVision_Method[]

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : OEModule\OphCiExamination\models\Element_OphCiExamination_Dilation
return OEModule\OphCiExamination\models\Element_OphCiExamination_Dilation

relations() public method

public relations ( ) : array
return array relational rules.

rules() public method

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

tableName() public method

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

updateReadings() public method

Update the dilation treatments - depends on their only being one treatment of a particular drug on a given side.
public updateReadings ( $side, array $readings )
$side \Eye::LEFT or \Eye::RIGHT
$readings array

Property Details

$_readings_by_method protected property

protected $_readings_by_method