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