Add LinkTarget::createFragmentTarget() function
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 20 Apr 2016 08:09:23 +0000 (01:09 -0700)
committerKunal Mehta <legoktm@member.fsf.org>
Fri, 22 Apr 2016 00:19:04 +0000 (17:19 -0700)
commit59d838caeacbadf9cb2c359eec9fde7e712bc2a9
tree4615e2eb719cd5a21e3b242f1c55f990b1a540e7
parent55ec9f2e4d9a9186879765596013cdcdb775ea4d
Add LinkTarget::createFragmentTarget() function

The createFragmentTarget function allows for switching the fragment on a
target in an easier way. TitleValue already had a now-renamed
createFragmentTitle function (no uses outside of tests), and an
implementation was added for Title.

This will also help with reducing the amount of public usage of
Title::setFragment(), which is deprecated.

Change-Id: I1e8ba2f85e748b1b4394fb2f2a1ccce69cf6e3c5
includes/LinkTarget.php
includes/Title.php
includes/title/TitleValue.php
tests/phpunit/includes/TitleTest.php
tests/phpunit/includes/title/TitleValueTest.php