X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ftitle%2FTitleFormatter.php;h=5177606fcfea9e5eed073b8aa51437acdf3c6b40;hb=96f35d42d78e97bb620ec8b6134b427bd793ed2c;hp=96f396c05c098b4ad58986b1702c183c260abb12;hpb=7a0574a6a33ca7863dd4fcabe1fd17dfa7c8cb6e;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/title/TitleFormatter.php b/includes/title/TitleFormatter.php index 96f396c05c..5177606fcf 100644 --- a/includes/title/TitleFormatter.php +++ b/includes/title/TitleFormatter.php @@ -42,10 +42,11 @@ interface TitleFormatter { * @param int|bool $namespace The namespace ID (or false, if the namespace should be ignored) * @param string $text The page title * @param string $fragment The fragment name (may be empty). + * @param string $interwiki The interwiki prefix (may be empty). * * @return string */ - public function formatTitle( $namespace, $text, $fragment = '' ); + public function formatTitle( $namespace, $text, $fragment = '', $interwiki = '' ); /** * Returns the title text formatted for display, without namespace of fragment. @@ -67,6 +68,18 @@ interface TitleFormatter { */ public function getPrefixedText( LinkTarget $title ); + /** + * Return the title in prefixed database key form, with interwiki + * and namespace. + * + * @since 1.27 + * + * @param LinkTarget $target + * + * @return string + */ + public function getPrefixedDBkey( LinkTarget $target ); + /** * Returns the title formatted for display, with namespace and fragment. *