Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/HuasoFoundries/phpPgAdmin6.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Figueroa <amenadiel@gmail.com>2018-04-20 14:40:48 +0300
committerFelipe Figueroa <amenadiel@gmail.com>2018-04-20 14:40:48 +0300
commit501708fb7dfd6c974f58c8d042852fd81c719d72 (patch)
treeb072387f0ba4f314839352e8df8001d3b306a37b /src/controllers/OpclassesController.php
parent51bd2c180d1eaff336e8f738fbd8e83163e9cdf8 (diff)
styling improvements
Diffstat (limited to 'src/controllers/OpclassesController.php')
-rw-r--r--src/controllers/OpclassesController.php31
1 files changed, 13 insertions, 18 deletions
diff --git a/src/controllers/OpclassesController.php b/src/controllers/OpclassesController.php
index 67d5771d..f13943d3 100644
--- a/src/controllers/OpclassesController.php
+++ b/src/controllers/OpclassesController.php
@@ -22,17 +22,14 @@ class OpclassesController extends BaseController
*/
public function render()
{
- $lang = $this->lang;
-
- $action = $this->action;
- if ('tree' == $action) {
+ if ('tree' == $this->action) {
return $this->doTree();
}
- $this->printHeader($lang['stropclasses']);
+ $this->printHeader($this->lang['stropclasses']);
$this->printBody();
- switch ($action) {
+ switch ($this->action) {
default:
$this->doDefault();
@@ -51,7 +48,6 @@ class OpclassesController extends BaseController
*/
public function doDefault($msg = '')
{
- $lang = $this->lang;
$data = $this->misc->getDatabaseAccessor();
$this->printTrail('schema');
@@ -62,31 +58,31 @@ class OpclassesController extends BaseController
$columns = [
'accessmethod' => [
- 'title' => $lang['straccessmethod'],
+ 'title' => $this->lang['straccessmethod'],
'field' => Decorator::field('amname'),
],
- 'opclass' => [
- 'title' => $lang['strname'],
+ 'opclass' => [
+ 'title' => $this->lang['strname'],
'field' => Decorator::field('opcname'),
],
- 'type' => [
- 'title' => $lang['strtype'],
+ 'type' => [
+ 'title' => $this->lang['strtype'],
'field' => Decorator::field('opcintype'),
],
- 'default' => [
- 'title' => $lang['strdefault'],
+ 'default' => [
+ 'title' => $this->lang['strdefault'],
'field' => Decorator::field('opcdefault'),
'type' => 'yesno',
],
- 'comment' => [
- 'title' => $lang['strcomment'],
+ 'comment' => [
+ 'title' => $this->lang['strcomment'],
'field' => Decorator::field('opccomment'),
],
];
$actions = [];
- echo $this->printTable($opclasses, $columns, $actions, 'opclasses-opclasses', $lang['strnoopclasses']);
+ echo $this->printTable($opclasses, $columns, $actions, 'opclasses-opclasses', $this->lang['strnoopclasses']);
}
/**
@@ -94,7 +90,6 @@ class OpclassesController extends BaseController
*/
public function doTree()
{
- $lang = $this->lang;
$data = $this->misc->getDatabaseAccessor();
$opclasses = $data->getOpClasses();