1
0
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:
Jakub Vrana
2025-03-11 07:21:13 +01:00
parent 1b0984ff31
commit ebd5f19dd4
22 changed files with 26 additions and 48 deletions

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerDesigns { class AdminerDesigns {
/** @access protected */ protected $designs;
var $designs;
/** /**
* @param array URL in key, name in value * @param array URL in key, name in value

View File

@@ -8,8 +8,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerDumpBz2 { class AdminerDumpBz2 {
/** @access protected */ protected $filename, $fp;
var $filename, $fp;
function dumpOutput() { function dumpOutput() {
if (!function_exists('bzopen')) { if (!function_exists('bzopen')) {

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerDumpJson { class AdminerDumpJson {
/** @access protected */ protected $database = false;
var $database = false;
function dumpFormat() { function dumpFormat() {
return array('json' => 'JSON'); return array('json' => 'JSON');

View File

@@ -6,8 +6,8 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerDumpPhp { class AdminerDumpPhp {
var $output = array(); protected $output = array();
var $shutdown_callback = false; protected $shutdown_callback = false;
function dumpFormat() { function dumpFormat() {
return array('php' => 'PHP'); return array('php' => 'PHP');

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerDumpXml { class AdminerDumpXml {
/** @access protected */ protected $database = false;
var $database = false;
function dumpFormat() { function dumpFormat() {
return array('xml' => 'XML'); return array('xml' => 'XML');

View File

@@ -8,8 +8,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerDumpZip { class AdminerDumpZip {
/** @access protected */ protected $filename, $data;
var $filename, $data;
function dumpOutput() { function dumpOutput() {
if (!class_exists('ZipArchive')) { if (!class_exists('ZipArchive')) {

View File

@@ -9,8 +9,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerEditCalendar { class AdminerEditCalendar {
/** @access protected */ protected $prepend, $langPath;
var $prepend, $langPath;
/** /**
* @param string text to append before first calendar usage * @param string text to append before first calendar usage

View File

@@ -7,10 +7,10 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerEditForeign { class AdminerEditForeign {
var $_limit; protected $limit;
function __construct($limit = 0) { function __construct($limit = 0) {
$this->_limit = $limit; $this->limit = $limit;
} }
function editInput($table, $field, $attrs, $value) { function editInput($table, $field, $attrs, $value) {
@@ -30,8 +30,8 @@ class AdminerEditForeign {
if (preg_match('~binary~', $field["type"])) { if (preg_match('~binary~', $field["type"])) {
$column = "HEX($column)"; $column = "HEX($column)";
} }
$options = array("" => "") + Adminer\get_vals("SELECT $column FROM " . Adminer\table($target) . " ORDER BY 1" . ($this->_limit ? " LIMIT " . ($this->_limit + 1) : "")); $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) { if ($this->limit && count($options) - 1 > $this->limit) {
return; return;
} }
} }

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerEmailTable { class AdminerEmailTable {
/** @access protected */ protected $table, $id, $title, $subject, $message;
var $table, $id, $title, $subject, $message;
/** /**
* @param string quoted table name * @param string quoted table name

View File

@@ -8,8 +8,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerFileUpload { class AdminerFileUpload {
/** @access protected */ protected $uploadPath, $displayPath, $extensions;
var $uploadPath, $displayPath, $extensions;
/** /**
* @param string prefix for uploading data (create writable subdirectory for each table containing uploadable fields) * @param string prefix for uploading data (create writable subdirectory for each table containing uploadable fields)

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerFrames { class AdminerFrames {
/** @access protected */ protected $sameOrigin;
var $sameOrigin;
/** /**
* @param bool allow running from the same origin only * @param bool allow running from the same origin only

View File

@@ -7,10 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerLoginIp { class AdminerLoginIp {
/** @access protected */ protected $ips, $forwarded_for;
var $ips;
/** @access protected */
var $forwarded_for;
/** Set allowed IP addresses /** Set allowed IP addresses
* @param array IP address prefixes * @param array IP address prefixes

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerLoginOtp { class AdminerLoginOtp {
/** @access protected */ protected $secret;
var $secret;
/** /**
* @param string decoded secret, e.g. base64_decode("SECRET") * @param string decoded secret, e.g. base64_decode("SECRET")

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerLoginPasswordLess { class AdminerLoginPasswordLess {
/** @access protected */ protected $password_hash;
var $password_hash;
/** Set allowed password /** Set allowed password
* @param string result of password_hash * @param string result of password_hash

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerLoginServers { class AdminerLoginServers {
/** @access protected */ protected $servers;
var $servers;
/** Set supported servers /** Set supported servers
* @param array [$description => ["server" => , "driver" => "server|pgsql|sqlite|..."]] * @param array [$description => ["server" => , "driver" => "server|pgsql|sqlite|..."]]

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerLoginSsl { class AdminerLoginSsl {
/** @access protected */ protected $ssl;
var $ssl;
/** /**
* @param array * @param array

View File

@@ -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) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerLoginTable { class AdminerLoginTable {
/** @access protected */ protected $database;
var $database;
/** Set database of login table /** Set database of login table
* @param string * @param string

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerPlugin extends Adminer\Adminer { class AdminerPlugin extends Adminer\Adminer {
/** @access protected */ protected $plugins;
var $plugins;
/** Register plugins /** Register plugins
* @param array object instances or null to register all classes starting by 'Adminer' * @param array object instances or null to register all classes starting by 'Adminer'

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerSlugify { class AdminerSlugify {
/** @access protected */ protected $from, $to;
var $from, $to;
/** /**
* @param string find these characters ... * @param string find these characters ...

View File

@@ -7,8 +7,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerSqlLog { class AdminerSqlLog {
/** @access protected */ protected $filename;
var $filename;
/** /**
* @param string defaults to "$database.sql" * @param string defaults to "$database.sql"

View File

@@ -8,8 +8,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerTinymce { class AdminerTinymce {
/** @access protected */ protected $path;
var $path;
/** /**
* @param string * @param string

View File

@@ -8,8 +8,7 @@
* @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other) * @license https://www.gnu.org/licenses/gpl-2.0.html GNU General Public License, version 2 (one or other)
*/ */
class AdminerWymeditor { class AdminerWymeditor {
/** @access protected */ protected $scripts, $options;
var $scripts, $options;
/** /**
* @param array * @param array