@@ -25,6 +25,11 @@ |
||
25 | 25 | public $host = ''; |
26 | 26 | public $database = ''; |
27 | 27 | |
28 | + /** |
|
29 | + * @param string $errmsg |
|
30 | + * @param string $p1 |
|
31 | + * @param string $p2 |
|
32 | + */ |
|
28 | 33 | public function __construct($dbms, $fn, $errno, $errmsg, $p1, $p2, $thisConnection) |
29 | 34 | { |
30 | 35 | switch ($fn) { |
@@ -2413,7 +2413,7 @@ |
||
2413 | 2413 | * Does the bulk of the syntax highlighting by lexing the input |
2414 | 2414 | * string, then calling the helper function to highlight keywords. |
2415 | 2415 | * |
2416 | - * @param $text |
|
2416 | + * @param string $text |
|
2417 | 2417 | * @param $language |
2418 | 2418 | * @return string |
2419 | 2419 | */ |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | /** |
121 | 121 | * Displays link to the context help. |
122 | 122 | * @param $str - the string that the context help is related to (already escaped) |
123 | - * @param $help - help section identifier |
|
123 | + * @param string $help - help section identifier |
|
124 | 124 | * @param $do_print true to echo, false to return |
125 | 125 | */ |
126 | 126 | public function printHelp($str, $help = null, $do_print = true) |
@@ -345,6 +345,9 @@ discard block |
||
345 | 345 | return $this->data; |
346 | 346 | } |
347 | 347 | |
348 | + /** |
|
349 | + * @param string $server_id |
|
350 | + */ |
|
348 | 351 | public function getConnection($database = '', $server_id = null) |
349 | 352 | { |
350 | 353 | $lang = $this->lang; |
@@ -449,7 +452,7 @@ discard block |
||
449 | 452 | |
450 | 453 | /** |
451 | 454 | * Set server information. |
452 | - * @param $key parameter name to set, or null to replace all |
|
455 | + * @param null|string $key parameter name to set, or null to replace all |
|
453 | 456 | * params with the assoc-array in $value. |
454 | 457 | * @param $value the new value, or null to unset the parameter |
455 | 458 | * @param $server_id the server identifier, or null for current |
@@ -338,6 +338,7 @@ discard block |
||
338 | 338 | |
339 | 339 | /** |
340 | 340 | * Add or Edit autovacuum params and save them |
341 | + * @param boolean $confirm |
|
341 | 342 | */ |
342 | 343 | public function doEditAutovacuum($type, $confirm, $msg = '') |
343 | 344 | { |
@@ -454,6 +455,7 @@ discard block |
||
454 | 455 | |
455 | 456 | /** |
456 | 457 | * confirm drop autovacuum params for a table and drop it |
458 | + * @param boolean $confirm |
|
457 | 459 | */ |
458 | 460 | public function doDropAutovacuum($type, $confirm) |
459 | 461 | { |
@@ -736,6 +738,10 @@ discard block |
||
736 | 738 | } |
737 | 739 | } |
738 | 740 | |
741 | + /** |
|
742 | + * @param string $action |
|
743 | + * @param string $type |
|
744 | + */ |
|
739 | 745 | public function adminActions($action, $type) |
740 | 746 | { |
741 | 747 | if ($type == 'database') { |
@@ -388,6 +388,7 @@ |
||
388 | 388 | |
389 | 389 | /** |
390 | 390 | * Show confirmation of drop and perform actual drop of the aggregate function selected |
391 | + * @param boolean $confirm |
|
391 | 392 | */ |
392 | 393 | public function doDrop($confirm) |
393 | 394 | { |
@@ -239,6 +239,7 @@ discard block |
||
239 | 239 | |
240 | 240 | /** |
241 | 241 | * Display a form for alter and perform actual alter |
242 | + * @param boolean $confirm |
|
242 | 243 | */ |
243 | 244 | public function doAlter($confirm) |
244 | 245 | { |
@@ -311,6 +312,7 @@ discard block |
||
311 | 312 | |
312 | 313 | /** |
313 | 314 | * Show confirmation of drop and perform actual drop |
315 | + * @param boolean $confirm |
|
314 | 316 | */ |
315 | 317 | public function doDrop($confirm) |
316 | 318 | { |
@@ -162,9 +162,9 @@ discard block |
||
162 | 162 | * @param [type] &$tabledata [description] |
163 | 163 | * @param [type] &$columns [description] |
164 | 164 | * @param [type] &$actions [description] |
165 | - * @param [type] $place [description] |
|
165 | + * @param string $place [description] |
|
166 | 166 | * @param [type] $nodata [description] |
167 | - * @param [type] $pre_fn [description] |
|
167 | + * @param \Closure $pre_fn [description] |
|
168 | 168 | * @return [type] [description] |
169 | 169 | */ |
170 | 170 | public function printTable(&$tabledata, &$columns, &$actions, $place, $nodata = null, $pre_fn = null) |
@@ -179,6 +179,9 @@ discard block |
||
179 | 179 | return $tree->adjustTabsForTree($tabs); |
180 | 180 | } |
181 | 181 | |
182 | + /** |
|
183 | + * @param string $section |
|
184 | + */ |
|
182 | 185 | public function printTree(&$_treedata, &$attrs, $section, $print = true) |
183 | 186 | { |
184 | 187 | $tree = $this->getTreeController(); |
@@ -192,6 +195,9 @@ discard block |
||
192 | 195 | return $html_trail->printTrail($trail, $do_print, $from); |
193 | 196 | } |
194 | 197 | |
198 | + /** |
|
199 | + * @param string $place |
|
200 | + */ |
|
195 | 201 | public function printNavLinks($navlinks, $place, $env = [], $do_print = true) |
196 | 202 | { |
197 | 203 | $from = __METHOD__; |
@@ -199,6 +205,9 @@ discard block |
||
199 | 205 | return $html_trail->printNavLinks($navlinks, $place, $env, $do_print, $from); |
200 | 206 | } |
201 | 207 | |
208 | + /** |
|
209 | + * @param string $activetab |
|
210 | + */ |
|
202 | 211 | public function printTabs($tabs, $activetab, $do_print = true) |
203 | 212 | { |
204 | 213 | $from = __METHOD__; |
@@ -212,6 +221,9 @@ discard block |
||
212 | 221 | return $html_trail->getLastTabURL($section); |
213 | 222 | } |
214 | 223 | |
224 | + /** |
|
225 | + * @param string $from |
|
226 | + */ |
|
215 | 227 | public function printLink($link, $do_print = true, $from = null) |
216 | 228 | { |
217 | 229 | if ($from === null) { |
@@ -222,12 +234,18 @@ discard block |
||
222 | 234 | return $html_trail->printLink($link, $do_print, $from); |
223 | 235 | } |
224 | 236 | |
237 | + /** |
|
238 | + * @param boolean $flag |
|
239 | + */ |
|
225 | 240 | public function setReloadDropDatabase($flag) |
226 | 241 | { |
227 | 242 | $footer_controller = $this->getFooterController(); |
228 | 243 | return $footer_controller->setReloadDropDatabase($flag); |
229 | 244 | } |
230 | 245 | |
246 | + /** |
|
247 | + * @param boolean $flag |
|
248 | + */ |
|
231 | 249 | public function setNoBottomLink($flag) |
232 | 250 | { |
233 | 251 | $footer_controller = $this->getFooterController(); |
@@ -248,7 +266,7 @@ discard block |
||
248 | 266 | |
249 | 267 | /** |
250 | 268 | * Outputs JavaScript to set default focus |
251 | - * @param $object eg. forms[0].username |
|
269 | + * @param string $object eg. forms[0].username |
|
252 | 270 | */ |
253 | 271 | public function setFocus($object) |
254 | 272 | { |
@@ -258,7 +276,7 @@ discard block |
||
258 | 276 | |
259 | 277 | /** |
260 | 278 | * Outputs JavaScript to set the name of the browser window. |
261 | - * @param $name the window name |
|
279 | + * @param string $name the window name |
|
262 | 280 | * @param $addServer if true (default) then the server id is |
263 | 281 | * attached to the name. |
264 | 282 | */ |
@@ -268,12 +286,18 @@ discard block |
||
268 | 286 | return $footer_controller->setWindowName($name, $addServer); |
269 | 287 | } |
270 | 288 | |
289 | + /** |
|
290 | + * @param boolean $flag |
|
291 | + */ |
|
271 | 292 | public function setNoOutput($flag) |
272 | 293 | { |
273 | 294 | $header_controller = $this->getHeaderController(); |
274 | 295 | return $header_controller->setNoOutput(boolval($flag)); |
275 | 296 | } |
276 | 297 | |
298 | + /** |
|
299 | + * @param string $script |
|
300 | + */ |
|
277 | 301 | public function printHeader($title = '', $script = null, $do_print = true, $template = 'header.twig') |
278 | 302 | { |
279 | 303 | $header_controller = $this->getHeaderController(); |
@@ -286,6 +310,9 @@ discard block |
||
286 | 310 | return $header_controller->printBody($doBody, $bodyClass); |
287 | 311 | } |
288 | 312 | |
313 | + /** |
|
314 | + * @param string $help |
|
315 | + */ |
|
289 | 316 | public function printTitle($title, $help = null, $do_print = true) |
290 | 317 | { |
291 | 318 | $header_controller = $this->getHeaderController(); |
@@ -472,6 +472,8 @@ discard block |
||
472 | 472 | |
473 | 473 | /** |
474 | 474 | * Confirm and then actually add a PRIMARY KEY or UNIQUE constraint |
475 | + * @param string $type |
|
476 | + * @param boolean $confirm |
|
475 | 477 | */ |
476 | 478 | public function addPrimaryOrUniqueKey($type, $confirm, $msg = '') |
477 | 479 | { |
@@ -615,6 +617,7 @@ discard block |
||
615 | 617 | |
616 | 618 | /** |
617 | 619 | * Confirm and then actually add a CHECK constraint |
620 | + * @param boolean $confirm |
|
618 | 621 | */ |
619 | 622 | public function addCheck($confirm, $msg = '') |
620 | 623 | { |
@@ -671,6 +674,7 @@ discard block |
||
671 | 674 | |
672 | 675 | /** |
673 | 676 | * Show confirmation of drop and perform actual drop |
677 | + * @param boolean $confirm |
|
674 | 678 | */ |
675 | 679 | public function doDrop($confirm) |
676 | 680 | { |
@@ -14,6 +14,9 @@ |
||
14 | 14 | public $_name = 'DatabaseController'; |
15 | 15 | public $table_place = 'database-variables'; |
16 | 16 | |
17 | + /** |
|
18 | + * @param string|null $term |
|
19 | + */ |
|
17 | 20 | public function _highlight($string, $term) |
18 | 21 | { |
19 | 22 | return str_replace($term, "<b>{$term}</b>", $string); |