ILIAS
Release_5_0_x_branch Revision 61816
|
Class ilInternalLinkGUI. More...
Public Member Functions | |
ilInternalLinkGUI ($a_default_type, $a_default_obj) | |
initLinkTypes () | |
Initialize link types. | |
determineLinkType () | |
Determine current link type. | |
setMode ($a_mode="text") | |
Set mode. | |
setSetLinkTargetScript ($a_script) | |
setReturn ($a_return) | |
getSetLinkTargetScript () | |
filterLinkType ($a_link_type) | |
setFilterWhiteList ($a_white_list) | |
Set filter list as white list (per detault it is a black list) | |
& | executeCommand () |
resetSessionVars () | |
resetLinkList () | |
closeLinkHelp () | |
prepareJavascriptOutput ($str) | |
Prepare output for JS enabled editing. | |
showLinkHelp () | |
Show link help list. | |
getFileLinkHTML () | |
Get HTML for file link. | |
saveFileLink () | |
Save file link. | |
outputThumbnail (&$tpl, $a_id, $a_mode="") | |
output thumbnail | |
changeLinkType () | |
change link type | |
setMedPoolFolder () | |
select media pool folder | |
getTargetExplorer ($a_type="") | |
Cange target object. | |
changeTargetObject ($a_type="") | |
Cange target object. | |
selectRepositoryItem () | |
select repository item explorer | |
refreshRepositorySelector () | |
Refresh Repository Selector. | |
isEnabledJavaScript () | |
determine, wether js is used | |
getInitHTML ($a_url, $a_move_to_body=false) | |
Get initialisation HTML to use interna link editing. | |
renderLink ($tpl, $a_title, $a_obj_id, $a_type, $a_type_short, $a_bb_type, $a_anchors=array()) | |
Render internal link item. |
Static Public Member Functions | |
static | _doJSEditing () |
Data Fields | |
$default_type | |
$default_obj | |
$link_type | |
$link_target | |
$lng | |
$mode | |
$set_link_script | |
$ctrl | |
$tree | |
$ltypes = array() |
Class ilInternalLinkGUI.
Some gui methods to handle internal links
Definition at line 17 of file class.ilInternalLinkGUI.php.
|
static |
@return |
Definition at line 1063 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::changeLinkType | ( | ) |
change link type
Definition at line 847 of file class.ilInternalLinkGUI.php.
References $_POST, $_SESSION, determineLinkType(), and showLinkHelp().
ilInternalLinkGUI::changeTargetObject | ( | $a_type = "" | ) |
Cange target object.
Definition at line 921 of file class.ilInternalLinkGUI.php.
References $_GET, $_SESSION, $ilCtrl, $tpl, determineLinkType(), exit, getTargetExplorer(), and showLinkHelp().
Referenced by showLinkHelp().
ilInternalLinkGUI::closeLinkHelp | ( | ) |
Definition at line 174 of file class.ilInternalLinkGUI.php.
References ilUtil\redirect().
ilInternalLinkGUI::determineLinkType | ( | ) |
Determine current link type.
Definition at line 84 of file class.ilInternalLinkGUI.php.
References $_SESSION, and $default_type.
Referenced by changeLinkType(), changeTargetObject(), resetLinkList(), and showLinkHelp().
& ilInternalLinkGUI::executeCommand | ( | ) |
ilInternalLinkGUI::filterLinkType | ( | $a_link_type | ) |
Definition at line 129 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::getFileLinkHTML | ( | ) |
Get HTML for file link.
Definition at line 722 of file class.ilInternalLinkGUI.php.
References $ilCtrl, $lng, and $tpl.
Referenced by showLinkHelp().
ilInternalLinkGUI::getInitHTML | ( | $a_url, | |
$a_move_to_body = false |
|||
) |
Get initialisation HTML to use interna link editing.
Definition at line 1091 of file class.ilInternalLinkGUI.php.
References $lng, $tpl, ilModalGUI\getInstance(), ilExplorerBaseGUI\init(), and ilYuiUtil\initConnection().
Referenced by ilPCDataTableGUI\editData(), ilImageMapEditorGUI\editMapArea(), ilPageContentGUI\getBBMenu(), ilLinkInputGUI\getContentOutsideFormTag(), ilObjLinkResourceGUI\manage(), and ilPageObjectGUI\showPage().
ilInternalLinkGUI::getSetLinkTargetScript | ( | ) |
Definition at line 124 of file class.ilInternalLinkGUI.php.
References $set_link_script.
Referenced by outputThumbnail(), renderLink(), and selectRepositoryItem().
ilInternalLinkGUI::getTargetExplorer | ( | $a_type = "" | ) |
Cange target object.
Definition at line 866 of file class.ilInternalLinkGUI.php.
References $_GET, and $ilCtrl.
Referenced by changeTargetObject().
ilInternalLinkGUI::ilInternalLinkGUI | ( | $a_default_type, | |
$a_default_obj | |||
) |
Definition at line 30 of file class.ilInternalLinkGUI.php.
References $_SESSION, $ilCtrl, $lng, $tree, initLinkTypes(), and resetSessionVars().
ilInternalLinkGUI::initLinkTypes | ( | ) |
Initialize link types.
Definition at line 59 of file class.ilInternalLinkGUI.php.
References $lng.
Referenced by ilInternalLinkGUI().
ilInternalLinkGUI::isEnabledJavaScript | ( | ) |
determine, wether js is used
Definition at line 1073 of file class.ilInternalLinkGUI.php.
Referenced by outputThumbnail(), renderLink(), and showLinkHelp().
ilInternalLinkGUI::outputThumbnail | ( | & | $tpl, |
$a_id, | |||
$a_mode = "" |
|||
) |
output thumbnail
Definition at line 794 of file class.ilInternalLinkGUI.php.
References $tpl, getSetLinkTargetScript(), and isEnabledJavaScript().
Referenced by renderLink().
ilInternalLinkGUI::prepareJavascriptOutput | ( | $str | ) |
Prepare output for JS enabled editing.
Definition at line 189 of file class.ilInternalLinkGUI.php.
References $ilUser.
Referenced by renderLink().
ilInternalLinkGUI::refreshRepositorySelector | ( | ) |
Refresh Repository Selector.
Definition at line 1050 of file class.ilInternalLinkGUI.php.
References exit, and selectRepositoryItem().
ilInternalLinkGUI::renderLink | ( | $tpl, | |
$a_title, | |||
$a_obj_id, | |||
$a_type, | |||
$a_type_short, | |||
$a_bb_type, | |||
$a_anchors = array() |
|||
) |
Render internal link item.
Definition at line 1123 of file class.ilInternalLinkGUI.php.
References $tpl, ilImageMapEditorGUI\_recoverParameters(), ilUtil\appendUrlParameterString(), getSetLinkTargetScript(), if, isEnabledJavaScript(), outputThumbnail(), and prepareJavascriptOutput().
Referenced by showLinkHelp().
ilInternalLinkGUI::resetLinkList | ( | ) |
Definition at line 167 of file class.ilInternalLinkGUI.php.
References determineLinkType(), resetSessionVars(), and showLinkHelp().
ilInternalLinkGUI::resetSessionVars | ( | ) |
Definition at line 160 of file class.ilInternalLinkGUI.php.
References $_SESSION.
Referenced by ilInternalLinkGUI(), and resetLinkList().
ilInternalLinkGUI::saveFileLink | ( | ) |
Save file link.
Definition at line 763 of file class.ilInternalLinkGUI.php.
References ilUtil\getStyleSheetLocation(), and showLinkHelp().
ilInternalLinkGUI::selectRepositoryItem | ( | ) |
select repository item explorer
Definition at line 1029 of file class.ilInternalLinkGUI.php.
References $_SESSION, $ilCtrl, and getSetLinkTargetScript().
Referenced by refreshRepositorySelector(), and showLinkHelp().
ilInternalLinkGUI::setFilterWhiteList | ( | $a_white_list | ) |
Set filter list as white list (per detault it is a black list)
Definition at line 139 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::setMedPoolFolder | ( | ) |
select media pool folder
Definition at line 857 of file class.ilInternalLinkGUI.php.
References $_GET, $_SESSION, and showLinkHelp().
ilInternalLinkGUI::setMode | ( | $a_mode = "text" | ) |
Set mode.
Definition at line 109 of file class.ilInternalLinkGUI.php.
Referenced by ilPageEditorGUI\executeCommand().
ilInternalLinkGUI::setReturn | ( | $a_return | ) |
Definition at line 119 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::setSetLinkTargetScript | ( | $a_script | ) |
Definition at line 114 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::showLinkHelp | ( | ) |
Show link help list.
Definition at line 205 of file class.ilInternalLinkGUI.php.
References $_SESSION, $default_obj, $ilCtrl, $ilUser, $link_type, $ltypes, $tpl, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilPCParagraph\_readAnchors(), changeTargetObject(), determineLinkType(), exit, ilUtil\formSelect(), ilWikiPage\getAllPages(), getFileLinkHTML(), ilUtil\getImagePath(), ilLMPageObject\getPageList(), ilUtil\getStyleSheetLocation(), isEnabledJavaScript(), ilMediaPoolItem\lookupForeignId(), renderLink(), and selectRepositoryItem().
Referenced by changeLinkType(), changeTargetObject(), resetLinkList(), saveFileLink(), and setMedPoolFolder().
ilInternalLinkGUI::$ctrl |
Definition at line 26 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::$default_obj |
Definition at line 20 of file class.ilInternalLinkGUI.php.
Referenced by showLinkHelp().
ilInternalLinkGUI::$default_type |
Definition at line 19 of file class.ilInternalLinkGUI.php.
Referenced by determineLinkType().
ilInternalLinkGUI::$link_target |
Definition at line 22 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::$link_type |
Definition at line 21 of file class.ilInternalLinkGUI.php.
Referenced by showLinkHelp().
ilInternalLinkGUI::$lng |
Definition at line 23 of file class.ilInternalLinkGUI.php.
Referenced by getFileLinkHTML(), getInitHTML(), ilInternalLinkGUI(), and initLinkTypes().
ilInternalLinkGUI::$ltypes = array() |
Definition at line 28 of file class.ilInternalLinkGUI.php.
Referenced by showLinkHelp().
ilInternalLinkGUI::$mode |
Definition at line 24 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::$set_link_script |
Definition at line 25 of file class.ilInternalLinkGUI.php.
Referenced by getSetLinkTargetScript().
ilInternalLinkGUI::$tree |
Definition at line 27 of file class.ilInternalLinkGUI.php.
Referenced by ilInternalLinkGUI().