ILIAS
trunk Revision v11.0_alpha-3011-gc6b235a2e85
|
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.
Referenced by WikiUtilTest\processInternalLinksCollect(), and WikiUtilTest\processInternalLinksExtCollect().
|
static |
Definition at line 436 of file class.ilWikiUtil.php.
Referenced by ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ILIAS\Wiki\Links\MissingPageDBRepository\deleteForTarget(), ILIAS\Wiki\Links\MissingPageDBRepository\getSourcesOfMissingTarget(), ilObjWikiGUI\isNewTranslatedPage(), 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.
|
static |
Definition at line 443 of file class.ilWikiUtil.php.
Referenced by ilObjWikiGUI\__construct(), ilObjectFeedWriter\__construct(), ilObjWikiGUI\_goto(), ilObjWikiGUI\addPagesSubTabs(), ilObjWikiGUI\addPageTabs(), ilObjWikiGUI\cancelCreationPageUsingTemplateObject(), ilObjWikiGUI\createPageUsingTemplateObject(), ilPDNewsTableGUI\fillRow(), ilWikiSearchResultsTableGUI\fillRow(), ilWikiNewsRendererGUI\getObjectLink(), ilObjWikiSearchResultTableGUI\parse(), ilWikiPageGUI\postOutputProcessing(), ilWikiPageGUI\renamePage(), 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.
Referenced by ilWikiPageGUI\postOutputProcessing(), and WikiUtilTest\processInternalLinksReplace().
|
static |
Definition at line 469 of file class.ilWikiUtil.php.
|
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.