ILIAS
trunk Revision v11.0_alpha-1871-gde1fee8db3d
|
Public Member Functions | |
__construct (protected ilRbacReview $rbac_review, protected ilObjUser $current_user, protected array $upload_policies,) | |
getUserUploadSizeLimitInBytes () | |
Returns the upload-size limit of the current user if customized by any upload policy. More... | |
Protected Member Functions | |
isPolicyActiveAndValid (UploadPolicy $policy) | |
Protected Attributes | |
const | MB_TO_BYTES = 1_000 * 1_000 |
Multiply for MB to Bytes, divide for Bytes to MB. More... | |
Definition at line 24 of file UploadPolicyResolver.php.
UploadPolicyResolver::__construct | ( | protected ilRbacReview | $rbac_review, |
protected ilObjUser | $current_user, | ||
protected array | $upload_policies | ||
) |
UploadPolicy[] | $upload_policies |
Definition at line 34 of file UploadPolicyResolver.php.
UploadPolicyResolver::getUserUploadSizeLimitInBytes | ( | ) |
Returns the upload-size limit of the current user if customized by any upload policy.
If multiple policies apply, the largest limit will be returned.
Definition at line 45 of file UploadPolicyResolver.php.
References UploadPolicy\AUDIENCE_TYPE_ALL_USERS, UploadPolicy\AUDIENCE_TYPE_GLOBAL_ROLE, isPolicyActiveAndValid(), and null.
|
protected |
Definition at line 82 of file UploadPolicyResolver.php.
References UploadPolicy\getValidFrom(), UploadPolicy\getValidUntil(), UploadPolicy\isActive(), and null.
Referenced by getUserUploadSizeLimitInBytes().
|
protected |
Multiply for MB to Bytes, divide for Bytes to MB.
Definition at line 29 of file UploadPolicyResolver.php.