/** * Returns the global SRDatabase object, only creating it if it * doesn't already exist. * * @return object SRDatabase object */ public static function getInstance() { if (!isset(self::$instance)) { $c = __CLASS__; self::$instance = new $c(); } return self::$instance; }
public static function getNode() { jimport('solidres.nestedsetmodel.node'); return SRNode::getInstance(); }