ILIAS  release_8 Revision v8.19
All Data Structures Namespaces Files Functions Variables Modules Pages
ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository Class Reference

Stores repository clipboard data. More...

+ Collaboration diagram for ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository:

Public Member Functions

 __construct ()
 
 setTargetScript (string $script)
 
 getTargetScript ()
 
 setRefId (int $ref_id)
 
 getRefId ()
 
 setObjId (int $obj_id)
 
 getObjId ()
 
 setHierId (string $hier_id)
 
 getHierId ()
 
 setPCId (string $pc_id)
 
 getPCId ()
 
 setAreaType (string $type)
 
 getAreaType ()
 
 setAreaNr (int $nr)
 
 getAreaNr ()
 
 setCoords (string $coords)
 
 getCoords ()
 
 setMode (string $mode)
 
 getMode ()
 
 setLinkType (string $type)
 
 getLinkType ()
 
 setExternalLink (string $href)
 
 getExternalLink ()
 
 setInternalLink (string $type, string $target, string $target_frame, string $anchor)
 
 getInternalLink ()
 
 clear ()
 

Data Fields

const KEY_BASE = "il_map_"
 

Protected Member Functions

 get (string $key)
 
 set (string $key, $val)
 

Detailed Description

Stores repository clipboard data.

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

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

Constructor & Destructor Documentation

◆ __construct()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::__construct ( )

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

33  {
34  }

Member Function Documentation

◆ clear()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::clear ( )

Definition at line 190 of file class.ImageMapEditSessionRepository.php.

References ilSession\clear().

190  : void
191  {
192  \ilSession::clear(self::KEY_BASE . "area_nr");
193  \ilSession::clear(self::KEY_BASE . "edit_coords");
194  \ilSession::clear(self::KEY_BASE . "edit_mode");
195  \ilSession::clear(self::KEY_BASE . "el_href");
196  \ilSession::clear(self::KEY_BASE . "il_type");
197  \ilSession::clear(self::KEY_BASE . "il_ltype");
198  \ilSession::clear(self::KEY_BASE . "il_target");
199  \ilSession::clear(self::KEY_BASE . "il_targetframe");
200  \ilSession::clear(self::KEY_BASE . "il_anchor");
201  \ilSession::clear(self::KEY_BASE . "edit_area_type");
202  }
static clear(string $a_var)
+ Here is the call graph for this function:

◆ get()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::get ( string  $key)
protected
Returns
mixed|null

Definition at line 39 of file class.ImageMapEditSessionRepository.php.

References ILIAS\LTI\ToolProvider\$key, ILIAS\Repository\get(), and ilSession\has().

40  {
41  if (\ilSession::has(self::KEY_BASE . $key)) {
42  return \ilSession::get(self::KEY_BASE . $key);
43  }
44  return null;
45  }
string $key
Consumer key/client ID value.
Definition: System.php:193
static has($a_var)
get(string $key, Refinery\Transformation $t)
Get passed parameter, if not data passed, get key from http request.
+ Here is the call graph for this function:

◆ getAreaNr()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getAreaNr ( )

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

120  : int
121  {
122  return (int) $this->get("area_nr");
123  }

◆ getAreaType()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getAreaType ( )

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

110  : string
111  {
112  return (string) $this->get("edit_area_type");
113  }

◆ getCoords()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getCoords ( )

Definition at line 130 of file class.ImageMapEditSessionRepository.php.

130  : string
131  {
132  return (string) $this->get("edit_coords");
133  }

◆ getExternalLink()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getExternalLink ( )

Definition at line 160 of file class.ImageMapEditSessionRepository.php.

160  : string
161  {
162  return (string) $this->get("el_href");
163  }

◆ getHierId()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getHierId ( )

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

90  : string
91  {
92  return (string) $this->get("edit_hier_id");
93  }

◆ getInternalLink()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getInternalLink ( )
Returns
string[]

Definition at line 180 of file class.ImageMapEditSessionRepository.php.

180  : array
181  {
182  return [
183  "type" => (string) $this->get("il_type"),
184  "target" => (string) $this->get("il_target"),
185  "target_frame" => (string) $this->get("il_targetframe"),
186  "anchor" => (string) $this->get("il_anchor")
187  ];
188  }

◆ getLinkType()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getLinkType ( )

Definition at line 150 of file class.ImageMapEditSessionRepository.php.

150  : string
151  {
152  return (string) $this->get("il_ltype");
153  }

◆ getMode()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getMode ( )

Definition at line 140 of file class.ImageMapEditSessionRepository.php.

140  : string
141  {
142  return (string) $this->get("edit_mode");
143  }

◆ getObjId()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getObjId ( )

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

80  : int
81  {
82  return (int) $this->get("edit_obj_id");
83  }

◆ getPCId()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getPCId ( )

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

100  : string
101  {
102  return (string) $this->get("edit_pc_id");
103  }

◆ getRefId()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getRefId ( )

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

70  : int
71  {
72  return (int) $this->get("edit_ref_id");
73  }

◆ getTargetScript()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::getTargetScript ( )

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

60  : string
61  {
62  return (string) $this->get("edit_target_script");
63  }

◆ set()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::set ( string  $key,
  $val 
)
protected
Parameters
mixed$val

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

References ilSession\set().

50  : void
51  {
52  \ilSession::set(self::KEY_BASE . $key, $val);
53  }
string $key
Consumer key/client ID value.
Definition: System.php:193
static set(string $a_var, $a_val)
Set a value.
+ Here is the call graph for this function:

◆ setAreaNr()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setAreaNr ( int  $nr)

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

115  : void
116  {
117  $this->set("area_nr", $nr);
118  }

◆ setAreaType()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setAreaType ( string  $type)

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

References $type.

105  : void
106  {
107  $this->set("edit_area_type", $type);
108  }
$type

◆ setCoords()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setCoords ( string  $coords)

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

125  : void
126  {
127  $this->set("edit_coords", $coords);
128  }

◆ setExternalLink()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setExternalLink ( string  $href)

Definition at line 155 of file class.ImageMapEditSessionRepository.php.

155  : void
156  {
157  $this->set("el_href", $href);
158  }

◆ setHierId()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setHierId ( string  $hier_id)

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

85  : void
86  {
87  $this->set("edit_hier_id", $hier_id);
88  }

◆ setInternalLink()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setInternalLink ( string  $type,
string  $target,
string  $target_frame,
string  $anchor 
)

Definition at line 165 of file class.ImageMapEditSessionRepository.php.

References $type.

170  : void {
171  $this->set("il_type", $type);
172  $this->set("il_target", $target);
173  $this->set("il_targetframe", $target_frame);
174  $this->set("il_anchor", $anchor);
175  }
$type

◆ setLinkType()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setLinkType ( string  $type)

Definition at line 145 of file class.ImageMapEditSessionRepository.php.

References $type.

145  : void
146  {
147  $this->set("il_ltype", $type);
148  }
$type

◆ setMode()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setMode ( string  $mode)

Definition at line 135 of file class.ImageMapEditSessionRepository.php.

135  : void
136  {
137  $this->set("edit_mode", $mode);
138  }

◆ setObjId()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setObjId ( int  $obj_id)

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

75  : void
76  {
77  $this->set("edit_obj_id", $obj_id);
78  }

◆ setPCId()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setPCId ( string  $pc_id)

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

95  : void
96  {
97  $this->set("edit_pc_id", $pc_id);
98  }

◆ setRefId()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setRefId ( int  $ref_id)

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

References $ref_id.

65  : void
66  {
67  $this->set("edit_ref_id", $ref_id);
68  }
$ref_id
Definition: ltiauth.php:67

◆ setTargetScript()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::setTargetScript ( string  $script)

Definition at line 55 of file class.ImageMapEditSessionRepository.php.

55  : void
56  {
57  $this->set("edit_target_script", $script);
58  }

Field Documentation

◆ KEY_BASE

const ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::KEY_BASE = "il_map_"

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


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