ILIAS
Release_4_2_x_branch Revision 61807
|
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) |
|
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\saveInternalLinks().
|
static |
Handle page GET parameter.
Definition at line 599 of file class.ilWikiUtil.php.
References removeUnsafeCharacters().
Referenced by ilWikiPage\_wikiPageExists(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilObjWikiGUI\executeCommand(), ilWikiPage\exists(), ilWikiPage\getIdForPageTitle(), ilWikiPage\getPageIdForTitle(), ilObjWikiGUI\getTabs(), ilWikiPageGUI\getTabs(), ilObjWikiGUI\gotoPageObject(), makeLink(), processInternalLinks(), ilWikiPage\rename(), 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 $ilCtrl, ilWikiPage\_wikiPageExists(), ilWikiPage\getIdForPageTitle(), makeDbTitle(), makeUrlTitle(), and splitTrail().
Referenced by processInternalLinks().
|
static |
Set page parameter for Url Embedding.
Definition at line 608 of file class.ilWikiUtil.php.
References removeUnsafeCharacters(), and wfUrlencode().
Referenced by ilShopResultPresentationGUI\__appendChildLinks(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilWikiHandlerGUI\executeCommand(), ilWikiSearchResultsTableGUI\fillRow(), ilObjWikiGUI\getGotoLink(), ilWikiPageGUI\getTabs(), ilObjWikiGUI\gotoPageObject(), ilObjWikiGUI\ilObjWikiGUI(), makeLink(), ilWikiPageGUI\preview(), processInternalLinks(), ilWikiPageGUI\renamePage(), 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 638 of file class.ilWikiUtil.php.
References ilLanguageFactory\_getLanguageOfUser(), ilLink\_getLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), ilUserUtil\getNamePresentation(), ilNotification\getNotificationsForObject(), 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 616 of file class.ilWikiUtil.php.
Referenced by makeLink(), and processInternalLinks().
|
static |
From GlobalFunctions.php.
Definition at line 586 of file class.ilWikiUtil.php.
Referenced by makeUrlTitle(), and Title\secureAndSplit().
|
static |
From mediawiki GlobalFunctions.php.
Definition at line 555 of file class.ilWikiUtil.php.
Referenced by processInternalLinks().