ILIAS  trunk Revision v11.0_alpha-2645-g16283d3b3f8
ILIAS\Glossary\InternalRepoService Class Reference
+ Inheritance diagram for ILIAS\Glossary\InternalRepoService:
+ Collaboration diagram for ILIAS\Glossary\InternalRepoService:

Public Member Functions

 __construct (protected InternalDataService $data, protected \ilDBInterface $db)
 
 termSession ()
 
 flashcardTerm ()
 
 flashcardBox ()
 
 flashcardSession ()
 
 presentationSession ()
 
 settings ()
 

Static Protected Attributes

static array $instance = []
 

Detailed Description

Definition at line 25 of file class.InternalRepoService.php.

Constructor & Destructor Documentation

◆ __construct()

ILIAS\Glossary\InternalRepoService::__construct ( protected InternalDataService  $data,
protected \ilDBInterface  $db 
)

Definition at line 29 of file class.InternalRepoService.php.

32  {
33  }

Member Function Documentation

◆ flashcardBox()

ILIAS\Glossary\InternalRepoService::flashcardBox ( )

Implements ILIAS\Glossary\InternalRepoServiceInterface.

Definition at line 45 of file class.InternalRepoService.php.

45  : Flashcard\FlashcardBoxDBRepository
46  {
47  return new Flashcard\FlashcardBoxDBRepository($this->db, $this->data);
48  }

◆ flashcardSession()

ILIAS\Glossary\InternalRepoService::flashcardSession ( )

Implements ILIAS\Glossary\InternalRepoServiceInterface.

Definition at line 50 of file class.InternalRepoService.php.

50  : Flashcard\FlashcardSessionRepositoryInterface
51  {
52  return new Flashcard\FlashcardSessionRepository();
53  }

◆ flashcardTerm()

ILIAS\Glossary\InternalRepoService::flashcardTerm ( )

Implements ILIAS\Glossary\InternalRepoServiceInterface.

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

40  : Flashcard\FlashcardTermDBRepository
41  {
42  return new Flashcard\FlashcardTermDBRepository($this->db, $this->data);
43  }

◆ presentationSession()

ILIAS\Glossary\InternalRepoService::presentationSession ( )

Definition at line 55 of file class.InternalRepoService.php.

55  : Presentation\PresentationSessionRepository
56  {
57  return new Presentation\PresentationSessionRepository();
58  }

◆ settings()

ILIAS\Glossary\InternalRepoService::settings ( )

Definition at line 60 of file class.InternalRepoService.php.

60  : SettingsDBRepository
61  {
62  return self::$instance["settings"] ??= new SettingsDBRepository(
63  $this->db,
64  $this->data
65  );
66  }

◆ termSession()

ILIAS\Glossary\InternalRepoService::termSession ( )

Implements ILIAS\Glossary\InternalRepoServiceInterface.

Definition at line 35 of file class.InternalRepoService.php.

35  : Term\TermSessionRepository
36  {
37  return new Term\TermSessionRepository();
38  }

Field Documentation

◆ $instance

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

Definition at line 27 of file class.InternalRepoService.php.


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