ILIAS
trunk Revision v11.0_alpha-1866-gfa368f7776e
|
Utility class for wiki. More...
Static Public Member Functions | |
static | replaceInternalLinks (string $s, int $a_wiki_id, bool $a_offline=false, string $lang="-") |
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 | 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) |
Static Protected Member Functions | |
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, string $lang="-") |
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, string $lang="-") |
Make a wiki link, the following formats are supported: More... | |
Utility class for wiki.
Definition at line 46 of file class.ilWikiUtil.php.
|
static |
Collect internal wiki links of a string.
Definition at line 71 of file class.ilWikiUtil.php.
References $log, and ilLoggerFactory\getLogger().
Referenced by ilWikiPage\afterUpdate(), WikiUtilTest\processInternalLinksCollect(), WikiUtilTest\processInternalLinksExtCollect(), ilWikiPage\rename(), and ILIAS\Wiki\Links\LinkManager\saveInternalLinksForPage().
|
static |
Definition at line 436 of file class.ilWikiUtil.php.
Referenced by ilWikiPage\_wikiPageExists(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ILIAS\Wiki\Page\PageManager\createWikiPage(), ilObjWiki\createWikiPage(), ILIAS\Wiki\Links\MissingPageDBRepository\deleteForTarget(), ilWikiPage\exists(), ILIAS\Wiki\Page\PageDBRepository\getPageIdForTitle(), ilWikiPage\getPageIdForTitle(), ILIAS\Wiki\Links\MissingPageDBRepository\getSourcesOfMissingTarget(), ilObjWikiGUI\gotoPageObject(), ilObjWikiGUI\isNewTranslatedPage(), ilWikiPage\rename(), ilWikiPageGUI\renamePage(), ILIAS\Wiki\Links\MissingPageDBRepository\save(), ilObjWiki\setStartPage(), ilWikiPage\setTitle(), WikiUtilTest\testMakeDbTitle(), and ilObjWiki\writeStartPage().
|
staticprotected |
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 308 of file class.ilWikiUtil.php.
References $DIC, $lang, ilWikiPage\getPageIdForTitle(), and null.
|
static |
Definition at line 443 of file class.ilWikiUtil.php.
Referenced by ilObjectFeedWriter\__construct(), ilObjWikiGUI\__construct(), ilObjWikiGUI\_goto(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilObjWikiGUI\cancelCreationPageUsingTemplateObject(), ilObjWikiGUI\createPageUsingTemplateObject(), ilWikiSearchResultsTableGUI\fillRow(), ilPDNewsTableGUI\fillRow(), ilObjWikiGUI\getGotoLink(), ilWikiNewsRendererGUI\getObjectLink(), ilObjWikiGUI\gotoPageObject(), ilObjWikiSearchResultTableGUI\parse(), ilWikiPageGUI\postOutputProcessing(), ilWikiPageGUI\renamePage(), ILIAS\Notes\NotificationsManager\sendNotifications(), ilNewsForContextBlockGUI\showNews(), ilObjWikiGUI\showTemplateSelectionObject(), WikiUtilTest\testMakeUrlTitle(), and ilObjWikiGUI\viewPageObject().
|
staticprotected |
Process internal links (internal)
Definition at line 97 of file class.ilWikiUtil.php.
References Vendor\Package\$a, $DIC, $GLOBALS, $lang, ILIAS\Repository\form(), IL_WIKI_MODE_COLLECT, IL_WIKI_MODE_EXT_COLLECT, IL_WIKI_MODE_REPLACE, and Title\newFromText().
|
staticprotected |
Definition at line 293 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 $lang, and IL_WIKI_MODE_REPLACE.
Referenced by ilWikiPageGUI\postOutputProcessing(), and WikiUtilTest\processInternalLinksReplace().
|
static |
Definition at line 469 of file class.ilWikiUtil.php.
References $DIC, $log, $message, $user_id, ilMail\_getInstallationSignature(), ilLanguageFactory\_getLanguageOfUser(), ilObjUser\_lookupFullname(), ilObjUser\_lookupLogin(), ANONYMOUS_USER_ID, ilLoggerFactory\getLogger(), ilUserUtil\getNamePresentation(), ilNotification\getNotificationsForObject(), null, ilPageObjectGUI\setRawPageContent(), ilPageObject\truncateHTML(), ilNotification\TYPE_WIKI, ilNotification\TYPE_WIKI_PAGE, and ilNotification\updateNotificationTime().
|
static |
Definition at line 451 of file class.ilWikiUtil.php.
|
static |
Definition at line 429 of file class.ilWikiUtil.php.
Referenced by Title\secureAndSplit().
|
static |
From mediawiki GlobalFunctions.php.
Definition at line 404 of file class.ilWikiUtil.php.