PHP Класс 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.
Наследование: extends BaseActiveRecordVersioned
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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 ( )

Описание методов

getChoices() публичный Метод

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
Результат array $choices

getDisplayValueforResponse() публичный Метод

translate a given response value into a text value for display.
public getDisplayValueforResponse ( $value ) : string
$value
Результат string

model() публичный статический Метод

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
Результат the static model class

ruleLimit() публичный Метод

public ruleLimit ( )

tableName() публичный Метод

public tableName ( ) : string
Результат string the associated database table name

validRuleComparators() публичный Метод