ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
|
Public Member Functions | |
__construct (?ilDBInterface $database=null, ?ilLogger $logger=null, ?string $defaultTitle=null, ?Factory $uuid_factory=null,) | |
save (ilUserCertificate $userCertificate) | |
fetchActiveCertificates (int $userId) | |
fetchActiveCertificatesInIntervalForPresentation (int $userId, int $startTimestamp, int $endTimeStamp) | |
fetchActiveCertificate (int $userId, int $objectId) | |
fetchActiveCertificateForPresentation (int $userId, int $objectId) | |
fetchActiveCertificatesByTypeForPresentation (int $userId, string $type) | |
fetchCertificate (int $id) | |
fetchObjectIdsWithCertificateForUser (int $userId, array $objectIds) | |
fetchUserIdsWithCertificateForObject (int $objectId) | |
deleteUserCertificates (int $userId) | |
isResourceUsed (string $relative_image_identification) | |
deleteUserCertificatesForObject (int $userId, int $obj_id) | |
fetchCertificatesForOverview (string $user_language, array $filter, ?Range $range=null, string $order_field='issue_date', string $order_direction='ASC') | |
fetchCertificatesForOverviewCount (array $filter, ?Range $range=null) | |
requestIdentity () | |
Data Fields | |
const | TABLE_NAME = 'il_cert_user_cert' |
Private Member Functions | |
fetchCertificatesOfObject (int $objId, int $userId) | |
fetchLatestVersion (int $objId, int $userId) | |
deactivatePreviousCertificates (int $objId, int $userId) | |
createUserCertificate (array $row) | |
overviewTableColumnToDbColumn (string $table_column) | |
getIssueDateSqlFilter (string $column_name, array $duration) | |
Private Attributes | |
readonly ilDBInterface | $database |
readonly ilLogger | $logger |
readonly string | $defaultTitle |
readonly Factory | $uuid_factory |
Definition at line 28 of file class.ilUserCertificateRepository.php.
ilUserCertificateRepository::__construct | ( | ?ilDBInterface | $database = null , |
?ilLogger | $logger = null , |
||
?string | $defaultTitle = null , |
||
?Factory | $uuid_factory = null |
||
) |
Definition at line 37 of file class.ilUserCertificateRepository.php.
References $database, $defaultTitle, $DIC, $logger, $uuid_factory, ILIAS\Repository\database(), ILIAS\Repository\logger(), and null.
|
private |
array<string,mixed> | $row |
Definition at line 595 of file class.ilUserCertificateRepository.php.
References null.
Referenced by fetchActiveCertificate(), fetchActiveCertificateForPresentation(), fetchActiveCertificates(), fetchActiveCertificatesByTypeForPresentation(), fetchActiveCertificatesInIntervalForPresentation(), fetchCertificate(), fetchCertificatesForOverview(), and fetchCertificatesOfObject().
|
private |
Definition at line 536 of file class.ilUserCertificateRepository.php.
References ILIAS\Repository\database(), and ILIAS\Repository\logger().
Referenced by save().
ilUserCertificateRepository::deleteUserCertificates | ( | int | $userId | ) |
Definition at line 450 of file class.ilUserCertificateRepository.php.
References ILIAS\Repository\database(), and ILIAS\Repository\logger().
ilUserCertificateRepository::deleteUserCertificatesForObject | ( | int | $userId, |
int | $obj_id | ||
) |
Definition at line 619 of file class.ilUserCertificateRepository.php.
References ILIAS\Repository\database(), and ILIAS\Repository\logger().
Referenced by removeCertificateForUser().
ilUserCertificateRepository::fetchActiveCertificate | ( | int | $userId, |
int | $objectId | ||
) |
ilException |
Definition at line 223 of file class.ilUserCertificateRepository.php.
References createUserCertificate(), ILIAS\Repository\database(), and ILIAS\Repository\logger().
ilUserCertificateRepository::fetchActiveCertificateForPresentation | ( | int | $userId, |
int | $objectId | ||
) |
ilException |
Definition at line 263 of file class.ilUserCertificateRepository.php.
References createUserCertificate(), ILIAS\Repository\database(), and ILIAS\Repository\logger().
Referenced by ilPortfolioPageGUI\createPersistentCertificateUrl().
ilUserCertificateRepository::fetchActiveCertificates | ( | int | $userId | ) |
Definition at line 128 of file class.ilUserCertificateRepository.php.
References createUserCertificate(), ILIAS\Repository\database(), and ILIAS\Repository\logger().
ilUserCertificateRepository::fetchActiveCertificatesByTypeForPresentation | ( | int | $userId, |
string | $type | ||
) |
Definition at line 317 of file class.ilUserCertificateRepository.php.
References createUserCertificate(), ILIAS\Repository\database(), and ILIAS\Repository\logger().
ilUserCertificateRepository::fetchActiveCertificatesInIntervalForPresentation | ( | int | $userId, |
int | $startTimestamp, | ||
int | $endTimeStamp | ||
) |
Definition at line 173 of file class.ilUserCertificateRepository.php.
References createUserCertificate(), ILIAS\Repository\database(), and ILIAS\Repository\logger().
ilUserCertificateRepository::fetchCertificate | ( | int | $id | ) |
ilException |
Definition at line 366 of file class.ilUserCertificateRepository.php.
References createUserCertificate(), ILIAS\Repository\database(), and ILIAS\Repository\logger().
ilUserCertificateRepository::fetchCertificatesForOverview | ( | string | $user_language, |
array | $filter, | ||
?Range | $range = null , |
||
string | $order_field = 'issue_date' , |
||
string | $order_direction = 'ASC' |
||
) |
Definition at line 658 of file class.ilUserCertificateRepository.php.
References ILIAS\UI\Implementation\Component\Table\$range, createUserCertificate(), ILIAS\Repository\database(), getIssueDateSqlFilter(), ILIAS\Data\Range\getLength(), ILIAS\Data\Range\getStart(), null, overviewTableColumnToDbColumn(), and ilDBConstants\T_TEXT.
ilUserCertificateRepository::fetchCertificatesForOverviewCount | ( | array | $filter, |
?Range | $range = null |
||
) |
Definition at line 754 of file class.ilUserCertificateRepository.php.
References ILIAS\UI\Implementation\Component\Table\$range, ILIAS\Repository\database(), getIssueDateSqlFilter(), ILIAS\Data\Range\getLength(), ILIAS\Data\Range\getStart(), null, and ilDBConstants\T_TEXT.
|
private |
Definition at line 464 of file class.ilUserCertificateRepository.php.
References createUserCertificate(), ILIAS\Repository\database(), and ILIAS\Repository\logger().
Referenced by fetchLatestVersion().
|
private |
Definition at line 505 of file class.ilUserCertificateRepository.php.
References $version, fetchCertificatesOfObject(), and ILIAS\Repository\logger().
Referenced by save().
ilUserCertificateRepository::fetchObjectIdsWithCertificateForUser | ( | int | $userId, |
array | $objectIds | ||
) |
int[] | $objectIds |
Definition at line 389 of file class.ilUserCertificateRepository.php.
References ILIAS\Repository\database(), ILIAS\Repository\int(), and ILIAS\Repository\logger().
ilUserCertificateRepository::fetchUserIdsWithCertificateForObject | ( | int | $objectId | ) |
Definition at line 430 of file class.ilUserCertificateRepository.php.
References ILIAS\Repository\database(), ILIAS\Repository\int(), and ILIAS\Repository\logger().
|
private |
array{from | null|DateTimeImmutable, to: null|DateTimeImmutable} $duration |
Definition at line 717 of file class.ilUserCertificateRepository.php.
References ILIAS\Repository\database(), null, and ilDBConstants\T_INTEGER.
Referenced by fetchCertificatesForOverview(), and fetchCertificatesForOverviewCount().
ilUserCertificateRepository::isResourceUsed | ( | string | $relative_image_identification | ) |
Definition at line 563 of file class.ilUserCertificateRepository.php.
References ILIAS\Repository\database(), and ILIAS\Repository\logger().
|
private |
Definition at line 636 of file class.ilUserCertificateRepository.php.
References null.
Referenced by fetchCertificatesForOverview().
ilUserCertificateRepository::requestIdentity | ( | ) |
Definition at line 802 of file class.ilUserCertificateRepository.php.
ilUserCertificateRepository::save | ( | ilUserCertificate | $userCertificate | ) |
ilDatabaseException |
Definition at line 72 of file class.ilUserCertificateRepository.php.
References $id, $objId, $version, ILIAS\Repository\database(), deactivatePreviousCertificates(), fetchLatestVersion(), ilUserCertificate\getAcquiredTimestamp(), ilUserCertificate\getBackgroundImageIdentification(), ilUserCertificate\getBackgroundImagePath(), ilUserCertificate\getCertificateContent(), ilUserCertificate\getCertificateId(), ilUserCertificate\getIliasVersion(), ilUserCertificate\getObjId(), ilUserCertificate\getObjType(), ilUserCertificate\getPatternCertificateId(), ilUserCertificate\getTemplateValues(), ilUserCertificate\getTileImageIdentification(), ilUserCertificate\getTileImagePath(), ilUserCertificate\getUserId(), ilUserCertificate\getUserName(), ilUserCertificate\getValidUntil(), ILIAS\Repository\int(), ilUserCertificate\isCurrentlyActive(), ILIAS\Repository\logger(), and ilUserCertificate\withId().
|
private |
Definition at line 32 of file class.ilUserCertificateRepository.php.
Referenced by __construct().
|
private |
Definition at line 34 of file class.ilUserCertificateRepository.php.
Referenced by __construct().
|
private |
Definition at line 33 of file class.ilUserCertificateRepository.php.
Referenced by __construct().
|
private |
Definition at line 35 of file class.ilUserCertificateRepository.php.
Referenced by __construct().
const ilUserCertificateRepository::TABLE_NAME = 'il_cert_user_cert' |
Definition at line 30 of file class.ilUserCertificateRepository.php.