ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
Submission.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
7 class Submission
8 {
9  protected int $id;
10  protected int $ass_id;
11  protected int $user_id;
12  protected int $team_id;
13  protected string $title;
14  protected string $text;
15  protected string $rid;
16  protected string $mimetype;
17  protected string $timestamp;
18  protected bool $late;
19 
20  public function __construct(
21  int $id,
22  int $ass_id,
23  int $user_id,
24  int $team_id,
25  string $title,
26  string $text,
27  string $rid,
28  string $mimetype,
29  string $timestamp,
30  bool $late
31  ) {
32  $this->id = $id;
33  $this->ass_id = $ass_id;
34  $this->user_id = $user_id;
35  $this->team_id = $team_id;
36  $this->title = $title;
37  $this->text = $text;
38  $this->rid = $rid;
39  $this->mimetype = $mimetype;
40  $this->timestamp = $timestamp;
41  $this->late = $late;
42  }
43 
44  public function getId(): int
45  {
46  return $this->id;
47  }
48 
49  public function getAssId(): int
50  {
51  return $this->ass_id;
52  }
53 
54  public function getUserId(): int
55  {
56  return $this->user_id;
57  }
58 
59  public function getTeamId(): int
60  {
61  return $this->team_id;
62  }
63 
64  public function getTitle(): string
65  {
66  return $this->title;
67  }
68 
69  public function getText(): string
70  {
71  return $this->text;
72  }
73 
74  public function getRid(): string
75  {
76  return $this->rid;
77  }
78 
79  public function getMimetype(): string
80  {
81  return $this->mimetype;
82  }
83 
84  public function getTimestamp(): string
85  {
86  return $this->timestamp;
87  }
88 
89  public function getTimestamp14(): string
90  {
91  $ts = $this->getTimestamp();
92  return substr($ts, 0, 4) .
93  substr($ts, 5, 2) . substr($ts, 8, 2) .
94  substr($ts, 11, 2) . substr($ts, 14, 2) .
95  substr($ts, 17, 2);
96  }
97 
98  public function getLate(): bool
99  {
100  return $this->late;
101  }
102 }
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:20