@@ -274,6 +274,9 @@ discard block |
||
| 274 | 274 | return $this->execute($sql); |
| 275 | 275 | } |
| 276 | 276 | |
| 277 | + /** |
|
| 278 | + * @param string $original_parent_roles |
|
| 279 | + */ |
|
| 277 | 280 | private function _dealWithOldParentRoles($original_parent_roles, $new_roles_to_add, $rolename) |
| 278 | 281 | { |
| 279 | 282 | $old = explode(',', $original_parent_roles); |
@@ -302,6 +305,9 @@ discard block |
||
| 302 | 305 | return 0; |
| 303 | 306 | } |
| 304 | 307 | |
| 308 | + /** |
|
| 309 | + * @param string $original_members |
|
| 310 | + */ |
|
| 305 | 311 | private function _dealWithOriginalMembers($original_members, $new_members_of_role, $rolename) |
| 306 | 312 | { |
| 307 | 313 | //members |
@@ -328,6 +334,9 @@ discard block |
||
| 328 | 334 | return 0; |
| 329 | 335 | } |
| 330 | 336 | |
| 337 | + /** |
|
| 338 | + * @param string $original_admins |
|
| 339 | + */ |
|
| 331 | 340 | private function _dealWithOriginalAdmins($original_admins, $new_admins_of_role, $rolename) |
| 332 | 341 | { |
| 333 | 342 | $old = explode(',', $original_admins); |
@@ -352,6 +361,15 @@ discard block |
||
| 352 | 361 | return 0; |
| 353 | 362 | } |
| 354 | 363 | |
| 364 | + /** |
|
| 365 | + * @param string $password |
|
| 366 | + * @param string $expiry |
|
| 367 | + * @param boolean $superuser |
|
| 368 | + * @param boolean $createdb |
|
| 369 | + * @param boolean $createrole |
|
| 370 | + * @param boolean $inherits |
|
| 371 | + * @param boolean $login |
|
| 372 | + */ |
|
| 355 | 373 | private function _alterRole($rolename, $password, $connlimit, $expiry, $superuser, $createdb, $createrole, $inherits, $login) |
| 356 | 374 | { |
| 357 | 375 | $enc = $this->_encryptPassword($rolename, $password); |
@@ -844,6 +862,9 @@ discard block |
||
| 844 | 862 | return $this->execute($sql); |
| 845 | 863 | } |
| 846 | 864 | |
| 865 | + /** |
|
| 866 | + * @param string $str |
|
| 867 | + */ |
|
| 847 | 868 | abstract public function fieldClean(&$str); |
| 848 | 869 | |
| 849 | 870 | abstract public function beginTransaction(); |
@@ -351,12 +351,18 @@ |
||
| 351 | 351 | |
| 352 | 352 | abstract public function hasTablespaces(); |
| 353 | 353 | |
| 354 | + /** |
|
| 355 | + * @param string $table |
|
| 356 | + */ |
|
| 354 | 357 | abstract public function delete($table, $conditions, $schema = ''); |
| 355 | 358 | |
| 356 | 359 | abstract public function fieldArrayClean(&$arr); |
| 357 | 360 | |
| 358 | 361 | abstract public function hasCreateFieldWithConstraints(); |
| 359 | 362 | |
| 363 | + /** |
|
| 364 | + * @param string $table |
|
| 365 | + */ |
|
| 360 | 366 | abstract public function getAttributeNames($table, $atts); |
| 361 | 367 | |
| 362 | 368 | abstract public function hasObjectID($table); |
@@ -266,6 +266,9 @@ discard block |
||
| 266 | 266 | return $this->execute($sql); |
| 267 | 267 | } |
| 268 | 268 | |
| 269 | + /** |
|
| 270 | + * @param string $str |
|
| 271 | + */ |
|
| 269 | 272 | abstract public function fieldClean(&$str); |
| 270 | 273 | |
| 271 | 274 | abstract public function beginTransaction(); |
@@ -276,10 +279,18 @@ discard block |
||
| 276 | 279 | |
| 277 | 280 | abstract public function execute($sql); |
| 278 | 281 | |
| 282 | + /** |
|
| 283 | + * @param string $obj_type |
|
| 284 | + * @param string $table |
|
| 285 | + * @param string $comment |
|
| 286 | + */ |
|
| 279 | 287 | abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null); |
| 280 | 288 | |
| 281 | 289 | abstract public function selectSet($sql); |
| 282 | 290 | |
| 291 | + /** |
|
| 292 | + * @param string $str |
|
| 293 | + */ |
|
| 283 | 294 | abstract public function clean(&$str); |
| 284 | 295 | |
| 285 | 296 | abstract public function phpBool($parameter); |
@@ -298,6 +309,10 @@ discard block |
||
| 298 | 309 | |
| 299 | 310 | abstract public function getAttributeNames($table, $atts); |
| 300 | 311 | |
| 312 | + /** |
|
| 313 | + * @param string $sql |
|
| 314 | + * @param string $field |
|
| 315 | + */ |
|
| 301 | 316 | abstract public function selectField($sql, $field); |
| 302 | 317 | |
| 303 | 318 | abstract public function phpArray($dbarr); |
@@ -552,11 +552,19 @@ |
||
| 552 | 552 | |
| 553 | 553 | abstract public function execute($sql); |
| 554 | 554 | |
| 555 | + /** |
|
| 556 | + * @param string $obj_type |
|
| 557 | + * @param string $table |
|
| 558 | + * @param string $comment |
|
| 559 | + */ |
|
| 555 | 560 | abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null); |
| 556 | 561 | |
| 557 | 562 | abstract public function selectSet($sql); |
| 558 | 563 | |
| 559 | 564 | abstract public function clean(&$str); |
| 560 | 565 | |
| 566 | + /** |
|
| 567 | + * @param boolean $arr |
|
| 568 | + */ |
|
| 561 | 569 | abstract public function fieldArrayClean(&$arr); |
| 562 | 570 | } |
@@ -165,6 +165,9 @@ discard block |
||
| 165 | 165 | return $this->execute($sql); |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | + /** |
|
| 169 | + * @param string $str |
|
| 170 | + */ |
|
| 168 | 171 | abstract public function fieldClean(&$str); |
| 169 | 172 | |
| 170 | 173 | abstract public function beginTransaction(); |
@@ -175,10 +178,18 @@ discard block |
||
| 175 | 178 | |
| 176 | 179 | abstract public function execute($sql); |
| 177 | 180 | |
| 181 | + /** |
|
| 182 | + * @param string $obj_type |
|
| 183 | + * @param string $table |
|
| 184 | + * @param string $comment |
|
| 185 | + */ |
|
| 178 | 186 | abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null); |
| 179 | 187 | |
| 180 | 188 | abstract public function selectSet($sql); |
| 181 | 189 | |
| 190 | + /** |
|
| 191 | + * @param string $str |
|
| 192 | + */ |
|
| 182 | 193 | abstract public function clean(&$str); |
| 183 | 194 | |
| 184 | 195 | abstract public function phpBool($parameter); |
@@ -1525,6 +1525,12 @@ discard block |
||
| 1525 | 1525 | |
| 1526 | 1526 | abstract public function execute($sql); |
| 1527 | 1527 | |
| 1528 | + /** |
|
| 1529 | + * @param string $obj_type |
|
| 1530 | + * @param string $obj_name |
|
| 1531 | + * @param string $comment |
|
| 1532 | + * @param boolean $basetype |
|
| 1533 | + */ |
|
| 1528 | 1534 | abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null); |
| 1529 | 1535 | |
| 1530 | 1536 | abstract public function selectSet($sql); |
@@ -1541,9 +1547,15 @@ discard block |
||
| 1541 | 1547 | |
| 1542 | 1548 | abstract public function delete($table, $conditions, $schema = ''); |
| 1543 | 1549 | |
| 1550 | + /** |
|
| 1551 | + * @param boolean $arr |
|
| 1552 | + */ |
|
| 1544 | 1553 | abstract public function fieldArrayClean(&$arr); |
| 1545 | 1554 | |
| 1546 | 1555 | abstract public function hasCreateFieldWithConstraints(); |
| 1547 | 1556 | |
| 1557 | + /** |
|
| 1558 | + * @param string $table |
|
| 1559 | + */ |
|
| 1548 | 1560 | abstract public function getAttributeNames($table, $atts); |
| 1549 | 1561 | } |
@@ -502,6 +502,12 @@ |
||
| 502 | 502 | |
| 503 | 503 | abstract public function execute($sql); |
| 504 | 504 | |
| 505 | + /** |
|
| 506 | + * @param string $obj_type |
|
| 507 | + * @param string $table |
|
| 508 | + * @param string $comment |
|
| 509 | + * @param boolean $basetype |
|
| 510 | + */ |
|
| 505 | 511 | abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null); |
| 506 | 512 | |
| 507 | 513 | abstract public function selectSet($sql); |
@@ -155,7 +155,7 @@ |
||
| 155 | 155 | * @param string $username The username |
| 156 | 156 | * @param string $password The new password |
| 157 | 157 | * |
| 158 | - * @return int 0 if operation was successful |
|
| 158 | + * @return \PHPPgAdmin\ADORecordSet 0 if operation was successful |
|
| 159 | 159 | */ |
| 160 | 160 | public function changePassword($username, $password) |
| 161 | 161 | { |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | * @param string $expiry string Format 'YYYY-MM-DD HH:MM:SS'. '' means never expire |
| 67 | 67 | * @param array $groups The groups to create the user in |
| 68 | 68 | * |
| 69 | - * @return int 0 if operation was successful |
|
| 69 | + * @return \PHPPgAdmin\ADORecordSet 0 if operation was successful |
|
| 70 | 70 | * |
| 71 | 71 | * @internal param $group (array) The groups to create the user in |
| 72 | 72 | */ |