ILIAS
Release_4_0_x_branch Revision 61816
|
User interface class for map editor. More...
Public Member Functions | |
__construct ($a_media_object) | |
Constructor. | |
executeCommand () | |
Execute current command. | |
editMapAreas () | |
Show map areas. | |
getImageMapTableHTML () | |
Get table HTML. | |
handleMapParameters () | |
handle parameter during map area editing (storing to session) | |
showImageMap () | |
show image map | |
updateAreas () | |
Update map areas. | |
addRectangle () | |
Add a new rectangle. | |
addCircle () | |
Add a new circle. | |
addPolygon () | |
Add a new polygon. | |
clearSessionVars () | |
Clear Session Vars. | |
addArea ($a_handle=true) | |
Handle adding new area process. | |
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. | |
makeMapWorkCopy ($a_edit_property="", $a_area_nr=0, $a_output_new_area=false, $a_area_type="", $a_coords="") | |
Make work file for editing. | |
getImageMapOutput ($a_map_edit_mode="") | |
Render the image map. | |
getAliasXML () | |
getMapAreaLinkString ($a_target, $a_type, $a_frame) | |
Get text name of internal link. | |
editImagemapForward () | |
Get image map coordinates. | |
_recoverParameters () | |
Recover parameters from session variables (static) | |
saveArea () | |
Save new or updated map area. | |
setInternalLink () | |
Set internal link. | |
setLink ($a_handle=true) | |
Set link. | |
getLinkTypeOfArea ($a_nr) | |
Get Link Type of Area. | |
getTypeOfArea ($a_nr) | |
Get Type of Area (only internal link) | |
getTargetOfArea ($a_nr) | |
Get Target of Area (only internal link) | |
getTargetFrameOfArea ($a_nr) | |
Get TargetFrame of Area (only internal link) | |
getHrefOfArea ($a_nr) | |
Get Href of Area (only external link) | |
deleteAreas () | |
Delete map areas. | |
editLink () | |
Edit existing link. | |
editShapeRectangle () | |
Edit an existing shape (make it a rectangle) | |
editShapeCircle () | |
Edit an existing shape (make it a circle) | |
editShapePolygon () | |
Edit an existing shape (make it a polygon) | |
setShape ($a_handle=true) | |
edit shape of existing map area |
User interface class for map editor.
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 569 of file class.ilImageMapEditorGUI.php.
References $_GET, and $_SESSION.
Referenced by editImagemapForward(), and ilInternalLinkGUI\showLinkHelp().
ilImageMapEditorGUI::addArea | ( | $a_handle = true | ) |
Handle adding new area process.
Definition at line 201 of file class.ilImageMapEditorGUI.php.
References $_SESSION, ilMapArea\countCoords(), editMapArea(), and handleMapParameters().
Referenced by addCircle(), addPolygon(), addRectangle(), and setInternalLink().
ilImageMapEditorGUI::addCircle | ( | ) |
Add a new circle.
Definition at line 165 of file class.ilImageMapEditorGUI.php.
References $_SESSION, addArea(), and clearSessionVars().
ilImageMapEditorGUI::addPolygon | ( | ) |
Add a new polygon.
Definition at line 175 of file class.ilImageMapEditorGUI.php.
References $_SESSION, addArea(), and clearSessionVars().
ilImageMapEditorGUI::addRectangle | ( | ) |
Add a new rectangle.
Definition at line 155 of file class.ilImageMapEditorGUI.php.
References $_SESSION, addArea(), and clearSessionVars().
ilImageMapEditorGUI::clearSessionVars | ( | ) |
Clear Session Vars.
Definition at line 185 of file class.ilImageMapEditorGUI.php.
References $_SESSION.
Referenced by addCircle(), addPolygon(), addRectangle(), editShapeCircle(), editShapePolygon(), and editShapeRectangle().
ilImageMapEditorGUI::deleteAreas | ( | ) |
Delete map areas.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 784 of file class.ilImageMapEditorGUI.php.
References $_POST, $ilCtrl, $lng, ilMapArea\_getMaxNr(), ilUtil\sendFailure(), and ilUtil\sendSuccess().
ilImageMapEditorGUI::editImagemapForward | ( | ) |
Get image map coordinates.
Definition at line 550 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, _recoverParameters(), and ilUtil\redirect().
ilImageMapEditorGUI::editLink | ( | ) |
Edit existing link.
Definition at line 817 of file class.ilImageMapEditorGUI.php.
References $_SESSION, and setLink().
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 277 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $ilCtrl, $lng, ilMapArea\countCoords(), getImageMapOutput(), getMapAreaLinkString(), and makeMapWorkCopy().
Referenced by addArea(), setLink(), and setShape().
ilImageMapEditorGUI::editMapAreas | ( | ) |
Show map areas.
Definition at line 64 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $ilCtrl, $lng, getImageMapOutput(), getImageMapTableHTML(), handleMapParameters(), and makeMapWorkCopy().
ilImageMapEditorGUI::editShapeCircle | ( | ) |
Edit an existing shape (make it a circle)
Definition at line 843 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapePolygon | ( | ) |
Edit an existing shape (make it a polygon)
Definition at line 853 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapeRectangle | ( | ) |
Edit an existing shape (make it a rectangle)
Definition at line 833 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and setShape().
ilImageMapEditorGUI::executeCommand | ( | ) |
Execute current command.
Definition at line 27 of file class.ilImageMapEditorGUI.php.
References $_POST, $cmd, $ilCtrl, and $ret.
ilImageMapEditorGUI::getAliasXML | ( | ) |
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 483 of file class.ilImageMapEditorGUI.php.
References IL_MODE_ALIAS.
Referenced by getImageMapOutput().
ilImageMapEditorGUI::getHrefOfArea | ( | $a_nr | ) |
Get Href of Area (only external link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 774 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getImageMapOutput | ( | $a_map_edit_mode = "" | ) |
Render the image map.
Definition at line 451 of file class.ilImageMapEditorGUI.php.
References $_GET, $ilCtrl, $params, getAliasXML(), ilUtil\getWebspaceDir(), IL_MODE_OUTPUT, xslt_create(), xslt_error(), xslt_free(), and xslt_process().
Referenced by editMapArea(), and editMapAreas().
ilImageMapEditorGUI::getImageMapTableHTML | ( | ) |
Get table HTML.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 90 of file class.ilImageMapEditorGUI.php.
Referenced by editMapAreas().
ilImageMapEditorGUI::getLinkTypeOfArea | ( | $a_nr | ) |
Get Link Type of Area.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 734 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
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 |
private
Definition at line 497 of file class.ilImageMapEditorGUI.php.
References $lng, $title, ilObject\_lookupObjId(), ilLMObject\_lookupTitle(), and ilObject\_lookupTitle().
Referenced by editMapArea().
ilImageMapEditorGUI::getTargetFrameOfArea | ( | $a_nr | ) |
Get TargetFrame of Area (only internal link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 764 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getTargetOfArea | ( | $a_nr | ) |
Get Target of Area (only internal link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 754 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getTypeOfArea | ( | $a_nr | ) |
Get Type of Area (only internal link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 744 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::handleMapParameters | ( | ) |
handle parameter during map area editing (storing to session)
Definition at line 100 of file class.ilImageMapEditorGUI.php.
References $_GET, and $_SESSION.
Referenced by addArea(), editMapAreas(), setLink(), and setShape().
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 427 of file class.ilImageMapEditorGUI.php.
Referenced by editMapArea(), and editMapAreas().
ilImageMapEditorGUI::saveArea | ( | ) |
Save new or updated map area.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 580 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, $ilCtrl, $lng, ilMapArea\_getMaxNr(), IL_EXT_LINK, IL_INT_LINK, ilUtil\sendSuccess(), ilMapArea\setLinkType(), ilMapArea\setShape(), and ilUtil\stripSlashes().
Referenced by setShape().
ilImageMapEditorGUI::setInternalLink | ( | ) |
ilImageMapEditorGUI::setLink | ( | $a_handle = true | ) |
Set link.
Definition at line 684 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().
ilImageMapEditorGUI::setShape | ( | $a_handle = true | ) |
edit shape of existing map area
Definition at line 863 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, $ilCtrl, $lng, ilMapArea\countCoords(), editMapArea(), handleMapParameters(), saveArea(), and ilUtil\sendFailure().
Referenced by editShapeCircle(), editShapePolygon(), and editShapeRectangle().
ilImageMapEditorGUI::showImageMap | ( | ) |
ilImageMapEditorGUI::updateAreas | ( | ) |
Update map areas.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 135 of file class.ilImageMapEditorGUI.php.
References $_POST, $ilCtrl, $lng, ilMapArea\_getMaxNr(), ilUtil\sendSuccess(), ilMapArea\setTitle(), and ilUtil\stripSlashes().