ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.InternalDomainService.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
21 namespace ILIAS\Glossary;
22 
26 
31 {
33 
36 
37  public function __construct(
39  InternalRepoService $repo_service,
40  InternalDataService $data_service
41  ) {
42  $this->repo_service = $repo_service;
43  $this->data_service = $data_service;
44  $this->initDomainServices($DIC);
45  }
46 
47  /*
48  public function access(int $ref_id, int $user_id) : Access\AccessManager
49  {
50  return new Access\AccessManager(
51  $this,
52  $this->access,
53  $ref_id,
54  $user_id
55  );
56  }*/
57 
58  public function term(\ilObjGlossary $glossary, int $user_id = 0): TermManager
59  {
60  if ($user_id == 0) {
61  $user_id = $this->user()->getId();
62  }
63  return new TermManager(
64  $this,
65  $this->repo_service->termSession(),
66  $glossary,
67  $user_id
68  );
69  }
70 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
initDomainServices(\ILIAS\DI\Container $DIC)
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:31
global $DIC
Definition: feed.php:28
Glossary internal repo service.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
term(\ilObjGlossary $glossary, int $user_id=0)