ILIAS  trunk Revision v11.0_alpha-2638-g80c1d007f79
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.

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

62  : array
63  {
64  return $this->audience;
65  }
+ Here is the caller graph for this function:

◆ getAudienceType()

UploadPolicy::getAudienceType ( )

Definition at line 67 of file UploadPolicy.php.

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

67  : int
68  {
69  return $this->audience_type;
70  }
+ Here is the caller graph for this function:

◆ getCreateDate()

UploadPolicy::getCreateDate ( )

Definition at line 97 of file UploadPolicy.php.

Referenced by UploadPolicyDBRepository\store().

98  {
99  return $this->create_date;
100  }
+ Here is the caller graph for this function:

◆ getLastUpdate()

UploadPolicy::getLastUpdate ( )

Definition at line 102 of file UploadPolicy.php.

Referenced by UploadPolicyDBRepository\store().

103  {
104  return $this->last_update;
105  }
+ Here is the caller graph for this function:

◆ getOwnerId()

UploadPolicy::getOwnerId ( )

Definition at line 92 of file UploadPolicy.php.

Referenced by UploadPolicyDBRepository\store().

92  : int
93  {
94  return $this->owner;
95  }
+ Here is the caller graph for this function:

◆ getPolicyId()

UploadPolicy::getPolicyId ( )

Definition at line 47 of file UploadPolicy.php.

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

47  : ?int
48  {
49  return $this->policy_id;
50  }
+ Here is the caller graph for this function:

◆ getScopeDefinition()

UploadPolicy::getScopeDefinition ( )

Definition at line 72 of file UploadPolicy.php.

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

72  : string
73  {
74  return $this->scope_definition;
75  }
+ Here is the caller graph for this function:

◆ getTitle()

UploadPolicy::getTitle ( )

Definition at line 52 of file UploadPolicy.php.

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

52  : string
53  {
54  return $this->title;
55  }
+ Here is the caller graph for this function:

◆ getUploadLimitInMB()

UploadPolicy::getUploadLimitInMB ( )

Definition at line 57 of file UploadPolicy.php.

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

57  : int
58  {
59  return $this->upload_limit_in_mb;
60  }
+ Here is the caller graph for this function:

◆ getValidFrom()

UploadPolicy::getValidFrom ( )

Definition at line 82 of file UploadPolicy.php.

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

83  {
84  return $this->valid_from;
85  }
+ Here is the caller graph for this function:

◆ getValidUntil()

UploadPolicy::getValidUntil ( )

Definition at line 87 of file UploadPolicy.php.

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

88  {
89  return $this->valid_until;
90  }
+ Here is the caller graph for this function:

◆ isActive()

UploadPolicy::isActive ( )

Definition at line 77 of file UploadPolicy.php.

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

77  : bool
78  {
79  return $this->active;
80  }
+ 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: