ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
UploadPolicy.php
Go to the documentation of this file.
1 <?php
2 
18 declare(strict_types=1);
19 
24 {
25  public const POLICY_ID = 'policy_id';
26  public const AUDIENCE_TYPE_ALL_USERS = 0;
27  public const AUDIENCE_TYPE_GLOBAL_ROLE = 1;
28  public const SCOPE_DEFINITION_GLOBAL = "Global";
29 
30  public function __construct(
31  protected ?int $policy_id,
32  protected string $title,
33  protected int $upload_limit_in_mb,
34  protected array $audience,
35  protected int $audience_type,
36  protected string $scope_definition,
37  protected bool $active,
38  protected ?DateTimeImmutable $valid_from,
39  protected ?DateTimeImmutable $valid_until,
40  protected int $owner,
41  protected DateTimeImmutable $create_date,
42  protected DateTimeImmutable $last_update
43  ) {
44  }
45 
46  public function getPolicyId(): ?int
47  {
48  return $this->policy_id;
49  }
50 
51  public function getTitle(): string
52  {
53  return $this->title;
54  }
55 
56  public function getUploadLimitInMB(): int
57  {
58  return $this->upload_limit_in_mb;
59  }
60 
61  public function getAudience(): array
62  {
63  return $this->audience;
64  }
65 
66  public function getAudienceType(): int
67  {
68  return $this->audience_type;
69  }
70 
71  public function getScopeDefinition(): string
72  {
73  return $this->scope_definition;
74  }
75 
76  public function isActive(): bool
77  {
78  return $this->active;
79  }
80 
81  public function getValidFrom(): ?DateTimeImmutable
82  {
83  return $this->valid_from;
84  }
85 
86  public function getValidUntil(): ?DateTimeImmutable
87  {
88  return $this->valid_until;
89  }
90 
91  public function getOwnerId(): int
92  {
93  return $this->owner;
94  }
95 
96  public function getCreateDate(): DateTimeImmutable
97  {
98  return $this->create_date;
99  }
100 
101  public function getLastUpdate(): DateTimeImmutable
102  {
103  return $this->last_update;
104  }
105 }
__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)
const AUDIENCE_TYPE_GLOBAL_ROLE
const AUDIENCE_TYPE_ALL_USERS
const SCOPE_DEFINITION_GLOBAL