| 
    ILIAS
    release_10 Revision v10.1-43-ga1241a92c2f
    
   | 
  
 Collaboration diagram for UploadPolicyResolver: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, and isPolicyActiveAndValid().
 Here is the call graph for this function:
      
  | 
  protected | 
Definition at line 82 of file UploadPolicyResolver.php.
References UploadPolicy\getValidFrom(), UploadPolicy\getValidUntil(), and UploadPolicy\isActive().
Referenced by getUserUploadSizeLimitInBytes().
 Here is the call graph for this function:
 Here is the caller graph for this function:
      
  | 
  protected | 
Multiply for MB to Bytes, divide for Bytes to MB.
Definition at line 29 of file UploadPolicyResolver.php.