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
Показать файл Открыть проект Примеры использования класса

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

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