Beispiel #1
0
 /**
  * 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;
 }
Beispiel #2
0
 public static function getNode()
 {
     jimport('solidres.nestedsetmodel.node');
     return SRNode::getInstance();
 }