ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
StandardRepositoryPreloader.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 
30 {
31  protected \ILIAS\ResourceStorage\Resource\Repository\ResourceRepository $resource_repository;
32  protected \ILIAS\ResourceStorage\Revision\Repository\RevisionRepository $revision_repository;
33  protected \ILIAS\ResourceStorage\Information\Repository\InformationRepository $information_repository;
34  protected \ILIAS\ResourceStorage\Stakeholder\Repository\StakeholderRepository $stakeholder_repository;
35 
36  public function __construct(Repositories $repositories)
37  {
38  $this->resource_repository = $repositories->getResourceRepository();
39  $this->revision_repository = $repositories->getRevisionRepository();
40  $this->information_repository = $repositories->getInformationRepository();
41  $this->stakeholder_repository = $repositories->getStakeholderRepository();
42  }
43 
44  public function preload(array $identification_strings): void
45  {
46  $this->resource_repository->preload($identification_strings);
47  $this->revision_repository->preload($identification_strings);
48  $this->information_repository->preload($identification_strings);
49  $this->stakeholder_repository->preload($identification_strings);
50  }
51 }
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