@@ -6,6 +6,10 @@ |
||
6 | 6 | { |
7 | 7 | public $_data; |
8 | 8 | |
9 | + /** |
|
10 | + * @param string $name |
|
11 | + * @param integer $size |
|
12 | + */ |
|
9 | 13 | public function __construct($name, $multiple = false, $size = null) |
10 | 14 | { |
11 | 15 | parent::__construct(); |
@@ -102,6 +102,9 @@ |
||
102 | 102 | return $request_server; |
103 | 103 | } |
104 | 104 | |
105 | + /** |
|
106 | + * @return string |
|
107 | + */ |
|
105 | 108 | public function getServerId() |
106 | 109 | { |
107 | 110 | if ($this->_server_id) { |
@@ -389,7 +389,7 @@ |
||
389 | 389 | /** |
390 | 390 | * Show confirmation of drop and perform actual drop of the aggregate function selected. |
391 | 391 | * |
392 | - * @param mixed $confirm |
|
392 | + * @param boolean $confirm |
|
393 | 393 | */ |
394 | 394 | public function doDrop($confirm) |
395 | 395 | { |
@@ -253,7 +253,7 @@ discard block |
||
253 | 253 | /** |
254 | 254 | * Display a form for alter and perform actual alter. |
255 | 255 | * |
256 | - * @param mixed $confirm |
|
256 | + * @param boolean $confirm |
|
257 | 257 | */ |
258 | 258 | public function doAlter($confirm) |
259 | 259 | { |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | /** |
321 | 321 | * Show confirmation of drop and perform actual drop. |
322 | 322 | * |
323 | - * @param mixed $confirm |
|
323 | + * @param boolean $confirm |
|
324 | 324 | */ |
325 | 325 | public function doDrop($confirm) |
326 | 326 | { |
@@ -61,7 +61,6 @@ discard block |
||
61 | 61 | * Constructs the base controller (common for almost all controllers). |
62 | 62 | * |
63 | 63 | * @param \Slim\Container $container the $app container |
64 | - * @param bool $no_db_connection [optional] if true, sets $this->misc->setNoDBConnection(true); |
|
65 | 64 | */ |
66 | 65 | public function __construct(\Slim\Container $container) |
67 | 66 | { |
@@ -269,6 +268,9 @@ discard block |
||
269 | 268 | return $footer_controller->printNavLinks($navlinks, $place, $env, $do_print, $from); |
270 | 269 | } |
271 | 270 | |
271 | + /** |
|
272 | + * @param string $activetab |
|
273 | + */ |
|
272 | 274 | public function printTabs($tabs, $activetab, $do_print = true) |
273 | 275 | { |
274 | 276 | $from = __METHOD__; |
@@ -277,6 +279,9 @@ discard block |
||
277 | 279 | return $html_trail->printTabs($tabs, $activetab, $do_print, $from); |
278 | 280 | } |
279 | 281 | |
282 | + /** |
|
283 | + * @param string $from |
|
284 | + */ |
|
280 | 285 | public function printLink($link, $do_print = true, $from = null) |
281 | 286 | { |
282 | 287 | if (null === $from) { |
@@ -288,6 +293,9 @@ discard block |
||
288 | 293 | return $html_trail->printLink($link, $do_print, $from); |
289 | 294 | } |
290 | 295 | |
296 | + /** |
|
297 | + * @param boolean $flag |
|
298 | + */ |
|
291 | 299 | public function setReloadDropDatabase($flag) |
292 | 300 | { |
293 | 301 | $footer_controller = $this->_getFooterController(); |
@@ -295,6 +303,9 @@ discard block |
||
295 | 303 | return $footer_controller->setReloadDropDatabase($flag); |
296 | 304 | } |
297 | 305 | |
306 | + /** |
|
307 | + * @param boolean $flag |
|
308 | + */ |
|
298 | 309 | public function setNoBottomLink($flag) |
299 | 310 | { |
300 | 311 | $footer_controller = $this->_getFooterController(); |
@@ -319,7 +330,7 @@ discard block |
||
319 | 330 | /** |
320 | 331 | * Outputs JavaScript to set default focus. |
321 | 332 | * |
322 | - * @param mixed $object eg. forms[0].username |
|
333 | + * @param string $object eg. forms[0].username |
|
323 | 334 | */ |
324 | 335 | public function setFocus($object) |
325 | 336 | { |
@@ -342,6 +353,9 @@ discard block |
||
342 | 353 | return $footer_controller->setWindowName($name, $addServer); |
343 | 354 | } |
344 | 355 | |
356 | + /** |
|
357 | + * @param boolean $flag |
|
358 | + */ |
|
345 | 359 | public function setNoOutput($flag) |
346 | 360 | { |
347 | 361 | $header_controller = $this->_getHeaderController(); |
@@ -364,6 +378,9 @@ discard block |
||
364 | 378 | return $header_controller->printBody($doBody, $bodyClass, $onloadInit); |
365 | 379 | } |
366 | 380 | |
381 | + /** |
|
382 | + * @param string $help |
|
383 | + */ |
|
367 | 384 | public function printTitle($title, $help = null, $do_print = true) |
368 | 385 | { |
369 | 386 | $header_controller = $this->_getHeaderController(); |
@@ -371,11 +388,22 @@ discard block |
||
371 | 388 | return $header_controller->printTitle($title, $help, $do_print); |
372 | 389 | } |
373 | 390 | |
391 | + /** |
|
392 | + * @param string $key |
|
393 | + * @param string $default |
|
394 | + * |
|
395 | + * @return string |
|
396 | + */ |
|
374 | 397 | public function getRequestParam($key, $default = null) |
375 | 398 | { |
376 | 399 | return $this->container->requestobj->getParam($key, $default); |
377 | 400 | } |
378 | 401 | |
402 | + /** |
|
403 | + * @param string $key |
|
404 | + * |
|
405 | + * @return string |
|
406 | + */ |
|
379 | 407 | public function getPostParam($key, $default = null) |
380 | 408 | { |
381 | 409 | return $this->container->requestobj->getParsedBodyParam($key, $default); |
@@ -657,7 +657,7 @@ |
||
657 | 657 | /** |
658 | 658 | * Confirm and then actually add a CHECK constraint. |
659 | 659 | * |
660 | - * @param mixed $confirm |
|
660 | + * @param boolean $confirm |
|
661 | 661 | * @param mixed $msg |
662 | 662 | */ |
663 | 663 | public function addCheck($confirm, $msg = '') |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | /** |
171 | 171 | * Searches for a named database object. |
172 | 172 | * |
173 | - * @param mixed $confirm |
|
173 | + * @param boolean $confirm |
|
174 | 174 | * @param mixed $msg |
175 | 175 | */ |
176 | 176 | public function printFindForm($confirm = true, $msg = '') |
@@ -230,6 +230,9 @@ discard block |
||
230 | 230 | } |
231 | 231 | } |
232 | 232 | |
233 | + /** |
|
234 | + * @param string $curr |
|
235 | + */ |
|
233 | 236 | private function _printTypeOption($curr) |
234 | 237 | { |
235 | 238 | $filter = $_REQUEST['filter']; |
@@ -93,6 +93,10 @@ |
||
93 | 93 | return $this->mimicDumpFeature($format, $clean, $oids); |
94 | 94 | } |
95 | 95 | |
96 | + /** |
|
97 | + * @param boolean $clean |
|
98 | + * @param boolean $oids |
|
99 | + */ |
|
96 | 100 | protected function mimicDumpFeature($format, $clean, $oids) |
97 | 101 | { |
98 | 102 | $data = $this->misc->getDatabaseAccessor(); |
@@ -275,6 +275,9 @@ discard block |
||
275 | 275 | return [$query, $title, $type]; |
276 | 276 | } |
277 | 277 | |
278 | + /** |
|
279 | + * @param string $type |
|
280 | + */ |
|
278 | 281 | public function getBrowseNavLinks($type, $_gets, $page, $subject, $object, $resultset) |
279 | 282 | { |
280 | 283 | $fields = [ |
@@ -556,6 +559,11 @@ discard block |
||
556 | 559 | echo $paginator; |
557 | 560 | } |
558 | 561 | |
562 | + /** |
|
563 | + * @param \PHPPgAdmin\ADORecordSet $resultset |
|
564 | + * @param boolean $display_action_column |
|
565 | + * @param string $buttonclass |
|
566 | + */ |
|
559 | 567 | private function _printResultsTableActionButtons($resultset, $key, $actions, $display_action_column, $buttonclass) |
560 | 568 | { |
561 | 569 | if (!$display_action_column) { |
@@ -684,6 +692,9 @@ discard block |
||
684 | 692 | } |
685 | 693 | } |
686 | 694 | |
695 | + /** |
|
696 | + * @param \PHPPgAdmin\ADORecordSet $resultset |
|
697 | + */ |
|
687 | 698 | private function _printFKLinks($resultset, $fkey_information, $k, $v, &$printvalOpts) |
688 | 699 | { |
689 | 700 | if ((null === $v) || !isset($fkey_information['byfield'][$k])) { |
@@ -709,6 +720,9 @@ discard block |
||
709 | 720 | $printvalOpts['class'] = 'fk_value'; |
710 | 721 | } |
711 | 722 | |
723 | + /** |
|
724 | + * @param string $key |
|
725 | + */ |
|
712 | 726 | private function _unserializeIfNotArray($the_array, $key) |
713 | 727 | { |
714 | 728 | if (!isset($the_array[$key])) { |
@@ -896,7 +910,7 @@ discard block |
||
896 | 910 | /** |
897 | 911 | * Show confirmation of drop and perform actual drop. |
898 | 912 | * |
899 | - * @param mixed $confirm |
|
913 | + * @param boolean $confirm |
|
900 | 914 | */ |
901 | 915 | public function doDelRow($confirm) |
902 | 916 | { |
@@ -1066,6 +1080,10 @@ discard block |
||
1066 | 1080 | echo '</div>'; |
1067 | 1081 | } |
1068 | 1082 | |
1083 | + /** |
|
1084 | + * @param integer $page |
|
1085 | + * @param integer $pages |
|
1086 | + */ |
|
1069 | 1087 | private function _getMinMaxPages($page, $pages) |
1070 | 1088 | { |
1071 | 1089 | $window = 10; |