Add interwiki support to LinkTarget and TitleValue
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 27 Apr 2016 02:21:59 +0000 (19:21 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Wed, 27 Apr 2016 05:25:28 +0000 (22:25 -0700)
commit9b1f8b4ca331e45c9718097af33f46416c7911f2
tree59377ad751880dd331b559b2a561dcb69d66ee32
parenteec846227dfaf62cf59cc8a458008f5f4473d9cc
Add interwiki support to LinkTarget and TitleValue

This adds support to the LinkTarget interface and TitleValue
implementation for having an interwiki component, matching the function
names used in Title.

MediaWikiTitleCodec was updated accordingly.

The motivation behind this change is to be able to fully use LinkTarget
in the Linker rewrite instead of depending upon Title.

Change-Id: I6666b64f0e336aadc7261e7ca87ac2e498c61856
includes/linker/LinkTarget.php
includes/title/MediaWikiTitleCodec.php
includes/title/TitleFormatter.php
includes/title/TitleValue.php
tests/phpunit/includes/title/MediaWikiTitleCodecTest.php
tests/phpunit/includes/title/TitleValueTest.php