ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Class ilInternalLinkGUI. More...
Public Member Functions | |
__construct ($a_default_link_type, $a_default_parent_id, $a_is_ref=true) | |
init () | |
Init (first in execute command) More... | |
setMode ($a_mode="text") | |
Set mode. More... | |
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) More... | |
executeCommand () | |
resetLinkList () | |
closeLinkHelp () | |
prepareJavascriptOutput ($str) | |
Prepare output for JS enabled editing. More... | |
showLinkHelp () | |
Show link help list. More... | |
getFileLinkHTML () | |
Get HTML for file link. More... | |
saveFileLink () | |
Save file link. More... | |
outputThumbnail (&$tpl, $a_id, $a_mode="") | |
output thumbnail More... | |
changeLinkType () | |
change link type More... | |
setMedPoolFolder () | |
select media pool folder More... | |
getTargetExplorer () | |
Cange target object. More... | |
changeTargetObject ($a_type="") | |
Cange target object. More... | |
selectRepositoryItem () | |
select repository item explorer More... | |
refreshRepositorySelector () | |
Refresh Repository Selector. More... | |
renderLink ( $tpl, $a_title, $a_obj_id, $a_type, $a_type_short, $a_bb_type, $a_anchors=array(), $a_link_content="") | |
Render internal link item. More... | |
addUser () | |
Add user. More... | |
initUserSearchForm () | |
Init user search form. More... | |
getUserSearchResult () | |
Search user. More... | |
Static Public Member Functions | |
static | getInitHTML ($a_url) |
Get initialisation HTML to use interna link editing. More... | |
Data Fields | |
$set_link_script | |
$ctrl | |
Protected Attributes | |
$default_link_type | |
$default_parent_ref_id | |
$default_parent_obj_id | |
$parent_ref_id | |
$parent_obj_id | |
$link_type | |
$link_target | |
$base_link_type | |
$ltypes = array() | |
$parent_type = array() | |
$filter_white_list = false | |
$filter_link_types = array() | |
$tree | |
$lng | |
$user | |
Class ilInternalLinkGUI.
Some gui methods to handle internal links
Definition at line 17 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::__construct | ( | $a_default_link_type, | |
$a_default_parent_id, | |||
$a_is_ref = true |
|||
) |
Definition at line 91 of file class.ilInternalLinkGUI.php.
References $_GET, $DIC, ilObject\_lookupObjId(), ilObject\_lookupType(), and user().
ilInternalLinkGUI::addUser | ( | ) |
Add user.
Definition at line 1130 of file class.ilInternalLinkGUI.php.
References $form, getUserSearchResult(), and initUserSearchForm().
Referenced by showLinkHelp().
ilInternalLinkGUI::changeLinkType | ( | ) |
change link type
Definition at line 854 of file class.ilInternalLinkGUI.php.
References $_GET, $ctrl, and ilObject\_lookupType().
ilInternalLinkGUI::changeTargetObject | ( | $a_type = "" | ) |
Cange target object.
Definition at line 909 of file class.ilInternalLinkGUI.php.
References $_GET, $ctrl, $ilCtrl, Sabre\VObject\$output, $tpl, exit, and getTargetExplorer().
Referenced by showLinkHelp().
ilInternalLinkGUI::closeLinkHelp | ( | ) |
Definition at line 286 of file class.ilInternalLinkGUI.php.
References ilUtil\redirect().
ilInternalLinkGUI::executeCommand | ( | ) |
Definition at line 259 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::filterLinkType | ( | $a_link_type | ) |
Definition at line 243 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::getFileLinkHTML | ( | ) |
Get HTML for file link.
Definition at line 744 of file class.ilInternalLinkGUI.php.
References $ctrl, $ilCtrl, $lng, and $tpl.
Referenced by showLinkHelp().
|
static |
Get initialisation HTML to use interna link editing.
Definition at line 989 of file class.ilInternalLinkGUI.php.
References $DIC, $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 238 of file class.ilInternalLinkGUI.php.
References $set_link_script.
Referenced by outputThumbnail(), renderLink(), and selectRepositoryItem().
ilInternalLinkGUI::getTargetExplorer | ( | ) |
Cange target object.
Definition at line 881 of file class.ilInternalLinkGUI.php.
References $a_type, $base_link_type, and $white.
Referenced by changeTargetObject().
ilInternalLinkGUI::getUserSearchResult | ( | ) |
Search user.
Definition at line 1161 of file class.ilInternalLinkGUI.php.
References $_POST, $DIC, $f, $form, $id, $lng, $name, $r, $tpl, $user, $users, ilObjUser\_lookupLogin(), ilUserUtil\getNamePresentation(), initUserSearchForm(), ilInternalLink\searchUsers(), and ILIAS\UI\Implementation\Component\withOnLoadCode().
Referenced by addUser().
ilInternalLinkGUI::init | ( | ) |
Init (first in execute command)
Definition at line 132 of file class.ilInternalLinkGUI.php.
References $_GET, $ctrl, $default_parent_obj_id, $default_parent_ref_id, $l, $link_type, $lng, $ltypes, $tree, ilObject\_lookupType(), and resetLinkList().
Referenced by executeCommand().
ilInternalLinkGUI::initUserSearchForm | ( | ) |
Init user search form.
Definition at line 1139 of file class.ilInternalLinkGUI.php.
References $_POST, $form, and ilTextInputGUI\setValue().
Referenced by addUser(), and getUserSearchResult().
ilInternalLinkGUI::outputThumbnail | ( | & | $tpl, |
$a_id, | |||
$a_mode = "" |
|||
) |
output thumbnail
Definition at line 819 of file class.ilInternalLinkGUI.php.
References $target, $tpl, and getSetLinkTargetScript().
Referenced by renderLink().
ilInternalLinkGUI::prepareJavascriptOutput | ( | $str | ) |
Prepare output for JS enabled editing.
Definition at line 298 of file class.ilInternalLinkGUI.php.
Referenced by renderLink().
ilInternalLinkGUI::refreshRepositorySelector | ( | ) |
Refresh Repository Selector.
Definition at line 978 of file class.ilInternalLinkGUI.php.
References Sabre\VObject\$output, exit, and selectRepositoryItem().
ilInternalLinkGUI::renderLink | ( | $tpl, | |
$a_title, | |||
$a_obj_id, | |||
$a_type, | |||
$a_type_short, | |||
$a_bb_type, | |||
$a_anchors = array() , |
|||
$a_link_content = "" |
|||
) |
Render internal link item.
Definition at line 1027 of file class.ilInternalLinkGUI.php.
References $a_type, $tpl, ilImageMapEditorGUI\_recoverParameters(), ilUtil\appendUrlParameterString(), getSetLinkTargetScript(), outputThumbnail(), and prepareJavascriptOutput().
Referenced by showLinkHelp().
ilInternalLinkGUI::resetLinkList | ( | ) |
Definition at line 274 of file class.ilInternalLinkGUI.php.
References $ctrl.
Referenced by init().
ilInternalLinkGUI::saveFileLink | ( | ) |
Save file link.
Definition at line 791 of file class.ilInternalLinkGUI.php.
References showLinkHelp().
ilInternalLinkGUI::selectRepositoryItem | ( | ) |
select repository item explorer
Definition at line 959 of file class.ilInternalLinkGUI.php.
References $ctrl, $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 253 of file class.ilInternalLinkGUI.php.
Referenced by ilPageEditorGUI\executeCommand().
ilInternalLinkGUI::setMedPoolFolder | ( | ) |
ilInternalLinkGUI::setMode | ( | $a_mode = "text" | ) |
ilInternalLinkGUI::setReturn | ( | $a_return | ) |
Definition at line 233 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::setSetLinkTargetScript | ( | $a_script | ) |
Definition at line 228 of file class.ilInternalLinkGUI.php.
ilInternalLinkGUI::showLinkHelp | ( | ) |
Show link help list.
Definition at line 307 of file class.ilInternalLinkGUI.php.
References $base_link_type, $ctrl, $ilCtrl, $ilUser, $nodes, $parent_obj_id, $parent_type, $tpl, $user, ilObject\_lookupObjId(), ilObject\_lookupTitle(), ilObject\_lookupType(), ilPCParagraph\_readAnchors(), addUser(), changeTargetObject(), exit, ilUtil\formSelect(), ilPortfolioPage\getAllPortfolioPages(), ilWikiPage\getAllWikiPages(), getFileLinkHTML(), ilUtil\getImagePath(), ilLMPageObject\getPageList(), ilUtil\getStyleSheetLocation(), ilMediaPoolItem\lookupForeignId(), renderLink(), and selectRepositoryItem().
Referenced by saveFileLink().
|
protected |
Definition at line 46 of file class.ilInternalLinkGUI.php.
Referenced by getTargetExplorer(), and showLinkHelp().
ilInternalLinkGUI::$ctrl |
Definition at line 64 of file class.ilInternalLinkGUI.php.
Referenced by changeLinkType(), changeTargetObject(), getFileLinkHTML(), init(), resetLinkList(), selectRepositoryItem(), setMedPoolFolder(), and showLinkHelp().
|
protected |
Definition at line 22 of file class.ilInternalLinkGUI.php.
|
protected |
Definition at line 32 of file class.ilInternalLinkGUI.php.
Referenced by init().
|
protected |
Definition at line 27 of file class.ilInternalLinkGUI.php.
Referenced by init().
|
protected |
Definition at line 74 of file class.ilInternalLinkGUI.php.
|
protected |
Definition at line 69 of file class.ilInternalLinkGUI.php.
|
protected |
Definition at line 45 of file class.ilInternalLinkGUI.php.
|
protected |
Definition at line 44 of file class.ilInternalLinkGUI.php.
Referenced by init().
|
protected |
Definition at line 84 of file class.ilInternalLinkGUI.php.
Referenced by getFileLinkHTML(), getInitHTML(), getUserSearchResult(), and init().
|
protected |
Definition at line 54 of file class.ilInternalLinkGUI.php.
Referenced by init().
|
protected |
Definition at line 42 of file class.ilInternalLinkGUI.php.
Referenced by showLinkHelp().
|
protected |
Definition at line 37 of file class.ilInternalLinkGUI.php.
|
protected |
Definition at line 59 of file class.ilInternalLinkGUI.php.
Referenced by showLinkHelp().
ilInternalLinkGUI::$set_link_script |
Definition at line 49 of file class.ilInternalLinkGUI.php.
Referenced by getSetLinkTargetScript().
|
protected |
Definition at line 79 of file class.ilInternalLinkGUI.php.
Referenced by init().
|
protected |
Definition at line 89 of file class.ilInternalLinkGUI.php.
Referenced by getUserSearchResult(), and showLinkHelp().