ILIAS
release_8 Revision v8.19
|
User interface class for map editor. More...
Public Member Functions | |
__construct (ilObjMediaObject $a_media_object) | |
executeCommand () | |
editMapAreas () | |
getToolbar () | |
getEditorTitle () | |
getImageMapTableHTML () | |
handleMapParameters () | |
showImageMap () | |
updateAreas () | |
addNewArea () | |
linkWholePicture () | |
addRectangle () | |
addCircle () | |
addPolygon () | |
clearSessionVars () | |
addArea (bool $a_handle=true) | |
editMapArea (bool $a_get_next_coordinate=false, bool $a_output_new_area=false, bool $a_save_form=false, string $a_edit_property="", int $a_area_nr=0) | |
Edit a single map area. More... | |
initAreaEditingForm (string $a_edit_property) | |
makeMapWorkCopy (string $a_edit_property="", int $a_area_nr=0, bool $a_output_new_area=false, string $a_area_type="", string $a_coords="") | |
Make work file for editing. More... | |
getImageMapOutput (string $a_map_edit_mode="") | |
Render the image map. More... | |
getAdditionalPageXML () | |
Get additional page xml (to be overwritten) More... | |
outputPostProcessing (string $a_output) | |
getAliasXML () | |
getMapAreaLinkString (string $a_target, string $a_type, string $a_frame) | |
Get text name of internal link. More... | |
editImagemapForward () | |
Get image map coordinates. More... | |
saveArea () | |
Save new or updated map area. More... | |
setInternalLink () | |
setLink (bool $a_handle=true) | |
getLinkTypeOfArea (int $a_nr) | |
getTypeOfArea (int $a_nr) | |
Get Type of Area (only internal link) More... | |
getTargetOfArea (int $a_nr) | |
Get Target of Area (only internal link) More... | |
getTargetFrameOfArea (int $a_nr) | |
Get TargetFrame of Area (only internal link) More... | |
getHrefOfArea (int $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 (bool $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... | |
User interface class for map editor.
Definition at line 27 of file class.ilImageMapEditorGUI.php.
ilImageMapEditorGUI::__construct | ( | ilObjMediaObject | $a_media_object | ) |
Definition at line 38 of file class.ilImageMapEditorGUI.php.
References $DIC, ILIAS\Repository\ctrl(), ILIAS\Repository\lng(), and ILIAS\Repository\toolbar().
|
static |
Recover parameters from session variables (static)
Definition at line 683 of file class.ilImageMapEditorGUI.php.
References $DIC.
Referenced by editImagemapForward(), and ilInternalLinkGUI\renderLink().
ilImageMapEditorGUI::addArea | ( | bool | $a_handle = true | ) |
Definition at line 259 of file class.ilImageMapEditorGUI.php.
References $c, ilMapArea\countCoords(), editMapArea(), and handleMapParameters().
Referenced by addCircle(), addPolygon(), addRectangle(), and setInternalLink().
ilImageMapEditorGUI::addCircle | ( | ) |
Definition at line 240 of file class.ilImageMapEditorGUI.php.
References addArea(), and clearSessionVars().
Referenced by addNewArea().
ilImageMapEditorGUI::addNewArea | ( | ) |
Definition at line 214 of file class.ilImageMapEditorGUI.php.
References addCircle(), addPolygon(), addRectangle(), and linkWholePicture().
ilImageMapEditorGUI::addPolygon | ( | ) |
Definition at line 247 of file class.ilImageMapEditorGUI.php.
References addArea(), and clearSessionVars().
Referenced by addNewArea().
ilImageMapEditorGUI::addRectangle | ( | ) |
Definition at line 233 of file class.ilImageMapEditorGUI.php.
References addArea(), and clearSessionVars().
Referenced by addNewArea().
ilImageMapEditorGUI::clearSessionVars | ( | ) |
Definition at line 254 of file class.ilImageMapEditorGUI.php.
Referenced by addCircle(), addPolygon(), addRectangle(), editShapeCircle(), editShapePolygon(), editShapeRectangle(), editShapeWholePicture(), and linkWholePicture().
ilImageMapEditorGUI::deleteAreas | ( | ) |
Delete map areas.
Definition at line 905 of file class.ilImageMapEditorGUI.php.
References $ctrl, $i, $lng, ilMapArea\_getMaxNr(), and ilLanguage\txt().
ilImageMapEditorGUI::editImagemapForward | ( | ) |
Get image map coordinates.
Definition at line 664 of file class.ilImageMapEditorGUI.php.
References _recoverParameters(), and ilUtil\redirect().
ilImageMapEditorGUI::editLink | ( | ) |
Edit existing link.
Definition at line 937 of file class.ilImageMapEditorGUI.php.
References setLink().
ilImageMapEditorGUI::editMapArea | ( | bool | $a_get_next_coordinate = false , |
bool | $a_output_new_area = false , |
||
bool | $a_save_form = false , |
||
string | $a_edit_property = "" , |
||
int | $a_area_nr = 0 |
||
) |
Edit a single map area.
bool | $a_get_next_coordinate | enable next coordinate input |
bool | $a_output_new_area | output the new area |
bool | $a_save_form | output save form |
string | $a_edit_property | "" | "link" | "shape" |
int | $a_area_nr |
Definition at line 327 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, ilMapArea\countCoords(), getImageMapOutput(), ilInternalLinkGUI\getInitHTML(), initAreaEditingForm(), makeMapWorkCopy(), and ilLanguage\txt().
Referenced by addArea(), linkWholePicture(), setLink(), and setShape().
ilImageMapEditorGUI::editMapAreas | ( | ) |
Definition at line 97 of file class.ilImageMapEditorGUI.php.
References $ctrl, getImageMapOutput(), getImageMapTableHTML(), getToolbar(), handleMapParameters(), makeMapWorkCopy(), and ilCtrl\setTargetScript().
ilImageMapEditorGUI::editShapeCircle | ( | ) |
Edit an existing shape (make it a circle)
Definition at line 966 of file class.ilImageMapEditorGUI.php.
References clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapePolygon | ( | ) |
Edit an existing shape (make it a polygon)
Definition at line 976 of file class.ilImageMapEditorGUI.php.
References clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapeRectangle | ( | ) |
Edit an existing shape (make it a rectangle)
Definition at line 956 of file class.ilImageMapEditorGUI.php.
References clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapeWholePicture | ( | ) |
Edit an existing shape (make it a whole picture link)
Definition at line 946 of file class.ilImageMapEditorGUI.php.
References clearSessionVars(), and setShape().
ilImageMapEditorGUI::executeCommand | ( | ) |
ilCtrlException |
Definition at line 65 of file class.ilImageMapEditorGUI.php.
References $ctrl, ilCtrl\getNextClass(), and ilObjMediaObjectGUI\includePresentationJS().
ilImageMapEditorGUI::getAdditionalPageXML | ( | ) |
Get additional page xml (to be overwritten)
Definition at line 578 of file class.ilImageMapEditorGUI.php.
Referenced by getImageMapOutput().
ilImageMapEditorGUI::getAliasXML | ( | ) |
Definition at line 589 of file class.ilImageMapEditorGUI.php.
References IL_MODE_ALIAS.
Referenced by getImageMapOutput().
ilImageMapEditorGUI::getEditorTitle | ( | ) |
Definition at line 151 of file class.ilImageMapEditorGUI.php.
References $lng, and ilLanguage\txt().
ilImageMapEditorGUI::getHrefOfArea | ( | int | $a_nr | ) |
Get Href of Area (only external link)
Definition at line 894 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getImageMapOutput | ( | string | $a_map_edit_mode = "" | ) |
Render the image map.
Definition at line 532 of file class.ilImageMapEditorGUI.php.
References $ctrl, $params, $xml, getAdditionalPageXML(), getAliasXML(), ilUtil\getImagePath(), ilFileUtils\getWebspaceDir(), IL_MODE_OUTPUT, outputPostProcessing(), xslt_create(), xslt_error(), and xslt_free().
Referenced by editMapArea(), and editMapAreas().
ilImageMapEditorGUI::getImageMapTableHTML | ( | ) |
Definition at line 158 of file class.ilImageMapEditorGUI.php.
Referenced by editMapAreas().
ilImageMapEditorGUI::getLinkTypeOfArea | ( | int | $a_nr | ) |
Definition at line 850 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getMapAreaLinkString | ( | string | $a_target, |
string | $a_type, | ||
string | $a_frame | ||
) |
Get text name of internal link.
string | $a_target | target object link id |
string | $a_type | type |
string | $a_frame | target frame |
Definition at line 600 of file class.ilImageMapEditorGUI.php.
References $lng, ilObject\_lookupObjId(), ilLMObject\_lookupTitle(), ilObject\_lookupTitle(), and ilLanguage\txt().
Referenced by initAreaEditingForm().
ilImageMapEditorGUI::getTargetFrameOfArea | ( | int | $a_nr | ) |
Get TargetFrame of Area (only internal link)
Definition at line 883 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getTargetOfArea | ( | int | $a_nr | ) |
Get Target of Area (only internal link)
Definition at line 872 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getToolbar | ( | ) |
Definition at line 129 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, and ilLanguage\txt().
Referenced by editMapAreas().
ilImageMapEditorGUI::getTypeOfArea | ( | int | $a_nr | ) |
Get Type of Area (only internal link)
Definition at line 861 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::handleMapParameters | ( | ) |
Definition at line 164 of file class.ilImageMapEditorGUI.php.
Referenced by addArea(), editMapAreas(), setLink(), and setShape().
ilImageMapEditorGUI::initAreaEditingForm | ( | string | $a_edit_property | ) |
Definition at line 421 of file class.ilImageMapEditorGUI.php.
References $lng, getMapAreaLinkString(), ilRadioGroupInputGUI\setValue(), and ilLanguage\txt().
Referenced by editMapArea().
ilImageMapEditorGUI::linkWholePicture | ( | ) |
Definition at line 225 of file class.ilImageMapEditorGUI.php.
References clearSessionVars(), and editMapArea().
Referenced by addNewArea().
ilImageMapEditorGUI::makeMapWorkCopy | ( | string | $a_edit_property = "" , |
int | $a_area_nr = 0 , |
||
bool | $a_output_new_area = false , |
||
string | $a_area_type = "" , |
||
string | $a_coords = "" |
||
) |
Make work file for editing.
Definition at line 508 of file class.ilImageMapEditorGUI.php.
Referenced by editMapArea(), and editMapAreas().
ilImageMapEditorGUI::outputPostProcessing | ( | string | $a_output | ) |
Definition at line 583 of file class.ilImageMapEditorGUI.php.
Referenced by getImageMapOutput().
ilImageMapEditorGUI::saveArea | ( | ) |
Save new or updated map area.
Definition at line 698 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, ilMapArea\_getMaxNr(), IL_EXT_LINK, IL_INT_LINK, IL_NO_LINK, ilMapArea\setLinkType(), ilMapArea\setShape(), and ilLanguage\txt().
Referenced by setShape().
ilImageMapEditorGUI::setHighlight | ( | ) |
Set highlight settings.
Definition at line 1076 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, and ilLanguage\txt().
ilImageMapEditorGUI::setInternalLink | ( | ) |
Definition at line 785 of file class.ilImageMapEditorGUI.php.
References addArea(), and setLink().
ilImageMapEditorGUI::setLink | ( | bool | $a_handle = true | ) |
Definition at line 804 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, editMapArea(), getHrefOfArea(), getLinkTypeOfArea(), getTargetFrameOfArea(), getTargetOfArea(), getTypeOfArea(), handleMapParameters(), IL_INT_LINK, ILIAS\Repository\int(), and ilLanguage\txt().
Referenced by editLink(), and setInternalLink().
ilImageMapEditorGUI::setShape | ( | bool | $a_handle = true | ) |
edit shape of existing map area
Definition at line 986 of file class.ilImageMapEditorGUI.php.
References $c, $ctrl, $lng, ilMapArea\countCoords(), editMapArea(), handleMapParameters(), ILIAS\Repository\int(), saveArea(), and ilLanguage\txt().
Referenced by editShapeCircle(), editShapePolygon(), editShapeRectangle(), and editShapeWholePicture().
ilImageMapEditorGUI::showImageMap | ( | ) |
Definition at line 183 of file class.ilImageMapEditorGUI.php.
References ilMediaItem\outputMapWorkCopy().
ilImageMapEditorGUI::updateAreas | ( | ) |
Definition at line 189 of file class.ilImageMapEditorGUI.php.
References $ctrl, $i, $lng, ilMapArea\_getMaxNr(), ilMapArea\setTitle(), and ilLanguage\txt().
|
protected |
Definition at line 34 of file class.ilImageMapEditorGUI.php.
Referenced by ilPCIIMTriggerEditorGUI\addNewArea(), ilPCIIMTriggerEditorGUI\confirmDeleteTrigger(), ilPCImageMapEditorGUI\deleteAreas(), deleteAreas(), ilPCIIMTriggerEditorGUI\deleteTrigger(), editMapArea(), editMapAreas(), executeCommand(), getImageMapOutput(), ilPCIIMTriggerEditorGUI\getImageMapTableHTML(), ilPCIIMTriggerEditorGUI\getToolbar(), getToolbar(), ilPCImageMapEditorGUI\saveArea(), ilPCIIMTriggerEditorGUI\saveArea(), saveArea(), setHighlight(), setLink(), setShape(), updateAreas(), ilPCImageMapEditorGUI\updateAreas(), and ilPCIIMTriggerEditorGUI\updateTrigger().
|
protected |
Definition at line 35 of file class.ilImageMapEditorGUI.php.
Referenced by ilPCIIMTriggerEditorGUI\addNewArea(), ilPCIIMTriggerEditorGUI\confirmDeleteTrigger(), ilPCImageMapEditorGUI\deleteAreas(), deleteAreas(), ilPCIIMTriggerEditorGUI\deleteTrigger(), editMapArea(), ilPCIIMTriggerEditorGUI\getEditorTitle(), getEditorTitle(), ilPCIIMTriggerEditorGUI\getImageMapTableHTML(), getMapAreaLinkString(), ilPCIIMTriggerEditorGUI\getToolbar(), getToolbar(), ilPCIIMTriggerEditorGUI\initAreaEditingForm(), initAreaEditingForm(), ilPCImageMapEditorGUI\saveArea(), ilPCIIMTriggerEditorGUI\saveArea(), saveArea(), setHighlight(), setLink(), setShape(), updateAreas(), ilPCImageMapEditorGUI\updateAreas(), and ilPCIIMTriggerEditorGUI\updateTrigger().
|
protected |
Definition at line 33 of file class.ilImageMapEditorGUI.php.
Referenced by ilPCIIMTriggerEditorGUI\confirmDeleteTrigger().
|
protected |
Definition at line 31 of file class.ilImageMapEditorGUI.php.
|
protected |
Definition at line 29 of file class.ilImageMapEditorGUI.php.
Referenced by ilPCImageMapEditorGUI\makeMapWorkCopy().
|
protected |
Definition at line 30 of file class.ilImageMapEditorGUI.php.
Referenced by ilPCImageMapEditorGUI\__construct().
|
protected |
Definition at line 36 of file class.ilImageMapEditorGUI.php.
Referenced by ilPCIIMTriggerEditorGUI\getImageMapTableHTML().
|
protected |
Definition at line 32 of file class.ilImageMapEditorGUI.php.