CoreFiles by mySites.guru
router.php48 lines, 890 bytes, from Joomla_3.0.2-Stable-Full_Package.zip
Raw History Compare with 3.0.1
md5
39abdc8e1582f3d379e1c0249fe02099
sha1
dc4a51ff15d89574775098be0b92f3b2fa3f7a7a
sha256
000848c9f3abe1514b57289cdebf10392f86ee741fd2129d54f2cf5eeae2effe
<?php
/**
 * @package    Joomla.Installation
 *
 * @copyright  Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

jimport('joomla.application.router');

/**
 * Class to create and parse routes
 *
 * @package  Joomla.Installation
 * @since    1.5
 */
class JRouterInstallation extends JObject
{
	/**
	 * Function to convert a route to an internal URI
	 *
	 * @return  boolean  $url
	 *
	 * @since   1.5
	 */
	public function parse($url)
	{
		return true;
	}

	/**
	 * Function to convert an internal URI to a route
	 *
	 * @param   string  $url  The internal URL
	 *
	 * @return  string  The absolute search engine friendly URL
	 *
	 * @since   1.5
	 */
	public function build($url)
	{
		$url = str_replace('&amp;', '&', $url);

		return new JURI($url);
	}
}

The same content is in 3 releases, Joomla 3.0.0 to 3.0.2. See them all, or every version of this file.