X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FWikitextContentHandler.php;h=5ae3e25d6e6fd96b1679e304f3e54745a6b18829;hb=435e4cab44875c2b7f910a1bb9351a8858723406;hp=1e8fd05c1a87645bc3847718365932b137bef3d7;hpb=5df5a5b4a8ce61cda82af3c636a9b1f3016e6464;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/WikitextContentHandler.php b/includes/content/WikitextContentHandler.php index 1e8fd05c1a..5ae3e25d6e 100644 --- a/includes/content/WikitextContentHandler.php +++ b/includes/content/WikitextContentHandler.php @@ -29,6 +29,7 @@ * @ingroup Content */ class WikitextContentHandler extends TextContentHandler { + public function __construct( $modelId = CONTENT_MODEL_WIKITEXT ) { parent::__construct( $modelId, array( CONTENT_FORMAT_WIKITEXT ) ); } @@ -40,9 +41,9 @@ class WikitextContentHandler extends TextContentHandler { } /** - * @see ContentHandler::makeEmptyContent + * @return Content A new WikitextContent object with empty text. * - * @return Content + * @see ContentHandler::makeEmptyContent */ public function makeEmptyContent() { return new WikitextContent( '' ); @@ -51,12 +52,12 @@ class WikitextContentHandler extends TextContentHandler { /** * Returns a WikitextContent object representing a redirect to the given destination page. * - * @see ContentHandler::makeRedirectContent - * - * @param Title $destination the page to redirect to. - * @param string $text text to include in the redirect, if possible. + * @param Title $destination The page to redirect to. + * @param string $text Text to include in the redirect, if possible. * * @return Content + * + * @see ContentHandler::makeRedirectContent */ public function makeRedirectContent( Title $destination, $text = '' ) { $optionalColon = ''; @@ -84,9 +85,9 @@ class WikitextContentHandler extends TextContentHandler { /** * Returns true because wikitext supports redirects. * - * @see ContentHandler::supportsRedirects + * @return bool Always true. * - * @return boolean whether redirects are supported. + * @see ContentHandler::supportsRedirects */ public function supportsRedirects() { return true; @@ -95,7 +96,9 @@ class WikitextContentHandler extends TextContentHandler { /** * Returns true because wikitext supports sections. * - * @return boolean whether sections are supported. + * @return bool Always true. + * + * @see ContentHandler::supportsSections */ public function supportsSections() { return true; @@ -106,9 +109,13 @@ class WikitextContentHandler extends TextContentHandler { * ParserCache mechanism. * * @since 1.21 - * @return bool + * + * @return bool Always true. + * + * @see ContentHandler::isParserCacheSupported */ public function isParserCacheSupported() { return true; } + }