ILIAS  release_8 Revision v8.24
ILIAS\Style\Content\InternalDomainService Class Reference
+ Collaboration diagram for ILIAS\Style\Content\InternalDomainService:

Public Member Functions

 __construct (Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
 
 access (int $ref_id=0, int $user_id=0)
 
 characteristic (int $style_id, StyleAccessManager $access_manager)
 
 color (int $style_id, StyleAccessManager $access_manager)
 
 image (int $style_id, StyleAccessManager $access_manager)
 
 repositoryContainer (int $ref_id)
 
 object (int $ref_id, int $obj_id=0)
 Objects without ref id (e.g. More...
 
 log ()
 

Protected Attributes

ilLogger $log = null
 
Container $dic
 
InternalRepoService $repo_service
 
InternalDataService $data_service
 
ilRbacSystem $rbacsystem
 

Detailed Description

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

Definition at line 33 of file class.InternalDomainService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Style\Content\InternalDomainService::__construct ( Container  $DIC,
InternalRepoService  $repo_service,
InternalDataService  $data_service 
)

Definition at line 43 of file class.InternalDomainService.php.

47 {
48 $this->rbacsystem = $DIC->rbac()->system();
49 $this->repo_service = $repo_service;
50 $this->initDomainServices($DIC);
51 $this->dic = $DIC;
52 }
global $DIC
Definition: feed.php:28
initDomainServices(\ILIAS\DI\Container $DIC)

References $DIC, ILIAS\Repository\InternalDomainService\$repo_service, and ILIAS\Repository\initDomainServices().

+ Here is the call graph for this function:

Member Function Documentation

◆ access()

ILIAS\Style\Content\InternalDomainService::access ( int  $ref_id = 0,
int  $user_id = 0 
)

Definition at line 55 of file class.InternalDomainService.php.

59 return new StyleAccessManager(
60 $this->rbacsystem,
61 $ref_id,
62 $user_id
63 );
64 }
Manages access to content style editing.
$ref_id
Definition: ltiauth.php:67

◆ characteristic()

ILIAS\Style\Content\InternalDomainService::characteristic ( int  $style_id,
StyleAccessManager  $access_manager 
)

Definition at line 66 of file class.InternalDomainService.php.

69 : CharacteristicManager {
70 return new CharacteristicManager(
71 $style_id,
72 $access_manager,
73 $this->repo_service->characteristic(),
74 $this->repo_service->characteristicCopyPaste(),
75 $this->repo_service->color(),
76 $this->user()
77 );
78 }

◆ color()

ILIAS\Style\Content\InternalDomainService::color ( int  $style_id,
StyleAccessManager  $access_manager 
)

Definition at line 80 of file class.InternalDomainService.php.

83 : ColorManager {
84 return new ColorManager(
85 $style_id,
86 $access_manager,
87 $this->repo_service->characteristic(),
88 $this->repo_service->color()
89 );
90 }

◆ image()

ILIAS\Style\Content\InternalDomainService::image ( int  $style_id,
StyleAccessManager  $access_manager 
)

Definition at line 92 of file class.InternalDomainService.php.

95 : ImageManager {
96 return new ImageManager(
97 $style_id,
98 $access_manager,
99 $this->repo_service->image()
100 );
101 }

◆ log()

ILIAS\Style\Content\InternalDomainService::log ( )

Definition at line 125 of file class.InternalDomainService.php.

125 : \ilLogger
126 {
127 if (is_null($this->log)) {
128 $this->log = $this->logger()->styl();
129 }
130 return $this->log;
131 }
Component logger with individual log levels by component id.
$log
Definition: result.php:33

References $log, and ILIAS\Repository\logger().

+ Here is the call graph for this function:

◆ object()

ILIAS\Style\Content\InternalDomainService::object ( int  $ref_id,
int  $obj_id = 0 
)

Objects without ref id (e.g.

portfolios) can use the manager with a ref_id of 0, e.g. to get selectable styles

Definition at line 115 of file class.InternalDomainService.php.

115 : ObjectManager
116 {
117 return new ObjectManager(
118 $this->repo_service,
119 $this,
120 $ref_id,
121 $obj_id
122 );
123 }

References $ref_id.

Referenced by ILIAS\Style\Content\Object\ObjectFacade\__construct(), and ilObjectContentStyleSettingsGUI\__construct().

+ Here is the caller graph for this function:

◆ repositoryContainer()

ILIAS\Style\Content\InternalDomainService::repositoryContainer ( int  $ref_id)

Definition at line 103 of file class.InternalDomainService.php.

103 : ContainerManager
104 {
105 return new ContainerManager(
106 $this->repo_service,
107 $ref_id
108 );
109 }

References $ref_id.

Referenced by ilObjectContentStyleSettingsGUI\__construct().

+ Here is the caller graph for this function:

Field Documentation

◆ $data_service

InternalDataService ILIAS\Style\Content\InternalDomainService::$data_service
protected

Definition at line 40 of file class.InternalDomainService.php.

◆ $dic

Container ILIAS\Style\Content\InternalDomainService::$dic
protected

Definition at line 38 of file class.InternalDomainService.php.

◆ $log

ilLogger ILIAS\Style\Content\InternalDomainService::$log = null
protected

Definition at line 37 of file class.InternalDomainService.php.

◆ $rbacsystem

ilRbacSystem ILIAS\Style\Content\InternalDomainService::$rbacsystem
protected

Definition at line 41 of file class.InternalDomainService.php.

◆ $repo_service

InternalRepoService ILIAS\Style\Content\InternalDomainService::$repo_service
protected

Definition at line 39 of file class.InternalDomainService.php.


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