ILIAS  release_8 Revision v8.25-1-g13de6a5eca6
class.InternalDomainService.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
21namespace ILIAS\Glossary;
22
26
31{
33
36
37 public function __construct(
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}
Customizing of pimple-DIC for ILIAS.
Definition: Container.php:32
term(\ilObjGlossary $glossary, int $user_id=0)
__construct(Container $DIC, InternalRepoService $repo_service, InternalDataService $data_service)
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
global $DIC
Definition: feed.php:28
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
initDomainServices(\ILIAS\DI\Container $DIC)