ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
class.ilTestRandomQuestionSetNonAvailablePool.php
Go to the documentation of this file.
1 <?php
2 
26 {
27  public const UNAVAILABILITY_STATUS_LOST = 'lost';
28  public const UNAVAILABILITY_STATUS_TRASHED = 'trashed';
29 
34 
38  protected $id;
39 
41  protected $ref_id = null;
42 
46  protected $title;
47 
51  protected $path;
52 
56  public function getId(): int
57  {
58  return $this->id;
59  }
60 
64  public function setId($id)
65  {
66  $this->id = $id;
67  }
68 
72  public function getTitle(): string
73  {
74  return $this->title ?? '';
75  }
76 
80  public function setTitle($title)
81  {
82  $this->title = $title;
83  }
84 
88  public function getPath(): string
89  {
90  return $this->path;
91  }
92 
96  public function setPath($path)
97  {
98  $this->path = $path;
99  }
100 
104  public function getUnavailabilityStatus(): string
105  {
107  }
108 
113  {
114  $this->unavailabilityStatus = $unavailabilityStatus;
115  }
116 
117  public function getRefId(): ?int
118  {
119  return $this->ref_id;
120  }
121 
122  public function setRefId(?int $ref_id): void
123  {
124  $this->ref_id = $ref_id;
125  }
126 
130  public function assignDbRow($row)
131  {
132  foreach ($row as $field => $value) {
133  switch ($field) {
134  case 'pool_fi': $this->setId($value);
135  break;
136  case 'pool_ref_id': $this->setRefId($value ? (int) $value : null);
137  break;
138  case 'pool_title': $this->setTitle($value);
139  break;
140  case 'pool_path': $this->setPath($value);
141  break;
142  }
143  }
144  }
145 }