ILIAS
release_4-3 Revision
◀ ilDoc Overview
Main Page
Related Pages
Modules
Namespaces
Data Structures
Files
Examples
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Groups
Pages
class.ilAssQuestionHintsOrderingClipboard.php
Go to the documentation of this file.
1
<?php
2
3
/* Copyright (c) 1998-2010 ILIAS open source, Extended GPL, see docs/LICENSE */
4
14
class
ilAssQuestionHintsOrderingClipboard
15
{
22
private
$questionId
= null;
23
30
public
function
__construct
(
assQuestion
$questionOBJ)
31
{
32
$this->questionId = $questionOBJ->
getId
();
33
34
if
( !isset(
$_SESSION
[__CLASS__]) )
35
{
36
$_SESSION
[__CLASS__] = array();
37
}
38
39
if
( !isset(
$_SESSION
[__CLASS__][$this->questionId]) )
40
{
41
$_SESSION
[__CLASS__][
$this->questionId
] = null;
42
}
43
}
44
50
public
function
resetStored
()
51
{
52
$_SESSION
[__CLASS__][
$this->questionId
] = null;
53
}
54
62
public
function
setStored
($hintId)
63
{
64
$_SESSION
[__CLASS__][
$this->questionId
] = $hintId;
65
}
66
73
public
function
getStored
()
74
{
75
return
$_SESSION
[__CLASS__][
$this->questionId
];
76
}
77
86
public
function
isStored
($hintId)
87
{
88
if
(
$_SESSION
[__CLASS__][$this->questionId] === $hintId )
89
{
90
return
true
;
91
}
92
93
return
false
;
94
}
95
102
public
function
hasStored
()
103
{
104
if
(
$_SESSION
[__CLASS__][$this->questionId] !== null )
105
{
106
return
true
;
107
}
108
109
return
false
;
110
}
111
}
112
Modules
TestQuestionPool
classes
class.ilAssQuestionHintsOrderingClipboard.php
Generated on Sat Apr 30 2016 19:00:47 for ILIAS by
1.8.1.2 (using
Doxyfile
)