PHP Класс OEModule\OphCiExamination\models\Element_OphCiExamination_VisualAcuity

The followings are the available columns in table:
Наследование: extends SplitEventTypeElement
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$cvi_alert_dismissed
$service

Защищенные свойства (Protected)

Свойство Тип Описание
$auto_update_relations
$relation_defaults

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
afterValidate ( ) Perform dependent validation for readings and flags.

Описание методов

afterValidate() защищенный Метод

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

attributeLabels() публичный Метод

public attributeLabels ( ) : array
Результат array customized attribute labels (name=>label)

canViewPrevious() публичный Метод

public canViewPrevious ( )

getAllReadings() публичный Метод

Get the best reading for the given side.
public getAllReadings ( string $side ) : OphCiExamination_VisualAcuity_Reading | null
$side string
Результат OphCiExamination_VisualAcuity_Reading | null

getBest() публичный Метод

Get the best reading for the specified side in current units.
public getBest ( string $side ) : string
$side string
Результат string

getBestReading() публичный Метод

Get the best reading for the given side.
public getBestReading ( string $side ) : OphCiExamination_VisualAcuity_Reading | null
$side string
Результат OphCiExamination_VisualAcuity_Reading | null

getBestReadingByMethods() публичный Метод

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

getCombined() публичный Метод

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
Результат string

getLetter_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.
public getLetter_string ( ) : string
Результат string

getMethodValues() публичный Метод

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

getTextForSide() публичный Метод

Convenience function for generating string of why a reading wasn't recorded for a side.
public getTextForSide ( $side ) : string
$side
Результат string

getUnitValues() публичный Метод

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
Результат array

getUnitValuesForForm() публичный Метод

public getUnitValuesForForm ( integer | null $unit_id = null, boolean $is_near = false ) : array
$unit_id integer | null
$is_near boolean
Результат array

model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
Результат the static model class

relations() публичный Метод

public relations ( ) : array
Результат array relational rules.

rules() публичный Метод

public rules ( ) : array
Результат array validation rules for model attributes.

setDefaultOptions() публичный Метод

public setDefaultOptions ( )

sidedFields() публичный Метод

public sidedFields ( )

tableName() публичный Метод

public tableName ( ) : string
Результат string the associated database table name

Описание свойств

$auto_update_relations защищенное свойство

protected $auto_update_relations

$cvi_alert_dismissed публичное свойство

public $cvi_alert_dismissed

$relation_defaults защищенное свойство

protected $relation_defaults

$service публичное свойство

public $service