ILIAS  release_7 Revision v7.30-3-g800a261c036
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
4namespace 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}
An exception for terminatinating execution or to throw for unit testing.
getUserCertificateData(UserDataFilter $filter, array $ilCtrlStack=[])
__construct(UserDataRepository $userCertificateRepository=null)
UserCertificateAPI constructor.
getUserCertificateDataMaxCount(UserDataFilter $filter)
global $DIC
Definition: goto.php:24