ILIAS  release_7 Revision v7.30-3-g800a261c036
ilCertificateDownloadValidator Class Reference

Validates if an active certificate is stored in the database and can be downloaded by the user. More...

+ Collaboration diagram for ilCertificateDownloadValidator:

Public Member Functions

 __construct (ilCertificateUserCertificateAccessValidator $userCertificateAccessValidator=null, ilCertificateActiveValidator $activeValidator=null)
 
 isCertificateDownloadable (int $userId, int $objId)
 

Private Attributes

 $userCertificateAccessValidator
 
 $activeValidator
 

Detailed Description

Validates if an active certificate is stored in the database and can be downloaded by the user.

Author
Niels Theen nthee.nosp@m.n@da.nosp@m.tabay.nosp@m..de

Definition at line 11 of file class.ilCertificateDownloadValidator.php.

Constructor & Destructor Documentation

◆ __construct()

Member Function Documentation

◆ isCertificateDownloadable()

ilCertificateDownloadValidator::isCertificateDownloadable ( int  $userId,
int  $objId 
)
Parameters
int$userId
int$objId
Returns
bool

Definition at line 47 of file class.ilCertificateDownloadValidator.php.

48 {
49 if (false === $this->activeValidator->validate()) {
50 return false;
51 }
52
53 return $this->userCertificateAccessValidator->validate($userId, $objId);
54 }
$objId
Definition: xapitoken.php:39

References $objId.

Field Documentation

◆ $activeValidator

ilCertificateDownloadValidator::$activeValidator
private

Definition at line 21 of file class.ilCertificateDownloadValidator.php.

Referenced by __construct().

◆ $userCertificateAccessValidator

ilCertificateDownloadValidator::$userCertificateAccessValidator
private

Definition at line 16 of file class.ilCertificateDownloadValidator.php.

Referenced by __construct().


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