X-Git-Url: https://git.cyclocoop.org/%27.WWW_URL.%27admin/?a=blobdiff_plain;f=includes%2Fcontent%2FAbstractContent.php;h=c12d28d9bcdfc6d8f92cc007c06f193f156c0b17;hb=a6f465a5f4fbd22d15a1c188aede4fa0fa4f6773;hp=811b241798ee29434b192d28a57aee8e96530cd4;hpb=c8d361a38027ef5d808225b8a83f15417248aa67;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/AbstractContent.php b/includes/content/AbstractContent.php index 811b241798..c12d28d9bc 100644 --- a/includes/content/AbstractContent.php +++ b/includes/content/AbstractContent.php @@ -55,6 +55,7 @@ abstract class AbstractContent implements Content { * @since 1.21 * * @see Content::getModel + * @return string */ public function getModel() { return $this->model_id; @@ -82,6 +83,7 @@ abstract class AbstractContent implements Content { * @since 1.21 * * @see Content::getContentHandler + * @return ContentHandler */ public function getContentHandler() { return ContentHandler::getForContent( $this ); @@ -91,6 +93,7 @@ abstract class AbstractContent implements Content { * @since 1.21 * * @see Content::getDefaultFormat + * @return string */ public function getDefaultFormat() { return $this->getContentHandler()->getDefaultFormat(); @@ -100,6 +103,7 @@ abstract class AbstractContent implements Content { * @since 1.21 * * @see Content::getSupportedFormats + * @return string[] */ public function getSupportedFormats() { return $this->getContentHandler()->getSupportedFormats(); @@ -334,6 +338,7 @@ abstract class AbstractContent implements Content { /** * @since 1.21 * + * @param string|int $sectionId * @return null * * @see Content::getSection @@ -345,6 +350,9 @@ abstract class AbstractContent implements Content { /** * @since 1.21 * + * @param string|int|null|bool $sectionId + * @param Content $with + * @param string $sectionTitle * @return null * * @see Content::replaceSection @@ -356,6 +364,9 @@ abstract class AbstractContent implements Content { /** * @since 1.21 * + * @param Title $title + * @param User $user + * @param ParserOptions $popts * @return Content $this * * @see Content::preSaveTransform @@ -367,6 +378,7 @@ abstract class AbstractContent implements Content { /** * @since 1.21 * + * @param string $header * @return Content $this * * @see Content::addSectionHeader @@ -378,6 +390,9 @@ abstract class AbstractContent implements Content { /** * @since 1.21 * + * @param Title $title + * @param ParserOptions $popts + * @param array $params * @return Content $this * * @see Content::preloadTransform @@ -389,6 +404,10 @@ abstract class AbstractContent implements Content { /** * @since 1.21 * + * @param WikiPage $page + * @param int $flags + * @param int $parentRevId + * @param User $user * @return Status * * @see Content::prepareSave @@ -405,7 +424,7 @@ abstract class AbstractContent implements Content { * @since 1.21 * * @param WikiPage $page - * @param ParserOutput $parserOutput + * @param ParserOutput|null $parserOutput * * @return LinksDeletionUpdate[] * @@ -488,8 +507,8 @@ abstract class AbstractContent implements Content { $po = new ParserOutput(); if ( Hooks::run( 'ContentGetParserOutput', - [ $this, $title, $revId, $options, $generateHtml, &$po ] ) ) { - + [ $this, $title, $revId, $options, $generateHtml, &$po ] ) + ) { // Save and restore the old value, just in case something is reusing // the ParserOptions object in some weird way. $oldRedir = $options->getRedirectTarget();