|
ILIAS
release_5-1 Revision 5.0.0-5477-g43f3e3fab5f
|
User interface class for map editor. More...
Inheritance diagram for ilImageMapEditorGUI:
Collaboration diagram for ilImageMapEditorGUI:Public Member Functions | |
| __construct ($a_media_object) | |
| Constructor. More... | |
| executeCommand () | |
| Execute current command. More... | |
| editMapAreas () | |
| Show map areas. More... | |
| getToolbar () | |
| Get toolbar. More... | |
| getEditorTitle () | |
| Get editor title. More... | |
| getImageMapTableHTML () | |
| Get table HTML. More... | |
| handleMapParameters () | |
| handle parameter during map area editing (storing to session) More... | |
| showImageMap () | |
| show image map More... | |
| updateAreas () | |
| Update map areas. More... | |
| addNewArea () | |
| Add area. More... | |
| linkWholePicture () | |
| Link the whole picture. More... | |
| addRectangle () | |
| Add a new rectangle. More... | |
| addCircle () | |
| Add a new circle. More... | |
| addPolygon () | |
| Add a new polygon. More... | |
| clearSessionVars () | |
| Clear Session Vars. More... | |
| addArea ($a_handle=true) | |
| Handle adding new area process. More... | |
| editMapArea ($a_get_next_coordinate=false, $a_output_new_area=false, $a_save_form=false, $a_edit_property="", $a_area_nr=0) | |
| Edit a single map area. More... | |
| initAreaEditingForm ($a_edit_property) | |
| Init area editing form. More... | |
| makeMapWorkCopy ($a_edit_property="", $a_area_nr=0, $a_output_new_area=false, $a_area_type="", $a_coords="") | |
| Make work file for editing. More... | |
| getImageMapOutput ($a_map_edit_mode="") | |
| Render the image map. More... | |
| getAdditionalPageXML () | |
| Get additional page xml (to be overwritten) More... | |
| outputPostProcessing ($a_output) | |
| Output post processing. More... | |
| getAliasXML () | |
| getMapAreaLinkString ($a_target, $a_type, $a_frame) | |
| Get text name of internal link. More... | |
| editImagemapForward () | |
| Get image map coordinates. More... | |
| _recoverParameters () | |
| Recover parameters from session variables (static) More... | |
| saveArea () | |
| Save new or updated map area. More... | |
| setInternalLink () | |
| Set internal link. More... | |
| setLink ($a_handle=true) | |
| Set link. More... | |
| getLinkTypeOfArea ($a_nr) | |
| Get Link Type of Area. More... | |
| getTypeOfArea ($a_nr) | |
| Get Type of Area (only internal link) More... | |
| getTargetOfArea ($a_nr) | |
| Get Target of Area (only internal link) More... | |
| getTargetFrameOfArea ($a_nr) | |
| Get TargetFrame of Area (only internal link) More... | |
| getHrefOfArea ($a_nr) | |
| Get Href of Area (only external link) More... | |
| deleteAreas () | |
| Delete map areas. More... | |
| editLink () | |
| Edit existing link. More... | |
| editShapeWholePicture () | |
| Edit an existing shape (make it a whole picture link) More... | |
| editShapeRectangle () | |
| Edit an existing shape (make it a rectangle) More... | |
| editShapeCircle () | |
| Edit an existing shape (make it a circle) More... | |
| editShapePolygon () | |
| Edit an existing shape (make it a polygon) More... | |
| setShape ($a_handle=true) | |
| edit shape of existing map area More... | |
| setHighlight () | |
| Set highlight settings. More... | |
User interface class for map editor.
@ilCtrl_Calls ilImageMapEditorGUI: ilInternalLinkGUI
Definition at line 14 of file class.ilImageMapEditorGUI.php.
| ilImageMapEditorGUI::__construct | ( | $a_media_object | ) |
Constructor.
Definition at line 19 of file class.ilImageMapEditorGUI.php.
| ilImageMapEditorGUI::_recoverParameters | ( | ) |
Recover parameters from session variables (static)
Definition at line 745 of file class.ilImageMapEditorGUI.php.
References $_GET, and $_SESSION.
Referenced by editImagemapForward(), and ilInternalLinkGUI\renderLink().
Here is the caller graph for this function:| ilImageMapEditorGUI::addArea | ( | $a_handle = true | ) |
Handle adding new area process.
Definition at line 294 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $coords, $html, ilMapArea\countCoords(), editMapArea(), and handleMapParameters().
Referenced by addCircle(), addPolygon(), addRectangle(), and setInternalLink().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::addCircle | ( | ) |
Add a new circle.
Definition at line 258 of file class.ilImageMapEditorGUI.php.
References $_SESSION, addArea(), and clearSessionVars().
Referenced by addNewArea().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::addNewArea | ( | ) |
Add area.
Reimplemented in ilPCIIMTriggerEditorGUI.
Definition at line 222 of file class.ilImageMapEditorGUI.php.
References $_POST, addCircle(), addPolygon(), addRectangle(), and linkWholePicture().
Here is the call graph for this function:| ilImageMapEditorGUI::addPolygon | ( | ) |
Add a new polygon.
Definition at line 268 of file class.ilImageMapEditorGUI.php.
References $_SESSION, addArea(), and clearSessionVars().
Referenced by addNewArea().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::addRectangle | ( | ) |
Add a new rectangle.
Definition at line 248 of file class.ilImageMapEditorGUI.php.
References $_SESSION, addArea(), and clearSessionVars().
Referenced by addNewArea().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::clearSessionVars | ( | ) |
Clear Session Vars.
Definition at line 278 of file class.ilImageMapEditorGUI.php.
References $_SESSION.
Referenced by addCircle(), addPolygon(), addRectangle(), editShapeCircle(), editShapePolygon(), editShapeRectangle(), editShapeWholePicture(), and linkWholePicture().
Here is the caller graph for this function:| ilImageMapEditorGUI::deleteAreas | ( | ) |
Delete map areas.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 967 of file class.ilImageMapEditorGUI.php.
References $_POST, $ilCtrl, $lng, ilMapArea\_getMaxNr(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
Here is the call graph for this function:| ilImageMapEditorGUI::editImagemapForward | ( | ) |
Get image map coordinates.
Definition at line 726 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, _recoverParameters(), and ilUtil\redirect().
Here is the call graph for this function:| ilImageMapEditorGUI::editLink | ( | ) |
Edit existing link.
Definition at line 1000 of file class.ilImageMapEditorGUI.php.
References $_SESSION, and setLink().
Here is the call graph for this function:| ilImageMapEditorGUI::editMapArea | ( | $a_get_next_coordinate = false, |
|
$a_output_new_area = false, |
|||
$a_save_form = false, |
|||
$a_edit_property = "", |
|||
$a_area_nr = 0 |
|||
| ) |
Edit a single map area.
| boolean | $a_get_next_coordinate | enable next coordinate input |
| boolean | $a_output_new_area | output the new area |
| boolean | $a_save_from | output save form |
| string | $a_edit_property | "" | "link" | "shape" |
Definition at line 375 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $coords, $ilCtrl, $lng, $tpl, ilMapArea\countCoords(), getImageMapOutput(), ilInternalLinkGUI\getInitHTML(), initAreaEditingForm(), makeMapWorkCopy(), and ilUtil\sendInfo().
Referenced by addArea(), linkWholePicture(), setLink(), and setShape().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::editMapAreas | ( | ) |
Show map areas.
Definition at line 67 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $ilCtrl, $lng, getImageMapOutput(), getImageMapTableHTML(), getToolbar(), handleMapParameters(), and makeMapWorkCopy().
Here is the call graph for this function:| ilImageMapEditorGUI::editShapeCircle | ( | ) |
Edit an existing shape (make it a circle)
Definition at line 1036 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and setShape().
Here is the call graph for this function:| ilImageMapEditorGUI::editShapePolygon | ( | ) |
Edit an existing shape (make it a polygon)
Definition at line 1046 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and setShape().
Here is the call graph for this function:| ilImageMapEditorGUI::editShapeRectangle | ( | ) |
Edit an existing shape (make it a rectangle)
Definition at line 1026 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and setShape().
Here is the call graph for this function:| ilImageMapEditorGUI::editShapeWholePicture | ( | ) |
Edit an existing shape (make it a whole picture link)
Definition at line 1016 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and setShape().
Here is the call graph for this function:| ilImageMapEditorGUI::executeCommand | ( | ) |
Execute current command.
Definition at line 27 of file class.ilImageMapEditorGUI.php.
References $_POST, $cmd, $ilCtrl, $ret, $tpl, and ilObjMediaObjectGUI\includePresentationJS().
Here is the call graph for this function:| ilImageMapEditorGUI::getAdditionalPageXML | ( | ) |
Get additional page xml (to be overwritten)
Reimplemented in ilPCIIMTriggerEditorGUI.
Definition at line 643 of file class.ilImageMapEditorGUI.php.
Referenced by getImageMapOutput().
Here is the caller graph for this function:| ilImageMapEditorGUI::getAliasXML | ( | ) |
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 659 of file class.ilImageMapEditorGUI.php.
References IL_MODE_ALIAS.
Referenced by getImageMapOutput().
Here is the caller graph for this function:| ilImageMapEditorGUI::getEditorTitle | ( | ) |
Get editor title.
Reimplemented in ilPCIIMTriggerEditorGUI.
Definition at line 144 of file class.ilImageMapEditorGUI.php.
References $lng.
| ilImageMapEditorGUI::getHrefOfArea | ( | $a_nr | ) |
Get Href of Area (only external link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 957 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
Here is the caller graph for this function:| ilImageMapEditorGUI::getImageMapOutput | ( | $a_map_edit_mode = "" | ) |
Render the image map.
Definition at line 599 of file class.ilImageMapEditorGUI.php.
References $_GET, $ilCtrl, $params, getAdditionalPageXML(), getAliasXML(), ilUtil\getImagePath(), ilUtil\getWebspaceDir(), IL_MODE_OUTPUT, outputPostProcessing(), xslt_create(), xslt_error(), and xslt_free().
Referenced by editMapArea(), and editMapAreas().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::getImageMapTableHTML | ( | ) |
Get table HTML.
Reimplemented in ilPCIIMTriggerEditorGUI, and ilPCImageMapEditorGUI.
Definition at line 155 of file class.ilImageMapEditorGUI.php.
Referenced by editMapAreas().
Here is the caller graph for this function:| ilImageMapEditorGUI::getLinkTypeOfArea | ( | $a_nr | ) |
Get Link Type of Area.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 917 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
Here is the caller graph for this function:| ilImageMapEditorGUI::getMapAreaLinkString | ( | $a_target, | |
| $a_type, | |||
| $a_frame | |||
| ) |
Get text name of internal link.
| string | $a_target | target object link id |
| string | $a_type | type |
| string | $a_frame | target frame |
@access private
Definition at line 673 of file class.ilImageMapEditorGUI.php.
References $lng, ilObject\_lookupObjId(), ilObject\_lookupTitle(), and ilLMObject\_lookupTitle().
Referenced by initAreaEditingForm().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::getTargetFrameOfArea | ( | $a_nr | ) |
Get TargetFrame of Area (only internal link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 947 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
Here is the caller graph for this function:| ilImageMapEditorGUI::getTargetOfArea | ( | $a_nr | ) |
Get Target of Area (only internal link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 937 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
Here is the caller graph for this function:| ilImageMapEditorGUI::getToolbar | ( | ) |
Get toolbar.
Reimplemented in ilPCIIMTriggerEditorGUI.
Definition at line 97 of file class.ilImageMapEditorGUI.php.
References $ilCtrl, $lng, $options, $si, and $tpl.
Referenced by editMapAreas().
Here is the caller graph for this function:| ilImageMapEditorGUI::getTypeOfArea | ( | $a_nr | ) |
Get Type of Area (only internal link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 927 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
Here is the caller graph for this function:| ilImageMapEditorGUI::handleMapParameters | ( | ) |
handle parameter during map area editing (storing to session)
Definition at line 165 of file class.ilImageMapEditorGUI.php.
References $_GET, and $_SESSION.
Referenced by addArea(), editMapAreas(), setLink(), and setShape().
Here is the caller graph for this function:| ilImageMapEditorGUI::initAreaEditingForm | ( | $a_edit_property | ) |
Init area editing form.
| int | $a_mode | Edit Mode |
Reimplemented in ilPCIIMTriggerEditorGUI.
Definition at line 473 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $ilCtrl, $lng, and getMapAreaLinkString().
Referenced by editMapArea().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::linkWholePicture | ( | ) |
Link the whole picture.
Definition at line 237 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and editMapArea().
Referenced by addNewArea().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::makeMapWorkCopy | ( | $a_edit_property = "", |
|
$a_area_nr = 0, |
|||
$a_output_new_area = false, |
|||
$a_area_type = "", |
|||
$a_coords = "" |
|||
| ) |
Make work file for editing.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 575 of file class.ilImageMapEditorGUI.php.
Referenced by editMapArea(), and editMapAreas().
Here is the caller graph for this function:| ilImageMapEditorGUI::outputPostProcessing | ( | $a_output | ) |
Output post processing.
return
Reimplemented in ilPCIIMTriggerEditorGUI.
Definition at line 654 of file class.ilImageMapEditorGUI.php.
Referenced by getImageMapOutput().
Here is the caller graph for this function:| ilImageMapEditorGUI::saveArea | ( | ) |
Save new or updated map area.
Reimplemented in ilPCIIMTriggerEditorGUI, and ilPCImageMapEditorGUI.
Definition at line 756 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, $coords, $ilCtrl, $lng, ilMapArea\_getMaxNr(), IL_EXT_LINK, IL_INT_LINK, IL_NO_LINK, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
Referenced by setShape().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::setHighlight | ( | ) |
Set highlight settings.
return
Definition at line 1160 of file class.ilImageMapEditorGUI.php.
References $_POST, $ilCtrl, $lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
Here is the call graph for this function:| ilImageMapEditorGUI::setInternalLink | ( | ) |
| ilImageMapEditorGUI::setLink | ( | $a_handle = true | ) |
Set link.
Definition at line 867 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, $ilCtrl, $lng, editMapArea(), getHrefOfArea(), getLinkTypeOfArea(), getTargetFrameOfArea(), getTargetOfArea(), getTypeOfArea(), handleMapParameters(), IL_INT_LINK, and ilUtil\sendFailure().
Referenced by editLink(), and setInternalLink().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::setShape | ( | $a_handle = true | ) |
edit shape of existing map area
Definition at line 1056 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, $coords, $ilCtrl, $lng, ilMapArea\countCoords(), editMapArea(), handleMapParameters(), saveArea(), and ilUtil\sendFailure().
Referenced by editShapeCircle(), editShapePolygon(), editShapeRectangle(), and editShapeWholePicture().
Here is the call graph for this function:
Here is the caller graph for this function:| ilImageMapEditorGUI::showImageMap | ( | ) |
show image map
Definition at line 191 of file class.ilImageMapEditorGUI.php.
References $_GET.
| ilImageMapEditorGUI::updateAreas | ( | ) |
Update map areas.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 200 of file class.ilImageMapEditorGUI.php.
References $_POST, $ilCtrl, $lng, ilMapArea\_getMaxNr(), ilUtil\sendSuccess(), and ilUtil\stripSlashes().
Here is the call graph for this function: