[FIX] Proper getTableName in Base Class
This commit is contained in:
parent
ac5c0fce95
commit
412fbe3f5b
@ -8,8 +8,12 @@ if (!defined('SECURITY'))
|
|||||||
// some cross-class functions.
|
// some cross-class functions.
|
||||||
class Base {
|
class Base {
|
||||||
private $sError = '';
|
private $sError = '';
|
||||||
|
protected $table = '';
|
||||||
private $values = array(), $types = '';
|
private $values = array(), $types = '';
|
||||||
|
|
||||||
|
public function getTableName() {
|
||||||
|
return $this->table;
|
||||||
|
}
|
||||||
public function setDebug($debug) {
|
public function setDebug($debug) {
|
||||||
$this->debug = $debug;
|
$this->debug = $debug;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,7 +5,8 @@ if (!defined('SECURITY'))
|
|||||||
die('Hacking attempt');
|
die('Hacking attempt');
|
||||||
|
|
||||||
class Transaction extends Base {
|
class Transaction extends Base {
|
||||||
private $sError = '', $table = 'transactions';
|
private $sError = '';
|
||||||
|
protected $table = 'transactions';
|
||||||
public $num_rows = 0, $insert_id = 0;
|
public $num_rows = 0, $insert_id = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user