PHP Class OphCoTherapyapplication_DecisionTreeNode_ResponseType

An outcome is an endpoint for a decision tree. The label is what is displayed to the user, the type is a coded value for use in the system to make decisions about functional behaviour.
Inheritance: extends BaseActiveRecordVersioned
Exibir arquivo Open project: openeyes/openeyes Class Usage Examples

Public Methods

Method Description
getChoices ( string $datatype = null ) : array return choice options for response types that have them Note that this is hard coded for now to reduce admin overhead etc if the response types expand greatly, then it will be worth expanding this functionality to have choices defined in models.
getDisplayValueforResponse ( $value ) : string translate a given response value into a text value for display.
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
ruleLimit ( )
tableName ( ) : string
validRuleComparators ( )

Method Details

getChoices() public method

return choice options for response types that have them Note that this is hard coded for now to reduce admin overhead etc if the response types expand greatly, then it will be worth expanding this functionality to have choices defined in models.
public getChoices ( string $datatype = null ) : array
$datatype string
return array $choices

getDisplayValueforResponse() public method

translate a given response value into a text value for display.
public getDisplayValueforResponse ( $value ) : string
$value
return string

model() public static method

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

ruleLimit() public method

public ruleLimit ( )

tableName() public method

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

validRuleComparators() public method