|
ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Collaboration diagram for ilCertificateTemplateRepository:Public Member Functions | |
| __construct (\ilDBInterface $database, \ilLogger $logger=null, \ilObjectDataCache $objectDataCache=null) | |
| save (ilCertificateTemplate $certificateTemplate) | |
| updateActivity (ilCertificateTemplate $certificateTemplate, bool $currentlyActive) | |
| fetchTemplate (int $templateId) | |
| fetchCertificateTemplatesByObjId (int $objId) | |
| fetchCurrentlyUsedCertificate (int $objId) | |
| fetchCurrentlyActiveCertificate (int $objId) | |
| fetchPreviousCertificate (int $objId) | |
| Fetch latest created certificate EVEN IF it is deleted. More... | |
| deleteTemplate (int $templateId, int $objectId) | |
| fetchActiveTemplatesByType (string $type) | |
| fetchFirstCreatedTemplate (int $objId) | |
Private Member Functions | |
| deactivatePreviousTemplates (int $objId) | |
| createCertificateTemplate (array $row) | |
Private Attributes | |
| $database | |
| $logger | |
| $objectDataCache | |
Repository that allows interaction with the database in the context of certificate templates.
Definition at line 10 of file class.ilCertificateTemplateRepository.php.
| ilCertificateTemplateRepository::__construct | ( | \ilDBInterface | $database, |
| \ilLogger | $logger = null, |
||
| \ilObjectDataCache | $objectDataCache = null |
||
| ) |
| \ilDBInterface | $database | |
| \ilLogger | $logger | |
| \ilObjectDataCache | null | $objectDataCache |
Definition at line 32 of file class.ilCertificateTemplateRepository.php.
References $database, $DIC, $logger, and $objectDataCache.
|
private |
| array | $row |
Definition at line 373 of file class.ilCertificateTemplateRepository.php.
References $row.
Referenced by fetchActiveTemplatesByType(), fetchCertificateTemplatesByObjId(), fetchCurrentlyActiveCertificate(), fetchCurrentlyUsedCertificate(), fetchFirstCreatedTemplate(), and fetchTemplate().
Here is the caller graph for this function:
|
private |
| int | $objId |
| ilDatabaseException |
Definition at line 355 of file class.ilCertificateTemplateRepository.php.
Referenced by save().
Here is the caller graph for this function:| ilCertificateTemplateRepository::deleteTemplate | ( | int | $templateId, |
| int | $objectId | ||
| ) |
| int | $templateId | |
| int | $objectId |
| ilDatabaseException |
Definition at line 256 of file class.ilCertificateTemplateRepository.php.
| ilCertificateTemplateRepository::fetchActiveTemplatesByType | ( | string | $type | ) |
| string | $type |
Definition at line 307 of file class.ilCertificateTemplateRepository.php.
References $query, $result, $row, $type, and createCertificateTemplate().
Here is the call graph for this function:| ilCertificateTemplateRepository::fetchCertificateTemplatesByObjId | ( | int | $objId | ) |
| int | $objId |
Definition at line 119 of file class.ilCertificateTemplateRepository.php.
References $query, $result, $row, and createCertificateTemplate().
Referenced by fetchPreviousCertificate().
Here is the call graph for this function:
Here is the caller graph for this function:| ilCertificateTemplateRepository::fetchCurrentlyActiveCertificate | ( | int | $objId | ) |
| int | $objId |
| ilException |
Definition at line 190 of file class.ilCertificateTemplateRepository.php.
References $query, $row, and createCertificateTemplate().
Here is the call graph for this function:| ilCertificateTemplateRepository::fetchCurrentlyUsedCertificate | ( | int | $objId | ) |
| int | $objId |
Definition at line 147 of file class.ilCertificateTemplateRepository.php.
References $query, $row, and createCertificateTemplate().
Here is the call graph for this function:| ilCertificateTemplateRepository::fetchFirstCreatedTemplate | ( | int | $objId | ) |
| int | $objId |
Definition at line 330 of file class.ilCertificateTemplateRepository.php.
References $query, $row, and createCertificateTemplate().
Here is the call graph for this function:| ilCertificateTemplateRepository::fetchPreviousCertificate | ( | int | $objId | ) |
Fetch latest created certificate EVEN IF it is deleted.
| int | $objId |
Definition at line 218 of file class.ilCertificateTemplateRepository.php.
References $template, $version, and fetchCertificateTemplatesByObjId().
Here is the call graph for this function:| ilCertificateTemplateRepository::fetchTemplate | ( | int | $templateId | ) |
Definition at line 96 of file class.ilCertificateTemplateRepository.php.
References $query, $row, and createCertificateTemplate().
Here is the call graph for this function:| ilCertificateTemplateRepository::save | ( | ilCertificateTemplate | $certificateTemplate | ) |
| ilCertificateTemplate | $certificateTemplate |
| ilDatabaseException |
Definition at line 56 of file class.ilCertificateTemplateRepository.php.
References $columns, $id, deactivatePreviousTemplates(), ilCertificateTemplate\getBackgroundImagePath(), ilCertificateTemplate\getCertificateContent(), ilCertificateTemplate\getCertificateHash(), ilCertificateTemplate\getCreatedTimestamp(), ilCertificateTemplate\getIliasVersion(), ilCertificateTemplate\getObjId(), ilCertificateTemplate\getObjType(), ilCertificateTemplate\getTemplateValues(), ilCertificateTemplate\getThumbnailImagePath(), ilCertificateTemplate\getVersion(), ilCertificateTemplate\isCurrentlyActive(), and ilCertificateTemplate\isDeleted().
Here is the call graph for this function:| ilCertificateTemplateRepository::updateActivity | ( | ilCertificateTemplate | $certificateTemplate, |
| bool | $currentlyActive | ||
| ) |
Definition at line 88 of file class.ilCertificateTemplateRepository.php.
References ilCertificateTemplate\getId().
Here is the call graph for this function:
|
private |
Definition at line 15 of file class.ilCertificateTemplateRepository.php.
Referenced by __construct().
|
private |
Definition at line 20 of file class.ilCertificateTemplateRepository.php.
Referenced by __construct().
|
private |
Definition at line 25 of file class.ilCertificateTemplateRepository.php.
Referenced by __construct().