ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
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 103 of file class.EditSessionRepository.php.

103 : void
104 {
105 \ilSession::clear(self::MEP_KEY);
106 }
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 118 of file class.EditSessionRepository.php.

118 : void
119 {
120 \ilSession::clear(self::QPL_KEY);
121 }

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 73 of file class.EditSessionRepository.php.

73 : void
74 {
75 \ilSession::clear(self::SUB_CMD_KEY);
76 }

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 88 of file class.EditSessionRepository.php.

88 : void
89 {
90 \ilSession::clear(self::TXT_LANG_KEY . "_" . $ref_id);
91 }
$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 113 of file class.EditSessionRepository.php.

113 : int
114 {
115 return \ilSession::get(self::MEP_KEY) ?? 0;
116 }
get(string $class_name)

References ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ getPageError()

ILIAS\COPage\Editor\EditSessionRepository::getPageError ( )
Returns
string|array

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

69 {
70 return \ilSession::get(self::ERROR_KEY) ?? "";
71 }

References ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ getQuestionPool()

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

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

128 : int
129 {
130 return \ilSession::get(self::QPL_KEY) ?? 0;
131 }

References ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ getSubCmd()

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

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

83 : string
84 {
85 return \ilSession::get(self::SUB_CMD_KEY) ?? "";
86 }

References ILIAS\GlobalScreen\get().

+ Here is the call graph for this function:

◆ getTextLang()

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

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

98 : string
99 {
100 return \ilSession::get(self::TXT_LANG_KEY . "_" . $ref_id) ?? "";
101 }

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 108 of file class.EditSessionRepository.php.

108 : void
109 {
110 \ilSession::set(self::MEP_KEY, $pool_id);
111 }
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 123 of file class.EditSessionRepository.php.

123 : void
124 {
125 \ilSession::set(self::QPL_KEY, $pool_id);
126 }

References ilSession\set().

+ Here is the call graph for this function:

◆ setSubCmd()

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

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

78 : void
79 {
80 \ilSession::set(self::SUB_CMD_KEY, $sub_cmd);
81 }

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 93 of file class.EditSessionRepository.php.

93 : void
94 {
95 \ilSession::set(self::TXT_LANG_KEY . "_" . $ref_id, $lang_key);
96 }

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: