PHP Class OEModule\OphCiExamination\models\Element_OphCiExamination_VisualAcuity

The followings are the available columns in table:
Inheritance: extends SplitEventTypeElement
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Свойство Type Description
$cvi_alert_dismissed
$service

Protected Properties

Свойство Type Description
$auto_update_relations
$relation_defaults

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
afterValidate ( ) Perform dependent validation for readings and flags.

Method Details

afterValidate() protected méthode

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

attributeLabels() public méthode

public attributeLabels ( ) : array
Résultat array customized attribute labels (name=>label)

canViewPrevious() public méthode

public canViewPrevious ( )

getAllReadings() public méthode

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

getBest() public méthode

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

getBestReading() public méthode

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

getBestReadingByMethods() public méthode

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

getCombined() public méthode

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
Résultat string

getLetter_string() public méthode

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
Résultat string

getMethodValues() public méthode

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

getTextForSide() public méthode

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

getUnitValues() public méthode

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
Résultat array

getUnitValuesForForm() public méthode

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

model() public static méthode

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

relations() public méthode

public relations ( ) : array
Résultat array relational rules.

rules() public méthode

public rules ( ) : array
Résultat array validation rules for model attributes.

setDefaultOptions() public méthode

public setDefaultOptions ( )

sidedFields() public méthode

public sidedFields ( )

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name

Property Details

$auto_update_relations protected_oe property

protected $auto_update_relations

$cvi_alert_dismissed public_oe property

public $cvi_alert_dismissed

$relation_defaults protected_oe property

protected $relation_defaults

$service public_oe property

public $service