ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
StandardRepositoryPreloader.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
25 
31 {
32  protected \ILIAS\ResourceStorage\Resource\Repository\ResourceRepository $resource_repository;
33  protected \ILIAS\ResourceStorage\Revision\Repository\RevisionRepository $revision_repository;
34  protected \ILIAS\ResourceStorage\Information\Repository\InformationRepository $information_repository;
35  protected \ILIAS\ResourceStorage\Stakeholder\Repository\StakeholderRepository $stakeholder_repository;
37 
38  public function __construct(Repositories $repositories)
39  {
40  $this->resource_repository = $repositories->getResourceRepository();
41  $this->revision_repository = $repositories->getRevisionRepository();
42  $this->information_repository = $repositories->getInformationRepository();
43  $this->stakeholder_repository = $repositories->getStakeholderRepository();
44  $this->flavour_repository = $repositories->getFlavourRepository();
45  }
46 
47  public function preload(array $identification_strings): void
48  {
49  $this->resource_repository->preload($identification_strings);
50  $this->revision_repository->preload($identification_strings);
51  $this->information_repository->preload($identification_strings);
52  $this->stakeholder_repository->preload($identification_strings);
53  $this->flavour_repository->preload($identification_strings);
54  }
55 }
ILIAS ResourceStorage Resource Repository ResourceRepository $resource_repository
ILIAS ResourceStorage Stakeholder Repository StakeholderRepository $stakeholder_repository
ILIAS ResourceStorage Information Repository InformationRepository $information_repository
ILIAS ResourceStorage Revision Repository RevisionRepository $revision_repository