SDb::__construct PHP Method

__construct() public method

构造方法
public __construct ( string $table_name = "", $config = [] ) : void
$table_name string
return void
    public function __construct($table_name = "", $config = array())
    {
        if (!empty($table_name)) {
            $this->table_name = $table_name;
        }
        if (!empty($config)) {
            parent::init($config);
        }
        $this->_fields = new stdclass();
    }