PHP Class OEModule\OphCoCvi\models\Element_OphCoCvi_ClericalInfo

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

Public Methods

Method Description
attributeLabels ( ) : array
generateStructuredContactUrgency ( ) : array To generate the contact urgency array for the pdf
generateStructuredEmploymentStatus ( ) : array To generate the employement status array for the pdf
getPatientFactorAnswer ( OphCoCvi_ClericalInfo_PatientFactor $factor ) : OphCoCvi_ClericalInfo_PatientFactor_Answer | null
getStructuredDataForPrint ( ) Returns an associative array of the data values for printing
model ( null | string $className = __CLASS__ ) : the Returns the static model of the specified AR class.
patientFactorList ( $element_id ) : array Retrieves a list of patient factor
relations ( ) : array
rules ( ) : array
search ( ) : CActiveDataProvider Retrieves a list of models based on the current search/filter conditions.
tableName ( ) : string
updatePatientFactorAnswers ( $data )

Protected Methods

Method Description
generateStructuredPatientFactors ( ) : array

Private Methods

Method Description
updateAnswer ( $answer, $data )

Method Details

attributeLabels() public method

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

generateStructuredContactUrgency() public method

To generate the contact urgency array for the pdf

generateStructuredEmploymentStatus() public method

To generate the employement status array for the pdf

generateStructuredPatientFactors() protected method

getPatientFactorAnswer() public method

public getPatientFactorAnswer ( OphCoCvi_ClericalInfo_PatientFactor $factor ) : OphCoCvi_ClericalInfo_PatientFactor_Answer | null
$factor OphCoCvi_ClericalInfo_PatientFactor
return OphCoCvi_ClericalInfo_PatientFactor_Answer | null

getStructuredDataForPrint() public method

Returns an associative array of the data values for printing

model() public static method

Returns the static model of the specified AR class.
public static model ( null | string $className = __CLASS__ ) : the
$className null | string
return the static model class

patientFactorList() public method

Retrieves a list of patient factor
public patientFactorList ( $element_id ) : array
$element_id
return array

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

updatePatientFactorAnswers() public method

public updatePatientFactorAnswers ( $data )
$data