ILIAS  trunk Revision v11.0_alpha-1769-g99a433fe2dc
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
Submission.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
24 {
25  protected int $id;
26  protected int $ass_id;
27  protected int $user_id;
28  protected int $team_id;
29  protected string $title;
30  protected string $text;
31  protected string $rid;
32  protected string $mimetype;
33  protected string $timestamp;
34  protected bool $late;
35 
36  public function __construct(
37  int $id,
38  int $ass_id,
39  int $user_id,
40  int $team_id,
41  string $title,
42  string $text,
43  string $rid,
44  string $mimetype,
45  string $timestamp,
46  bool $late
47  ) {
48  $this->id = $id;
49  $this->ass_id = $ass_id;
50  $this->user_id = $user_id;
51  $this->team_id = $team_id;
52  $this->title = $title;
53  $this->text = $text;
54  $this->rid = $rid;
55  $this->mimetype = $mimetype;
56  $this->timestamp = $timestamp;
57  $this->late = $late;
58  }
59 
60  public function getId(): int
61  {
62  return $this->id;
63  }
64 
65  public function getAssId(): int
66  {
67  return $this->ass_id;
68  }
69 
70  public function getUserId(): int
71  {
72  return $this->user_id;
73  }
74 
75  public function getTeamId(): int
76  {
77  return $this->team_id;
78  }
79 
80  public function getTitle(): string
81  {
82  return $this->title;
83  }
84 
85  public function getText(): string
86  {
87  return $this->text;
88  }
89 
90  public function getRid(): string
91  {
92  return $this->rid;
93  }
94 
95  public function getMimetype(): string
96  {
97  return $this->mimetype;
98  }
99 
100  public function getTimestamp(): string
101  {
102  return $this->timestamp;
103  }
104 
105  public function getTimestamp14(): string
106  {
107  $ts = $this->getTimestamp();
108  return substr($ts, 0, 4) .
109  substr($ts, 5, 2) . substr($ts, 8, 2) .
110  substr($ts, 11, 2) . substr($ts, 14, 2) .
111  substr($ts, 17, 2);
112  }
113 
114  public function getLate(): bool
115  {
116  return $this->late;
117  }
118 }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
__construct(int $id, int $ass_id, int $user_id, int $team_id, string $title, string $text, string $rid, string $mimetype, string $timestamp, bool $late)
Definition: Submission.php:36