ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Create PDF certificates. More...
Public Member Functions | |
__construct (ilCertificateAdapter $adapter, ilCertificatePlaceholderDescription $placeholderDescriptionObject, ilCertificatePlaceholderValues $placeholderValuesObject, $objectId, $certificatePath, ilCertificateTemplateRepository $templateRepository=null, ilUserCertificateRepository $certificateRepository=null) | |
ilCertificate constructor More... | |
getBackgroundImageDirectory ($asRelative=false, $backgroundImagePath='') | |
Returns the filesystem path of the background image. More... | |
getBackgroundImageName () | |
Returns the filename of the background image. More... | |
getBackgroundImageThumbPath () | |
Returns the filesystem path of the background image thumbnail. More... | |
getBackgroundImageTempfilePath () | |
Returns the filesystem path of the background image temp file during upload. More... | |
getXSLPath () | |
Returns the filesystem path of the XSL-FO file. More... | |
getXSLName () | |
Returns the filename of the XSL-FO file. More... | |
getBackgroundImagePathWeb () | |
Returns the web path of the background image. More... | |
getBackgroundImageThumbPathWeb () | |
Returns the web path of the background image thumbnail. More... | |
deleteBackgroundImage ($version) | |
Deletes the background image of a certificate. More... | |
createCertificateFile ($xslfo, $filename='') | |
Saves the XSL-FO code to a file. More... | |
hasBackgroundImage () | |
Checks for the background image of the certificate. More... | |
isComplete () | |
Checks the status of the certificate. More... | |
getAdapter () | |
Gets the adapter. More... | |
setAdapter ($adapter) | |
Sets the adapter. More... | |
createArchiveDirectory () | |
addPDFtoArchiveDirectory ($pdfdata, $dir, $filename) | |
Adds PDF data as a file to a given directory. More... | |
zipCertificatesInArchiveDirectory ($dir, $deliver=true) | |
Create a ZIP file from a directory with certificates. More... | |
readActive () | |
Static Public Member Functions | |
static | _getXSLName () |
Returns the filename of the XSL-FO file. More... | |
static | isActive () |
static | isObjectActive ($a_obj_id) |
Protected Attributes | |
$ctrl | |
$tree | |
$ilias | |
$lng | |
$adapter | |
$settings | |
$log | |
$db | |
Static Protected Attributes | |
static | $is_active |
Private Attributes | |
$templateRepository | |
$placeholderDescriptionObject | |
$objectId | |
$certificateRepository | |
$certificatePath | |
$placeholderValuesObject | |
Create PDF certificates.
Base class to create PDF certificates using XML-FO XML transformations
Definition at line 15 of file class.ilCertificate.php.
ilCertificate::__construct | ( | ilCertificateAdapter | $adapter, |
ilCertificatePlaceholderDescription | $placeholderDescriptionObject, | ||
ilCertificatePlaceholderValues | $placeholderValuesObject, | ||
$objectId, | |||
$certificatePath, | |||
ilCertificateTemplateRepository | $templateRepository = null , |
||
ilUserCertificateRepository | $certificateRepository = null |
||
) |
ilCertificate constructor
ilCertificateAdapter | $adapter | The certificate adapter needed to construct the certificate |
ilCertificatePlaceholderDescription | $placeholderDescriptionObject | |
ilCertificatePlaceholderValues | $placeholderValuesObject | |
$objectId | - Object ID of the current component (e.g. course, test, exercise) | |
$certificatePath | - Path to certificate data like background images etc. | |
ilCertificateTemplateRepository | null | $templateRepository | |
ilUserCertificateRepository | null | $certificateRepository |
Definition at line 112 of file class.ilCertificate.php.
References $adapter, $certificatePath, $certificateRepository, $DIC, $objectId, $placeholderDescriptionObject, $placeholderValuesObject, $templateRepository, and settings().
|
static |
Returns the filename of the XSL-FO file.
Definition at line 227 of file class.ilCertificate.php.
ilCertificate::addPDFtoArchiveDirectory | ( | $pdfdata, | |
$dir, | |||
$filename | |||
) |
Adds PDF data as a file to a given directory.
binary | $pdfdata | Binary PDF data |
string | $dir | Directory to contain the PDF data |
string | $filename | The filename to save the PDF data |
Definition at line 397 of file class.ilCertificate.php.
ilCertificate::createArchiveDirectory | ( | ) |
Definition at line 380 of file class.ilCertificate.php.
ilCertificate::createCertificateFile | ( | $xslfo, | |
$filename = '' |
|||
) |
Saves the XSL-FO code to a file.
string | $xslfo | XSL-FO code |
Definition at line 293 of file class.ilCertificate.php.
References $filename, getXSLPath(), and ilUtil\makeDirParents().
ilCertificate::deleteBackgroundImage | ( | $version | ) |
Deletes the background image of a certificate.
Definition at line 269 of file class.ilCertificate.php.
References $filename, $result, $version, getBackgroundImageDirectory(), getBackgroundImageTempfilePath(), and getBackgroundImageThumbPath().
ilCertificate::getAdapter | ( | ) |
Gets the adapter.
Definition at line 356 of file class.ilCertificate.php.
References $adapter.
Referenced by ilCertificateSettingsFormRepository\createForm().
ilCertificate::getBackgroundImageDirectory | ( | $asRelative = false , |
|
$backgroundImagePath = '' |
|||
) |
Returns the filesystem path of the background image.
bool | $asRelative |
Definition at line 159 of file class.ilCertificate.php.
References $certificatePath.
Referenced by deleteBackgroundImage().
ilCertificate::getBackgroundImageName | ( | ) |
Returns the filename of the background image.
Definition at line 177 of file class.ilCertificate.php.
Referenced by getBackgroundImagePathWeb(), and getBackgroundImageThumbPath().
ilCertificate::getBackgroundImagePathWeb | ( | ) |
Returns the web path of the background image.
Definition at line 237 of file class.ilCertificate.php.
References getBackgroundImageName(), and ilUtil\removeTrailingPathSeparators().
ilCertificate::getBackgroundImageTempfilePath | ( | ) |
Returns the filesystem path of the background image temp file during upload.
Definition at line 197 of file class.ilCertificate.php.
Referenced by deleteBackgroundImage().
ilCertificate::getBackgroundImageThumbPath | ( | ) |
Returns the filesystem path of the background image thumbnail.
Definition at line 187 of file class.ilCertificate.php.
References getBackgroundImageName().
Referenced by ilCertificateSettingsFormRepository\createForm(), deleteBackgroundImage(), and getBackgroundImageThumbPathWeb().
ilCertificate::getBackgroundImageThumbPathWeb | ( | ) |
Returns the web path of the background image thumbnail.
Definition at line 254 of file class.ilCertificate.php.
References getBackgroundImageThumbPath(), and ilUtil\removeTrailingPathSeparators().
ilCertificate::getXSLName | ( | ) |
Returns the filename of the XSL-FO file.
Definition at line 217 of file class.ilCertificate.php.
Referenced by getXSLPath().
ilCertificate::getXSLPath | ( | ) |
Returns the filesystem path of the XSL-FO file.
Definition at line 207 of file class.ilCertificate.php.
References getXSLName().
Referenced by createCertificateFile().
ilCertificate::hasBackgroundImage | ( | ) |
Checks for the background image of the certificate.
ilException |
Definition at line 314 of file class.ilCertificate.php.
References $template.
Referenced by ilCertificateSettingsFormRepository\createForm().
|
static |
Definition at line 423 of file class.ilCertificate.php.
Referenced by ilCourseCertificateAdapter\_preloadListData(), ilPCPlaceHolderGUI\getAvailableTypes(), ilCertificateMigrationJob\getScormCertificates(), ilTestTabsManager\getSettingsSubTabs(), ilExerciseCertificateAdapter\hasUserCertificate(), ilAchievements\isActive(), ilObjExerciseGUI\setSettingsSubTabs(), ilObjSAHSLearningModuleGUI\setSettingsSubTabs(), and ilObjCourseGUI\setSubTabs().
ilCertificate::isComplete | ( | ) |
Checks the status of the certificate.
Definition at line 338 of file class.ilCertificate.php.
|
static |
int | $a_obj_id |
Definition at line 446 of file class.ilCertificate.php.
Referenced by ilExerciseCertificateAdapter\hasUserCertificate(), and ilCertificateMigrationJob\run().
ilCertificate::readActive | ( | ) |
Definition at line 481 of file class.ilCertificate.php.
ilCertificate::setAdapter | ( | $adapter | ) |
Sets the adapter.
object | $adapter | Adapter |
Definition at line 366 of file class.ilCertificate.php.
References $adapter.
ilCertificate::zipCertificatesInArchiveDirectory | ( | $dir, | |
$deliver = true |
|||
) |
Create a ZIP file from a directory with certificates.
string | $dir | Directory containing the certificates |
boolean | $deliver | TRUE to deliver the ZIP file, FALSE to return the filename only |
Definition at line 411 of file class.ilCertificate.php.
|
protected |
Definition at line 50 of file class.ilCertificate.php.
Referenced by __construct(), getAdapter(), and setAdapter().
|
private |
Definition at line 95 of file class.ilCertificate.php.
Referenced by __construct(), and getBackgroundImageDirectory().
|
private |
Definition at line 90 of file class.ilCertificate.php.
Referenced by __construct().
|
protected |
Definition at line 22 of file class.ilCertificate.php.
|
protected |
Definition at line 65 of file class.ilCertificate.php.
|
protected |
Definition at line 36 of file class.ilCertificate.php.
|
staticprotected |
Definition at line 70 of file class.ilCertificate.php.
|
protected |
Definition at line 43 of file class.ilCertificate.php.
|
protected |
Definition at line 60 of file class.ilCertificate.php.
|
private |
Definition at line 85 of file class.ilCertificate.php.
Referenced by __construct().
|
private |
Definition at line 80 of file class.ilCertificate.php.
Referenced by __construct().
|
private |
Definition at line 100 of file class.ilCertificate.php.
Referenced by __construct().
|
protected |
Definition at line 55 of file class.ilCertificate.php.
|
private |
Definition at line 75 of file class.ilCertificate.php.
Referenced by __construct().
|
protected |
Definition at line 29 of file class.ilCertificate.php.