PHP Class OEModule\OphCiExamination\models\Element_OphCiExamination_PostOpComplications

Inheritance: extends SplitEventTypeElement
Show file Open project: openeyes/openeyes Class Usage Examples

Public Properties

Property Type Description
$firm
$service
$subspecialty_id

Public Methods

Method Description
afterSave ( )
attributeLabels ( ) : array
beforeDelete ( )
beforeSave ( )
checkComplicationEyePanels ( type $attribute, type $params ) Validation rule to assign complication to both eyes.
getFullComplicationList ( $eye_id )
getOperationNoteList ( ) : array Returns the Opertion notes belongs to a patient.
getRecordedComplications ( integer $eye_id, integer $operation_note_id = null ) : array Returns recorded complications based on eye and operation note id.
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.
tableName ( ) : string

Method Details

afterSave() public method

public afterSave ( )

attributeLabels() public method

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

beforeDelete() public method

public beforeDelete ( )

beforeSave() public method

public beforeSave ( )

checkComplicationEyePanels() public method

Validation rule to assign complication to both eyes.
public checkComplicationEyePanels ( type $attribute, type $params )
$attribute type
$params type

getFullComplicationList() public method

public getFullComplicationList ( $eye_id )

getOperationNoteList() public method

Returns the Opertion notes belongs to a patient.
public getOperationNoteList ( ) : array
return array list of op notes

getRecordedComplications() public method

if no recorded complications are found and there are complication in the POST (user wants to save but the site redirect with form error) we get the complications from the POST and display so the user does not have to select it again
public getRecordedComplications ( integer $eye_id, integer $operation_note_id = null ) : array
$eye_id integer
$operation_note_id integer
return array

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.

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

Property Details

$firm public property

public $firm

$service public property

public $service

$subspecialty_id public property

public $subspecialty_id