PHP Class Element_OphCoTherapyapplication_Therapydiagnosis

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

Public Properties

Property Type Description
$service

Public Methods

Method Description
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

Protected Methods

Method Description
afterSave ( )
beforeSave ( )
beforeValidate ( )

Method Details

afterSave() protected method

protected afterSave ( )

attributeLabels() public method

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

beforeSave() protected method

protected beforeSave ( )

beforeValidate() protected method

protected beforeValidate ( )

getDiagnosisStringForSide() public method

return a string representation of the diagnoses set for the given side.
public getDiagnosisStringForSide ( string $side ) : string
$side string 'left' or 'right'
return string

getLevel1Disorders() public method

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[]
return Disorder[]

getLevel2Disorders() public method

retrieve a list of disorders that are defined as level 2 disorders for the given disorder.
public getLevel2Disorders ( $disorder ) : Disorder[]
return Disorder[]

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.

requiredIfSecondary() public method

* 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 method

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

sidedFields() public method

public sidedFields ( )

tableName() public method

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

Property Details

$service public property

public $service