aboutsummaryrefslogtreecommitdiffstats
path: root/includes/parser/CoreLinkFunctions.php
diff options
context:
space:
mode:
authorSam Reed <reedy@users.mediawiki.org>2011-02-19 01:02:56 +0000
committerSam Reed <reedy@users.mediawiki.org>2011-02-19 01:02:56 +0000
commit7d98280f3e8bbf94653bb19c27de20438dc835b8 (patch)
tree7665224e0e6f564651cbbbb61aa9e7299576f802 /includes/parser/CoreLinkFunctions.php
parent7ebf2e5165d3eab9fc9725c51119475659b0b834 (diff)
downloadmediawikicore-7d98280f3e8bbf94653bb19c27de20438dc835b8.tar.gz
mediawikicore-7d98280f3e8bbf94653bb19c27de20438dc835b8.zip
More function and variable documentation
Notes
Notes: http://mediawiki.org/wiki/Special:Code/MediaWiki/82433
Diffstat (limited to 'includes/parser/CoreLinkFunctions.php')
-rw-r--r--includes/parser/CoreLinkFunctions.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/includes/parser/CoreLinkFunctions.php b/includes/parser/CoreLinkFunctions.php
index 772ab0da0cfe..5c796494ccd3 100644
--- a/includes/parser/CoreLinkFunctions.php
+++ b/includes/parser/CoreLinkFunctions.php
@@ -10,11 +10,27 @@
* @ingroup Parser
*/
class CoreLinkFunctions {
+ /**
+ * @static
+ * @param $parser Parser_LinkHooks
+ * @return bool
+ */
static function register( $parser ) {
$parser->setLinkHook( NS_CATEGORY, array( __CLASS__, 'categoryLinkHook' ) );
return true;
}
+ /**
+ * @static
+ * @param $parser Parser
+ * @param $holders LinkHolderArray
+ * @param $markers LinkMarkerReplacer
+ * @param Title $title
+ * @param $titleText
+ * @param null $displayText
+ * @param bool $leadingColon
+ * @return bool
+ */
static function defaultLinkHook( $parser, $holders, $markers,
Title $title, $titleText, &$displayText = null, &$leadingColon = false ) {
if( isset($displayText) && $markers->findMarker( $displayText ) ) {
@@ -28,6 +44,17 @@ class CoreLinkFunctions {
return $holders->makeHolder( $title, isset($displayText) ? $displayText : $titleText, '', '', '' );
}
+ /**
+ * @static
+ * @param $parser Parser
+ * @param $holders LinkHolderArray
+ * @param $markers LinkMarkerReplacer
+ * @param Title $title
+ * @param $titleText
+ * @param null $sortText
+ * @param bool $leadingColon
+ * @return bool|string
+ */
static function categoryLinkHook( $parser, $holders, $markers,
Title $title, $titleText, &$sortText = null, &$leadingColon = false ) {
global $wgContLang;