ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilImagemapFileInputGUI Class Reference

This class represents an image map file property in a property form. More...

+ Inheritance diagram for ilImagemapFileInputGUI:
+ Collaboration diagram for ilImagemapFileInputGUI:

Public Member Functions

 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 setPointsUncheckedFieldEnabled ($pointsUncheckedFieldEnabled)
 
 getPointsUncheckedFieldEnabled ()
 
 setAreas ($a_areas)
 
 getLineColor ()
 
 setLineColor ($a_color)
 
 getImagePath ()
 
 setImagePath ($a_path)
 
 getImagePathWeb ()
 
 setImagePathWeb ($a_path_web)
 
 setAreasByArray ($a_areas)
 
 getAreas ()
 
 setValueByArray ($a_values)
 Set value by array. More...
 
 setValue ($a_value)
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 insert ($a_tpl)
 Insert property html. More...
 
- Public Member Functions inherited from ilImageFileInputGUI
 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 setALlowDeletion ($a_val)
 Set allow deletion. More...
 
 getALlowDeletion ()
 Get allow deletion. More...
 
 setUseCache ($a_cache)
 Set cache. More...
 
 getUseCache ()
 Get cache. More...
 
 setImage ($a_image)
 Set Image. More...
 
 getImage ()
 Get Image. More...
 
 setAlt ($a_alt)
 Set Alternative Text. More...
 
 getAlt ()
 Get Alternative Text. More...
 
 insert ($a_tpl)
 Insert property html. More...
 
 getDeletionFlag ()
 Get deletion flag. More...
 
- Public Member Functions inherited from ilFileInputGUI
 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 setValueByArray ($a_values)
 Set value by array. More...
 
 setValue ($a_value)
 Set Value. More...
 
 getValue ()
 Get Value. More...
 
 setSize ($a_size)
 Set Size. More...
 
 getSize ()
 Get Size. More...
 
 setFilename ($a_val)
 Set filename value (if filename selection is enabled) More...
 
 getFilename ()
 Get Value. More...
 
 setSuffixes ($a_suffixes)
 Set Accepted Suffixes. More...
 
 getSuffixes ()
 Get Accepted Suffixes. More...
 
 setForbiddenSuffixes ($a_suffixes)
 Set forbidden Suffixes. More...
 
 getForbiddenSuffixes ()
 Get Accepted Suffixes. More...
 
 setPending ($a_val)
 Set pending filename value. More...
 
 getPending ()
 Get pending filename. More...
 
 enableFileNameSelection ($a_post_var)
 If enabled, users get the possibility to enter a filename for the uploaded file. More...
 
 isFileNameSelectionEnabled ()
 Check if filename selection is enabled. More...
 
 getFileNamePostVar ()
 Get file name post var. More...
 
 setALlowDeletion ($a_val)
 Set allow deletion. More...
 
 getALlowDeletion ()
 Get allow deletion. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 render ($a_mode="")
 Render html. More...
 
 insert ($a_tpl)
 Insert property html. More...
 
 getDeletionFlag ()
 Get deletion flag. More...
 
 getToolbarHTML ()
 Get HTML for toolbar. More...
 
- Public Member Functions inherited from ilSubEnabledFormPropertyGUI
 addSubItem ($a_item)
 Add Subitem. More...
 
 getSubItems ()
 Get Subitems. More...
 
 getSubInputItemsRecursive ()
 returns a flat array of possibly existing subitems recursively More...
 
 checkSubItemsInput ()
 Check SubItems. More...
 
 getSubForm ()
 Get sub form html. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
- Public Member Functions inherited from ilFormPropertyGUI
 __construct ($a_title="", $a_postvar="")
 Constructor. More...
 
 executeCommand ()
 Execute command. More...
 
 getType ()
 Get Type. More...
 
 setTitle ($a_title)
 Set Title. More...
 
 getTitle ()
 Get Title. More...
 
 setPostVar ($a_postvar)
 Set Post Variable. More...
 
 getPostVar ()
 Get Post Variable. More...
 
 getFieldId ()
 Get Post Variable. More...
 
 setInfo ($a_info)
 Set Information Text. More...
 
 getInfo ()
 Get Information Text. More...
 
 setAlert ($a_alert)
 Set Alert Text. More...
 
 getAlert ()
 Get Alert Text. More...
 
 setRequired ($a_required)
 Set Required. More...
 
 getRequired ()
 Get Required. More...
 
 setDisabled ($a_disabled)
 Set Disabled. More...
 
 getDisabled ()
 Get Disabled. More...
 
 checkInput ()
 Check input, strip slashes etc. More...
 
 setParentForm ($a_parentform)
 Set Parent Form. More...
 
 getParentForm ()
 Get Parent Form. More...
 
 setParent ($a_val)
 Set Parent GUI object. More...
 
 getParent ()
 Get Parent GUI object. More...
 
 getSubForm ()
 Get sub form html. More...
 
 hideSubForm ()
 Sub form hidden on init? More...
 
 setHiddenTitle ($a_val)
 Set hidden title (for screenreaders) More...
 
 getHiddenTitle ()
 Get hidden title. More...
 
 getItemByPostVar ($a_post_var)
 Get item by post var. More...
 
 serializeData ()
 serialize data More...
 
 unserializeData ($a_data)
 unserialize data More...
 
 writeToSession ()
 Write to session. More...
 
 clearFromSession ()
 Clear session value. More...
 
 readFromSession ()
 Read from session. More...
 
 getHiddenTag ($a_post_var, $a_value)
 Get hidden tag (used for disabled properties) More...
 
 setMulti ($a_multi, $a_sortable=false, $a_addremove=true)
 Set Multi. More...
 
 getMulti ()
 Get Multi. More...
 
 setMultiValues (array $a_values)
 Set multi values. More...
 
 getMultiValues ()
 Get multi values. More...
 
 getContentOutsideFormTag ()
 Get content that has to reside outside of the parent form tag, e.g. More...
 
 stripSlashesAddSpaceFallback ($a_str)
 Strip slashes with add space fallback, see https://www.ilias.de/mantis/view.php?id=19727. More...
 
 getTableFilterLabelFor ()
 Get label "for" attribute value for filter. More...
 
 getFormLabelFor ()
 Get label "for" attribute value for form. More...
 

Protected Attributes

 $areas = array()
 
 $image_path = ""
 
 $image_path_web = ""
 
 $line_color = ""
 
 $pointsUncheckedFieldEnabled = false
 
- Protected Attributes inherited from ilImageFileInputGUI
 $cache
 
- Protected Attributes inherited from ilFileInputGUI
 $lng
 
 $size = 40
 
 $pending
 
 $allow_deletion
 
 $forbidden_suffixes = array()
 
- Protected Attributes inherited from ilSubEnabledFormPropertyGUI
 $sub_items = array()
 
- Protected Attributes inherited from ilFormPropertyGUI
 $ctrl
 
 $lng
 
 $type
 
 $title
 
 $postvar
 
 $info
 
 $alert
 
 $required = false
 
 $parentgui
 
 $parentform
 
 $hidden_title = ""
 
 $multi = false
 
 $multi_sortable = false
 
 $multi_addremove = true
 
 $multi_values
 

Additional Inherited Members

- Static Public Member Functions inherited from ilFileInputGUI
static setPersonalWorkspaceQuotaCheck ($a_value)
 
- Static Public Member Functions inherited from ilFormPropertyGUI
static removeProhibitedCharacters ($a_text)
 Remove prohibited characters see #19159. More...
 
- Protected Member Functions inherited from ilFileInputGUI
 outputSuffixes ($a_tpl, $a_block="allowed_suffixes")
 
 getMaxFileSizeString ()
 
 getMaxFileUploads ()
 Get number of maximum file uploads as declared in php.ini. More...
 
- Protected Member Functions inherited from ilFormPropertyGUI
 setType ($a_type)
 Set Type. More...
 
 getMultiIconsHTML ()
 Get HTML for multiple value icons. More...
 
- Static Protected Attributes inherited from ilFileInputGUI
static $check_wsp_quota
 

Detailed Description

This class represents an image map file property in a property form.

Author
Helmut Schottmüller ilias.nosp@m.@aur.nosp@m.ealis.nosp@m..de
Version
$Id$

Definition at line 15 of file class.ilImagemapFileInputGUI.php.

Constructor & Destructor Documentation

◆ __construct()

ilImagemapFileInputGUI::__construct (   $a_title = "",
  $a_postvar = "" 
)

Constructor.

Parameters
string$a_titleTitle
string$a_postvarPost Variable

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

References $DIC, and ilFileInputGUI\$lng.

31  {
32  global $DIC;
33  $lng = $DIC['lng'];
34 
35  parent::__construct($a_title, $a_postvar);
36  }
global $DIC
Definition: saml.php:7

Member Function Documentation

◆ checkInput()

ilImagemapFileInputGUI::checkInput ( )

Check input, strip slashes etc.

set alert, if input is not ok.

Returns
boolean Input ok, true/false

Definition at line 134 of file class.ilImagemapFileInputGUI.php.

References $_POST, $DIC, ilFileInputGUI\$filename, ilFileInputGUI\$lng, $name, ilFormPropertyGUI\getPostVar(), ilFormPropertyGUI\getRequired(), ilFileInputGUI\getSuffixes(), ilFileInputGUI\getValue(), ilFormPropertyGUI\setAlert(), ilUtil\stripSlashesRecursive(), and ilUtil\virusHandling().

135  {
136  global $DIC;
137  $lng = $DIC['lng'];
138 
139  if (is_array($_POST[$this->getPostVar()])) {
141  }
142  // remove trailing '/'
143  $_FILES[$this->getPostVar()]["name"] = rtrim($_FILES[$this->getPostVar()]["name"], '/');
144 
145  $filename = $_FILES[$this->getPostVar()]["name"];
146  $filename_arr = pathinfo($_FILES[$this->getPostVar()]["name"]);
147  $suffix = $filename_arr["extension"];
148  $mimetype = $_FILES[$this->getPostVar()]["type"];
149  $size_bytes = $_FILES[$this->getPostVar()]["size"];
150  $temp_name = $_FILES[$this->getPostVar()]["tmp_name"];
151  $error = $_FILES[$this->getPostVar()]["error"];
152 
153  // error handling
154  if ($error > 0) {
155  switch ($error) {
156  case UPLOAD_ERR_INI_SIZE:
157  $this->setAlert($lng->txt("form_msg_file_size_exceeds"));
158  return false;
159  break;
160 
161  case UPLOAD_ERR_FORM_SIZE:
162  $this->setAlert($lng->txt("form_msg_file_size_exceeds"));
163  return false;
164  break;
165 
166  case UPLOAD_ERR_PARTIAL:
167  $this->setAlert($lng->txt("form_msg_file_partially_uploaded"));
168  return false;
169  break;
170 
171  case UPLOAD_ERR_NO_FILE:
172  if ($this->getRequired()) {
173  if (!strlen($this->getValue())) {
174  $this->setAlert($lng->txt("form_msg_file_no_upload"));
175  return false;
176  }
177  }
178  break;
179 
180  case UPLOAD_ERR_NO_TMP_DIR:
181  $this->setAlert($lng->txt("form_msg_file_missing_tmp_dir"));
182  return false;
183  break;
184 
185  case UPLOAD_ERR_CANT_WRITE:
186  $this->setAlert($lng->txt("form_msg_file_cannot_write_to_disk"));
187  return false;
188  break;
189 
190  case UPLOAD_ERR_EXTENSION:
191  $this->setAlert($lng->txt("form_msg_file_upload_stopped_ext"));
192  return false;
193  break;
194  }
195  }
196 
197  // check suffixes
198  if ($_FILES[$this->getPostVar()]["tmp_name"] != "" &&
199  is_array($this->getSuffixes())) {
200  if (!in_array(strtolower($suffix), $this->getSuffixes())) {
201  $this->setAlert($lng->txt("form_msg_file_wrong_file_type"));
202  return false;
203  }
204  }
205 
206  // virus handling
207  if ($_FILES[$this->getPostVar()]["tmp_name"] != "") {
208  $vir = ilUtil::virusHandling($temp_name, $filename);
209  if ($vir[0] == false) {
210  $this->setAlert($lng->txt("form_msg_file_virus_found") . "<br />" . $vir[1]);
211  return false;
212  }
213  }
214 
215  $max = 0;
216  if (is_array($_POST[$this->getPostVar()]['coords']['name'])) {
217  foreach ($_POST[$this->getPostVar()]['coords']['name'] as $idx => $name) {
218  if ((!strlen($_POST[$this->getPostVar()]['coords']['points'][$idx])) && ($this->getRequired)) {
219  $this->setAlert($lng->txt('form_msg_area_missing_points'));
220  return false;
221  }
222  if ((!is_numeric($_POST[$this->getPostVar()]['coords']['points'][$idx]))) {
223  $this->setAlert($lng->txt('form_msg_numeric_value_required'));
224  return false;
225  }
226  if ($_POST[$this->getPostVar()]['coords']['points'][$idx] > 0) {
227  $max = $_POST[$this->getPostVar()]['coords']['points'][$idx];
228  }
229  }
230  }
231 
232  if ($max == 0 && (!$filename) && !$_FILES['imagemapfile']['tmp_name']) {
233  $this->setAlert($lng->txt("enter_enough_positive_points"));
234  return false;
235  }
236  return true;
237  }
getSuffixes()
Get Accepted Suffixes.
static virusHandling($a_file, $a_orig_name="", $a_clean=true)
scan file for viruses and clean files if possible
global $DIC
Definition: saml.php:7
getPostVar()
Get Post Variable.
setAlert($a_alert)
Set Alert Text.
static stripSlashesRecursive($a_data, $a_strip_html=true, $a_allow="")
Strip slashes from array and sub-arrays.
$_POST["username"]
+ Here is the call graph for this function:

◆ getAreas()

ilImagemapFileInputGUI::getAreas ( )

Definition at line 108 of file class.ilImagemapFileInputGUI.php.

References $areas.

Referenced by ilImagemapCorrectionsInputGUI\insert(), and insert().

+ Here is the caller graph for this function:

◆ getImagePath()

ilImagemapFileInputGUI::getImagePath ( )

Definition at line 63 of file class.ilImagemapFileInputGUI.php.

References $image_path.

Referenced by ilImagemapCorrectionsInputGUI\insert(), and insert().

+ Here is the caller graph for this function:

◆ getImagePathWeb()

ilImagemapFileInputGUI::getImagePathWeb ( )

Definition at line 73 of file class.ilImagemapFileInputGUI.php.

References $image_path_web.

Referenced by ilImagemapCorrectionsInputGUI\insert(), and insert().

+ Here is the caller graph for this function:

◆ getLineColor()

ilImagemapFileInputGUI::getLineColor ( )

Definition at line 53 of file class.ilImagemapFileInputGUI.php.

References $line_color.

Referenced by ilImagemapCorrectionsInputGUI\insert(), and insert().

+ Here is the caller graph for this function:

◆ getPointsUncheckedFieldEnabled()

ilImagemapFileInputGUI::getPointsUncheckedFieldEnabled ( )

◆ insert()

ilImagemapFileInputGUI::insert (   $a_tpl)

Insert property html.

Definition at line 242 of file class.ilImagemapFileInputGUI.php.

References $coords, $DIC, $index, ilFileInputGUI\$lng, $preview, $template, $tpl, ilGlyphGUI\get(), ilImageFileInputGUI\getAlt(), getAreas(), ilFormPropertyGUI\getFieldId(), ilImageFileInputGUI\getImage(), getImagePath(), getImagePathWeb(), getLineColor(), ilFileInputGUI\getMaxFileSizeString(), getPointsUncheckedFieldEnabled(), ilFormPropertyGUI\getPostVar(), ilFileInputGUI\getValue(), ilFileInputGUI\outputSuffixes(), and ilGlyphGUI\REMOVE.

243  {
244  global $DIC;
245  $lng = $DIC['lng'];
246 
247  $template = new ilTemplate("tpl.prop_imagemap_file.html", true, true, "Modules/TestQuestionPool");
248 
249  $this->outputSuffixes($template, "allowed_image_suffixes");
250 
251  if ($this->getImage() != "") {
252  if (strlen($this->getValue())) {
253  $template->setCurrentBlock("has_value");
254  $template->setVariable("TEXT_IMAGE_NAME", $this->getValue());
255  $template->setVariable("POST_VAR_D", $this->getPostVar());
256  $template->parseCurrentBlock();
257  }
258  $template->setCurrentBlock("image");
259  if (count($this->getAreas())) {
260  include_once "./Modules/TestQuestionPool/classes/class.ilImagemapPreview.php";
261  $preview = new ilImagemapPreview($this->getImagePath() . $this->getValue());
262  foreach ($this->getAreas() as $index => $area) {
263  $preview->addArea($index, $area->getArea(), $area->getCoords(), $area->getAnswertext(), "", "", true, $this->getLineColor());
264  }
265  $preview->createPreview();
266  $imagepath = $this->getImagePathWeb() . $preview->getPreviewFilename($this->getImagePath(), $this->getValue()) . "?img=" . time();
267  $template->setVariable("SRC_IMAGE", $imagepath);
268  } else {
269  $template->setVariable("SRC_IMAGE", $this->getImage());
270  }
271  $template->setVariable("ALT_IMAGE", $this->getAlt());
272  $template->setVariable("POST_VAR_D", $this->getPostVar());
273  $template->setVariable(
274  "TXT_DELETE_EXISTING",
275  $lng->txt("delete_existing_file")
276  );
277  $template->setVariable("TEXT_ADD_RECT", $lng->txt('add_rect'));
278  $template->setVariable("TEXT_ADD_CIRCLE", $lng->txt('add_circle'));
279  $template->setVariable("TEXT_ADD_POLY", $lng->txt('add_poly'));
280  $template->parseCurrentBlock();
281  }
282 
283  if (is_array($this->getAreas()) && $this->getAreas()) {
284  $counter = 0;
285  foreach ($this->getAreas() as $area) {
286  if (strlen($area->getPoints())) {
287  $template->setCurrentBlock('area_points_value');
288  $template->setVariable('VALUE_POINTS', $area->getPoints());
289  $template->parseCurrentBlock();
290  }
291  if ($this->getPointsUncheckedFieldEnabled()) {
292  if (strlen($area->getPointsUnchecked())) {
293  $template->setCurrentBlock('area_points_unchecked_value');
294  $template->setVariable('VALUE_POINTS_UNCHECKED', $area->getPointsUnchecked());
295  $template->parseCurrentBlock();
296  }
297 
298  $template->setCurrentBlock('area_points_unchecked_field');
299  $template->parseCurrentBlock();
300  }
301  if (strlen($area->getAnswertext())) {
302  $template->setCurrentBlock('area_name_value');
303  $template->setVariable('VALUE_NAME', $area->getAnswertext());
304  $template->parseCurrentBlock();
305  }
306  $template->setCurrentBlock('row');
307  $template->setVariable('POST_VAR_R', $this->getPostVar());
308  $template->setVariable('TEXT_SHAPE', strtoupper($area->getArea()));
309  $template->setVariable('VALUE_SHAPE', $area->getArea());
310  $coords = preg_replace("/(\d+,\d+,)/", "\$1 ", $area->getCoords());
311  $template->setVariable('VALUE_COORDINATES', $area->getCoords());
312  $template->setVariable('TEXT_COORDINATES', $coords);
313  $template->setVariable('COUNTER', $counter);
314  $template->setVariable("REMOVE_BUTTON", ilGlyphGUI::get(ilGlyphGUI::REMOVE));
315  $template->parseCurrentBlock();
316  $counter++;
317  }
318  $template->setCurrentBlock("areas");
319  $template->setVariable("TEXT_NAME", $lng->txt("ass_imap_hint"));
320  if ($this->getPointsUncheckedFieldEnabled()) {
321  $template->setVariable("TEXT_POINTS", $lng->txt("points_checked"));
322 
323  $template->setCurrentBlock('area_points_unchecked_head');
324  $template->setVariable("TEXT_POINTS_UNCHECKED", $lng->txt("points_unchecked"));
325  $template->parseCurrentBlock();
326  } else {
327  $template->setVariable("TEXT_POINTS", $lng->txt("points"));
328  }
329  $template->setVariable("TEXT_SHAPE", $lng->txt("shape"));
330  $template->setVariable("TEXT_COORDINATES", $lng->txt("coordinates"));
331  $template->setVariable("TEXT_COMMANDS", $lng->txt("actions"));
332  $template->parseCurrentBlock();
333  }
334 
335  $template->setVariable("POST_VAR", $this->getPostVar());
336  $template->setVariable("ID", $this->getFieldId());
337  $template->setVariable("TXT_BROWSE", $lng->txt("select_file"));
338  $template->setVariable("TXT_MAX_SIZE", $lng->txt("file_notice") . " " .
339  $this->getMaxFileSizeString());
340 
341  $a_tpl->setCurrentBlock("prop_generic");
342  $a_tpl->setVariable("PROP_GENERIC", $template->get());
343  $a_tpl->parseCurrentBlock();
344 
345  global $DIC;
346  $tpl = $DIC['tpl'];
347  $tpl->addJavascript("./Services/Form/js/ServiceFormWizardInput.js");
348  $tpl->addJavascript("./Modules/TestQuestionPool/templates/default/imagemap.js");
349  }
getAlt()
Get Alternative Text.
$template
global $DIC
Definition: saml.php:7
$tpl
Definition: ilias.php:10
getPostVar()
Get Post Variable.
$preview
static get($a_glyph, $a_text="")
Get glyph html.
$index
Definition: metadata.php:60
$coords
Definition: example_030.php:88
Image map image preview creator.
getFieldId()
Get Post Variable.
special template class to simplify handling of ITX/PEAR
outputSuffixes($a_tpl, $a_block="allowed_suffixes")
+ Here is the call graph for this function:

◆ setAreas()

ilImagemapFileInputGUI::setAreas (   $a_areas)

Definition at line 48 of file class.ilImagemapFileInputGUI.php.

49  {
50  $this->areas = $a_areas;
51  }

◆ setAreasByArray()

ilImagemapFileInputGUI::setAreasByArray (   $a_areas)

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

References $name, and getPointsUncheckedFieldEnabled().

Referenced by setValueByArray().

84  {
85  if (is_array($a_areas['name'])) {
86  $this->areas = array();
87  include_once "./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php";
88  foreach ($a_areas['name'] as $idx => $name) {
89  if ($this->getPointsUncheckedFieldEnabled() && isset($a_areas['points_unchecked'])) {
90  $pointsUnchecked = $a_areas['points_unchecked'][$idx];
91  } else {
92  $pointsUnchecked = 0.0;
93  }
94 
95  array_push($this->areas, new ASS_AnswerImagemap(
96  $name,
97  $a_areas['points'][$idx],
98  $idx,
99  $a_areas['coords'][$idx],
100  $a_areas['shape'][$idx],
101  -1,
102  $pointsUnchecked
103  ));
104  }
105  }
106  }
Class for true/false or yes/no answers.
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setImagePath()

ilImagemapFileInputGUI::setImagePath (   $a_path)

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

69  {
70  $this->image_path = $a_path;
71  }

◆ setImagePathWeb()

ilImagemapFileInputGUI::setImagePathWeb (   $a_path_web)

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

79  {
80  $this->image_path_web = $a_path_web;
81  }

◆ setLineColor()

ilImagemapFileInputGUI::setLineColor (   $a_color)

Definition at line 58 of file class.ilImagemapFileInputGUI.php.

59  {
60  $this->line_color = $a_color;
61  }

◆ setPointsUncheckedFieldEnabled()

ilImagemapFileInputGUI::setPointsUncheckedFieldEnabled (   $pointsUncheckedFieldEnabled)

Definition at line 38 of file class.ilImagemapFileInputGUI.php.

References $pointsUncheckedFieldEnabled.

Referenced by assImagemapQuestionGUI\populateCorrectionsFormProperties(), and assImagemapQuestionGUI\populateQuestionSpecificFormPart().

39  {
40  $this->pointsUncheckedFieldEnabled = (bool) $pointsUncheckedFieldEnabled;
41  }
+ Here is the caller graph for this function:

◆ setValue()

ilImagemapFileInputGUI::setValue (   $a_value)

Definition at line 124 of file class.ilImagemapFileInputGUI.php.

Referenced by setValueByArray().

125  {
126  parent::setValue($a_value);
127  }
+ Here is the caller graph for this function:

◆ setValueByArray()

ilImagemapFileInputGUI::setValueByArray (   $a_values)

Set value by array.

Parameters
array$a_valuesvalue array

Definition at line 118 of file class.ilImagemapFileInputGUI.php.

References ilFormPropertyGUI\getPostVar(), setAreasByArray(), and setValue().

119  {
120  $this->setValue($a_values[$this->getPostVar() . '_name']);
121  $this->setAreasByArray($a_values[$this->getPostVar()]['coords']);
122  }
getPostVar()
Get Post Variable.
+ Here is the call graph for this function:

Field Documentation

◆ $areas

ilImagemapFileInputGUI::$areas = array()
protected

Definition at line 17 of file class.ilImagemapFileInputGUI.php.

Referenced by getAreas().

◆ $image_path

ilImagemapFileInputGUI::$image_path = ""
protected

Definition at line 18 of file class.ilImagemapFileInputGUI.php.

Referenced by getImagePath().

◆ $image_path_web

ilImagemapFileInputGUI::$image_path_web = ""
protected

Definition at line 19 of file class.ilImagemapFileInputGUI.php.

Referenced by getImagePathWeb().

◆ $line_color

ilImagemapFileInputGUI::$line_color = ""
protected

Definition at line 20 of file class.ilImagemapFileInputGUI.php.

Referenced by getLineColor().

◆ $pointsUncheckedFieldEnabled

ilImagemapFileInputGUI::$pointsUncheckedFieldEnabled = false
protected

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