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
Afficher le fichier Open project: openeyes/openeyes Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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
Résultat array $choices

getDisplayValueforResponse() public méthode

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

model() public static méthode

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

ruleLimit() public méthode

public ruleLimit ( )

tableName() public méthode

public tableName ( ) : string
Résultat string the associated database table name

validRuleComparators() public méthode