ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
UploadPolicy Class Reference
+ Collaboration diagram for UploadPolicy:

Public Member Functions

 __construct (protected ?int $policy_id, protected string $title, protected int $upload_limit_in_mb, protected array $audience, protected int $audience_type, protected string $scope_definition, protected bool $active, protected ?DateTimeImmutable $valid_from, protected ?DateTimeImmutable $valid_until, protected int $owner, protected DateTimeImmutable $create_date, protected DateTimeImmutable $last_update)
 
 getPolicyId ()
 
 getTitle ()
 
 getUploadLimitInMB ()
 
 getAudience ()
 
 getAudienceType ()
 
 getScopeDefinition ()
 
 isActive ()
 
 getValidFrom ()
 
 getValidUntil ()
 
 getOwnerId ()
 
 getCreateDate ()
 
 getLastUpdate ()
 

Data Fields

const POLICY_ID = 'policy_id'
 
const AUDIENCE_TYPE_ALL_USERS = 0
 
const AUDIENCE_TYPE_GLOBAL_ROLE = 1
 
const SCOPE_DEFINITION_GLOBAL = "Global"
 

Detailed Description

Author
Lukas Zehnder lukas.nosp@m.@sr..nosp@m.solut.nosp@m.ions

Definition at line 24 of file UploadPolicy.php.

Constructor & Destructor Documentation

◆ __construct()

UploadPolicy::__construct ( protected ?int  $policy_id,
protected string  $title,
protected int  $upload_limit_in_mb,
protected array  $audience,
protected int  $audience_type,
protected string  $scope_definition,
protected bool  $active,
protected ?DateTimeImmutable  $valid_from,
protected ?DateTimeImmutable  $valid_until,
protected int  $owner,
protected DateTimeImmutable  $create_date,
protected DateTimeImmutable  $last_update 
)

Definition at line 31 of file UploadPolicy.php.

44 {
45 }

Member Function Documentation

◆ getAudience()

UploadPolicy::getAudience ( )

Definition at line 62 of file UploadPolicy.php.

62 : array
63 {
64 return $this->audience;
65 }

Referenced by UploadPoliciesTableUI\__construct(), UploadPoliciesTableUI\getDeletionConfirmationModal(), and UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ getAudienceType()

UploadPolicy::getAudienceType ( )

Definition at line 67 of file UploadPolicy.php.

67 : int
68 {
69 return $this->audience_type;
70 }

Referenced by UploadPoliciesTableUI\__construct(), UploadPoliciesTableUI\getDeletionConfirmationModal(), and UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ getCreateDate()

UploadPolicy::getCreateDate ( )

Definition at line 97 of file UploadPolicy.php.

97 : DateTimeImmutable
98 {
99 return $this->create_date;
100 }

Referenced by UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ getLastUpdate()

UploadPolicy::getLastUpdate ( )

Definition at line 102 of file UploadPolicy.php.

102 : DateTimeImmutable
103 {
104 return $this->last_update;
105 }

Referenced by UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ getOwnerId()

UploadPolicy::getOwnerId ( )

Definition at line 92 of file UploadPolicy.php.

92 : int
93 {
94 return $this->owner;
95 }

Referenced by UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ getPolicyId()

UploadPolicy::getPolicyId ( )

Definition at line 47 of file UploadPolicy.php.

47 : ?int
48 {
49 return $this->policy_id;
50 }

Referenced by UploadPoliciesTableUI\__construct(), UploadPoliciesTableUI\getDeletionConfirmationModal(), and UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ getScopeDefinition()

UploadPolicy::getScopeDefinition ( )

Definition at line 72 of file UploadPolicy.php.

72 : string
73 {
74 return $this->scope_definition;
75 }

Referenced by UploadPoliciesTableUI\__construct(), UploadPoliciesTableUI\getDeletionConfirmationModal(), and UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ getTitle()

UploadPolicy::getTitle ( )

Definition at line 52 of file UploadPolicy.php.

52 : string
53 {
54 return $this->title;
55 }

Referenced by UploadPoliciesTableUI\__construct(), UploadPoliciesTableUI\getDeletionConfirmationModal(), and UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ getUploadLimitInMB()

UploadPolicy::getUploadLimitInMB ( )

Definition at line 57 of file UploadPolicy.php.

57 : int
58 {
59 return $this->upload_limit_in_mb;
60 }

Referenced by UploadPoliciesTableUI\__construct(), UploadPoliciesTableUI\getDeletionConfirmationModal(), and UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ getValidFrom()

UploadPolicy::getValidFrom ( )

Definition at line 82 of file UploadPolicy.php.

82 : ?DateTimeImmutable
83 {
84 return $this->valid_from;
85 }

Referenced by UploadPolicyResolver\isPolicyActiveAndValid(), and UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ getValidUntil()

UploadPolicy::getValidUntil ( )

Definition at line 87 of file UploadPolicy.php.

87 : ?DateTimeImmutable
88 {
89 return $this->valid_until;
90 }

Referenced by UploadPoliciesTableUI\__construct(), UploadPoliciesTableUI\getDeletionConfirmationModal(), UploadPolicyResolver\isPolicyActiveAndValid(), and UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

◆ isActive()

UploadPolicy::isActive ( )

Definition at line 77 of file UploadPolicy.php.

77 : bool
78 {
79 return $this->active;
80 }

Referenced by UploadPoliciesTableUI\__construct(), UploadPoliciesTableUI\getDeletionConfirmationModal(), UploadPolicyResolver\isPolicyActiveAndValid(), and UploadPolicyDBRepository\store().

+ Here is the caller graph for this function:

Field Documentation

◆ AUDIENCE_TYPE_ALL_USERS

◆ AUDIENCE_TYPE_GLOBAL_ROLE

◆ POLICY_ID

const UploadPolicy::POLICY_ID = 'policy_id'

◆ SCOPE_DEFINITION_GLOBAL

const UploadPolicy::SCOPE_DEFINITION_GLOBAL = "Global"

The documentation for this class was generated from the following file: