X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FContent.php;h=931128faedfa69b0cd5500db26eb0fbcad977733;hb=d2193f9d1df44d92882234e02f8a697adcdfad6e;hp=61b9254fcf08d7209a5ad9a253b1d6bb1d3655a3;hpb=e054e34af8dcda9c454c8cb04caa0d55d0d3c5af;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/Content.php b/includes/content/Content.php index 61b9254fcf..931128faed 100644 --- a/includes/content/Content.php +++ b/includes/content/Content.php @@ -243,7 +243,7 @@ interface Content { * * @since 1.21 * - * @param bool $hasLinks If it is known whether this content contains + * @param bool|null $hasLinks If it is known whether this content contains * links, provide this information here, to avoid redundant parsing to * find out. * @@ -292,6 +292,9 @@ interface Content { * Subclasses may implement this to determine the necessary updates more * efficiently, or make use of information about the old content. * + * @note Implementations should call the SecondaryDataUpdates hook, like + * AbstractContent does. + * * @param Title $title The context for determining the necessary updates * @param Content $old An optional Content object representing the * previous content, i.e. the content being replaced by this Content @@ -442,7 +445,7 @@ interface Content { * * @return Content */ - public function preloadTransform( Title $title, ParserOptions $parserOptions, $params = array() ); + public function preloadTransform( Title $title, ParserOptions $parserOptions, $params = [] ); /** * Prepare Content for saving. Called before Content is saved by WikiPage::doEditContent() and in @@ -461,7 +464,7 @@ interface Content { * * @param WikiPage $page The page to be saved. * @param int $flags Bitfield for use with EDIT_XXX constants, see WikiPage::doEditContent() - * @param int $baseRevId The ID of the current revision + * @param int $parentRevId The ID of the current revision * @param User $user * * @return Status A status object indicating whether the content was @@ -470,7 +473,7 @@ interface Content { * * @see WikiPage::doEditContent() */ - public function prepareSave( WikiPage $page, $flags, $baseRevId, User $user ); + public function prepareSave( WikiPage $page, $flags, $parentRevId, User $user ); /** * Returns a list of updates to perform when this content is deleted.