ILIAS  release_7 Revision v7.30-3-g800a261c036
All Data Structures Namespaces Files Functions Variables Modules Pages
UserCertificateAPI.php
Go to the documentation of this file.
1 <?php declare(strict_types=1);
2 /* Copyright (c) 1998-2019 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 namespace Certificate\API;
5 
9 
14 {
17 
23  {
24  if (null === $userCertificateRepository) {
25  global $DIC;
26 
28  $DIC->database(),
29  $DIC->logger()->cert(),
30  $DIC->ctrl()
31  );
32  }
33  $this->userCertificateRepository = $userCertificateRepository;
34  }
35 
44  public function getUserCertificateData(UserDataFilter $filter, array $ilCtrlStack = []) : array
45  {
46  return $this->userCertificateRepository->getUserData($filter, $ilCtrlStack);
47  }
48 
49 
55  public function getUserCertificateDataMaxCount(UserDataFilter $filter) : int
56  {
57  return $this->userCertificateRepository->getUserCertificateDataMaxCount($filter);
58  }
59 }
getUserCertificateDataMaxCount(UserDataFilter $filter)
__construct(UserDataRepository $userCertificateRepository=null)
UserCertificateAPI constructor.
global $DIC
Definition: goto.php:24
getUserCertificateData(UserDataFilter $filter, array $ilCtrlStack=[])