ILIAS  release_7 Revision v7.30-3-g800a261c036
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

 $identifier
 

Detailed Description

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

Constructor & Destructor Documentation

◆ __construct()

ilAssQuestionLomLifecycle::__construct (   $identifier = '')

ilAssQuestionLomLifecycle constructor.

Parameters
string$identifier
Exceptions
ilTestQuestionPoolInvalidArgumentException

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

References $identifier, setIdentifier(), and validateIdentifier().

+ Here is the call graph for this function:

Member Function Documentation

◆ getIdentifier()

ilAssQuestionLomLifecycle::getIdentifier ( )
Returns
string

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

References $identifier.

Referenced by getMappedIliasLifecycleIdentifer().

+ Here is the caller graph for this function:

◆ getMappedIliasLifecycleIdentifer()

ilAssQuestionLomLifecycle::getMappedIliasLifecycleIdentifer ( )
Returns
string

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

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

82  {
83  switch ($this->getIdentifier()) {
84  case self::UNAVAILABLE:
85 
87 
88  case self::REVISED:
89  case self::FINAL:
90 
92 
93  case self::DRAFT:
94  default:
95 
97 
98  }
99  }
+ Here is the call graph for this function:

◆ getValidIdentifiers()

ilAssQuestionLomLifecycle::getValidIdentifiers ( )
Returns
string[]

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

Referenced by validateIdentifier().

61  {
62  return [self::DRAFT, self::FINAL, self::REVISED, self::UNAVAILABLE];
63  }
+ Here is the caller graph for this function:

◆ setIdentifier()

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

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

References $identifier, and validateIdentifier().

Referenced by __construct().

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

◆ validateIdentifier()

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

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

References $identifier, and 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

ilAssQuestionLomLifecycle::$identifier
protected

◆ DRAFT

const ilAssQuestionLomLifecycle::DRAFT = 'draft'

◆ FINAL

const ilAssQuestionLomLifecycle::FINAL = 'final'

◆ REVISED

const ilAssQuestionLomLifecycle::REVISED = 'revised'

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

◆ UNAVAILABLE

const ilAssQuestionLomLifecycle::UNAVAILABLE = 'unavailable'

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