Add a Uri class.
authorDaniel Friesen <pub-github@nadir-seen-fire.com>
Mon, 2 Apr 2012 01:54:25 +0000 (18:54 -0700)
committerTyler Anthony Romeo <tylerromeo@gmail.com>
Tue, 7 Aug 2012 02:46:25 +0000 (22:46 -0400)
commit94f623363beb00a7a211e8f8f1f39bc12b4713ed
tree3b30b6449a9f75e65a35ebebd523fbdf21a762b5
parentb7ce0372b06fec4f9b3f2c2c8b2a794e5ab742f3
Add a Uri class.

Add a Uri class matching our mw.Uri JS class for handling uris.
This class should be helpful in a bunch of places where we end up doing manual
concatenation of things like the path + '?' + query of a url parsed with wfParseUrl.

[tylerromeo@gmail.com: Removed cat() function, fixed wfWarn() usage for aliases
 and added visibility to all functions. Also added test for aliases.]
Signed-off-by: Tyler Romeo <tylerromeo@gmail.com>
Change-Id: Iefdedb7c80cf1d4aab58050edab3ab44ba868a58
includes/AutoLoader.php
includes/GlobalFunctions.php
includes/Uri.php [new file with mode: 0644]
tests/phpunit/includes/GlobalFunctions/GlobalTest.php
tests/phpunit/includes/UriTest.php [new file with mode: 0644]