Skip to content
This repository
Newer
Older
100644 48 lines (43 sloc) 0.89 kb
83939b83 » Rob Schley
2009-05-27 Imported the new trunk.
1 <?php
2 /**
43824d22 » realityking
2012-06-21 Code style and consistency work in the installation.
3 * @package Joomla.Installation
30068af9 » realityking
2012-06-30 Add a sniff for file comments.
4 *
43824d22 » realityking
2012-06-21 Code style and consistency work in the installation.
5 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
6 * @license GNU General Public License version 2 or later; see LICENSE.txt
83939b83 » Rob Schley
2009-05-27 Imported the new trunk.
7 */
8
b8cc36fc » realityking
2012-06-11 ^ [#28642] Clean up the installation a tiny bit. Thanks Rouven
9 defined('_JEXEC') or die;
83939b83 » Rob Schley
2009-05-27 Imported the new trunk.
10
11 jimport('joomla.application.router');
12
13 /**
14 * Class to create and parse routes
15 *
43824d22 » realityking
2012-06-21 Code style and consistency work in the installation.
16 * @package Joomla.Installation
17 * @since 1.5
83939b83 » Rob Schley
2009-05-27 Imported the new trunk.
18 */
19 class JRouterInstallation extends JObject
20 {
21 /**
22 * Function to convert a route to an internal URI
23 *
43824d22 » realityking
2012-06-21 Code style and consistency work in the installation.
24 * @return boolean $url
25 *
26 * @since 1.5
83939b83 » Rob Schley
2009-05-27 Imported the new trunk.
27 */
f4b2f24e » eddieajau
2010-05-25 Fixed issue [#20549] White page on installation when the PHP session …
28 public function parse($url)
83939b83 » Rob Schley
2009-05-27 Imported the new trunk.
29 {
30 return true;
31 }
32
33 /**
34 * Function to convert an internal URI to a route
35 *
43824d22 » realityking
2012-06-21 Code style and consistency work in the installation.
36 * @param string $url The internal URL
37 *
38 * @return string The absolute search engine friendly URL
f4b2f24e » eddieajau
2010-05-25 Fixed issue [#20549] White page on installation when the PHP session …
39 *
a16062a6 » mbabker
2012-08-10 A number of code style improvements.
40 * @since 1.5
83939b83 » Rob Schley
2009-05-27 Imported the new trunk.
41 */
f4b2f24e » eddieajau
2010-05-25 Fixed issue [#20549] White page on installation when the PHP session …
42 public function build($url)
83939b83 » Rob Schley
2009-05-27 Imported the new trunk.
43 {
44 $url = str_replace('&amp;', '&', $url);
45
f4b2f24e » eddieajau
2010-05-25 Fixed issue [#20549] White page on installation when the PHP session …
46 return new JURI($url);
83939b83 » Rob Schley
2009-05-27 Imported the new trunk.
47 }
5885d0fc » Jean-Marie Simonet
2011-07-20 # [#26396] Fix some mistyped and @package names in the CMS. Thanks R…
48 }
Something went wrong with that request. Please try again.