@@ -707,7 +707,7 @@ discard block |
||
| 707 | 707 | * We don't have to check if pg supports schema cause create table like |
| 708 | 708 | * is available under pg 7.4+ which has schema. |
| 709 | 709 | * |
| 710 | - * @param mixed $confirm |
|
| 710 | + * @param boolean $confirm |
|
| 711 | 711 | * @param mixed $msg |
| 712 | 712 | */ |
| 713 | 713 | public function doCreateLike($confirm, $msg = '') |
@@ -822,7 +822,7 @@ discard block |
||
| 822 | 822 | /** |
| 823 | 823 | * Ask for select parameters and perform select. |
| 824 | 824 | * |
| 825 | - * @param mixed $confirm |
|
| 825 | + * @param boolean $confirm |
|
| 826 | 826 | * @param mixed $msg |
| 827 | 827 | */ |
| 828 | 828 | public function doSelectRows($confirm, $msg = '') |
@@ -1104,7 +1104,7 @@ discard block |
||
| 1104 | 1104 | /** |
| 1105 | 1105 | * Show confirmation of empty and perform actual empty. |
| 1106 | 1106 | * |
| 1107 | - * @param mixed $confirm |
|
| 1107 | + * @param boolean $confirm |
|
| 1108 | 1108 | */ |
| 1109 | 1109 | public function doEmpty($confirm) |
| 1110 | 1110 | { |
@@ -1178,7 +1178,7 @@ discard block |
||
| 1178 | 1178 | /** |
| 1179 | 1179 | * Show confirmation of drop and perform actual drop. |
| 1180 | 1180 | * |
| 1181 | - * @param mixed $confirm |
|
| 1181 | + * @param boolean $confirm |
|
| 1182 | 1182 | */ |
| 1183 | 1183 | public function doDrop($confirm) |
| 1184 | 1184 | { |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | /** |
| 295 | 295 | * Show confirmation of drop and perform actual drop. |
| 296 | 296 | * |
| 297 | - * @param mixed $confirm |
|
| 297 | + * @param boolean $confirm |
|
| 298 | 298 | */ |
| 299 | 299 | public function doDrop($confirm) |
| 300 | 300 | { |
@@ -332,7 +332,7 @@ discard block |
||
| 332 | 332 | /** |
| 333 | 333 | * Show confirmation of enable trigger and perform enabling the trigger. |
| 334 | 334 | * |
| 335 | - * @param mixed $confirm |
|
| 335 | + * @param boolean $confirm |
|
| 336 | 336 | */ |
| 337 | 337 | public function doEnable($confirm) |
| 338 | 338 | { |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | /** |
| 370 | 370 | * Show confirmation of disable trigger and perform disabling the trigger. |
| 371 | 371 | * |
| 372 | - * @param mixed $confirm |
|
| 372 | + * @param boolean $confirm |
|
| 373 | 373 | */ |
| 374 | 374 | public function doDisable($confirm) |
| 375 | 375 | { |
@@ -235,7 +235,7 @@ discard block |
||
| 235 | 235 | /** |
| 236 | 236 | * Show confirmation of change password and actually change password. |
| 237 | 237 | * |
| 238 | - * @param mixed $confirm |
|
| 238 | + * @param boolean $confirm |
|
| 239 | 239 | * @param mixed $msg |
| 240 | 240 | */ |
| 241 | 241 | public function doChangePassword($confirm, $msg = '') |
@@ -384,7 +384,7 @@ discard block |
||
| 384 | 384 | /** |
| 385 | 385 | * Show confirmation of drop and perform actual drop. |
| 386 | 386 | * |
| 387 | - * @param mixed $confirm |
|
| 387 | + * @param boolean $confirm |
|
| 388 | 388 | */ |
| 389 | 389 | public function doDrop($confirm) |
| 390 | 390 | { |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | * Base constructor. |
| 29 | 29 | * |
| 30 | 30 | * @param \PHPPgAdmin\ADONewConnection $conn The connection object |
| 31 | - * @param mixed $container |
|
| 31 | + * @param \Slim\Container $container |
|
| 32 | 32 | * @param mixed $server_info |
| 33 | 33 | */ |
| 34 | 34 | public function __construct(&$conn, $container, $server_info) |
@@ -219,7 +219,7 @@ discard block |
||
| 219 | 219 | * @param string $sql The SQL statement to be executed |
| 220 | 220 | * @param string $field The field name to be returned |
| 221 | 221 | * |
| 222 | - * @return int|string single field value, error number on error or -1 if no rows where found |
|
| 222 | + * @return string single field value, error number on error or -1 if no rows where found |
|
| 223 | 223 | */ |
| 224 | 224 | public function selectField($sql, $field) |
| 225 | 225 | { |
@@ -540,7 +540,7 @@ discard block |
||
| 540 | 540 | * |
| 541 | 541 | * @param string $dbarr |
| 542 | 542 | * |
| 543 | - * @return array A PHP array |
|
| 543 | + * @return string[] A PHP array |
|
| 544 | 544 | * |
| 545 | 545 | * @internal param String $arr representing the DB array |
| 546 | 546 | */ |
@@ -297,6 +297,11 @@ |
||
| 297 | 297 | |
| 298 | 298 | abstract public function execute($sql); |
| 299 | 299 | |
| 300 | + /** |
|
| 301 | + * @param string $obj_type |
|
| 302 | + * @param string $table |
|
| 303 | + * @param string $comment |
|
| 304 | + */ |
|
| 300 | 305 | abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null); |
| 301 | 306 | |
| 302 | 307 | abstract public function selectSet($sql); |
@@ -254,7 +254,7 @@ discard block |
||
| 254 | 254 | * |
| 255 | 255 | * @param string $table The table from which to drop |
| 256 | 256 | * @param string $column The column name to set |
| 257 | - * @param mixed $default The new default value |
|
| 257 | + * @param string $default The new default value |
|
| 258 | 258 | * |
| 259 | 259 | * @return int 0 if operation was successful |
| 260 | 260 | */ |
@@ -345,6 +345,10 @@ discard block |
||
| 345 | 345 | |
| 346 | 346 | abstract public function execute($sql); |
| 347 | 347 | |
| 348 | + /** |
|
| 349 | + * @param string $obj_type |
|
| 350 | + * @param string $comment |
|
| 351 | + */ |
|
| 348 | 352 | abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null); |
| 349 | 353 | |
| 350 | 354 | abstract public function selectSet($sql); |
@@ -577,6 +577,11 @@ discard block |
||
| 577 | 577 | |
| 578 | 578 | abstract public function execute($sql); |
| 579 | 579 | |
| 580 | + /** |
|
| 581 | + * @param string $obj_type |
|
| 582 | + * @param string $table |
|
| 583 | + * @param string $comment |
|
| 584 | + */ |
|
| 580 | 585 | abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null); |
| 581 | 586 | |
| 582 | 587 | abstract public function selectSet($sql); |
@@ -601,5 +606,8 @@ discard block |
||
| 601 | 606 | |
| 602 | 607 | abstract public function hasSharedComments(); |
| 603 | 608 | |
| 609 | + /** |
|
| 610 | + * @param string $field |
|
| 611 | + */ |
|
| 604 | 612 | abstract public function selectField($sql, $field); |
| 605 | 613 | } |
@@ -385,6 +385,10 @@ |
||
| 385 | 385 | |
| 386 | 386 | abstract public function execute($sql); |
| 387 | 387 | |
| 388 | + /** |
|
| 389 | + * @param string $obj_type |
|
| 390 | + * @param string $comment |
|
| 391 | + */ |
|
| 388 | 392 | abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null); |
| 389 | 393 | |
| 390 | 394 | abstract public function selectSet($sql); |
@@ -144,6 +144,9 @@ |
||
| 144 | 144 | |
| 145 | 145 | abstract public function endTransaction(); |
| 146 | 146 | |
| 147 | + /** |
|
| 148 | + * @param string $sql |
|
| 149 | + */ |
|
| 147 | 150 | abstract public function execute($sql); |
| 148 | 151 | |
| 149 | 152 | abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null); |