ILIAS
release_4-3 Revision
|
User interface class for map editor. More...
Public Member Functions | |
__construct ($a_media_object) | |
Constructor. | |
executeCommand () | |
Execute current command. | |
editMapAreas () | |
Show map areas. | |
getToolbar () | |
Get toolbar. | |
getEditorTitle () | |
Get editor title. | |
getImageMapTableHTML () | |
Get table HTML. | |
handleMapParameters () | |
handle parameter during map area editing (storing to session) | |
showImageMap () | |
show image map | |
updateAreas () | |
Update map areas. | |
addNewArea () | |
Add area. | |
linkWholePicture () | |
Link the whole picture. | |
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. | |
initAreaEditingForm ($a_edit_property) | |
Init area editing form. | |
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. | |
getAdditionalPageXML () | |
Get additional page xml (to be overwritten) | |
outputPostProcessing ($a_output) | |
Output post processing. | |
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. | |
editShapeWholePicture () | |
Edit an existing shape (make it a whole picture 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 | |
setHighlight () | |
Set highlight settings. |
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 744 of file class.ilImageMapEditorGUI.php.
References $_GET, and $_SESSION.
Referenced by editImagemapForward(), and ilInternalLinkGUI\renderLink().
ilImageMapEditorGUI::addArea | ( | $a_handle = true | ) |
Handle adding new area process.
Definition at line 294 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 258 of file class.ilImageMapEditorGUI.php.
References $_SESSION, addArea(), and clearSessionVars().
Referenced by addNewArea().
ilImageMapEditorGUI::addNewArea | ( | ) |
Add area.
Reimplemented in ilPCIIMTriggerEditorGUI.
Definition at line 222 of file class.ilImageMapEditorGUI.php.
References $_POST, addCircle(), addPolygon(), addRectangle(), and linkWholePicture().
ilImageMapEditorGUI::addPolygon | ( | ) |
Add a new polygon.
Definition at line 268 of file class.ilImageMapEditorGUI.php.
References $_SESSION, addArea(), and clearSessionVars().
Referenced by addNewArea().
ilImageMapEditorGUI::addRectangle | ( | ) |
Add a new rectangle.
Definition at line 248 of file class.ilImageMapEditorGUI.php.
References $_SESSION, addArea(), and clearSessionVars().
Referenced by addNewArea().
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().
ilImageMapEditorGUI::deleteAreas | ( | ) |
Delete map areas.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 966 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 725 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, _recoverParameters(), and ilUtil\redirect().
ilImageMapEditorGUI::editLink | ( | ) |
Edit existing link.
Definition at line 999 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 375 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $ilCtrl, $lng, $tpl, ilMapArea\countCoords(), getImageMapOutput(), ilInternalLinkGUI\getInitHTML(), initAreaEditingForm(), makeMapWorkCopy(), and ilUtil\sendInfo().
Referenced by addArea(), linkWholePicture(), setLink(), and setShape().
ilImageMapEditorGUI::editMapAreas | ( | ) |
Show map areas.
Definition at line 67 of file class.ilImageMapEditorGUI.php.
References $_SESSION, $ilCtrl, $lng, getImageMapOutput(), getImageMapTableHTML(), getToolbar(), handleMapParameters(), and makeMapWorkCopy().
ilImageMapEditorGUI::editShapeCircle | ( | ) |
Edit an existing shape (make it a circle)
Definition at line 1035 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapePolygon | ( | ) |
Edit an existing shape (make it a polygon)
Definition at line 1045 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapeRectangle | ( | ) |
Edit an existing shape (make it a rectangle)
Definition at line 1025 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapeWholePicture | ( | ) |
Edit an existing shape (make it a whole picture link)
Definition at line 1015 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, $ret, $tpl, and ilObjMediaObjectGUI\includePresentationJS().
ilImageMapEditorGUI::getAdditionalPageXML | ( | ) |
Get additional page xml (to be overwritten)
Reimplemented in ilPCIIMTriggerEditorGUI.
Definition at line 642 of file class.ilImageMapEditorGUI.php.
Referenced by getImageMapOutput().
ilImageMapEditorGUI::getAliasXML | ( | ) |
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 658 of file class.ilImageMapEditorGUI.php.
References IL_MODE_ALIAS.
Referenced by getImageMapOutput().
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 956 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getImageMapOutput | ( | $a_map_edit_mode = "" | ) |
Render the image map.
Definition at line 599 of file class.ilImageMapEditorGUI.php.
References $_GET, $ilCtrl, getAdditionalPageXML(), getAliasXML(), ilUtil\getWebspaceDir(), IL_MODE_OUTPUT, outputPostProcessing(), xslt_create(), xslt_error(), xslt_free(), and xslt_process().
Referenced by editMapArea(), and editMapAreas().
ilImageMapEditorGUI::getImageMapTableHTML | ( | ) |
Get table HTML.
Reimplemented in ilPCIIMTriggerEditorGUI, and ilPCImageMapEditorGUI.
Definition at line 155 of file class.ilImageMapEditorGUI.php.
Referenced by editMapAreas().
ilImageMapEditorGUI::getLinkTypeOfArea | ( | $a_nr | ) |
Get Link Type of Area.
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 916 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 672 of file class.ilImageMapEditorGUI.php.
References $lng, $title, ilObject\_lookupObjId(), ilLMObject\_lookupTitle(), and ilObject\_lookupTitle().
Referenced by initAreaEditingForm().
ilImageMapEditorGUI::getTargetFrameOfArea | ( | $a_nr | ) |
Get TargetFrame of Area (only internal link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 946 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 936 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getToolbar | ( | ) |
Get toolbar.
Reimplemented in ilPCIIMTriggerEditorGUI.
Definition at line 97 of file class.ilImageMapEditorGUI.php.
References $ilCtrl, $lng, $si, $tpl, and ilSelectInputGUI\setOptions().
Referenced by editMapAreas().
ilImageMapEditorGUI::getTypeOfArea | ( | $a_nr | ) |
Get Type of Area (only internal link)
Reimplemented in ilPCImageMapEditorGUI.
Definition at line 926 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
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().
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, getMapAreaLinkString(), ilTextInputGUI\setMaxLength(), and ilRadioGroupInputGUI\setValue().
Referenced by editMapArea().
ilImageMapEditorGUI::linkWholePicture | ( | ) |
Link the whole picture.
Definition at line 237 of file class.ilImageMapEditorGUI.php.
References $_SESSION, clearSessionVars(), and editMapArea().
Referenced by addNewArea().
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().
ilImageMapEditorGUI::outputPostProcessing | ( | $a_output | ) |
Output post processing.
@return |
Reimplemented in ilPCIIMTriggerEditorGUI.
Definition at line 653 of file class.ilImageMapEditorGUI.php.
Referenced by getImageMapOutput().
ilImageMapEditorGUI::saveArea | ( | ) |
Save new or updated map area.
Reimplemented in ilPCIIMTriggerEditorGUI, and ilPCImageMapEditorGUI.
Definition at line 755 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, $ilCtrl, $lng, ilMapArea\_getMaxNr(), IL_EXT_LINK, IL_INT_LINK, IL_NO_LINK, ilUtil\sendSuccess(), ilMapArea\setLinkType(), ilMapArea\setShape(), and ilUtil\stripSlashes().
Referenced by setShape().
ilImageMapEditorGUI::setHighlight | ( | ) |
Set highlight settings.
@return |
Definition at line 1159 of file class.ilImageMapEditorGUI.php.
References $_POST, $ilCtrl, $lng, ilUtil\sendSuccess(), and ilUtil\stripSlashes().
ilImageMapEditorGUI::setInternalLink | ( | ) |
ilImageMapEditorGUI::setLink | ( | $a_handle = true | ) |
Set link.
Definition at line 866 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 1055 of file class.ilImageMapEditorGUI.php.
References $_POST, $_SESSION, $ilCtrl, $lng, ilMapArea\countCoords(), editMapArea(), handleMapParameters(), saveArea(), and ilUtil\sendFailure().
Referenced by editShapeCircle(), editShapePolygon(), editShapeRectangle(), and editShapeWholePicture().
ilImageMapEditorGUI::showImageMap | ( | ) |
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(), ilMapArea\setTitle(), and ilUtil\stripSlashes().