diff options
author | Felipe Figueroa <amenadiel@gmail.com> | 2018-02-15 17:42:48 +0300 |
---|---|---|
committer | Felipe Figueroa <amenadiel@gmail.com> | 2018-02-15 17:42:48 +0300 |
commit | e455dee82358348b211eb2ac9a38f4c20b132818 (patch) | |
tree | 1c214b28f37e1666b423a6023f7762e65ffdccbb /src/controllers/SqleditController.php | |
parent | 442876ec123baf1c1b1f35daf52ecd0f4db12bc7 (diff) |
fixing coding issues
Diffstat (limited to 'src/controllers/SqleditController.php')
-rw-r--r-- | src/controllers/SqleditController.php | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/src/controllers/SqleditController.php b/src/controllers/SqleditController.php index f7aae884..72d60720 100644 --- a/src/controllers/SqleditController.php +++ b/src/controllers/SqleditController.php @@ -7,19 +7,19 @@ namespace PHPPgAdmin\Controller; */ class SqleditController extends BaseController { - public $_name = 'SqleditController'; - public $query = ''; - public $subject = ''; - public $start_time = null; - public $duration = null; + public $controller_name = 'SqleditController'; + public $query = ''; + public $subject = ''; + public $start_time = null; + public $duration = null; public function render() { - $conf = $this->conf; - $lang = $this->lang; - $misc = $this->misc; + $conf = $this->conf; + $lang = $this->lang; + $action = $this->action; - $data = $misc->getDatabaseAccessor(); + $data = $this->misc->getDatabaseAccessor(); switch ($action) { case 'find': @@ -52,9 +52,9 @@ class SqleditController extends BaseController public function doDefault() { $conf = $this->conf; - $misc = $this->misc; + $lang = $this->lang; - $data = $misc->getDatabaseAccessor(); + $data = $this->misc->getDatabaseAccessor(); if (!isset($_SESSION['sqlquery'])) { $_SESSION['sqlquery'] = ''; @@ -66,7 +66,7 @@ class SqleditController extends BaseController $search_path = htmlspecialchars($_REQUEST['search_path']); $sqlquery = htmlspecialchars($_SESSION['sqlquery']); - $default_html = $this->printTabs($misc->getNavTabs('popup'), 'sql', false); + $default_html = $this->printTabs($this->misc->getNavTabs('popup'), 'sql', false); $default_html .= '<form action="' . SUBFOLDER . '/src/views/sql" method="post" enctype="multipart/form-data" class="sqlform" id="sqlform" target="detail">'; $default_html .= "\n"; @@ -93,7 +93,7 @@ class SqleditController extends BaseController if (ini_get('file_uploads')) { // Don't show upload option if max size of uploads is zero - $max_size = $misc->inisizeToBytes(ini_get('upload_max_filesize')); + $max_size = $this->misc->inisizeToBytes(ini_get('upload_max_filesize')); if (is_double($max_size) && $max_size > 0) { $default_html .= '<p class="upload_sql_script">'; $default_html .= '<input type="hidden" name="MAX_FILE_SIZE" value="' . $max_size . '" />'; @@ -134,9 +134,9 @@ class SqleditController extends BaseController public function _printConnection($action) { $conf = $this->conf; - $misc = $this->misc; + $lang = $this->lang; - $data = $misc->getDatabaseAccessor(); + $data = $this->misc->getDatabaseAccessor(); // The javascript action on the select box reloads the // popup whenever the server or database is changed. @@ -151,7 +151,7 @@ class SqleditController extends BaseController $onchange .= "'&query=' + encodeURI(query.value) + '&search_path=' + encodeURI(search_path.value) + (paginate.checked ? '&paginate=on' : '') + '&'\""; } - return $misc->printConnection($onchange, false); + return $this->misc->printConnection($onchange, false); } /** @@ -160,9 +160,9 @@ class SqleditController extends BaseController public function doFind() { $conf = $this->conf; - $misc = $this->misc; + $lang = $this->lang; - $data = $misc->getDatabaseAccessor(); + $data = $this->misc->getDatabaseAccessor(); if (!isset($_REQUEST['term'])) { $_REQUEST['term'] = ''; @@ -172,7 +172,7 @@ class SqleditController extends BaseController $_REQUEST['filter'] = ''; } - $default_html = $this->printTabs($misc->getNavTabs('popup'), 'find', false); + $default_html = $this->printTabs($this->misc->getNavTabs('popup'), 'find', false); $default_html .= "<form action=\"database.php\" method=\"post\" target=\"detail\">\n"; $default_html .= $this->_printConnection('find'); |