|
ILIAS
release_7 Revision v7.30-3-g800a261c036
|
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... | |
| 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... | |
Static Public Member Functions | |
| static | _recoverParameters () |
| Recover parameters from session variables (static) More... | |
Protected Attributes | |
| $ctrl | |
| $tpl | |
| $lng | |
| $toolbar | |
User interface class for map editor.
@ilCtrl_Calls ilImageMapEditorGUI: ilInternalLinkGUI
Definition at line 14 of file class.ilImageMapEditorGUI.php.
| ilImageMapEditorGUI::__construct | ( | $a_media_object | ) |
|
static |
Recover parameters from session variables (static)
Definition at line 754 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 324 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $c, 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 288 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 253 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 298 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 278 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 308 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 962 of file class.ilImageMapEditorGUI.php.
References $_POST, $ctrl, $i, $lng, ilMapArea\_getMaxNr(), and ilUtil\sendFailure().
Here is the call graph for this function:| ilImageMapEditorGUI::editImagemapForward | ( | ) |
Get image map coordinates.
Definition at line 736 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 993 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 391 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $ctrl, $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 93 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $ctrl, $lng, $toolbar, 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 1029 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 1039 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 1019 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 1009 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 53 of file class.ilImageMapEditorGUI.php.
References $_POST, $ctrl, $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 655 of file class.ilImageMapEditorGUI.php.
Referenced by getImageMapOutput().
Here is the caller graph for this function:| ilImageMapEditorGUI::getAliasXML | ( | ) |
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 671 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 179 of file class.ilImageMapEditorGUI.php.
References $lng.
| ilImageMapEditorGUI::getHrefOfArea | ( | $a_nr | ) |
Get Href of Area (only external link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 952 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 609 of file class.ilImageMapEditorGUI.php.
References $_GET, $ctrl, $xml, 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 190 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 912 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 685 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 942 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 932 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 130 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, $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 922 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 200 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 493 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $ctrl, $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 267 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 585 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 666 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 765 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, $ctrl, $lng, ilMapArea\_getMaxNr(), IL_EXT_LINK, IL_INT_LINK, IL_NO_LINK, 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 1134 of file class.ilImageMapEditorGUI.php.
References $_POST, $ctrl, $lng, and ilUtil\stripSlashes().
Here is the call graph for this function:| ilImageMapEditorGUI::setInternalLink | ( | ) |
| ilImageMapEditorGUI::setLink | ( | $a_handle = true | ) |
Set link.
Definition at line 869 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, $ctrl, $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 1049 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, $c, $ctrl, $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 222 of file class.ilImageMapEditorGUI.php.
References $_GET.
| ilImageMapEditorGUI::updateAreas | ( | ) |
Update map areas.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 231 of file class.ilImageMapEditorGUI.php.
References $_POST, $ctrl, $i, $lng, ilMapArea\_getMaxNr(), and ilUtil\stripSlashes().
Here is the call graph for this function:
|
protected |
Definition at line 19 of file class.ilImageMapEditorGUI.php.
Referenced by deleteAreas(), editMapArea(), editMapAreas(), executeCommand(), getImageMapOutput(), getToolbar(), initAreaEditingForm(), saveArea(), setHighlight(), setLink(), setShape(), and updateAreas().
|
protected |
Definition at line 29 of file class.ilImageMapEditorGUI.php.
Referenced by deleteAreas(), editMapArea(), editMapAreas(), getEditorTitle(), getMapAreaLinkString(), getToolbar(), initAreaEditingForm(), saveArea(), setHighlight(), setLink(), setShape(), and updateAreas().
|
protected |
Definition at line 34 of file class.ilImageMapEditorGUI.php.
Referenced by editMapAreas().
|
protected |
Definition at line 24 of file class.ilImageMapEditorGUI.php.
Referenced by editMapArea(), executeCommand(), and getToolbar().