ILIAS  release_8 Revision v8.24
ilTestRandomQuestionSetNonAvailablePool Class Reference
+ Collaboration diagram for ilTestRandomQuestionSetNonAvailablePool:

Public Member Functions

 getId ()
 
 setId ($id)
 
 getTitle ()
 
 setTitle ($title)
 
 getPath ()
 
 setPath ($path)
 
 getUnavailabilityStatus ()
 
 setUnavailabilityStatus ($unavailabilityStatus)
 
 getRefId ()
 
 setRefId (?int $ref_id)
 
 assignDbRow ($row)
 

Data Fields

const UNAVAILABILITY_STATUS_LOST = 'lost'
 
const UNAVAILABILITY_STATUS_TRASHED = 'trashed'
 

Protected Attributes

 $unavailabilityStatus
 
 $id
 
 $ref_id = null
 
 $title
 
 $path
 

Detailed Description

Member Function Documentation

◆ assignDbRow()

ilTestRandomQuestionSetNonAvailablePool::assignDbRow (   $row)
Parameters
array$row

Definition at line 130 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

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 }

References setId(), setPath(), setRefId(), and setTitle().

+ Here is the call graph for this function:

◆ getId()

ilTestRandomQuestionSetNonAvailablePool::getId ( )

◆ getPath()

ilTestRandomQuestionSetNonAvailablePool::getPath ( )
Returns
string

Definition at line 88 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

References $path.

◆ getRefId()

ilTestRandomQuestionSetNonAvailablePool::getRefId ( )

◆ getTitle()

ilTestRandomQuestionSetNonAvailablePool::getTitle ( )
Returns
string

Definition at line 72 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

72 : string
73 {
74 return $this->title ?? '';
75 }

Referenced by ilTestRandomQuestionSetPoolDeriver\createNewPool().

+ Here is the caller graph for this function:

◆ getUnavailabilityStatus()

ilTestRandomQuestionSetNonAvailablePool::getUnavailabilityStatus ( )

◆ setId()

ilTestRandomQuestionSetNonAvailablePool::setId (   $id)
Parameters
int$id

Definition at line 64 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

65 {
66 $this->id = $id;
67 }

References $id.

Referenced by assignDbRow().

+ Here is the caller graph for this function:

◆ setPath()

ilTestRandomQuestionSetNonAvailablePool::setPath (   $path)
Parameters
string$path

Definition at line 96 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

97 {
98 $this->path = $path;
99 }

References $path.

Referenced by assignDbRow().

+ Here is the caller graph for this function:

◆ setRefId()

ilTestRandomQuestionSetNonAvailablePool::setRefId ( ?int  $ref_id)

Definition at line 122 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

122 : void
123 {
124 $this->ref_id = $ref_id;
125 }

References $ref_id.

Referenced by assignDbRow().

+ Here is the caller graph for this function:

◆ setTitle()

ilTestRandomQuestionSetNonAvailablePool::setTitle (   $title)
Parameters
string$title

Definition at line 80 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

References $title.

Referenced by assignDbRow().

+ Here is the caller graph for this function:

◆ setUnavailabilityStatus()

ilTestRandomQuestionSetNonAvailablePool::setUnavailabilityStatus (   $unavailabilityStatus)
Parameters
string$unavailabilityStatus

Definition at line 112 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

113 {
114 $this->unavailabilityStatus = $unavailabilityStatus;
115 }

References $unavailabilityStatus.

Field Documentation

◆ $id

ilTestRandomQuestionSetNonAvailablePool::$id
protected

Definition at line 38 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

Referenced by getId(), and setId().

◆ $path

ilTestRandomQuestionSetNonAvailablePool::$path
protected

Definition at line 51 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

Referenced by getPath(), and setPath().

◆ $ref_id

ilTestRandomQuestionSetNonAvailablePool::$ref_id = null
protected

Definition at line 41 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

Referenced by getRefId(), and setRefId().

◆ $title

ilTestRandomQuestionSetNonAvailablePool::$title
protected

Definition at line 46 of file class.ilTestRandomQuestionSetNonAvailablePool.php.

Referenced by setTitle().

◆ $unavailabilityStatus

ilTestRandomQuestionSetNonAvailablePool::$unavailabilityStatus
protected

◆ UNAVAILABILITY_STATUS_LOST

const ilTestRandomQuestionSetNonAvailablePool::UNAVAILABILITY_STATUS_LOST = 'lost'

◆ UNAVAILABILITY_STATUS_TRASHED

const ilTestRandomQuestionSetNonAvailablePool::UNAVAILABILITY_STATUS_TRASHED = 'trashed'

The documentation for this class was generated from the following file: