PHP Class CommonOphthalmicDisorder

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

Public Methods

Method Description
attributeLabels ( ) : array
defaultScope ( )
getDisorderOrFinding ( ) : Disorder | Finding
getList ( Firm $firm, boolean $include_findings = false ) : array Fetch options list of disorders (and optionally findings).
getListByGroupWithSecondaryTo ( Firm $firm ) : array Fetch array of disorders and associated secondary to disorders (and optionally findings).
getSecondaryToList ( ) : array Fetch array of secondary disorders/findings.
getSelectionLabel ( ) : string Label for use in dropdowns.
getType ( ) : string
model ( $className = __CLASS__ ) : CommonOphthalmicDisorder 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.
tableName ( ) : string

Protected Methods

Method Description
afterValidate ( )

Method Details

afterValidate() protected method

protected afterValidate ( )

attributeLabels() public method

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

defaultScope() public method

public defaultScope ( )

getDisorderOrFinding() public method

public getDisorderOrFinding ( ) : Disorder | Finding
return Disorder | Finding

getList() public static method

Fetch options list of disorders (and optionally findings).
public static getList ( Firm $firm, boolean $include_findings = false ) : array
$firm Firm
$include_findings boolean
return array

getListByGroupWithSecondaryTo() public static method

Fetch array of disorders and associated secondary to disorders (and optionally findings).
public static getListByGroupWithSecondaryTo ( Firm $firm ) : array
$firm Firm
return array

getSecondaryToList() public method

Fetch array of secondary disorders/findings.
public getSecondaryToList ( ) : array
return array

getSelectionLabel() public method

Label for use in dropdowns.
public getSelectionLabel ( ) : string
return string

getType() public method

public getType ( ) : string
return string

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : CommonOphthalmicDisorder
return CommonOphthalmicDisorder 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.

tableName() public method

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