ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\Glossary\InternalDomainService Class Reference
+ Collaboration diagram for ILIAS\Glossary\InternalDomainService:

Public Member Functions

 __construct (Container $DIC, protected InternalRepoService $repo_service, protected InternalDataService $data_service)
 
 log ()
 
 term (\ilObjGlossary $glossary, int $user_id=0)
 
 flashcard (int $glo_ref_id=0, int $user_id=0)
 
 flashcardShuffle ()
 
 metadata ()
 
 presentation (\ilObjGlossary $glossary, int $user_id=0)
 
 taxonomy (\ilObjGlossary $glossary)
 
 table ()
 
 glossarySettings ()
 

Static Protected Attributes

static array $instance = []
 

Detailed Description

Definition at line 34 of file class.InternalDomainService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Glossary\InternalDomainService::__construct ( Container  $DIC,
protected InternalRepoService  $repo_service,
protected InternalDataService  $data_service 
)

Definition at line 40 of file class.InternalDomainService.php.

44 {
45 $this->initDomainServices($DIC);
46 }
initDomainServices(\ILIAS\DI\Container $DIC)

References ILIAS\Repository\initDomainServices().

+ Here is the call graph for this function:

Member Function Documentation

◆ flashcard()

ILIAS\Glossary\InternalDomainService::flashcard ( int  $glo_ref_id = 0,
int  $user_id = 0 
)

Definition at line 66 of file class.InternalDomainService.php.

66 : FlashcardManager
67 {
68 if ($user_id == 0) {
69 $user_id = $this->user()->getId();
70 }
71 return new FlashcardManager(
72 $this,
73 $this->repo_service,
74 $this->data_service,
75 $glo_ref_id,
77 );
78 }

References $user_id, and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ flashcardShuffle()

ILIAS\Glossary\InternalDomainService::flashcardShuffle ( )

Definition at line 80 of file class.InternalDomainService.php.

80 : FlashcardShuffleManager
81 {
82 return new FlashcardShuffleManager();
83 }

◆ glossarySettings()

ILIAS\Glossary\InternalDomainService::glossarySettings ( )

Definition at line 116 of file class.InternalDomainService.php.

116 : SettingsManager
117 {
118 return self::$instance["settings"] ??= new SettingsManager(
119 $this->data_service,
120 $this->repo_service,
121 $this
122 );
123 }

◆ log()

ILIAS\Glossary\InternalDomainService::log ( )

Definition at line 48 of file class.InternalDomainService.php.

48 : \ilLogger
49 {
50 return $this->logger()->glo();
51 }
Component logger with individual log levels by component id.

References ILIAS\Repository\logger().

+ Here is the call graph for this function:

◆ metadata()

ILIAS\Glossary\InternalDomainService::metadata ( )

Definition at line 85 of file class.InternalDomainService.php.

85 : MetadataManager
86 {
87 return new MetadataManager($this->learningObjectMetadata());
88 }

References ILIAS\Repository\learningObjectMetadata().

+ Here is the call graph for this function:

◆ presentation()

ILIAS\Glossary\InternalDomainService::presentation ( \ilObjGlossary  $glossary,
int  $user_id = 0 
)

Definition at line 90 of file class.InternalDomainService.php.

90 : PresentationManager
91 {
92 if ($user_id == 0) {
93 $user_id = $this->user()->getId();
94 }
95 return new PresentationManager(
96 $this,
97 $this->repo_service->presentationSession(),
98 $glossary,
100 );
101 }

References $user_id, and ILIAS\Repository\user().

+ Here is the call graph for this function:

◆ table()

ILIAS\Glossary\InternalDomainService::table ( )

Definition at line 111 of file class.InternalDomainService.php.

111 : TableManager
112 {
113 return new TableManager();
114 }

◆ taxonomy()

ILIAS\Glossary\InternalDomainService::taxonomy ( \ilObjGlossary  $glossary)

Definition at line 103 of file class.InternalDomainService.php.

103 : TaxonomyManager
104 {
105 return new TaxonomyManager(
106 $this->DIC->taxonomy()->domain(),
107 $glossary
108 );
109 }

◆ term()

ILIAS\Glossary\InternalDomainService::term ( \ilObjGlossary  $glossary,
int  $user_id = 0 
)

Definition at line 53 of file class.InternalDomainService.php.

53 : TermManager
54 {
55 if ($user_id == 0) {
56 $user_id = $this->user()->getId();
57 }
58 return new TermManager(
59 $this,
60 $this->repo_service->termSession(),
61 $glossary,
63 );
64 }

References $user_id, and ILIAS\Repository\user().

Referenced by ilTermDefinitionBulkCreationGUI\__construct().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $instance

array ILIAS\Glossary\InternalDomainService::$instance = []
staticprotected

Definition at line 38 of file class.InternalDomainService.php.


The documentation for this class was generated from the following file: