ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
class.ilTestRandomQuestionSetNonAvailablePool.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
4 
12 {
14  const UNAVAILABILITY_STATUS_TRASHED = 'trashed';
15 
20 
24  protected $id;
25 
27  protected $ref_id = null;
28 
32  protected $title;
33 
37  protected $path;
38 
42  public function getId()
43  {
44  return $this->id;
45  }
46 
50  public function setId($id)
51  {
52  $this->id = $id;
53  }
54 
58  public function getTitle()
59  {
60  return $this->title;
61  }
62 
66  public function setTitle($title)
67  {
68  $this->title = $title;
69  }
70 
74  public function getPath()
75  {
76  return $this->path;
77  }
78 
82  public function setPath($path)
83  {
84  $this->path = $path;
85  }
86 
90  public function getUnavailabilityStatus()
91  {
93  }
94 
99  {
100  $this->unavailabilityStatus = $unavailabilityStatus;
101  }
102 
103  public function getRefId() : ?int
104  {
105  return $this->ref_id;
106  }
107 
108  public function setRefId(?int $ref_id) : void
109  {
110  $this->ref_id = $ref_id;
111  }
112 
116  public function assignDbRow($row)
117  {
118  foreach ($row as $field => $value) {
119  switch ($field) {
120  case 'pool_fi': $this->setId($value); break;
121  case 'pool_ref_id': $this->setRefId($value ? (int) $value : null); break;
122  case 'pool_title': $this->setTitle($value); break;
123  case 'pool_path': $this->setPath($value); break;
124  }
125  }
126  }
127 }
$row