ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
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 
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 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
External facade for object content styles.
$ref_id
Definition: ltiauth.php:66
__construct(InternalService $internal_service)