ILIAS  release_8 Revision v8.19-1-g4e8f2f9140c
All Data Structures Namespaces Files Functions Variables Modules Pages
ilAssQuestionLomLifecycle Class Reference
+ Collaboration diagram for ilAssQuestionLomLifecycle:

Public Member Functions

 __construct ($identifier='')
 ilAssQuestionLomLifecycle constructor. More...
 
 getIdentifier ()
 
 setIdentifier ($identifier)
 
 getValidIdentifiers ()
 
 validateIdentifier ($identifier)
 
 getMappedIliasLifecycleIdentifer ()
 

Data Fields

const DRAFT = 'draft'
 
const FINAL = 'final'
 
const REVISED = 'revised'
 
const UNAVAILABLE = 'unavailable'
 

Protected Attributes

string $identifier
 

Detailed Description

Definition at line 26 of file class.ilAssQuestionLomLifecycle.php.

Constructor & Destructor Documentation

◆ __construct()

ilAssQuestionLomLifecycle::__construct (   $identifier = '')

ilAssQuestionLomLifecycle constructor.

Parameters
mixed$identifier
Exceptions
ilTestQuestionPoolInvalidArgumentException

Definition at line 40 of file class.ilAssQuestionLomLifecycle.php.

References setIdentifier(), and validateIdentifier().

41  {
42  if (is_string($identifier) && $identifier !== '') {
43  $identifier = strtolower($identifier);
44  }
45 
47  $this->setIdentifier($identifier);
48  }
+ Here is the call graph for this function:

Member Function Documentation

◆ getIdentifier()

ilAssQuestionLomLifecycle::getIdentifier ( )

Definition at line 50 of file class.ilAssQuestionLomLifecycle.php.

References $identifier.

Referenced by getMappedIliasLifecycleIdentifer().

50  : string
51  {
52  return $this->identifier;
53  }
+ Here is the caller graph for this function:

◆ getMappedIliasLifecycleIdentifer()

ilAssQuestionLomLifecycle::getMappedIliasLifecycleIdentifer ( )

Definition at line 86 of file class.ilAssQuestionLomLifecycle.php.

References ilAssQuestionLifecycle\DRAFT, ilAssQuestionLifecycle\FINAL, getIdentifier(), and ilAssQuestionLifecycle\OUTDATED.

86  : string
87  {
88  switch ($this->getIdentifier()) {
89  case self::UNAVAILABLE:
91 
92  case self::REVISED:
93  case self::FINAL:
95 
96  case self::DRAFT:
97  default:
99  }
100  }
+ Here is the call graph for this function:

◆ getValidIdentifiers()

ilAssQuestionLomLifecycle::getValidIdentifiers ( )
Returns
string[]

Definition at line 68 of file class.ilAssQuestionLomLifecycle.php.

Referenced by validateIdentifier().

68  : array
69  {
70  return [self::DRAFT, self::FINAL, self::REVISED, self::UNAVAILABLE];
71  }
+ Here is the caller graph for this function:

◆ setIdentifier()

ilAssQuestionLomLifecycle::setIdentifier (   $identifier)
Parameters
mixed$identifier
Exceptions
ilTestQuestionPoolInvalidArgumentException

Definition at line 59 of file class.ilAssQuestionLomLifecycle.php.

References $identifier, and validateIdentifier().

Referenced by __construct().

59  : void
60  {
62  $this->identifier = $identifier;
63  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ validateIdentifier()

ilAssQuestionLomLifecycle::validateIdentifier (   $identifier)
Parameters
mixed$identifier
Exceptions
ilTestQuestionPoolInvalidArgumentException

Definition at line 77 of file class.ilAssQuestionLomLifecycle.php.

References getValidIdentifiers().

Referenced by __construct(), and setIdentifier().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ $identifier

string ilAssQuestionLomLifecycle::$identifier
protected

Definition at line 33 of file class.ilAssQuestionLomLifecycle.php.

Referenced by getIdentifier(), and setIdentifier().

◆ DRAFT

const ilAssQuestionLomLifecycle::DRAFT = 'draft'

◆ FINAL

const ilAssQuestionLomLifecycle::FINAL = 'final'

◆ REVISED

const ilAssQuestionLomLifecycle::REVISED = 'revised'

Definition at line 30 of file class.ilAssQuestionLomLifecycle.php.

◆ UNAVAILABLE

const ilAssQuestionLomLifecycle::UNAVAILABLE = 'unavailable'

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