PHP Класс Element_OphCoTherapyapplication_Therapydiagnosis

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

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

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

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

Метод Описание
attributeLabels ( ) : array
getDiagnosisStringForSide ( string $side ) : string return a string representation of the diagnoses set for the given side.
getLevel1Disorders ( ) : Disorder[] Get a list of level 1 disorders for this element (appends any level 1 disorder that has been selected for this element but aren't part of the default list).
getLevel2Disorders ( $disorder ) : Disorder[] retrieve a list of disorders that are defined as level 2 disorders for the given disorder.
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
relations ( ) : array
requiredIfSecondary ( $attribute, $params ) * check a level 2 diagnosis is provided for level 1 diagnoses that require it (need to check the side as well though)
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
sidedFields ( )
tableName ( ) : string

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

Метод Описание
afterSave ( )
beforeSave ( )
beforeValidate ( )

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

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

protected afterSave ( )

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

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

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

protected beforeSave ( )

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

protected beforeValidate ( )

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

return a string representation of the diagnoses set for the given side.
public getDiagnosisStringForSide ( string $side ) : string
$side string 'left' or 'right'
Результат string

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

Get a list of level 1 disorders for this element (appends any level 1 disorder that has been selected for this element but aren't part of the default list).
public getLevel1Disorders ( ) : Disorder[]
Результат Disorder[]

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

retrieve a list of disorders that are defined as level 2 disorders for the given disorder.
public getLevel2Disorders ( $disorder ) : Disorder[]
Результат Disorder[]

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.

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

* check a level 2 diagnosis is provided for level 1 diagnoses that require it (need to check the side as well though)
public requiredIfSecondary ( $attribute, $params )

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

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

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

public sidedFields ( )

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

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

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

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

public $service