PHP 클래스 OphCoTherapyapplication_DecisionTreeNode

Each node is a question for a given assessment flow. If it's parent is null, it is the root node for the related flow. There should only be one with a null parent for each flow.
상속: extends BaseActiveRecordVersioned
파일 보기 프로젝트 열기: openeyes/openeyes 1 사용 예제들

공개 메소드들

메소드 설명
bestVisualAcuityForEye ( $side, $patient, $episode ) * returns the best visual acuity record for the given the $side of the given $patient
canAddChild ( ) * Can only have children for question nodes, not outcomes
canAddRule ( ) *
defaultsValidation ( $attribute ) * can only have one source for the default response for the node
getDefaultFunctions ( )
getDefaultValue ( $side, $patient, $episode ) * Works out the default value for this node, based on the provided $patient
getDefinition ( ) * Works out a full abstract definition of the node.
model ( $className = __CLASS__ ) : the Returns the static model of the specified AR class.
outcomeValidation ( $attribute ) * outcome being set implies that no other attributes should be set for the node
relations ( ) : array
requiredIfNotOutcomeValidation ( $attribute ) * if outcome is null then it implies this node should be a question node
rules ( ) : array
tableName ( ) : string

메소드 상세

bestVisualAcuityForEye() 공개 메소드

* returns the best visual acuity record for the given the $side of the given $patient
public bestVisualAcuityForEye ( $side, $patient, $episode )

canAddChild() 공개 메소드

* Can only have children for question nodes, not outcomes
public canAddChild ( )

canAddRule() 공개 메소드

*
public canAddRule ( )

defaultsValidation() 공개 메소드

* can only have one source for the default response for the node
public defaultsValidation ( $attribute )

getDefaultFunctions() 공개 메소드

public getDefaultFunctions ( )

getDefaultValue() 공개 메소드

* Works out the default value for this node, based on the provided $patient
public getDefaultValue ( $side, $patient, $episode )

getDefinition() 공개 메소드

* Works out a full abstract definition of the node.
public getDefinition ( )

model() 공개 정적인 메소드

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

outcomeValidation() 공개 메소드

* outcome being set implies that no other attributes should be set for the node
public outcomeValidation ( $attribute )

relations() 공개 메소드

public relations ( ) : array
리턴 array relational rules.

requiredIfNotOutcomeValidation() 공개 메소드

* if outcome is null then it implies this node should be a question node
public requiredIfNotOutcomeValidation ( $attribute )

rules() 공개 메소드

public rules ( ) : array
리턴 array validation rules for model attributes.

tableName() 공개 메소드

public tableName ( ) : string
리턴 string the associated database table name