Exemplo n.º 1
0
 public static function factory()
 {
     if (self::$_instance === null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Exemplo n.º 2
0
 public function __construct($dbName, $tableName)
 {
     $this->_db = Db_Base::factory();
     $this->_dataBaseName = $dbName;
     $this->_tableName = $tableName;
 }