X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Finterwiki%2FInterwikiLookup.php;h=697e39d540c761658e3bc5ee08bfb78864b158e0;hp=d0a7719bbec8b84d9cb154d884f29096a65e1133;hb=d5a7166771613dfe4ed9fb75fa5efeced6134bd1;hpb=e758226c91935a1df2b6fd3ed1f18922d8bfb45b diff --git a/includes/interwiki/InterwikiLookup.php b/includes/interwiki/InterwikiLookup.php index d0a7719bbe..697e39d540 100644 --- a/includes/interwiki/InterwikiLookup.php +++ b/includes/interwiki/InterwikiLookup.php @@ -47,10 +47,21 @@ interface InterwikiLookup { public function fetch( $prefix ); /** - * Returns all interwiki prefixes + * Returns information about all interwiki prefixes, in the form of rows + * of the interwiki table. Each row may have the following keys: + * + * - iw_prefix: the prefix. Always present. + * - iw_url: the URL to use for linking, with $1 as a placeholder for the target page. + * Always present. + * - iw_api: the URL of the API. Optional. + * - iw_wikiid: the wiki ID (usually the database name for local wikis). Optional. + * - iw_local: whether the wiki is local, and the "magic redirect" mechanism should apply. + * Defaults to false. + * - iw_trans: whether "scary transclusion" is allowed for this site. + * Defaults to false. * * @param string|null $local If set, limits output to local/non-local interwikis - * @return string[] List of prefixes + * @return array[] interwiki rows. */ public function getAllPrefixes( $local = null );