@@ -447,7 +447,7 @@ public function _savePluginConfig($pluginId, $options)
447
447
*/
448
448
public function listRepositories ($ user = null )
449
449
{
450
- // TODO: Implement listRepositories() method.
450
+ return array ();
451
451
}
452
452
453
453
/**
@@ -457,7 +457,7 @@ public function listRepositories($user = null)
457
457
* @return Array
458
458
*/
459
459
public function listRepositoriesWithCriteria ($ criteria , &$ count = null ){
460
-
460
+ return array ();
461
461
}
462
462
463
463
/**
@@ -468,7 +468,7 @@ public function listRepositoriesWithCriteria($criteria, &$count = null){
468
468
*/
469
469
public function getRepositoryById ($ repositoryId )
470
470
{
471
- // TODO: Implement getRepositoryById() method.
471
+ return null ;
472
472
}
473
473
474
474
/**
@@ -477,31 +477,28 @@ public function getRepositoryById($repositoryId)
477
477
* @param String $repositorySlug
478
478
* @return Repository
479
479
*/
480
- public function getRepositoryByAlias ($ repositorySlug )
481
- {
482
- // TODO: Implement getRepositoryByAlias() method.
480
+ public function getRepositoryByAlias ($ repositorySlug ) {
481
+ return null ;
483
482
}
484
483
485
484
/**
486
485
* Stores a repository, new or not.
487
486
*
488
487
* @param Repository $repositoryObject
489
488
* @param Boolean $update
490
- * @return -1 if failed
489
+ * @return int -1 if failed
491
490
*/
492
- public function saveRepository ($ repositoryObject , $ update = false )
493
- {
494
- // TODO: Implement saveRepository() method.
491
+ public function saveRepository ($ repositoryObject , $ update = false ) {
492
+ return -1 ;
495
493
}
496
494
497
495
/**
498
496
* Delete a repository, given its unique ID.
499
497
*
500
498
* @param String $repositoryId
501
499
*/
502
- public function deleteRepository ($ repositoryId )
503
- {
504
- // TODO: Implement deleteRepository() method.
500
+ public function deleteRepository ($ repositoryId ) {
501
+
505
502
}
506
503
507
504
/**
@@ -510,41 +507,33 @@ public function deleteRepository($repositoryId)
510
507
* @param boolean $excludeReserved,
511
508
* @return array AjxpRole[]
512
509
*/
513
- public function listRoles ($ roleIds = array (), $ excludeReserved = false )
514
- {
515
- // TODO: Implement listRoles() method.
510
+ public function listRoles ($ roleIds = array (), $ excludeReserved = false ) {
511
+ return array ();
516
512
}
517
513
518
- public function saveRoles ($ roles )
519
- {
520
- // TODO: Implement saveRoles() method.
514
+ public function saveRoles ($ roles ) {
521
515
}
522
516
523
517
/**
524
518
* @param AJXP_Role $role
525
519
* @param AbstractAjxpUser $userObject
526
520
* @return void
527
521
*/
528
- public function updateRole ($ role , $ userObject = null )
529
- {
530
- // TODO: Implement updateRole() method.
522
+ public function updateRole ($ role , $ userObject = null ) {
531
523
}
532
524
533
525
/**
534
526
* @param AJXP_Role|String $role
535
527
* @return void
536
528
*/
537
- public function deleteRole ($ role )
538
- {
539
- // TODO: Implement deleteRole() method.
529
+ public function deleteRole ($ role ) {
530
+
540
531
}
541
532
542
533
/**
543
534
* Specific queries
544
535
*/
545
- public function countAdminUsers ()
546
- {
547
- // TODO: Implement countAdminUsers() method.
536
+ public function countAdminUsers () {
548
537
}
549
538
550
539
/**
@@ -553,9 +542,8 @@ public function countAdminUsers()
553
542
* @param String $ID
554
543
* @return String $ID
555
544
*/
556
- public function saveBinary ($ context , $ fileName , $ ID = null )
557
- {
558
- // TODO: Implement saveBinary() method.
545
+ public function saveBinary ($ context , $ fileName , $ ID = null ) {
546
+ return $ ID ;
559
547
}
560
548
561
549
/**
@@ -564,19 +552,17 @@ public function saveBinary($context, $fileName, $ID = null)
564
552
* @param Stream $outputStream
565
553
* @return boolean
566
554
*/
567
- public function loadBinary ($ context , $ ID , $ outputStream = null )
568
- {
569
- // TODO: Implement loadBinary() method.
555
+ public function loadBinary ($ context , $ ID , $ outputStream = null ) {
556
+ return false ;
570
557
}
571
558
572
559
/**
573
560
* @param array $context
574
561
* @param String $ID
575
562
* @return boolean
576
563
*/
577
- public function deleteBinary ($ context , $ ID )
578
- {
579
- // TODO: Implement deleteBinary() method.
564
+ public function deleteBinary ($ context , $ ID ) {
565
+ return false ;
580
566
}
581
567
582
568
/**
@@ -585,9 +571,8 @@ public function deleteBinary($context, $ID)
585
571
* @param String $userId
586
572
* @param Array $deletedSubUsers
587
573
*/
588
- public function deleteUser ($ userId , &$ deletedSubUsers )
589
- {
590
- // TODO: Implement deleteUser() method.
574
+ public function deleteUser ($ userId , &$ deletedSubUsers ) {
575
+ return array ();
591
576
}
592
577
593
578
/**
@@ -596,32 +581,28 @@ public function deleteUser($userId, &$deletedSubUsers)
596
581
* @param string $userId
597
582
* @return AbstractAjxpUser
598
583
*/
599
- public function instantiateAbstractUserImpl ($ userId )
600
- {
601
- // TODO: Implement instantiateAbstractUserImpl() method.
584
+ public function instantiateAbstractUserImpl ($ userId ) {
585
+ return null ;
602
586
}
603
587
604
- public function getUserClassFileName ()
605
- {
606
- // TODO: Implement getUserClassFileName() method.
588
+ public function getUserClassFileName () {
589
+ return "" ;
607
590
}
608
591
609
592
/**
610
593
* @param $userId
611
594
* @return AbstractAjxpUser[]
612
595
*/
613
- public function getUserChildren ($ userId )
614
- {
615
- // TODO: Implement getUserChildren() method.
596
+ public function getUserChildren ($ userId ) {
597
+ return array ();
616
598
}
617
599
618
600
/**
619
601
* @param string $repositoryId
620
602
* @return array()
621
603
*/
622
- public function getUsersForRepository ($ repositoryId )
623
- {
624
- // TODO: Implement getUsersForRepository() method.
604
+ public function getUsersForRepository ($ repositoryId ) {
605
+ return array ();
625
606
}
626
607
627
608
/**
@@ -632,9 +613,7 @@ public function getUsersForRepository($repositoryId)
632
613
* @return array()
633
614
*/
634
615
public function getRolesForRepository ($ repositoryId , $ rolePrefix = '' , $ countOnly = false ){
635
-
636
- // TODO: Implement getUsersForRepository() method.
637
-
616
+ return array ();
638
617
}
639
618
640
619
/**
@@ -644,7 +623,7 @@ public function getRolesForRepository($repositoryId, $rolePrefix = '', $countOnl
644
623
* @return array
645
624
*/
646
625
public function countUsersForRepository ($ repositoryId , $ details = false , $ admin =false ){
647
-
626
+ return array ();
648
627
}
649
628
650
629
/**
@@ -653,47 +632,38 @@ public function countUsersForRepository($repositoryId, $details = false, $admin=
653
632
* @param bool $fullTree
654
633
* @return void
655
634
*/
656
- public function filterUsersByGroup (&$ flatUsersList , $ baseGroup = "/ " , $ fullTree = false )
657
- {
658
- // TODO: Implement filterUsersByGroup() method.
635
+ public function filterUsersByGroup (&$ flatUsersList , $ baseGroup = "/ " , $ fullTree = false ) {
659
636
}
660
637
661
638
/**
662
639
* @param string $groupPath
663
640
* @param string $groupLabel
664
641
* @return mixed
665
642
*/
666
- public function createGroup ($ groupPath , $ groupLabel )
667
- {
668
- // TODO: Implement createGroup() method.
643
+ public function createGroup ($ groupPath , $ groupLabel ) {
644
+ return false ;
669
645
}
670
646
671
647
/**
672
648
* @param $groupPath
673
649
* @return void
674
650
*/
675
- public function deleteGroup ($ groupPath )
676
- {
677
- // TODO: Implement deleteGroup() method.
651
+ public function deleteGroup ($ groupPath ) {
678
652
}
679
653
680
654
/**
681
655
* @param string $groupPath
682
656
* @param string $groupLabel
683
657
* @return void
684
658
*/
685
- public function relabelGroup ($ groupPath , $ groupLabel )
686
- {
687
- // TODO: Implement relabelGroup() method.
659
+ public function relabelGroup ($ groupPath , $ groupLabel ) {
688
660
}
689
661
690
662
/**
691
663
* @param string $baseGroup
692
664
* @return string[]
693
665
*/
694
- public function getChildrenGroups ($ baseGroup = "/ " )
695
- {
696
- // TODO: Implement getChildrenGroups() method.
666
+ public function getChildrenGroups ($ baseGroup = "/ " ) {
697
667
}
698
668
699
669
/**
0 commit comments