ILIAS
trunk Revision v11.0_alpha-1702-gfd3ecb7f852
◀ ilDoc Overview
Main Page
Related Pages
Modules
+
Namespaces
Namespace List
+
Namespace Members
+
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
k
l
m
n
o
p
r
s
t
u
v
w
x
+
Variables
$
c
e
g
h
j
l
m
p
s
t
u
v
+
Enumerations
a
c
e
f
i
j
l
m
n
o
p
r
s
t
u
v
z
+
Enumerator
a
c
d
e
f
g
i
l
m
n
o
p
q
s
t
u
v
y
+
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
Ö
Enumerations
Enumerator
+
Files
File List
+
Globals
+
All
$
a
b
c
d
e
f
g
h
i
l
m
n
o
p
r
s
t
u
v
z
+
Functions
a
b
c
d
e
f
g
h
i
m
n
p
r
s
t
u
v
+
Variables
$
a
c
e
g
h
i
m
n
o
p
r
s
t
u
v
z
Enumerations
Enumerator
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
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
readonly
ilPortfolioCertificateFileService
$fileService
;
29
private
readonly
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
56
public
function
downloadFromPortfolioPage
(
ilPortfolioPage
$a_page,
int
$objectId,
int
$userId): void
57
{
58
if
(
ilPCVerification::isInPortfolioPage
($a_page,
'crta'
, $objectId)) {
59
$this->fileService->deliverCertificate($userId, $objectId);
60
}
61
62
throw
new
ilException
($this->
language
->txt(
'permission_denied'
));
63
}
64
}
ilPortfolioCertificateFileService
Definition:
class.ilPortfolioCertificateFileService.php:29
ilObjPersistentCertificateVerificationGUI\downloadFromPortfolioPage
downloadFromPortfolioPage(ilPortfolioPage $a_page, int $objectId, int $userId)
Definition:
class.ilObjPersistentCertificateVerificationGUI.php:56
ilLanguage
ilException
ilPCVerification\isInPortfolioPage
static isInPortfolioPage(ilPortfolioPage $a_page, string $a_type, int $a_id)
Definition:
class.ilPCVerification.php:82
ilObjPersistentCertificateVerificationGUI\$language
readonly ilLanguage $language
Definition:
class.ilObjPersistentCertificateVerificationGUI.php:29
ILIAS\DI\Container
Customizing of pimple-DIC for ILIAS.
Definition:
Container.php:35
null
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
Definition:
shib_logout.php:142
Container
ilObjPersistentCertificateVerificationGUI
Definition:
class.ilObjPersistentCertificateVerificationGUI.php:26
$DIC
global $DIC
Definition:
shib_login.php:22
ilPortfolioPage
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Definition:
class.ilPortfolioPage.php:24
$dic
$dic
Definition:
result.php:31
ILIAS\UI\examples\Symbol\Glyph\Language\language
language()
description: > Example for rendring a language glyph.
Definition:
language.php:41
ilObjPersistentCertificateVerificationGUI\$fileService
readonly ilPortfolioCertificateFileService $fileService
Definition:
class.ilObjPersistentCertificateVerificationGUI.php:28
ilObjPersistentCertificateVerificationGUI\__construct
__construct(?Container $dic=null, ?ilPortfolioCertificateFileService $fileService=null, ?ilLanguage $language=null)
Definition:
class.ilObjPersistentCertificateVerificationGUI.php:31
components
ILIAS
Certificate
classes
Portfolio
class.ilObjPersistentCertificateVerificationGUI.php
Generated on Thu Apr 3 2025 23:02:29 for ILIAS by
1.8.13 (using
Doxyfile
)