ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
class.DomainService.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
21namespace 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(),
57 );
58 }
59}
Repository internal service.
__construct(InternalService $internal_service)
External facade for object content styles.
$ref_id
Definition: ltiauth.php:66