OphCoTherapyapplication_DecisionTreeNode::model PHP Method

model() public static method

Returns the static model of the specified AR class.
public static model ( $className = __CLASS__ ) : the
return the static model class
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

Usage Example

 public function getRootNode()
 {
     $criteria = new CDbCriteria();
     $criteria->addColumnCondition(array('decisiontree_id' => $this->id, 'parent_id' => null));
     $node = OphCoTherapyapplication_DecisionTreeNode::model()->find($criteria);
     return $node;
 }
All Usage Examples Of OphCoTherapyapplication_DecisionTreeNode::model