Completed
Pull Request — develop (#209)
by Felipe
26:08 queued 36s
created
src/database/databasetraits/DatabaseTrait.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -577,6 +577,11 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
src/database/databasetraits/FtsTrait.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -642,6 +642,11 @@
 block discarded – undo
642 642
 
643 643
     abstract public function execute($sql);
644 644
 
645
+    /**
646
+     * @param string $obj_type
647
+     * @param string $table
648
+     * @param string $comment
649
+     */
645 650
     abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null);
646 651
 
647 652
     abstract public function selectSet($sql);
Please login to merge, or discard this patch.
src/database/databasetraits/FunctionTrait.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -385,6 +385,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/database/databasetraits/OperatorTrait.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -144,6 +144,9 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/database/databasetraits/PrivilegesTrait.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -381,6 +381,9 @@  discard block
 block discarded – undo
381 381
 
382 382
     abstract public function endTransaction();
383 383
 
384
+    /**
385
+     * @param string $sql
386
+     */
384 387
     abstract public function execute($sql);
385 388
 
386 389
     abstract public function setComment($obj_type, $obj_name, $table, $comment, $basetype = null);
@@ -395,6 +398,11 @@  discard block
 block discarded – undo
395 398
 
396 399
     abstract public function fieldArrayClean(&$arr);
397 400
 
401
+    /**
402
+     * @param string $field
403
+     *
404
+     * @return string
405
+     */
398 406
     abstract public function selectField($sql, $field);
399 407
 
400 408
     abstract public function hasRoles();
Please login to merge, or discard this patch.
src/database/databasetraits/RoleTrait.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -274,6 +274,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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();
Please login to merge, or discard this patch.
src/database/databasetraits/RowTrait.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -351,12 +351,18 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/database/databasetraits/SchemaTrait.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -266,6 +266,9 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/database/databasetraits/SequenceTrait.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -552,11 +552,19 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.