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-03-15 02:02:10 +0300
committerFelipe Figueroa <amenadiel@gmail.com>2018-03-15 02:02:10 +0300
commit49270fe791619ba2d0dbf666cfa66ca80457dd44 (patch)
tree916738a0243836b5cfba76c470b083bd4e344ed1 /src/controllers/TablespacesController.php
parentc2a9af3868f88a47497b88b0dbd3ac4994e01670 (diff)
add package tag to controllers
Diffstat (limited to 'src/controllers/TablespacesController.php')
-rw-r--r--src/controllers/TablespacesController.php39
1 files changed, 20 insertions, 19 deletions
diff --git a/src/controllers/TablespacesController.php b/src/controllers/TablespacesController.php
index 2f18b92b..544ca830 100644
--- a/src/controllers/TablespacesController.php
+++ b/src/controllers/TablespacesController.php
@@ -8,6 +8,7 @@ namespace PHPPgAdmin\Controller;
/**
* Base controller class.
+ *
* @package PHPPgAdmin
*/
class TablespacesController extends BaseController
@@ -19,7 +20,7 @@ class TablespacesController extends BaseController
*/
public function render()
{
- $lang = $this->lang;
+ $lang = $this->lang;
$action = $this->action;
$this->printHeader($lang['strtablespaces']);
@@ -92,7 +93,7 @@ class TablespacesController extends BaseController
'title' => $lang['strname'],
'field' => \PHPPgAdmin\Decorators\Decorator::field('spcname'),
],
- 'owner' => [
+ 'owner' => [
'title' => $lang['strowner'],
'field' => \PHPPgAdmin\Decorators\Decorator::field('spcowner'),
],
@@ -100,7 +101,7 @@ class TablespacesController extends BaseController
'title' => $lang['strlocation'],
'field' => \PHPPgAdmin\Decorators\Decorator::field('spclocation'),
],
- 'actions' => [
+ 'actions' => [
'title' => $lang['stractions'],
],
];
@@ -113,25 +114,25 @@ class TablespacesController extends BaseController
}
$actions = [
- 'alter' => [
+ 'alter' => [
'content' => $lang['stralter'],
- 'attr' => [
+ 'attr' => [
'href' => [
- 'url' => 'tablespaces.php',
+ 'url' => 'tablespaces.php',
'urlvars' => [
- 'action' => 'edit',
+ 'action' => 'edit',
'tablespace' => \PHPPgAdmin\Decorators\Decorator::field('spcname'),
],
],
],
],
- 'drop' => [
+ 'drop' => [
'content' => $lang['strdrop'],
- 'attr' => [
+ 'attr' => [
'href' => [
- 'url' => 'tablespaces.php',
+ 'url' => 'tablespaces.php',
'urlvars' => [
- 'action' => 'confirm_drop',
+ 'action' => 'confirm_drop',
'tablespace' => \PHPPgAdmin\Decorators\Decorator::field('spcname'),
],
],
@@ -139,11 +140,11 @@ class TablespacesController extends BaseController
],
'privileges' => [
'content' => $lang['strprivileges'],
- 'attr' => [
+ 'attr' => [
'href' => [
- 'url' => 'privileges.php',
+ 'url' => 'privileges.php',
'urlvars' => [
- 'subject' => 'tablespace',
+ 'subject' => 'tablespace',
'tablespace' => \PHPPgAdmin\Decorators\Decorator::field('spcname'),
],
],
@@ -154,9 +155,9 @@ class TablespacesController extends BaseController
echo $this->printTable($tablespaces, $columns, $actions, 'tablespaces-tablespaces', $lang['strnotablespaces']);
$this->printNavLinks(['create' => [
- 'attr' => [
+ 'attr' => [
'href' => [
- 'url' => 'tablespaces.php',
+ 'url' => 'tablespaces.php',
'urlvars' => [
'action' => 'create',
'server' => $_REQUEST['server'],
@@ -199,7 +200,7 @@ class TablespacesController extends BaseController
$_POST['comment'] = ($data->hasSharedComments()) ? $tablespace->fields['spccomment'] : '';
}
- echo '<form action="' . \SUBFOLDER . "/src/views/tablespaces.php\" method=\"post\">\n";
+ echo '<form action="'.\SUBFOLDER."/src/views/tablespaces.php\" method=\"post\">\n";
echo $this->misc->form;
echo "<table>\n";
echo "<tr><th class=\"data left required\">{$lang['strname']}</th>\n";
@@ -274,7 +275,7 @@ class TablespacesController extends BaseController
echo '<p>', sprintf($lang['strconfdroptablespace'], $this->misc->printVal($_REQUEST['tablespace'])), "</p>\n";
- echo '<form action="' . \SUBFOLDER . "/src/views/tablespaces.php\" method=\"post\">\n";
+ echo '<form action="'.\SUBFOLDER."/src/views/tablespaces.php\" method=\"post\">\n";
echo $this->misc->form;
echo "<input type=\"hidden\" name=\"action\" value=\"drop\" />\n";
echo '<input type="hidden" name="tablespace" value="', htmlspecialchars($_REQUEST['tablespace']), "\" />\n";
@@ -326,7 +327,7 @@ class TablespacesController extends BaseController
$this->printTitle($lang['strcreatetablespace'], 'pg.tablespace.create');
$this->printMsg($msg);
- echo '<form action="' . \SUBFOLDER . "/src/views/tablespaces.php\" method=\"post\">\n";
+ echo '<form action="'.\SUBFOLDER."/src/views/tablespaces.php\" method=\"post\">\n";
echo $this->misc->form;
echo "<table>\n";
echo "\t<tr>\n\t\t<th class=\"data left required\">{$lang['strname']}</th>\n";