ILIAS
Release_5_0_x_branch Revision 61816
|
Utility class for wiki. More...
Public Member Functions | |
removeUnsafeCharacters ($a_str) | |
See class.ilInitialisation.php. |
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. | |
static | collectInternalLinks ($s, $a_wiki_id, $a_collect_non_ex=false) |
Collect internal wiki links of a string. | |
static | processInternalLinks ($s, $a_wiki_id, $a_mode=IL_WIKI_MODE_REPLACE, $a_collect_non_ex=false, $a_offline=false) |
Process internal links. | |
static | makeLink (&$nt, $a_wiki_id, $text= '', $query= '', $trail= '', $prefix= '', $a_offline=false) |
Make a wiki link, the following formats are supported: | |
static | wfUrlProtocols () |
From mediawiki GlobalFunctions.php. | |
static | wfUrlencode ($s) |
From GlobalFunctions.php. | |
static | makeDbTitle ($a_par) |
Handle page GET parameter. | |
static | makeUrlTitle ($a_par) |
Set page parameter for Url Embedding. | |
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 54 of file class.ilWikiUtil.php.
References IL_WIKI_MODE_COLLECT, and processInternalLinks().
Referenced by ilWikiPage\afterUpdate(), and ilWikiPage\saveInternalLinks().
|
static |
Handle page GET parameter.
Definition at line 603 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 440 of file class.ilWikiUtil.php.
References $_GET, $ilCtrl, ilWikiPage\_wikiPageExists(), ilWikiPage\getIdForPageTitle(), makeDbTitle(), and makeUrlTitle().
Referenced by ilPCAMDPageList\modifyPageContentPostXsl(), and processInternalLinks().
|
static |
Set page parameter for Url Embedding.
Definition at line 612 of file class.ilWikiUtil.php.
References removeUnsafeCharacters(), and wfUrlencode().
Referenced by ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilObjWikiGUI\cancelCreationPageUsingTemplateObject(), ilObjWikiGUI\createPageUsingTemplateObject(), ilWikiHandlerGUI\executeCommand(), ilWikiSearchResultsTableGUI\fillRow(), ilObjWikiGUI\getGotoLink(), ilWikiPageGUI\getTabs(), ilObjWikiGUI\gotoPageObject(), ilObjectFeedWriter\ilObjectFeedWriter(), ilObjWikiGUI\ilObjWikiGUI(), makeLink(), ilWikiPageGUI\postOutputProcessing(), ilWikiPageGUI\preview(), processInternalLinks(), ilWikiPageGUI\renamePage(), 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 67 of file class.ilWikiUtil.php.
References $GLOBALS, ilWikiPage\_wikiPageExists(), 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().
ilWikiUtil::removeUnsafeCharacters | ( | $a_str | ) |
See class.ilInitialisation.php.
Definition at line 426 of file class.ilWikiUtil.php.
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 IL_WIKI_MODE_REPLACE, and processInternalLinks().
Referenced by ilWikiPageGUI\postOutputProcessing().
|
static |
Definition at line 642 of file class.ilWikiUtil.php.
References $ilUser, ilLanguageFactory\_getLanguageOfUser(), ilLink\_getLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), 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 620 of file class.ilWikiUtil.php.
Referenced by processInternalLinks().
|
static |
From GlobalFunctions.php.
Definition at line 590 of file class.ilWikiUtil.php.
Referenced by makeUrlTitle(), and Title\secureAndSplit().
|
static |
From mediawiki GlobalFunctions.php.
Definition at line 559 of file class.ilWikiUtil.php.
Referenced by processInternalLinks().