-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
/
router.php
48 lines (43 loc) · 890 Bytes
/
router.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?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('&', '&', $url);
return new JURI($url);
}
}