ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
class.ilTestRandomQuestionSetNonAvailablePool.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
28 {
29  public const UNAVAILABILITY_STATUS_LOST = 'lost';
30  public const UNAVAILABILITY_STATUS_TRASHED = 'trashed';
31 
32  protected string $unavailability_status;
33  protected int $id;
34  protected ?int $ref_id = null;
35  protected string $title;
36  protected string $path;
37 
38  public function getId(): int
39  {
40  return $this->id;
41  }
42 
43  public function setId(int $id): void
44  {
45  $this->id = $id;
46  }
47 
48  public function getTitle(): string
49  {
50  return $this->title;
51  }
52 
53  public function setTitle(string $title): void
54  {
55  $this->title = $title;
56  }
57 
58  public function getPath(): string
59  {
60  return $this->path;
61  }
62 
63  public function setPath(string $path): void
64  {
65  $this->path = $path;
66  }
67 
68  public function getUnavailabilityStatus(): string
69  {
71  }
72 
73  public function setUnavailabilityStatus(string $unavailability_status): void
74  {
75  $this->unavailability_status = $unavailability_status;
76  }
77 
78  public function getRefId(): ?int
79  {
80  return $this->ref_id;
81  }
82 
83  public function setRefId(?int $ref_id): void
84  {
85  $this->ref_id = $ref_id;
86  }
87 
88  public function assignDbRow(array $row): void
89  {
90  foreach ($row as $field => $value) {
91  switch ($field) {
92  case 'pool_fi': $this->setId($value);
93  break;
94  case 'pool_ref_id': $this->setRefId($value ? (int) $value : null);
95  break;
96  case 'pool_title': $this->setTitle($value);
97  break;
98  case 'pool_path': $this->setPath($value);
99  break;
100  }
101  }
102  }
103 }
while($session_entry=$r->fetchRow(ilDBConstants::FETCHMODE_ASSOC)) return null