ILIAS  trunk Revision v11.0_alpha-1866-gfa368f7776e
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
ILIAS\Style\Content\InternalDomainService Class Reference
+ Collaboration diagram for ILIAS\Style\Content\InternalDomainService:

Public Member Functions

 __construct (Container $DIC, InternalRepoService $repo_service, protected 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 ()
 
 cssBuilder (\ilObjStyleSheet $style, string $image_dir="")
 
 style ($style_id)
 

Protected Attributes

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

Detailed Description

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

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

Constructor & Destructor Documentation

◆ __construct()

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

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

References $DIC, ILIAS\Repository\initDomainServices(), and ILIAS\DI\Container\rbac().

48  {
49  $this->rbacsystem = $DIC->rbac()->system();
50  $this->repo_service = $repo_service;
51  $this->initDomainServices($DIC);
52  $this->dic = $DIC;
53  }
initDomainServices(\ILIAS\DI\Container $DIC)
global $DIC
Definition: shib_login.php:22
+ 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 56 of file class.InternalDomainService.php.

References $ref_id, and $user_id.

59  : StyleAccessManager {
60  return new StyleAccessManager(
61  $this->rbacsystem,
62  $ref_id,
63  $user_id
64  );
65  }
$ref_id
Definition: ltiauth.php:65

◆ characteristic()

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

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

References ILIAS\Repository\user().

70  : CharacteristicManager {
71  return new CharacteristicManager(
72  $style_id,
73  $access_manager,
74  $this->repo_service->characteristic(),
75  $this->repo_service->characteristicCopyPaste(),
76  $this->repo_service->color(),
77  $this->user()
78  );
79  }
+ Here is the call graph for this function:

◆ color()

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

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

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

◆ cssBuilder()

ILIAS\Style\Content\InternalDomainService::cssBuilder ( \ilObjStyleSheet  $style,
string  $image_dir = "" 
)

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

138  : CSSBuilder {
139  return new CSSBuilder(
140  $style,
141  $image_dir
142  );
143  }

◆ image()

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

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

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

◆ log()

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

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

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

Referenced by ILIAS\Style\Content\InternalDomainService\log().

127  : \ilLogger
128  {
129  if (is_null($this->log)) {
130  $this->log = $this->logger()->styl();
131  }
132  return $this->log;
133  }
$log
Definition: result.php:32
Component logger with individual log levels by component id.
+ Here is the call graph for this function:
+ Here is the caller 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 117 of file class.InternalDomainService.php.

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

117  : ObjectManager
118  {
119  return new ObjectManager(
120  $this->repo_service,
121  $this,
122  $ref_id,
123  $obj_id
124  );
125  }
$ref_id
Definition: ltiauth.php:65
+ Here is the caller graph for this function:

◆ repositoryContainer()

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

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

Referenced by ilObjectContentStyleSettingsGUI\__construct().

105  : ContainerManager
106  {
107  return new ContainerManager(
108  $this->repo_service,
109  $ref_id
110  );
111  }
$ref_id
Definition: ltiauth.php:65
+ Here is the caller graph for this function:

◆ style()

ILIAS\Style\Content\InternalDomainService::style (   $style_id)

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

145  : StyleManager
146  {
147  return new StyleManager(
148  $this->data_service,
149  $this->repo_service,
150  $this,
152  $style_id
153  );
154  }

Field Documentation

◆ $dic

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

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

◆ $log

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

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

◆ $rbacsystem

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

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

◆ $repo_service

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

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


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