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
22
27{
29
30 public function __construct(
32 ) {
33 $this->domain = $domain;
34 }
35
39 public function getUsageOfObject(int $obj_id, bool $include_titles = false): array
40 {
41 return $this->domain->usage()->getUsageOfObject($obj_id, $include_titles);
42 }
43
44 public function isActivated(int $obj_id): bool
45 {
46 return $this->domain->settings($obj_id)->isActivated();
47 }
48}
getUsageOfObject(int $obj_id, bool $include_titles=false)
Returns the taxonomies (ids or array with id/title) used by a repository object.
__construct(InternalDomainService $domain)