ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
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 23 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 30 of file UploadPolicy.php.

43  {
44  }

Member Function Documentation

◆ getAudience()

UploadPolicy::getAudience ( )

Definition at line 61 of file UploadPolicy.php.

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

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

◆ getAudienceType()

UploadPolicy::getAudienceType ( )

Definition at line 66 of file UploadPolicy.php.

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

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

◆ getCreateDate()

UploadPolicy::getCreateDate ( )

Definition at line 96 of file UploadPolicy.php.

Referenced by UploadPolicyDBRepository\store().

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

◆ getLastUpdate()

UploadPolicy::getLastUpdate ( )

Definition at line 101 of file UploadPolicy.php.

Referenced by UploadPolicyDBRepository\store().

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

◆ getOwnerId()

UploadPolicy::getOwnerId ( )

Definition at line 91 of file UploadPolicy.php.

Referenced by UploadPolicyDBRepository\store().

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

◆ getPolicyId()

UploadPolicy::getPolicyId ( )

Definition at line 46 of file UploadPolicy.php.

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

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

◆ getScopeDefinition()

UploadPolicy::getScopeDefinition ( )

Definition at line 71 of file UploadPolicy.php.

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

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

◆ getTitle()

UploadPolicy::getTitle ( )

Definition at line 51 of file UploadPolicy.php.

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

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

◆ getUploadLimitInMB()

UploadPolicy::getUploadLimitInMB ( )

Definition at line 56 of file UploadPolicy.php.

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

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

◆ getValidFrom()

UploadPolicy::getValidFrom ( )

Definition at line 81 of file UploadPolicy.php.

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

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

◆ getValidUntil()

UploadPolicy::getValidUntil ( )

Definition at line 86 of file UploadPolicy.php.

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

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

◆ isActive()

UploadPolicy::isActive ( )

Definition at line 76 of file UploadPolicy.php.

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

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