OphCoTherapyapplication_DecisionTreeNode::outcomeValidation PHP Method

outcomeValidation() public method

* outcome being set implies that no other attributes should be set for the node
public outcomeValidation ( $attribute )
    public function outcomeValidation($attribute)
    {
        if ($this->outcome_id && ($this->question || $this->default_function || $this->default_value || $this->response_type)) {
            $this->addError($attribute, 'Outcome nodes cannot have any other values set.');
        }
    }