1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Change var to public

This commit is contained in:
Jakub Vrana
2025-03-11 08:08:32 +01:00
parent 0c15a9f42d
commit 1e963cf90f
14 changed files with 75 additions and 75 deletions

View File

@@ -8,9 +8,9 @@ if (isset($_GET["clickhouse"])) {
if (ini_bool('allow_url_fopen')) {
class Db {
var $extension = "JSON", $server_info, $errno, $error;
public $extension = "JSON", $server_info, $errno, $error;
public $_db = 'default';
private $result, $url;
var $_db = 'default';
function rootQuery($db, $query) {
$file = @file_get_contents("$this->url/?database=$db", false, stream_context_create(array('http' => array(
@@ -91,7 +91,7 @@ if (isset($_GET["clickhouse"])) {
}
class Result {
var $num_rows, $columns, $meta;
public $num_rows, $columns, $meta;
private $rows, $offset = 0;
function __construct($result) {
@@ -137,8 +137,8 @@ if (isset($_GET["clickhouse"])) {
static $possibleDrivers = array("allow_url_fopen");
static $jush = "clickhouse";
var $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL", "SQL");
var $grouping = array("avg", "count", "count distinct", "max", "min", "sum");
public $operators = array("=", "<", ">", "<=", ">=", "!=", "~", "!~", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "NOT IN", "IS NOT NULL", "SQL");
public $grouping = array("avg", "count", "count distinct", "max", "min", "sum");
function __construct($connection) {
parent::__construct($connection);

View File

@@ -9,7 +9,7 @@ if (isset($_GET["elastic"])) {
if (ini_bool('allow_url_fopen')) {
class Db {
var $extension = "JSON", $server_info, $errno, $error;
public $extension = "JSON", $server_info, $errno, $error;
private $url;
/**
@@ -97,7 +97,7 @@ if (isset($_GET["elastic"])) {
}
class Result {
var $num_rows;
public $num_rows;
private $rows;
function __construct($rows) {
@@ -126,8 +126,8 @@ if (isset($_GET["elastic"])) {
static $possibleDrivers = array("json + allow_url_fopen");
static $jush = "elastic";
var $editFunctions = array(array("json"));
var $operators = array("=", "must", "should", "must_not");
public $editFunctions = array(array("json"));
public $operators = array("=", "must", "should", "must_not");
function __construct($connection) {
parent::__construct($connection);

View File

@@ -12,7 +12,7 @@ if (isset($_GET["firebird"])) {
if (extension_loaded("interbase")) {
class Db {
var
public
$extension = "Firebird",
$server_info,
$affected_rows,
@@ -81,7 +81,7 @@ if (isset($_GET["firebird"])) {
}
class Result {
var $num_rows;
public $num_rows;
private $result, $offset = 0;
function __construct($result) {
@@ -120,7 +120,7 @@ if (isset($_GET["firebird"])) {
static $possibleDrivers = array("interbase");
static $jush = "firebird";
var $operators = array("=");
public $operators = array("=");
}

View File

@@ -8,7 +8,7 @@ if (isset($_GET["simpledb"])) {
if (class_exists('SimpleXMLElement') && ini_bool('allow_url_fopen')) {
class Db {
var $extension = "SimpleXML", $server_info = '2009-04-15', $error, $timeout, $next, $affected_rows;
public $extension = "SimpleXML", $server_info = '2009-04-15', $error, $timeout, $next, $affected_rows;
private $result;
function select_db($database) {
@@ -56,7 +56,7 @@ if (isset($_GET["simpledb"])) {
}
class Result {
var $num_rows;
public $num_rows;
private $rows = array(), $offset = 0;
function __construct($result) {
@@ -123,8 +123,8 @@ if (isset($_GET["simpledb"])) {
static $possibleDrivers = array("SimpleXML + allow_url_fopen");
static $jush = "simpledb";
var $operators = array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "IS NOT NULL");
var $grouping = array("count");
public $operators = array("=", "<", ">", "<=", ">=", "!=", "LIKE", "LIKE %%", "IN", "IS NULL", "NOT LIKE", "IS NOT NULL");
public $grouping = array("count");
public $primary = "itemName()";