ILIAS
trunk Revision v11.0_alpha-1715-g7fc467680fb
|
Public Member Functions | |
__construct (protected readonly ilDBInterface $db) | |
store (UploadPolicy $policy) | |
get (int $policy_id) | |
getAll () | |
delete (UploadPolicy $policy) | |
Protected Member Functions | |
transformToDtoOrAbort (stdClass $dataset) | |
getDateString (DateTimeImmutable $date) | |
getDateObject (string $date_string) | |
Returns a datetime object with '00:00:00' as H:i:s to avoid comparison errors because PHP will use the current time automatically otherwise. More... | |
getDateTimeString (DateTimeImmutable $date_time) | |
getDateTimeObject (string $date_time_string) | |
missingRequiredField (string $field_name) | |
Protected Attributes | |
const | MYSQL_DATETIME_FORMAT = 'Y-m-d H:i:s' |
const | MYSQL_DATE_FORMAT = 'Y-m-d' |
Definition at line 24 of file UploadPolicyDBRepository.php.
UploadPolicyDBRepository::__construct | ( | protected readonly ilDBInterface | $db | ) |
Definition at line 29 of file UploadPolicyDBRepository.php.
UploadPolicyDBRepository::delete | ( | UploadPolicy | $policy | ) |
Definition at line 94 of file UploadPolicyDBRepository.php.
References null.
UploadPolicyDBRepository::get | ( | int | $policy_id | ) |
Definition at line 67 of file UploadPolicyDBRepository.php.
References null, and transformToDtoOrAbort().
UploadPolicyDBRepository::getAll | ( | ) |
Definition at line 81 of file UploadPolicyDBRepository.php.
References null, and transformToDtoOrAbort().
|
protected |
Returns a datetime object with '00:00:00' as H:i:s to avoid comparison errors because PHP will use the current time automatically otherwise.
Definition at line 143 of file UploadPolicyDBRepository.php.
Referenced by transformToDtoOrAbort().
|
protected |
Definition at line 134 of file UploadPolicyDBRepository.php.
Referenced by store().
|
protected |
Definition at line 155 of file UploadPolicyDBRepository.php.
Referenced by transformToDtoOrAbort().
|
protected |
Definition at line 150 of file UploadPolicyDBRepository.php.
Referenced by store().
|
protected |
LogicException |
Definition at line 165 of file UploadPolicyDBRepository.php.
Referenced by transformToDtoOrAbort().
UploadPolicyDBRepository::store | ( | UploadPolicy | $policy | ) |
Definition at line 33 of file UploadPolicyDBRepository.php.
References UploadPolicy\getAudience(), UploadPolicy\getAudienceType(), UploadPolicy\getCreateDate(), getDateString(), getDateTimeString(), UploadPolicy\getLastUpdate(), UploadPolicy\getOwnerId(), UploadPolicy\getPolicyId(), UploadPolicy\getScopeDefinition(), UploadPolicy\getTitle(), UploadPolicy\getUploadLimitInMB(), UploadPolicy\getValidFrom(), UploadPolicy\getValidUntil(), UploadPolicy\isActive(), and null.
|
protected |
LogicException | if required data is missing |
Definition at line 107 of file UploadPolicyDBRepository.php.
References getDateObject(), getDateTimeObject(), missingRequiredField(), and null.
Referenced by get(), and getAll().
|
protected |
Definition at line 27 of file UploadPolicyDBRepository.php.
|
protected |
Definition at line 26 of file UploadPolicyDBRepository.php.