ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.DomainService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Style\Content;
22 
24 
31 {
33 
34  public function __construct(
35  InternalService $internal_service
36  ) {
37  $this->internal = $internal_service;
38  }
39 
40  public function styleForObjId(int $obj_id): ObjectFacade
41  {
42  return new ObjectFacade(
43  $this->internal->data(),
44  $this->internal->domain(),
45  0,
46  $obj_id
47  );
48  }
49 
50  public function styleForRefId(int $ref_id): ObjectFacade
51  {
52  return new ObjectFacade(
53  $this->internal->data(),
54  $this->internal->domain(),
55  $ref_id
56  );
57  }
58 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Facade for consumer domain interface.
External facade for object content styles.
$ref_id
Definition: ltiauth.php:67
__construct(InternalService $internal_service)
Repository internal service.