ILIAS  trunk Revision v11.0_alpha-1846-g895b5f47236
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.DomainService.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
21 namespace ILIAS\Style\Content;
22 
25 
32 {
34 
35  public function __construct(
36  InternalService $internal_service
37  ) {
38  $this->internal = $internal_service;
39  }
40 
41  public function styleForObjId(int $obj_id): ObjectFacade
42  {
43  return new ObjectFacade(
44  $this->internal->data(),
45  $this->internal->domain(),
46  0,
47  $obj_id
48  );
49  }
50 
51  public function styleForRefId(int $ref_id): ObjectFacade
52  {
53  return new ObjectFacade(
54  $this->internal->data(),
55  $this->internal->domain(),
56  $ref_id
57  );
58  }
59 }
External facade for object content styles.
$ref_id
Definition: ltiauth.php:65
__construct(InternalService $internal_service)