ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
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 187 of file class.ImageMapEditSessionRepository.php.

187 : void
188 {
189 \ilSession::clear(self::KEY_BASE . "area_nr");
190 \ilSession::clear(self::KEY_BASE . "edit_coords");
191 \ilSession::clear(self::KEY_BASE . "edit_mode");
192 \ilSession::clear(self::KEY_BASE . "el_href");
193 \ilSession::clear(self::KEY_BASE . "il_type");
194 \ilSession::clear(self::KEY_BASE . "il_ltype");
195 \ilSession::clear(self::KEY_BASE . "il_target");
196 \ilSession::clear(self::KEY_BASE . "il_targetframe");
197 \ilSession::clear(self::KEY_BASE . "il_anchor");
198 \ilSession::clear(self::KEY_BASE . "edit_area_type");
199 }
static clear(string $a_var)

References ilSession\clear().

+ Here is the call graph for this function:

◆ get()

ILIAS\MediaObjects\ImageMap\ImageMapEditSessionRepository::get ( string  $key)
protected

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

36 : mixed
37 {
38 if (\ilSession::has(self::KEY_BASE . $key)) {
39 return \ilSession::get(self::KEY_BASE . $key);
40 }
41 return null;
42 }
static has($a_var)
get(string $class_name)

References ILIAS\GlobalScreen\get(), and ilSession\has().

+ Here is the call graph for this function:

◆ getAreaNr()

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

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

117 : int
118 {
119 return (int) $this->get("area_nr");
120 }

◆ getAreaType()

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

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

107 : string
108 {
109 return (string) $this->get("edit_area_type");
110 }

◆ getCoords()

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

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

127 : string
128 {
129 return (string) $this->get("edit_coords");
130 }

◆ getExternalLink()

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

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

157 : string
158 {
159 return (string) $this->get("el_href");
160 }

◆ getHierId()

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

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

87 : string
88 {
89 return (string) $this->get("edit_hier_id");
90 }

◆ getInternalLink()

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

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

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

◆ getLinkType()

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

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

147 : string
148 {
149 return (string) $this->get("il_ltype");
150 }

◆ getMode()

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

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

137 : string
138 {
139 return (string) $this->get("edit_mode");
140 }

◆ getObjId()

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

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

77 : int
78 {
79 return (int) $this->get("edit_obj_id");
80 }

◆ getPCId()

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

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

97 : string
98 {
99 return (string) $this->get("edit_pc_id");
100 }

◆ getRefId()

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

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

67 : int
68 {
69 return (int) $this->get("edit_ref_id");
70 }

◆ getTargetScript()

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

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

57 : string
58 {
59 return (string) $this->get("edit_target_script");
60 }

◆ set()

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

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

47 : void
48 {
49 \ilSession::set(self::KEY_BASE . $key, $val);
50 }
static set(string $a_var, $a_val)
Set a value.

References ilSession\set().

+ Here is the call graph for this function:

◆ setAreaNr()

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

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

112 : void
113 {
114 $this->set("area_nr", $nr);
115 }

◆ setAreaType()

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

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

102 : void
103 {
104 $this->set("edit_area_type", $type);
105 }

◆ setCoords()

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

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

122 : void
123 {
124 $this->set("edit_coords", $coords);
125 }

◆ setExternalLink()

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

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

152 : void
153 {
154 $this->set("el_href", $href);
155 }

◆ setHierId()

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

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

82 : void
83 {
84 $this->set("edit_hier_id", $hier_id);
85 }

◆ setInternalLink()

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

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

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

◆ setLinkType()

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

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

142 : void
143 {
144 $this->set("il_ltype", $type);
145 }

◆ setMode()

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

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

132 : void
133 {
134 $this->set("edit_mode", $mode);
135 }

◆ setObjId()

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

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

72 : void
73 {
74 $this->set("edit_obj_id", $obj_id);
75 }

◆ setPCId()

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

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

92 : void
93 {
94 $this->set("edit_pc_id", $pc_id);
95 }

◆ setRefId()

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

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

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

References $ref_id.

◆ setTargetScript()

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

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

52 : void
53 {
54 $this->set("edit_target_script", $script);
55 }

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: