ILIAS
trunk Revision v11.0_alpha-1713-gd8962da2f67
|
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... | |
Protected Attributes | |
ILIAS COPage Xsl XslManager | $xsl |
ilObjMediaObject | $media_object |
ImageMapGUIRequest | $request |
ImageMapManager | $map |
ilTemplate | $tpl |
ilGlobalTemplateInterface | $main_tpl |
ilCtrl | $ctrl |
ilLanguage | $lng |
ilToolbarGUI | $toolbar |
User interface class for map editor.
Definition at line 27 of file class.ilImageMapEditorGUI.php.
ilImageMapEditorGUI::__construct | ( | ilObjMediaObject | $a_media_object | ) |
Definition at line 39 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 688 of file class.ilImageMapEditorGUI.php.
References $DIC.
Referenced by editImagemapForward(), and ilInternalLinkGUI\renderLink().
ilImageMapEditorGUI::addArea | ( | bool | $a_handle = true | ) |
Definition at line 269 of file class.ilImageMapEditorGUI.php.
References $c, ilMapArea\countCoords(), editMapArea(), and handleMapParameters().
Referenced by addCircle(), addPolygon(), addRectangle(), and setInternalLink().
ilImageMapEditorGUI::addCircle | ( | ) |
Definition at line 250 of file class.ilImageMapEditorGUI.php.
References addArea(), and clearSessionVars().
Referenced by addNewArea().
ilImageMapEditorGUI::addNewArea | ( | ) |
Definition at line 224 of file class.ilImageMapEditorGUI.php.
References addCircle(), addPolygon(), addRectangle(), and linkWholePicture().
ilImageMapEditorGUI::addPolygon | ( | ) |
Definition at line 257 of file class.ilImageMapEditorGUI.php.
References addArea(), and clearSessionVars().
Referenced by addNewArea().
ilImageMapEditorGUI::addRectangle | ( | ) |
Definition at line 243 of file class.ilImageMapEditorGUI.php.
References addArea(), and clearSessionVars().
Referenced by addNewArea().
ilImageMapEditorGUI::clearSessionVars | ( | ) |
Definition at line 264 of file class.ilImageMapEditorGUI.php.
Referenced by addCircle(), addPolygon(), addRectangle(), editShapeCircle(), editShapePolygon(), editShapeRectangle(), editShapeWholePicture(), and linkWholePicture().
ilImageMapEditorGUI::deleteAreas | ( | ) |
Delete map areas.
Definition at line 910 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, ilMapArea\_getMaxNr(), and ilLanguage\txt().
ilImageMapEditorGUI::editImagemapForward | ( | ) |
Get image map coordinates.
Definition at line 669 of file class.ilImageMapEditorGUI.php.
References _recoverParameters(), and ilUtil\redirect().
ilImageMapEditorGUI::editLink | ( | ) |
Edit existing link.
Definition at line 942 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 336 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, ilMapArea\countCoords(), getImageMapOutput(), ilInternalLinkGUI\getInitHTML(), initAreaEditingForm(), and ilLanguage\txt().
Referenced by addArea(), linkWholePicture(), setLink(), and setShape().
ilImageMapEditorGUI::editMapAreas | ( | ) |
Definition at line 99 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 971 of file class.ilImageMapEditorGUI.php.
References clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapePolygon | ( | ) |
Edit an existing shape (make it a polygon)
Definition at line 981 of file class.ilImageMapEditorGUI.php.
References clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapeRectangle | ( | ) |
Edit an existing shape (make it a rectangle)
Definition at line 961 of file class.ilImageMapEditorGUI.php.
References clearSessionVars(), and setShape().
ilImageMapEditorGUI::editShapeWholePicture | ( | ) |
Edit an existing shape (make it a whole picture link)
Definition at line 951 of file class.ilImageMapEditorGUI.php.
References clearSessionVars(), and setShape().
ilImageMapEditorGUI::executeCommand | ( | ) |
ilCtrlException |
Definition at line 67 of file class.ilImageMapEditorGUI.php.
References $ctrl, ilCtrl\getNextClass(), and ilObjMediaObjectGUI\includePresentationJS().
ilImageMapEditorGUI::getAdditionalPageXML | ( | ) |
Get additional page xml (to be overwritten)
Definition at line 583 of file class.ilImageMapEditorGUI.php.
Referenced by getImageMapOutput().
ilImageMapEditorGUI::getAliasXML | ( | ) |
Definition at line 594 of file class.ilImageMapEditorGUI.php.
References IL_MODE_ALIAS.
Referenced by getImageMapOutput().
ilImageMapEditorGUI::getEditorTitle | ( | ) |
Definition at line 153 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 899 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getImageMapOutput | ( | string | $a_map_edit_mode = "" | ) |
Render the image map.
Definition at line 542 of file class.ilImageMapEditorGUI.php.
References $ctrl, $params, getAdditionalPageXML(), getAliasXML(), ilUtil\getImagePath(), ilFileUtils\getWebspaceDir(), IL_MODE_OUTPUT, and outputPostProcessing().
Referenced by editMapArea(), and editMapAreas().
ilImageMapEditorGUI::getImageMapTableHTML | ( | ) |
Definition at line 160 of file class.ilImageMapEditorGUI.php.
Referenced by editMapAreas().
ilImageMapEditorGUI::getLinkTypeOfArea | ( | int | $a_nr | ) |
Definition at line 855 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 605 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 888 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getTargetOfArea | ( | int | $a_nr | ) |
Get Target of Area (only internal link)
Definition at line 877 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::getToolbar | ( | ) |
Definition at line 131 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, ilSelectInputGUI\setOptions(), and ilLanguage\txt().
Referenced by editMapAreas().
ilImageMapEditorGUI::getTypeOfArea | ( | int | $a_nr | ) |
Get Type of Area (only internal link)
Definition at line 866 of file class.ilImageMapEditorGUI.php.
Referenced by setLink().
ilImageMapEditorGUI::handleMapParameters | ( | ) |
Definition at line 166 of file class.ilImageMapEditorGUI.php.
Referenced by addArea(), editMapAreas(), setLink(), and setShape().
ilImageMapEditorGUI::initAreaEditingForm | ( | string | $a_edit_property | ) |
Definition at line 429 of file class.ilImageMapEditorGUI.php.
References $lng, getMapAreaLinkString(), ilRadioGroupInputGUI\setValue(), and ilLanguage\txt().
Referenced by editMapArea().
ilImageMapEditorGUI::linkWholePicture | ( | ) |
Definition at line 235 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 516 of file class.ilImageMapEditorGUI.php.
References ilMediaItem\makeMapWorkCopy().
Referenced by editMapAreas(), and showImageMap().
ilImageMapEditorGUI::outputPostProcessing | ( | string | $a_output | ) |
Definition at line 588 of file class.ilImageMapEditorGUI.php.
Referenced by getImageMapOutput().
ilImageMapEditorGUI::saveArea | ( | ) |
Save new or updated map area.
Definition at line 703 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 1077 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, and ilLanguage\txt().
ilImageMapEditorGUI::setInternalLink | ( | ) |
Definition at line 790 of file class.ilImageMapEditorGUI.php.
References addArea(), and setLink().
ilImageMapEditorGUI::setLink | ( | bool | $a_handle = true | ) |
Definition at line 809 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, editMapArea(), getHrefOfArea(), getLinkTypeOfArea(), getTargetFrameOfArea(), getTargetOfArea(), getTypeOfArea(), handleMapParameters(), IL_INT_LINK, ILIAS\Repository\int(), null, and ilLanguage\txt().
Referenced by editLink(), and setInternalLink().
ilImageMapEditorGUI::setShape | ( | bool | $a_handle = true | ) |
edit shape of existing map area
Definition at line 991 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 185 of file class.ilImageMapEditorGUI.php.
References makeMapWorkCopy().
ilImageMapEditorGUI::updateAreas | ( | ) |
Definition at line 199 of file class.ilImageMapEditorGUI.php.
References $ctrl, $lng, ilMapArea\_getMaxNr(), ilMapArea\setTitle(), and ilLanguage\txt().
|
protected |
Definition at line 35 of file class.ilImageMapEditorGUI.php.
Referenced by ilPCImageMapEditorGUI\deleteAreas(), deleteAreas(), editMapArea(), editMapAreas(), executeCommand(), getImageMapOutput(), getToolbar(), ilPCImageMapEditorGUI\saveArea(), saveArea(), setHighlight(), setLink(), setShape(), updateAreas(), and ilPCImageMapEditorGUI\updateAreas().
|
protected |
Definition at line 36 of file class.ilImageMapEditorGUI.php.
Referenced by ilPCImageMapEditorGUI\deleteAreas(), deleteAreas(), editMapArea(), getEditorTitle(), getMapAreaLinkString(), getToolbar(), initAreaEditingForm(), ilPCImageMapEditorGUI\saveArea(), saveArea(), setHighlight(), setLink(), setShape(), updateAreas(), and ilPCImageMapEditorGUI\updateAreas().
|
protected |
Definition at line 34 of file class.ilImageMapEditorGUI.php.
|
protected |
Definition at line 32 of file class.ilImageMapEditorGUI.php.
|
protected |
Definition at line 30 of file class.ilImageMapEditorGUI.php.
Referenced by ilPCImageMapEditorGUI\makeMapWorkCopy().
|
protected |
Definition at line 31 of file class.ilImageMapEditorGUI.php.
Referenced by ilPCImageMapEditorGUI\__construct().
|
protected |
Definition at line 37 of file class.ilImageMapEditorGUI.php.
|
protected |
Definition at line 33 of file class.ilImageMapEditorGUI.php.
|
protected |
Definition at line 29 of file class.ilImageMapEditorGUI.php.