ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
ILIAS\COPage\Editor\EditSessionRepository Class Reference

Editing session repository. More...

+ Collaboration diagram for ILIAS\COPage\Editor\EditSessionRepository:

Public Member Functions

 __construct ()
 
 clear (?array $text_ref_ids=null)
 
 clearPageError ()
 
 setPageError ($error)
 
 getPageError ()
 
 clearSubCmd ()
 
 setSubCmd (string $sub_cmd)
 
 getSubCmd ()
 
 clearTextLang (int $ref_id)
 
 setTextLang (int $ref_id, string $lang_key)
 
 getTextLang (int $ref_id)
 
 clearMediaPool ()
 
 setMediaPool (int $pool_id)
 
 getMediaPool ()
 
 clearQuestionPool ()
 
 setQuestionPool (int $pool_id)
 
 getQuestionPool ()
 

Protected Attributes

const BASE_SESSION_KEY = 'copg_'
 
const ERROR_KEY = self::BASE_SESSION_KEY . 'error'
 
const SUB_CMD_KEY = self::BASE_SESSION_KEY . 'sub_cmd'
 
const TXT_LANG_KEY = self::BASE_SESSION_KEY . 'text_lang'
 
const MEP_KEY = self::BASE_SESSION_KEY . 'mep'
 
const QPL_KEY = self::BASE_SESSION_KEY . 'qpl'
 

Detailed Description

Editing session repository.

Author
Alexander Killing killi.nosp@m.ng@l.nosp@m.eifos.nosp@m..de

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\COPage\Editor\EditSessionRepository::__construct ( )

Definition at line 35 of file class.EditSessionRepository.php.

36 {
37 }

Member Function Documentation

◆ clear()

◆ clearMediaPool()

ILIAS\COPage\Editor\EditSessionRepository::clearMediaPool ( )

Definition at line 100 of file class.EditSessionRepository.php.

100 : void
101 {
102 \ilSession::clear(self::MEP_KEY);
103 }
static clear(string $a_var)

References ilSession\clear().

Referenced by ILIAS\COPage\Editor\EditSessionRepository\clear().

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

◆ clearPageError()

ILIAS\COPage\Editor\EditSessionRepository::clearPageError ( )

Definition at line 52 of file class.EditSessionRepository.php.

52 : void
53 {
54 \ilSession::clear(self::ERROR_KEY);
55 }

References ilSession\clear().

Referenced by ILIAS\COPage\Editor\EditSessionRepository\clear().

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

◆ clearQuestionPool()

ILIAS\COPage\Editor\EditSessionRepository::clearQuestionPool ( )

Definition at line 115 of file class.EditSessionRepository.php.

115 : void
116 {
117 \ilSession::clear(self::QPL_KEY);
118 }

References ilSession\clear().

Referenced by ILIAS\COPage\Editor\EditSessionRepository\clear().

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

◆ clearSubCmd()

ILIAS\COPage\Editor\EditSessionRepository::clearSubCmd ( )

Definition at line 70 of file class.EditSessionRepository.php.

70 : void
71 {
72 \ilSession::clear(self::SUB_CMD_KEY);
73 }

References ilSession\clear().

Referenced by ILIAS\COPage\Editor\EditSessionRepository\clear().

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

◆ clearTextLang()

ILIAS\COPage\Editor\EditSessionRepository::clearTextLang ( int  $ref_id)

Definition at line 85 of file class.EditSessionRepository.php.

85 : void
86 {
87 \ilSession::clear(self::TXT_LANG_KEY . "_" . $ref_id);
88 }
$ref_id
Definition: ltiauth.php:66

References $ref_id, and ilSession\clear().

Referenced by ILIAS\COPage\Editor\EditSessionRepository\clear().

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

◆ getMediaPool()

ILIAS\COPage\Editor\EditSessionRepository::getMediaPool ( )

Definition at line 110 of file class.EditSessionRepository.php.

110 : int
111 {
112 return \ilSession::get(self::MEP_KEY) ?? 0;
113 }
get(string $class_name)

References ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ getPageError()

ILIAS\COPage\Editor\EditSessionRepository::getPageError ( )

Definition at line 65 of file class.EditSessionRepository.php.

65 : string|array
66 {
67 return \ilSession::get(self::ERROR_KEY) ?? "";
68 }

References ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ getQuestionPool()

ILIAS\COPage\Editor\EditSessionRepository::getQuestionPool ( )

Definition at line 125 of file class.EditSessionRepository.php.

125 : int
126 {
127 return \ilSession::get(self::QPL_KEY) ?? 0;
128 }

References ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ getSubCmd()

ILIAS\COPage\Editor\EditSessionRepository::getSubCmd ( )

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

80 : string
81 {
82 return \ilSession::get(self::SUB_CMD_KEY) ?? "";
83 }

References ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ getTextLang()

ILIAS\COPage\Editor\EditSessionRepository::getTextLang ( int  $ref_id)

Definition at line 95 of file class.EditSessionRepository.php.

95 : string
96 {
97 return \ilSession::get(self::TXT_LANG_KEY . "_" . $ref_id) ?? "";
98 }

References $ref_id, and ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ setMediaPool()

ILIAS\COPage\Editor\EditSessionRepository::setMediaPool ( int  $pool_id)

Definition at line 105 of file class.EditSessionRepository.php.

105 : void
106 {
107 \ilSession::set(self::MEP_KEY, $pool_id);
108 }
static set(string $a_var, $a_val)
Set a value.

References ilSession\set().

+ Here is the call graph for this function:

◆ setPageError()

ILIAS\COPage\Editor\EditSessionRepository::setPageError (   $error)
Parameters
string | array$error

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

60 : void
61 {
62 \ilSession::set(self::ERROR_KEY, $error);
63 }
ilErrorHandling $error
Definition: class.ilias.php:69

References ILIAS\$error, and ilSession\set().

+ Here is the call graph for this function:

◆ setQuestionPool()

ILIAS\COPage\Editor\EditSessionRepository::setQuestionPool ( int  $pool_id)

Definition at line 120 of file class.EditSessionRepository.php.

120 : void
121 {
122 \ilSession::set(self::QPL_KEY, $pool_id);
123 }

References ilSession\set().

+ Here is the call graph for this function:

◆ setSubCmd()

ILIAS\COPage\Editor\EditSessionRepository::setSubCmd ( string  $sub_cmd)

Definition at line 75 of file class.EditSessionRepository.php.

75 : void
76 {
77 \ilSession::set(self::SUB_CMD_KEY, $sub_cmd);
78 }

References ilSession\set().

+ Here is the call graph for this function:

◆ setTextLang()

ILIAS\COPage\Editor\EditSessionRepository::setTextLang ( int  $ref_id,
string  $lang_key 
)

Definition at line 90 of file class.EditSessionRepository.php.

90 : void
91 {
92 \ilSession::set(self::TXT_LANG_KEY . "_" . $ref_id, $lang_key);
93 }

References $ref_id, and ilSession\set().

+ Here is the call graph for this function:

Field Documentation

◆ BASE_SESSION_KEY

const ILIAS\COPage\Editor\EditSessionRepository::BASE_SESSION_KEY = 'copg_'
protected

Definition at line 28 of file class.EditSessionRepository.php.

◆ ERROR_KEY

const ILIAS\COPage\Editor\EditSessionRepository::ERROR_KEY = self::BASE_SESSION_KEY . 'error'
protected

Definition at line 29 of file class.EditSessionRepository.php.

◆ MEP_KEY

const ILIAS\COPage\Editor\EditSessionRepository::MEP_KEY = self::BASE_SESSION_KEY . 'mep'
protected

Definition at line 32 of file class.EditSessionRepository.php.

◆ QPL_KEY

const ILIAS\COPage\Editor\EditSessionRepository::QPL_KEY = self::BASE_SESSION_KEY . 'qpl'
protected

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

◆ SUB_CMD_KEY

const ILIAS\COPage\Editor\EditSessionRepository::SUB_CMD_KEY = self::BASE_SESSION_KEY . 'sub_cmd'
protected

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

◆ TXT_LANG_KEY

const ILIAS\COPage\Editor\EditSessionRepository::TXT_LANG_KEY = self::BASE_SESSION_KEY . 'text_lang'
protected

Definition at line 31 of file class.EditSessionRepository.php.


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