/
uri.php
70 lines (63 loc) · 1.91 KB
/
uri.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php defined('SYSPATH') or die('No direct script access allowed.');
/*******************************************************************************
* ExidoEngine Web-sites manager
*
* NOTICE OF LICENSE
*
* This source file is subject to the GNU General Public License (3.0)
* that is bundled with this package in the file license_en.txt
* It is also available through the world-wide-web at this URL:
* http://www.exidoengine.com/license/gpl-3.0.html
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@exidoengine.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade ExidoEngine to newer
* versions in the future. If you wish to customize ExidoEngine for your
* needs please refer to http://www.exidoengine.com for more information.
*
* @license http://www.exidoengine.com/license/gpl-3.0.html (GNU General Public License v3)
* @author ExidoTeam
* @copyright Copyright (c) 2009 - 2013, ExidoEngine Solutions
* @link http://www.exidoengine.com/
* @since Version 1.0
* @filesource
*******************************************************************************/
/**
* Uri class
* @package core
* @copyright Sharapov A.
* @created 29/06/2010
* @version 1.0
*/
final class Uri
{
/**
* Singleton instance
* @var
*/
private static $_instance;
// ---------------------------------------------------------------------------
/**
* Gets the singleton instance
* @return Uri
*/
public static function & instance()
{
if(self::$_instance === null) {
self::$_instance = new self;
}
return self::$_instance;
}
// ---------------------------------------------------------------------------
/**
* Gets an url
* @return string
*/
public function getUri() {
return Router::$current_uri;
}
}
?>