ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
|
Utility class for wiki. More...
Static Public Member Functions | |
static | replaceInternalLinks ($s, $a_wiki_id, $a_offline=false) |
This one is based on Mediawiki Parser->replaceInternalLinks since we display images in another way, only text links are processed. More... | |
static | collectInternalLinks ($s, $a_wiki_id, $a_collect_non_ex=false) |
Collect internal wiki links of a string. More... | |
static | processInternalLinks ( $s, $a_wiki_id, $a_mode=IL_WIKI_MODE_REPLACE, $a_collect_non_ex=false, $a_offline=false) |
Process internal links. More... | |
static | removeUnsafeCharacters ($a_str) |
See class.ilInitialisation.php. More... | |
static | makeLink (&$nt, $a_wiki_id, $text='', $query='', $trail='', $prefix='', $a_offline=false) |
Make a wiki link, the following formats are supported: More... | |
static | wfUrlProtocols () |
From mediawiki GlobalFunctions.php. More... | |
static | wfUrlencode ($s) |
From GlobalFunctions.php. More... | |
static | makeDbTitle ($a_par) |
Handle page GET parameter. More... | |
static | makeUrlTitle ($a_par) |
Set page parameter for Url Embedding. More... | |
static | splitTrail ($trail) |
static | sendNotification ($a_action, $a_type, $a_wiki_ref_id, $a_page_id, $a_comment=null) |
|
static |
Collect internal wiki links of a string.
string | input string |
Definition at line 59 of file class.ilWikiUtil.php.
References $s, IL_WIKI_MODE_COLLECT, and processInternalLinks().
Referenced by ilWikiPage\afterUpdate(), and ilWikiPage\saveInternalLinks().
|
static |
Handle page GET parameter.
Definition at line 580 of file class.ilWikiUtil.php.
References removeUnsafeCharacters().
Referenced by ilWikiPage\_wikiPageExists(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilObjWiki\createWikiPage(), ilObjWikiGUI\executeCommand(), ilWikiPage\exists(), ilWikiPage\getIdForPageTitle(), ilWikiPage\getPageIdForTitle(), ilWikiPageGUI\getTabs(), ilObjWikiGUI\getTabs(), ilObjWikiGUI\gotoPageObject(), makeLink(), processInternalLinks(), ilWikiPage\rename(), ilWikiPageGUI\renamePage(), ilWikiPage\saveInternalLinks(), ilObjWiki\setStartPage(), ilWikiPage\setTitle(), ilObjWikiGUI\viewPageObject(), and ilObjWiki\writeStartPage().
|
static |
Make a wiki link, the following formats are supported:
[[Page Title]] [[Page Title|Presentation Text]] [[Page Title::Anchor]] [[Page Title::Anchor|Presentation Text]] [[#Anchor|Presentation Text]] (link to anchor on same wiki page)
Definition at line 427 of file class.ilWikiUtil.php.
References $_GET, $DIC, $ilCtrl, $text, ilWikiPage\_wikiPageExists(), ilWikiPage\getIdForPageTitle(), makeDbTitle(), and makeUrlTitle().
Referenced by ilPCAMDPageList\modifyPageContentPostXsl(), and processInternalLinks().
|
static |
Set page parameter for Url Embedding.
Definition at line 589 of file class.ilWikiUtil.php.
References removeUnsafeCharacters(), and wfUrlencode().
Referenced by ilObjectFeedWriter\__construct(), ilObjWikiGUI\__construct(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilObjWikiGUI\cancelCreationPageUsingTemplateObject(), ilObjWikiGUI\createPageUsingTemplateObject(), ilWikiHandlerGUI\executeCommand(), ilWikiSearchResultsTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilObjWikiGUI\getGotoLink(), ilWikiNewsRendererGUI\getObjectLink(), ilWikiPageGUI\getTabs(), ilObjWikiGUI\gotoPageObject(), makeLink(), ilObjWikiSearchResultTableGUI\parse(), ilWikiPageGUI\postOutputProcessing(), processInternalLinks(), ilWikiPageGUI\renamePage(), ilNote\sendNotifications(), ilNewsForContextBlockGUI\showNews(), ilObjWikiGUI\showTemplateSelectionObject(), and ilObjWikiGUI\viewPageObject().
|
static |
Process internal links.
string $s string that includes internal wiki links int $a_wiki_id wiki id mode
Strip the whitespace Category links produce, see bug 87
Definition at line 76 of file class.ilWikiUtil.php.
References $GLOBALS, $m, $s, $text, ilWikiPage\_wikiPageExists(), array, IL_WIKI_MODE_COLLECT, IL_WIKI_MODE_EXT_COLLECT, IL_WIKI_MODE_REPLACE, makeDbTitle(), makeLink(), makeUrlTitle(), Title\newFromText(), splitTrail(), and wfUrlProtocols().
Referenced by collectInternalLinks(), ilWikiPage\rename(), and replaceInternalLinks().
|
static |
See class.ilInitialisation.php.
Definition at line 413 of file class.ilWikiUtil.php.
References array.
Referenced by makeDbTitle(), and makeUrlTitle().
|
static |
This one is based on Mediawiki Parser->replaceInternalLinks since we display images in another way, only text links are processed.
string | input string |
string | input string |
Definition at line 42 of file class.ilWikiUtil.php.
References $s, IL_WIKI_MODE_REPLACE, and processInternalLinks().
Referenced by ilWikiPageGUI\postOutputProcessing().
|
static |
Definition at line 614 of file class.ilWikiUtil.php.
References $a_type, $DIC, $ilUser, $message, $users, ilLanguageFactory\_getLanguageOfUser(), ilLink\_getLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), array, ilUserUtil\getNamePresentation(), ilNotification\getNotificationsForObject(), ilPageObjectGUI\setRawPageContent(), ilPageObject\truncateHTML(), ilNotification\TYPE_WIKI, ilNotification\TYPE_WIKI_PAGE, and ilNotification\updateNotificationTime().
Referenced by ilWikiPage\create(), ilWikiPage\delete(), ilWikiPageGUI\observeNoteAction(), and ilWikiPage\update().
|
static |
Definition at line 597 of file class.ilWikiUtil.php.
Referenced by processInternalLinks().
|
static |
From GlobalFunctions.php.
Definition at line 567 of file class.ilWikiUtil.php.
References $s.
Referenced by makeUrlTitle(), and Title\secureAndSplit().
|
static |
From mediawiki GlobalFunctions.php.
Definition at line 535 of file class.ilWikiUtil.php.
References GuzzleHttp\Psr7\$protocol, and array.
Referenced by processInternalLinks().