MediaWiki REL1_31
|
Hooks for the CategoryTree extension, an AJAX based gadget to display the category structure of a wiki. More...
Static Public Member Functions | |
static | addHeaders (OutputPage $out) |
BeforePageDisplay and BeforePageDisplayMobile hooks. | |
static | articleFromTitle ( $title, &$article) |
ArticleFromTitle hook, override category page handling. | |
static | getConfigVars (&$vars) |
static | initialize () |
Adjusts config once MediaWiki is fully initialised TODO: Don't do this, lazy initialize the config. | |
static | onSpecialTrackingCategoriesGenerateCatLink ( $specialPage, $catTitle, &$html) |
Hook handler for the SpecialTrackingCategories::generateCatLink hook. | |
static | onSpecialTrackingCategoriesPreprocess ( $specialPage, $trackingCategories) |
Hook handler for the SpecialTrackingCategories::preprocess hook. | |
static | outputPageMakeCategoryLinks (&$out, $categories, &$links) |
OutputPageMakeCategoryLinks hook, override category links. | |
static | parserFunction ( $parser) |
Entry point for the {{#categorytree}} tag parser function. | |
static | parserHook ( $cat, $argv, $parser=null, $allowMissing=false) |
Entry point for the <categorytree> tag parser hook. | |
static | parserOutput ( $outputPage, $parserOutput) |
Hook callback that injects messages and things into the <head> tag, if needed in the current page. | |
static | setHooks ( $parser) |
static | shouldForceHeaders () |
static | skinJoinCategoryLinks ( $skin, &$links, &$result) |
static | skinTemplateOutputPageBeforeExec ( $skin, $tpl) |
Hook implementation for injecting a category tree into the sidebar. | |
Hooks for the CategoryTree extension, an AJAX based gadget to display the category structure of a wiki.
Definition at line 29 of file CategoryTreeHooks.php.
|
static |
BeforePageDisplay and BeforePageDisplayMobile hooks.
These hooks are used when $wgCategoryTreeForceHeaders is set. Otherwise similar to CategoryTreeHooks::parserOutput.
OutputPage | $out |
Definition at line 194 of file CategoryTreeHooks.php.
References $out, and CategoryTree\setHeaders().
|
static |
ArticleFromTitle hook, override category page handling.
Definition at line 208 of file CategoryTreeHooks.php.
References NS_CATEGORY.
|
static |
array | &$vars |
Definition at line 262 of file CategoryTreeHooks.php.
References $vars.
|
static |
Adjusts config once MediaWiki is fully initialised TODO: Don't do this, lazy initialize the config.
Definition at line 42 of file CategoryTreeHooks.php.
References $wgRequest, and CategoryTree\decodeMode().
|
static |
Hook handler for the SpecialTrackingCategories::generateCatLink hook.
SpecialPage | $specialPage | SpecialTrackingCategories object |
Title | $catTitle | Title object of the linked category |
string | &$html | Result html |
Definition at line 307 of file CategoryTreeHooks.php.
References $html, and CategoryTree\createCountString().
|
static |
Hook handler for the SpecialTrackingCategories::preprocess hook.
SpecialPage | $specialPage | SpecialTrackingCategories object |
array | $trackingCategories | [ 'msg' => Title, 'cats' => Title[] ] |
Definition at line 276 of file CategoryTreeHooks.php.
References $dbr, $res, DB_REPLICA, and wfGetDB().
|
static |
OutputPageMakeCategoryLinks hook, override category links.
OutputPage | &$out | |
array | $categories | |
array | &$links |
Definition at line 222 of file CategoryTreeHooks.php.
References $type, and parserHook().
|
static |
Entry point for the {{#categorytree}} tag parser function.
This is a wrapper around CategoryTreeHooks::parserHook
Parser | $parser |
Definition at line 87 of file CategoryTreeHooks.php.
References $argv, $html, $params, $parser, parserHook(), and true.
|
static |
Entry point for the <categorytree> tag parser hook.
This loads CategoryTreeFunctions.php and calls CategoryTree::getTag()
string | $cat | |
array | $argv | |
Parser | null | $parser | |
bool | $allowMissing |
Definition at line 144 of file CategoryTreeHooks.php.
References $argv, $parser, $wgOut, CategoryTree\capDepth(), CategoryTree\decodeBoolean(), parserOutput(), and CategoryTree\setHeaders().
Referenced by outputPageMakeCategoryLinks(), parserFunction(), and skinTemplateOutputPageBeforeExec().
|
static |
Hook callback that injects messages and things into the <head> tag, if needed in the current page.
Does nothing if $parserOutput->mCategoryTreeTag is not set
OutputPage | $outputPage | |
ParserOutput | $parserOutput |
Definition at line 178 of file CategoryTreeHooks.php.
References CategoryTree\setHeaders().
Referenced by parserHook().
|
static |
|
static |
Definition at line 31 of file CategoryTreeHooks.php.
Referenced by CategoryTreePage\execute(), and CategoryTreeCategoryViewer\getCategoryTree().
|
static |
Skin | $skin | |
array | &$links | |
string | &$result |
Definition at line 243 of file CategoryTreeHooks.php.
|
static |
Hook implementation for injecting a category tree into the sidebar.
Only does anything if $wgCategoryTreeSidebarRoot is set to a category name.
Skin | $skin | |
SkinTemplate | $tpl |
Definition at line 122 of file CategoryTreeHooks.php.
References $html, and parserHook().