@@ -378,7 +378,8 @@ public function updateUserSecurityIdentity(UserSecurityIdentity $usid, $oldUsern
378
378
/**
379
379
* Constructs the SQL for deleting access control entries.
380
380
*
381
- * @param int $oidPK
381
+ * @param int $oidPK
382
+ *
382
383
* @return string
383
384
*/
384
385
protected function getDeleteAccessControlEntriesSql ($ oidPK )
@@ -393,7 +394,8 @@ protected function getDeleteAccessControlEntriesSql($oidPK)
393
394
/**
394
395
* Constructs the SQL for deleting a specific ACE.
395
396
*
396
- * @param int $acePK
397
+ * @param int $acePK
398
+ *
397
399
* @return string
398
400
*/
399
401
protected function getDeleteAccessControlEntrySql ($ acePK )
@@ -408,7 +410,8 @@ protected function getDeleteAccessControlEntrySql($acePK)
408
410
/**
409
411
* Constructs the SQL for deleting an object identity.
410
412
*
411
- * @param int $pk
413
+ * @param int $pk
414
+ *
412
415
* @return string
413
416
*/
414
417
protected function getDeleteObjectIdentitySql ($ pk )
@@ -423,7 +426,8 @@ protected function getDeleteObjectIdentitySql($pk)
423
426
/**
424
427
* Constructs the SQL for deleting relation entries.
425
428
*
426
- * @param int $pk
429
+ * @param int $pk
430
+ *
427
431
* @return string
428
432
*/
429
433
protected function getDeleteObjectIdentityRelationsSql ($ pk )
@@ -438,16 +442,17 @@ protected function getDeleteObjectIdentityRelationsSql($pk)
438
442
/**
439
443
* Constructs the SQL for inserting an ACE.
440
444
*
441
- * @param int $classId
442
- * @param int|null $objectIdentityId
443
- * @param string|null $field
444
- * @param int $aceOrder
445
- * @param int $securityIdentityId
446
- * @param string $strategy
447
- * @param int $mask
448
- * @param bool $granting
449
- * @param bool $auditSuccess
450
- * @param bool $auditFailure
445
+ * @param int $classId
446
+ * @param int|null $objectIdentityId
447
+ * @param string|null $field
448
+ * @param int $aceOrder
449
+ * @param int $securityIdentityId
450
+ * @param string $strategy
451
+ * @param int $mask
452
+ * @param bool $granting
453
+ * @param bool $auditSuccess
454
+ * @param bool $auditFailure
455
+ *
451
456
* @return string
452
457
*/
453
458
protected function getInsertAccessControlEntrySql ($ classId , $ objectIdentityId , $ field , $ aceOrder , $ securityIdentityId , $ strategy , $ mask , $ granting , $ auditSuccess , $ auditFailure )
@@ -488,6 +493,7 @@ class_id,
488
493
* Constructs the SQL for ins
10000
erting a new class type.
489
494
*
490
495
* @param string $classType
496
+ *
491
497
* @return string
492
498
*/
493
499
protected function getInsertClassSql ($ classType )
@@ -502,8 +508,9 @@ protected function getInsertClassSql($classType)
502
508
/**
503
509
* Constructs the SQL for inserting a relation entry.
504
510
*
505
- * @param int $objectIdentityId
506
- * @param int $ancestorId
511
+ * @param int $objectIdentityId
512
+ * @param int $ancestorId
513
+ *
507
514
* @return string
508
515
*/
509
516
protected function getInsertObjectIdentityRelationSql ($ objectIdentityId , $ ancestorId )
@@ -519,9 +526,10 @@ protected function getInsertObjectIdentityRelationSql($objectIdentityId, $ancest
519
526
/**
520
527
* Constructs the SQL for inserting an object identity.
521
528
*
522
- * @param string $identifier
523
- * @param int $classId
524
- * @param bool $entriesInheriting
529
+ * @param string $identifier
530
+ * @param int $classId
531
+ * @param bool $entriesInheriting
532
+ *
525
533
* @return string
526
534
*/
527
535
protected function getInsertObjectIdentitySql ($ identifier , $ classId , $ entriesInheriting )
@@ -544,7 +552,9 @@ protected function getInsertObjectIdentitySql($identifier, $classId, $entriesInh
544
552
* Constructs the SQL for inserting a security identity.
545
553
*
546
554
* @param SecurityIdentityInterface $sid
555
+ *
547
556
* @throws \InvalidArgumentException
557
+ *
548
558
* @return string
549
559
*/
550
560
protected function getInsertSecurityIdentitySql (SecurityIdentityInterface $ sid )
@@ -570,10 +580,11 @@ protected function getInsertSecurityIdentitySql(SecurityIdentityInterface $sid)
570
580
/**
571
581
* Constructs the SQL for selecting an ACE.
572
582
*
573
- * @param int $classId
574
- * @param int $oid
575
- * @param string $field
576
- * @param int $order
583
+ * @param int $classId
584
+ * @param int $oid
585
+ * @param string $field
586
+ * @param int $order
587
+ *
577
588
* @return string
578
589
*/
579
590
protected function getSelectAccessControlEntryIdSql ($ classId , $ oid , $ field , $ order )
@@ -597,6 +608,7 @@ protected function getSelectAccessControlEntryIdSql($classId, $oid, $field, $ord
597
608
* the passed class type.
598
609
*
599
610
* @param string $classType
611
+ *
600
612
* @return string
601
613
*/
602
614
protected function getSelectClassIdSql ($ classType )
@@ -612,7 +624,9 @@ protected function getSelectClassIdSql($classType)
612
624
* Constructs the SQL for selecting the primary key of a security identity.
613
625
*
614
626
* @param SecurityIdentityInterface $sid
627
+ *
615
628
* @throws \InvalidArgumentException
629
+ *
616
630
* @return string
617
631
*/
618
632
protected function getSelectSecurityIdentityIdSql (SecurityIdentityInterface $ sid )
@@ -653,9 +667,11 @@ protected function getDeleteSecurityIdentityIdSql(SecurityIdentityInterface $sid
653
667
/**
654
668
* Constructs the SQL for updating an object identity.
655
669
*
656
- * @param int $pk
657
- * @param array $changes
670
+ * @param int $pk
671
+ * @param array $changes
672
+ *
658
673
* @throws \InvalidArgumentException
674
+ *
659
675
* @return string
660
676
*/
661
677
protected function getUpdateObjectIdentitySql ($ pk , array $ changes )
@@ -700,9 +716,11 @@ protected function getUpdateUserSecurityIdentitySql(UserSecurityIdentity $usid,
700
716
/**
701
717
* Constructs the SQL for updating an ACE.
702
718
*
703
- * @param int $pk
704
- * @param array $sets
719
+ * @param int $pk
720
+ * @param array $sets
721
+ *
705
722
* @throws \InvalidArgumentException
723
+ *
706
724
* @return string
707
725
*/
708
726
protected function getUpdateAccessControlEntrySql ($ pk , array $ sets )
@@ -737,6 +755,7 @@ private function createObjectIdentity(ObjectIdentityInterface $oid)
737
755
* If the type does not yet exist in the database, it will be created.
738
756
*
739
757
* @param string $classType
758
+ *
740
759
* @return int
741
760
*/
742
761
private function createOrRetrieveClassId ($ classType )
@@ -757,6 +776,7 @@ private function createOrRetrieveClassId($classType)
757
776
* created.
758
777
*
759
778
* @param SecurityIdentityInterface $sid
779
+ *
760
780
* @return int
761
781
*/
762
782
private function createOrRetrieveSecurityIdentityId (SecurityIdentityInterface $ sid )
@@ -773,7 +793,7 @@ private function createOrRetrieveSecurityIdentityId(SecurityIdentityInterface $s
773
793
/**
774
794
* Deletes all ACEs for the given object identity primary key.
775
795
*
776
- * @param int $oidPK
796
+ * @param int $oidPK
777
797
*/
778
798
private function deleteAccessControlEntries ($ oidPK )
779
799
{
@@ -783,7 +803,7 @@ private function deleteAccessControlEntries($oidPK)
783
803
/**
784
804
* Deletes the object identity from the database.
785
805
*
786
- * @param int $pk
806
+ * @param int $pk
787
807
*/
788
808
private function deleteObjectIdentity ($ pk )
789
809
{
@@ -793,7 +813,7 @@ private function deleteObjectIdentity($pk)
793
813
/**
794
814
* Deletes all entries from the relations table from the database.
795
815
*
796
- * @param int $pk
816
+ * @param int $pk
797
817
*/
798
818
private function deleteObjectIdentityRelations ($ pk )
799
819
{
@@ -831,7 +851,7 @@ private function updateNewFieldAceProperty($name, array $changes)
831
851
$ classIds = new \SplObjectStorage ();
832
852
$ currentIds = array ();
833
853
foreach ($ changes [1 ] as $ field => $ new ) {
834
- for ($ i = 0 ,$ c = count ($ new ); $ i <$ c ; $ i ++) {
854
+ for ($ i = 0 , $ c = count ($ new ); $ i <$ c ; $ i ++) {
835
855
$ ace = $ new [$ i ];
836
856
837
857
if (null === $ ace ->getId ()) {
@@ -908,7 +928,7 @@ private function updateNewAceProperty($name, array $changes)
908
928
$ sids = new \SplObjectStorage ();
909
929
$ classIds = new \SplObjectStorage ();
910
930
$ currentIds = array ();
911
- for ($ i = 0 ,$ c = count ($ new ); $ i <$ c ; $ i ++) {
931
+ for ($ i = 0 , $ c = count ($ new ); $ i <$ c ; $ i ++) {
912
932
$ ace = $ new [$ i ];
913
933
914
934
if (null === $ ace ->getId ()) {
@@ -951,7 +971,7 @@ private function updateOldAceProperty($name, array $changes)
951
971
list ($ old , $ new ) = $ changes ;
952
972
$ currentIds = array ();
953
973
954
- for ($ i = 0 ,$ c = count ($ new ); $ i <$ c ; $ i ++) {
974
+ for ($ i = 0 , $ c = count ($ new ); $ i <$ c ; $ i ++) {
955
975
$ ace = $ new [$ i ];
956
976
957
977
if (null !== $ ace ->getId ()) {
0 commit comments