ILIAS  trunk Revision v11.0_alpha-1744-gb0451eebef4
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\Taxonomy;
22 
27 {
29 
30  public function __construct(
31  InternalDomainService $domain
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)