Example #1
0
 public static function factory($model)
 {
     self::$_className = "Model_" . $model;
     if (!class_exists(self::$_className)) {
         throw new Model_Exception("class model not exists");
     }
     if (self::$_instance === NULL) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }