ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
ilObjPersistentCertificateVerificationGUI Class Reference
+ Collaboration diagram for ilObjPersistentCertificateVerificationGUI:

Public Member Functions

 __construct (\ILIAS\DI\Container $dic=null, ilPortfolioCertificateFileService $fileService=null, ilLanguage $language=null)
 
 downloadFromPortfolioPage (ilPortfolioPage $a_page, int $objectId, int $userId)
 

Private Attributes

 $dic
 
 $fileService
 
 $language
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

ilObjPersistentCertificateVerificationGUI::__construct ( \ILIAS\DI\Container  $dic = null,
ilPortfolioCertificateFileService  $fileService = null,
ilLanguage  $language = null 
)

Definition at line 24 of file class.ilObjPersistentCertificateVerificationGUI.php.

References $dic, $DIC, $fileService, $language, and language().

28  {
29  if (null === $dic) {
30  global $DIC;
31  $dic = $DIC;
32  }
33  $this->dic = $dic;
34 
35  if (null === $fileService) {
36  $fileService = new ilPortfolioCertificateFileService();
37  }
38  $this->fileService = $fileService;
39 
40  if (null === $language) {
41  $language = $dic->language();
42  }
43  $this->language = $language;
44  }
$DIC
Definition: xapitoken.php:46
language()
Definition: language.php:2
+ Here is the call graph for this function:

Member Function Documentation

◆ downloadFromPortfolioPage()

ilObjPersistentCertificateVerificationGUI::downloadFromPortfolioPage ( ilPortfolioPage  $a_page,
int  $objectId,
int  $userId 
)
Parameters
ilPortfolioPage$a_page
int$objectId
int$userId
Exceptions
ilException
ilFileUtilsException

Definition at line 53 of file class.ilObjPersistentCertificateVerificationGUI.php.

References ilPCVerification\isInPortfolioPage(), and language().

54  {
55  if (ilPCVerification::isInPortfolioPage($a_page, 'crta', (int) $objectId)) {
56  $this->fileService->deliverCertificate((int) $userId, (int) $objectId);
57  }
58 
59  throw new ilException($this->language->txt('permission_denied'));
60  }
static isInPortfolioPage(ilPortfolioPage $a_page, $a_type, $a_id)
language()
Definition: language.php:2
+ Here is the call graph for this function:

Field Documentation

◆ $dic

ilObjPersistentCertificateVerificationGUI::$dic
private

Definition at line 12 of file class.ilObjPersistentCertificateVerificationGUI.php.

Referenced by __construct().

◆ $fileService

ilObjPersistentCertificateVerificationGUI::$fileService
private

Definition at line 17 of file class.ilObjPersistentCertificateVerificationGUI.php.

Referenced by __construct().

◆ $language

ilObjPersistentCertificateVerificationGUI::$language
private

Definition at line 22 of file class.ilObjPersistentCertificateVerificationGUI.php.

Referenced by __construct().


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