mirror of
https://github.com/vrana/adminer.git
synced 2025-08-06 14:46:36 +02:00
Use protected visibility
This commit is contained in:
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerDesigns {
|
||||
/** @access protected */
|
||||
var $designs;
|
||||
protected $designs;
|
||||
|
||||
/**
|
||||
* @param array URL in key, name in value
|
||||
|
@@ -8,8 +8,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerDumpBz2 {
|
||||
/** @access protected */
|
||||
var $filename, $fp;
|
||||
protected $filename, $fp;
|
||||
|
||||
function dumpOutput() {
|
||||
if (!function_exists('bzopen')) {
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerDumpJson {
|
||||
/** @access protected */
|
||||
var $database = false;
|
||||
protected $database = false;
|
||||
|
||||
function dumpFormat() {
|
||||
return array('json' => 'JSON');
|
||||
|
@@ -6,8 +6,8 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerDumpPhp {
|
||||
var $output = array();
|
||||
var $shutdown_callback = false;
|
||||
protected $output = array();
|
||||
protected $shutdown_callback = false;
|
||||
|
||||
function dumpFormat() {
|
||||
return array('php' => 'PHP');
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerDumpXml {
|
||||
/** @access protected */
|
||||
var $database = false;
|
||||
protected $database = false;
|
||||
|
||||
function dumpFormat() {
|
||||
return array('xml' => 'XML');
|
||||
|
@@ -8,8 +8,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerDumpZip {
|
||||
/** @access protected */
|
||||
var $filename, $data;
|
||||
protected $filename, $data;
|
||||
|
||||
function dumpOutput() {
|
||||
if (!class_exists('ZipArchive')) {
|
||||
|
@@ -9,8 +9,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerEditCalendar {
|
||||
/** @access protected */
|
||||
var $prepend, $langPath;
|
||||
protected $prepend, $langPath;
|
||||
|
||||
/**
|
||||
* @param string text to append before first calendar usage
|
||||
|
@@ -7,10 +7,10 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerEditForeign {
|
||||
var $_limit;
|
||||
protected $limit;
|
||||
|
||||
function __construct($limit = 0) {
|
||||
$this->_limit = $limit;
|
||||
$this->limit = $limit;
|
||||
}
|
||||
|
||||
function editInput($table, $field, $attrs, $value) {
|
||||
@@ -30,8 +30,8 @@ class AdminerEditForeign {
|
||||
if (preg_match('~binary~', $field["type"])) {
|
||||
$column = "HEX($column)";
|
||||
}
|
||||
$options = array("" => "") + Adminer\get_vals("SELECT $column FROM " . Adminer\table($target) . " ORDER BY 1" . ($this->_limit ? " LIMIT " . ($this->_limit + 1) : ""));
|
||||
if ($this->_limit && count($options) - 1 > $this->_limit) {
|
||||
$options = array("" => "") + Adminer\get_vals("SELECT $column FROM " . Adminer\table($target) . " ORDER BY 1" . ($this->limit ? " LIMIT " . ($this->limit + 1) : ""));
|
||||
if ($this->limit && count($options) - 1 > $this->limit) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerEmailTable {
|
||||
/** @access protected */
|
||||
var $table, $id, $title, $subject, $message;
|
||||
protected $table, $id, $title, $subject, $message;
|
||||
|
||||
/**
|
||||
* @param string quoted table name
|
||||
|
@@ -8,8 +8,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerFileUpload {
|
||||
/** @access protected */
|
||||
var $uploadPath, $displayPath, $extensions;
|
||||
protected $uploadPath, $displayPath, $extensions;
|
||||
|
||||
/**
|
||||
* @param string prefix for uploading data (create writable subdirectory for each table containing uploadable fields)
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerFrames {
|
||||
/** @access protected */
|
||||
var $sameOrigin;
|
||||
protected $sameOrigin;
|
||||
|
||||
/**
|
||||
* @param bool allow running from the same origin only
|
||||
|
@@ -7,10 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerLoginIp {
|
||||
/** @access protected */
|
||||
var $ips;
|
||||
/** @access protected */
|
||||
var $forwarded_for;
|
||||
protected $ips, $forwarded_for;
|
||||
|
||||
/** Set allowed IP addresses
|
||||
* @param array IP address prefixes
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerLoginOtp {
|
||||
/** @access protected */
|
||||
var $secret;
|
||||
protected $secret;
|
||||
|
||||
/**
|
||||
* @param string decoded secret, e.g. base64_decode("SECRET")
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerLoginPasswordLess {
|
||||
/** @access protected */
|
||||
var $password_hash;
|
||||
protected $password_hash;
|
||||
|
||||
/** Set allowed password
|
||||
* @param string result of password_hash
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerLoginServers {
|
||||
/** @access protected */
|
||||
var $servers;
|
||||
protected $servers;
|
||||
|
||||
/** Set supported servers
|
||||
* @param array [$description => ["server" => , "driver" => "server|pgsql|sqlite|..."]]
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerLoginSsl {
|
||||
/** @access protected */
|
||||
var $ssl;
|
||||
protected $ssl;
|
||||
|
||||
/**
|
||||
* @param array
|
||||
|
@@ -16,8 +16,7 @@ CREATE TABLE login (
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerLoginTable {
|
||||
/** @access protected */
|
||||
var $database;
|
||||
protected $database;
|
||||
|
||||
/** Set database of login table
|
||||
* @param string
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerPlugin extends Adminer\Adminer {
|
||||
/** @access protected */
|
||||
var $plugins;
|
||||
protected $plugins;
|
||||
|
||||
/** Register plugins
|
||||
* @param array object instances or null to register all classes starting by 'Adminer'
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerSlugify {
|
||||
/** @access protected */
|
||||
var $from, $to;
|
||||
protected $from, $to;
|
||||
|
||||
/**
|
||||
* @param string find these characters ...
|
||||
|
@@ -7,8 +7,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerSqlLog {
|
||||
/** @access protected */
|
||||
var $filename;
|
||||
protected $filename;
|
||||
|
||||
/**
|
||||
* @param string defaults to "$database.sql"
|
||||
|
@@ -8,8 +8,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerTinymce {
|
||||
/** @access protected */
|
||||
var $path;
|
||||
protected $path;
|
||||
|
||||
/**
|
||||
* @param string
|
||||
|
@@ -8,8 +8,7 @@
|
||||
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
|
||||
*/
|
||||
class AdminerWymeditor {
|
||||
/** @access protected */
|
||||
var $scripts, $options;
|
||||
protected $scripts, $options;
|
||||
|
||||
/**
|
||||
* @param array
|
||||
|
Reference in New Issue
Block a user