ILIAS
release_8 Revision v8.19
|
Utility class for wiki. More...
Static Public Member Functions | |
static | replaceInternalLinks (string $s, int $a_wiki_id, bool $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 (string $s, int $a_wiki_id, bool $a_collect_non_ex=false, string $mode=IL_WIKI_MODE_COLLECT) |
Collect internal wiki links of a string. More... | |
static | processInternalLinks (string $s, int $a_wiki_id, string $a_mode=IL_WIKI_MODE_REPLACE, bool $a_collect_non_ex=false, bool $a_offline=false) |
Process internal links (internal) More... | |
static | removeUnsafeCharacters (string $a_str) |
static | makeLink (object $nt, int $a_wiki_id, string $text='', string $query='', string $trail='', string $prefix='', bool $a_offline=false) |
Make a wiki link, the following formats are supported: More... | |
static | wfUrlProtocols () |
From mediawiki GlobalFunctions.php. More... | |
static | wfUrlencode (string $s) |
static | makeDbTitle (string $a_par) |
static | makeUrlTitle (string $a_par) |
static | splitTrail (string $trail) |
static | sendNotification (string $a_action, int $a_type, int $a_wiki_ref_id, int $a_page_id, ?string $a_comment=null) |
Utility class for wiki.
Definition at line 46 of file class.ilWikiUtil.php.
|
static |
Collect internal wiki links of a string.
Definition at line 69 of file class.ilWikiUtil.php.
References $log, and ilLoggerFactory\getLogger().
Referenced by ilWikiPage\afterUpdate(), WikiUtilTest\processInternalLinksCollect(), WikiUtilTest\processInternalLinksExtCollect(), ilWikiPage\rename(), and ilWikiPage\saveInternalLinks().
|
static |
Definition at line 430 of file class.ilWikiUtil.php.
Referenced by ilWikiPage\_wikiPageExists(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilObjWiki\createWikiPage(), ilObjWikiGUI\executeCommand(), ilWikiPage\exists(), ilWikiPage\getPageIdForTitle(), ilObjWikiGUI\getTabs(), ilWikiPageGUI\getTabs(), ilObjWikiGUI\gotoPageObject(), ilWikiPage\rename(), ilWikiPageGUI\renamePage(), ilWikiPage\saveInternalLinks(), ilObjWiki\setStartPage(), ilWikiPage\setTitle(), WikiUtilTest\testMakeDbTitle(), 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 303 of file class.ilWikiUtil.php.
References $DIC, ilWikiPage\_wikiPageExists(), and ilWikiPage\getPageIdForTitle().
Referenced by ilPCAMDPageList\modifyPageContentPostXsl().
|
static |
Definition at line 437 of file class.ilWikiUtil.php.
Referenced by ilObjectFeedWriter\__construct(), ilObjWikiGUI\__construct(), ilObjWikiGUI\_goto(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilObjWikiGUI\cancelCreationPageUsingTemplateObject(), ilObjWikiGUI\createPageUsingTemplateObject(), ilWikiHandlerGUI\executeCommand(), ilWikiSearchResultsTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilObjWikiGUI\getGotoLink(), ilWikiNewsRendererGUI\getObjectLink(), ilWikiPageGUI\getTabs(), ilObjWikiGUI\gotoPageObject(), ilObjWikiSearchResultTableGUI\parse(), ilWikiPageGUI\postOutputProcessing(), ilWikiPageGUI\renamePage(), ILIAS\Notes\NotificationsManager\sendNotifications(), ilNewsForContextBlockGUI\showNews(), ilObjWikiGUI\showTemplateSelectionObject(), WikiUtilTest\testMakeUrlTitle(), and ilObjWikiGUI\viewPageObject().
|
static |
Process internal links (internal)
Definition at line 95 of file class.ilWikiUtil.php.
References Vendor\Package\$a, $GLOBALS, ilWikiPage\_wikiPageExists(), ILIAS\Repository\form(), IL_WIKI_MODE_COLLECT, IL_WIKI_MODE_EXT_COLLECT, IL_WIKI_MODE_REPLACE, and Title\newFromText().
|
static |
Definition at line 288 of file class.ilWikiUtil.php.
|
static |
This one is based on Mediawiki Parser->replaceInternalLinks since we display images in another way, only text links are processed.
Definition at line 52 of file class.ilWikiUtil.php.
References IL_WIKI_MODE_REPLACE.
Referenced by ilWikiPageGUI\postOutputProcessing(), and WikiUtilTest\processInternalLinksReplace().
|
static |
Definition at line 463 of file class.ilWikiUtil.php.
References $DIC, $ilUser, $log, $message, ilMail\_getInstallationSignature(), ilLanguageFactory\_getLanguageOfUser(), ilLink\_getLink(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, ilLoggerFactory\getLogger(), 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 445 of file class.ilWikiUtil.php.
|
static |
Definition at line 423 of file class.ilWikiUtil.php.
Referenced by Title\secureAndSplit().
|
static |
From mediawiki GlobalFunctions.php.
Definition at line 398 of file class.ilWikiUtil.php.