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
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 메소드들

메소드 설명
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() 공개 메소드