ILIAS  trunk Revision v11.0_alpha-1811-gd2d5443e411
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Repository\Deletion\DomainService Class Reference
+ Collaboration diagram for ILIAS\Repository\Deletion\DomainService:

Public Member Functions

 __construct (protected InternalDataService $data, protected InternalRepoService $repo, protected InternalDomainService $domain)
 
 deletion ()
 

Protected Member Functions

 permission ()
 
 event ()
 
 object ()
 
 tree ()
 

Static Protected Attributes

static array $instance = []
 

Detailed Description

Definition at line 27 of file DomainService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Repository\Deletion\DomainService::__construct ( protected InternalDataService  $data,
protected InternalRepoService  $repo,
protected InternalDomainService  $domain 
)

Definition at line 31 of file DomainService.php.

35  {
36  }

Member Function Documentation

◆ deletion()

ILIAS\Repository\Deletion\DomainService::deletion ( )

Definition at line 38 of file DomainService.php.

References ILIAS\Repository\Deletion\DomainService\event(), ILIAS\Repository\Deletion\DomainService\permission(), and ILIAS\Repository\Deletion\DomainService\tree().

38  : Deletion
39  {
40  $trash_enabled = (bool) $this->domain->settings()->get('enable_trash');
41  return self::$instance['deletion'] ??= new Deletion(
42  $this->tree(),
43  $this->permission(),
44  $this->event(),
45  $this->object(),
46  $trash_enabled
47  );
48  }
+ Here is the call graph for this function:

◆ event()

ILIAS\Repository\Deletion\DomainService::event ( )
protected

Definition at line 60 of file DomainService.php.

Referenced by ILIAS\Repository\Deletion\DomainService\deletion().

60  : EventStandardAdapter
61  {
62  return self::$instance['event'] ??=
63  new EventStandardAdapter($this->domain);
64  }
+ Here is the caller graph for this function:

◆ object()

ILIAS\Repository\Deletion\DomainService::object ( )
protected

Definition at line 66 of file DomainService.php.

66  : ObjectStandardAdapter
67  {
68  return self::$instance['object'] ??=
69  new ObjectStandardAdapter(0);
70  }

◆ permission()

ILIAS\Repository\Deletion\DomainService::permission ( )
protected

Definition at line 50 of file DomainService.php.

References ILIAS\Repository\Deletion\DomainService\tree().

Referenced by ILIAS\Repository\Deletion\DomainService\deletion().

50  : PermissionStandardAdapter
51  {
52  return self::$instance['permission'] ??=
53  new PermissionStandardAdapter(
54  $this->domain->access(),
55  $this->domain->rbac()->admin(),
56  $this->tree()
57  );
58  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ tree()

ILIAS\Repository\Deletion\DomainService::tree ( )
protected

Definition at line 72 of file DomainService.php.

Referenced by ILIAS\Repository\Deletion\DomainService\deletion(), and ILIAS\Repository\Deletion\DomainService\permission().

72  : TreeStandardAdapter
73  {
74  return self::$instance['tree'] ??=
75  new TreeStandardAdapter(
76  $this->repo,
77  $this->domain->repositoryTree(),
78  $this->domain->user()->getId()
79  );
80  }
+ Here is the caller graph for this function:

Field Documentation

◆ $instance

array ILIAS\Repository\Deletion\DomainService::$instance = []
staticprotected

Definition at line 29 of file DomainService.php.


The documentation for this class was generated from the following file: