예제 #1
0
파일: Base.php 프로젝트: nameNotNull/yafapp
 public static function factory()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
예제 #2
0
 public function __construct($dbName, $tableName)
 {
     $this->_db = Db_Base::factory();
     $this->_dataBaseName = $dbName;
     $this->_tableName = $tableName;
 }