19 declare(strict_types=1);
42 public function __construct(
int $a_id = 0,
bool $a_reference =
true)
48 $this->certificate_settings =
new ilSetting(
'certificate');
49 $this->irss = $DIC->resourceStorage();
63 $id = $this->certificate_settings->get(
'cert_bg_image',
'');
65 if ($rid = $this->irss->manage()->find(
$id)) {
79 return '/certificates/default/';
90 $identification = $this->irss->manage()->upload($upload_result, $this->stakeholder);
91 $this->certificate_settings->set(
'cert_bg_image', $identification->serialize());
93 return $identification->serialize() !==
'';
100 $this->certificate_settings->set(
'cert_bg_image',
'');
101 $this->resource_handler->handleResourceChange($rid);
111 return (
bool) $this->certificate_settings->get(
'cert_bg_image',
'');
uploadBackgroundImage(UploadResult $upload_result)
Uploads a background image for the certificate.
readonly ResourceStorage $irss
getBackgroundImageDefaultFolder()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
readonly ilCertificateTemplateStakeholder $stakeholder
readonly ilSetting $certificate_settings
readonly Filesystem $filesystem
getBackgroundImageIdentification()
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null
readonly CertificateResourceHandler $resource_handler
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ResourceIdentification.
$id
plugin.php for ilComponentBuildPluginInfoObjectiveTest::testAddPlugins
__construct(Container $dic, ilPlugin $plugin)
static signFile(string $path_to_file)
__construct(int $a_id=0, bool $a_reference=true)