[FIX] Proper getTableName in Base Class

This commit is contained in:
Sebastian Grewe 2013-10-24 12:32:58 +02:00
parent ac5c0fce95
commit 412fbe3f5b
2 changed files with 6 additions and 1 deletions

View File

@ -8,8 +8,12 @@ if (!defined('SECURITY'))
// some cross-class functions.
class Base {
private $sError = '';
protected $table = '';
private $values = array(), $types = '';
public function getTableName() {
return $this->table;
}
public function setDebug($debug) {
$this->debug = $debug;
}

View File

@ -5,7 +5,8 @@ if (!defined('SECURITY'))
die('Hacking attempt');
class Transaction extends Base {
private $sError = '', $table = 'transactions';
private $sError = '';
protected $table = 'transactions';
public $num_rows = 0, $insert_id = 0;
/**