|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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) | |
| updateDefaultBackgroundImagePaths (string $oldRelativePath, string $newRelativePath) | |
| isBackgroundImageUsed (string $relativeImagePath) | |
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 427 of file class.ilCertificateTemplateRepository.php.
Referenced by fetchActiveTemplatesByType(), fetchCertificateTemplatesByObjId(), fetchCurrentlyActiveCertificate(), fetchCurrentlyUsedCertificate(), fetchFirstCreatedTemplate(), and fetchTemplate().
Here is the caller graph for this function:
|
private |
| int | $objId |
| ilDatabaseException |
Definition at line 359 of file class.ilCertificateTemplateRepository.php.
References $objId.
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, $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 $objId, $query, $result, 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 $objId, $query, 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 $objId, $query, and createCertificateTemplate().
Here is the call graph for this function:| ilCertificateTemplateRepository::fetchFirstCreatedTemplate | ( | int | $objId | ) |
| int | $objId |
Definition at line 334 of file class.ilCertificateTemplateRepository.php.
References $objId, $query, 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 $objId, 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, and createCertificateTemplate().
Here is the call graph for this function:| ilCertificateTemplateRepository::isBackgroundImageUsed | ( | string | $relativeImagePath | ) |
Definition at line 400 of file class.ilCertificateTemplateRepository.php.
References $result.
| ilCertificateTemplateRepository::save | ( | ilCertificateTemplate | $certificateTemplate | ) |
| ilCertificateTemplate | $certificateTemplate |
| ilDatabaseException |
Definition at line 56 of file class.ilCertificateTemplateRepository.php.
References $columns, $objId, 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:| ilCertificateTemplateRepository::updateDefaultBackgroundImagePaths | ( | string | $oldRelativePath, |
| string | $newRelativePath | ||
| ) |
Definition at line 373 of file class.ilCertificateTemplateRepository.php.
|
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().