|
@@ -7,9 +7,12 @@ class Base
|
|
protected $read;
|
|
protected $read;
|
|
protected $update;
|
|
protected $update;
|
|
protected $type;
|
|
protected $type;
|
|
- protected static $instance;
|
|
|
|
|
|
+ public static $instance = array();
|
|
public static function getInstance($key, $setting, $partition)
|
|
public static function getInstance($key, $setting, $partition)
|
|
{
|
|
{
|
|
|
|
+ if ($key == false) {
|
|
|
|
+ print_r(static::$instance);die;
|
|
|
|
+ }
|
|
if (isset($partition['create']) && $partition['create'] && isset($partition['database']) && $partition['database']) {
|
|
if (isset($partition['create']) && $partition['create'] && isset($partition['database']) && $partition['database']) {
|
|
$key .= $partition['database'];
|
|
$key .= $partition['database'];
|
|
$setting['name'] .= '_' . $partition['database'];
|
|
$setting['name'] .= '_' . $partition['database'];
|