PHP Class OEModule\OphCiExamination\models\Element_OphCiExamination_VisualAcuity

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

Public Properties

Property Type Description
$cvi_alert_dismissed
$service

Protected Properties

Property Type Description
$auto_update_relations
$relation_defaults

Public Methods

Method Description
attributeLabels ( ) : array
canViewPrevious ( )
getAllReadings ( string $side ) : OphCiExamination_VisualAcuity_Reading | null Get the best reading for the given side.
getBest ( string $side ) : string Get the best reading for the specified side in current units.
getBestReading ( string $side ) : OphCiExamination_VisualAcuity_Reading | null Get the best reading for the given side.
getBestReadingByMethods ( string $side, $methods ) Get the best reading based on the type
getCombined ( string $side, null $unit_id = null ) : string Get a combined string of the different readings. If a unit_id is given, the readings will be converted to unit type of that id.
getLetter_string ( ) : string returns the default letter string for the va readings. Converts all readings to Snellen Metre as this is assumed to be the standard for correspondence.
getMethodValues ( ) Get the list of currently used method ids.
getTextForSide ( $side ) : string Convenience function for generating string of why a reading wasn't recorded for a side.
getUnitValues ( integer $unit_id = null, boolean $selectable = true ) : array Array of unit values for dropdown.
getUnitValuesForForm ( integer | null $unit_id = null, boolean $is_near = false ) : array
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 ( )
sidedFields ( )
tableName ( ) : string

Protected Methods

Method Description
afterValidate ( ) Perform dependent validation for readings and flags.

Method Details

afterValidate() protected method

Perform dependent validation for readings and flags.
protected afterValidate ( )

attributeLabels() public method

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

canViewPrevious() public method

public canViewPrevious ( )

getAllReadings() public method

Get the best reading for the given side.
public getAllReadings ( string $side ) : OphCiExamination_VisualAcuity_Reading | null
$side string
return OphCiExamination_VisualAcuity_Reading | null

getBest() public method

Get the best reading for the specified side in current units.
public getBest ( string $side ) : string
$side string
return string

getBestReading() public method

Get the best reading for the given side.
public getBestReading ( string $side ) : OphCiExamination_VisualAcuity_Reading | null
$side string
return OphCiExamination_VisualAcuity_Reading | null

getBestReadingByMethods() public method

Get the best reading based on the type
public getBestReadingByMethods ( string $side, $methods )
$side string

getCombined() public method

Get a combined string of the different readings. If a unit_id is given, the readings will be converted to unit type of that id.
public getCombined ( string $side, null $unit_id = null ) : string
$side string
$unit_id null
return string

getLetter_string() public method

returns the default letter string for the va readings. Converts all readings to Snellen Metre as this is assumed to be the standard for correspondence.
public getLetter_string ( ) : string
return string

getMethodValues() public method

Get the list of currently used method ids.
public getMethodValues ( )

getTextForSide() public method

Convenience function for generating string of why a reading wasn't recorded for a side.
public getTextForSide ( $side ) : string
$side
return string

getUnitValues() public method

Array of unit values for dropdown.
public getUnitValues ( integer $unit_id = null, boolean $selectable = true ) : array
$unit_id integer
$selectable boolean - whether want selectable values or all unit values
return array

getUnitValuesForForm() public method

public getUnitValuesForForm ( integer | null $unit_id = null, boolean $is_near = false ) : array
$unit_id integer | null
$is_near boolean
return array

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

public setDefaultOptions ( )

sidedFields() public method

public sidedFields ( )

tableName() public method

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

Property Details

$auto_update_relations protected property

protected $auto_update_relations

$cvi_alert_dismissed public property

public $cvi_alert_dismissed

$relation_defaults protected property

protected $relation_defaults

$service public property

public $service