ILIAS
release_8 Revision v8.19
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
+
Functions
_
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
a
b
c
d
e
f
g
h
j
l
m
p
s
t
u
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Ö
+
Files
File List
+
Globals
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
x
z
+
Functions
_
a
b
c
d
e
g
h
i
m
n
p
r
s
t
u
v
x
+
Variables
$
a
c
d
e
f
g
h
i
j
k
l
m
n
o
p
r
s
t
u
v
w
z
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Modules
Pages
class.ilObjPersistentCertificateVerificationGUI.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
use
ILIAS\DI\Container
;
22
26
class
ilObjPersistentCertificateVerificationGUI
27
{
28
private
ilPortfolioCertificateFileService
$fileService
;
29
private
ilLanguage
$language
;
30
31
public
function
__construct
(
32
?
Container
$dic
= null,
33
?
ilPortfolioCertificateFileService
$fileService = null,
34
?
ilLanguage
$language = null
35
) {
36
if
(null ===
$dic
) {
37
global
$DIC
;
38
$dic
=
$DIC
;
39
}
40
41
if
(null === $fileService) {
42
$fileService =
new
ilPortfolioCertificateFileService
();
43
}
44
$this->fileService =
$fileService
;
45
46
if
(null === $language) {
47
$language =
$dic
->language();
48
}
49
$this->
language
=
$language
;
50
}
51
59
public
function
downloadFromPortfolioPage
(
ilPortfolioPage
$a_page,
int
$objectId,
int
$userId): void
60
{
61
if
(
ilPCVerification::isInPortfolioPage
($a_page,
'crta'
, $objectId)) {
62
$this->fileService->deliverCertificate($userId, $objectId);
63
}
64
65
throw
new
ilException
($this->
language
->txt(
'permission_denied'
));
66
}
67
}
ilPortfolioCertificateFileService
Definition:
class.ilPortfolioCertificateFileService.php:29
ilObjPersistentCertificateVerificationGUI\downloadFromPortfolioPage
downloadFromPortfolioPage(ilPortfolioPage $a_page, int $objectId, int $userId)
Definition:
class.ilObjPersistentCertificateVerificationGUI.php:59
ilLanguage
ilException
ilPCVerification\isInPortfolioPage
static isInPortfolioPage(ilPortfolioPage $a_page, string $a_type, int $a_id)
Definition:
class.ilPCVerification.php:92
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:31
$DIC
global $DIC
Definition:
feed.php:28
Container
ilObjPersistentCertificateVerificationGUI
Definition:
class.ilObjPersistentCertificateVerificationGUI.php:26
ilPortfolioPage
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilPortfolioPage.php:24
ilObjPersistentCertificateVerificationGUI\$fileService
ilPortfolioCertificateFileService $fileService
Definition:
class.ilObjPersistentCertificateVerificationGUI.php:28
$dic
$dic
Definition:
result.php:32
ILIAS\UI\examples\Symbol\Glyph\Language\language
language()
Definition:
language.php:7
ilObjPersistentCertificateVerificationGUI\__construct
__construct(?Container $dic=null, ?ilPortfolioCertificateFileService $fileService=null, ?ilLanguage $language=null)
Definition:
class.ilObjPersistentCertificateVerificationGUI.php:31
ilObjPersistentCertificateVerificationGUI\$language
ilLanguage $language
Definition:
class.ilObjPersistentCertificateVerificationGUI.php:29
Services
Certificate
classes
Portfolio
class.ilObjPersistentCertificateVerificationGUI.php
Generated on Tue Apr 1 2025 22:01:48 for ILIAS by
1.8.13 (using
Doxyfile
)