|
ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
|
Utility class for wiki. More...
Collaboration diagram for ilWikiUtil: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().
Here is the call graph for this function:
Here is the caller graph for this function:
|
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().
Here is the caller graph for this function:
|
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, $text, and ilWikiPage\getPageIdForTitle().
Here is the call graph for this function:
|
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().
Here is the caller graph for this function:
|
staticprotected |
Process internal links (internal)
Definition at line 97 of file class.ilWikiUtil.php.
References Vendor\Package\$a, $DIC, $GLOBALS, $text, ILIAS\Repository\form(), IL_WIKI_MODE_COLLECT, IL_WIKI_MODE_EXT_COLLECT, IL_WIKI_MODE_REPLACE, and Title\newFromText().
Here is the call graph for this function:
|
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 IL_WIKI_MODE_REPLACE.
Referenced by ilWikiPageGUI\postOutputProcessing(), and WikiUtilTest\processInternalLinksReplace().
Here is the caller graph for this function:
|
static |
Definition at line 469 of file class.ilWikiUtil.php.
References $DIC, $log, $user_id, ilMail\_getInstallationSignature(), ilLanguageFactory\_getLanguageOfUser(), 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().
Here is the call graph for this function:
|
static |
Definition at line 451 of file class.ilWikiUtil.php.
|
static |
Definition at line 429 of file class.ilWikiUtil.php.
Referenced by Title\secureAndSplit().
Here is the caller graph for this function:
|
static |
From mediawiki GlobalFunctions.php.
Definition at line 404 of file class.ilWikiUtil.php.