Ubiquity
2.0.2
php rapid development framework
Framework.php
Go to the documentation of this file.
1
<?php
2
9
namespace
Ubiquity\core
;
10
11
use
Ubiquity\controllers\Startup
;
12
use
Ubiquity\controllers\Router
;
13
use
Ubiquity\utils\http\URequest
;
14
use
Ubiquity\utils\http\USession
;
15
use
Ubiquity\utils\http\UCookie
;
16
17
class
Framework
{
18
public
const
version
=
'2.0.2'
;
19
20
public
static
function
getController
() {
21
return
Startup::getController
();
22
}
23
24
public
static
function
getAction
() {
25
return
Startup::getAction
();
26
}
27
28
public
static
function
getUrl
() {
29
return \implode (
"/"
,
Startup::$urlParts
);
30
}
31
32
public
static
function
getRouter
() {
33
return
new
Router
();
34
}
35
36
public
static
function
getRequest
() {
37
return
new
URequest
();
38
}
39
40
public
static
function
getSession
() {
41
return
new
USession
();
42
}
43
44
public
static
function
getCookies
() {
45
return
new
UCookie
();
46
}
47
48
public
static
function
hasAdmin
() {
49
return \class_exists (
"controllers\Admin"
);
50
}
51
}
52
Ubiquity\utils\http\USession
Http Session utilities.
Definition:
USession.php:13
USession
Ubiquity\core
This class gives access to useful methods or objects of the framework.
Definition:
Framework.php:9
URequest
Ubiquity\controllers\Startup\getController
static getController()
Definition:
Startup.php:199
Ubiquity\core\Framework\getSession
static getSession()
Definition:
Framework.php:40
Ubiquity\core\Framework\getController
static getController()
Definition:
Framework.php:20
Ubiquity\core\Framework\version
const version
Definition:
Framework.php:18
Ubiquity\controllers\Router
Router.
Definition:
Router.php:15
Ubiquity\utils\http\UCookie
Http Cookies utilities.
Definition:
UCookie.php:10
Ubiquity\utils\http\URequest
Http Request utilities.
Definition:
URequest.php:13
UCookie
Ubiquity\core\Framework
Definition:
Framework.php:17
Ubiquity\core\Framework\getAction
static getAction()
Definition:
Framework.php:24
Ubiquity\core\Framework\getRequest
static getRequest()
Definition:
Framework.php:36
Ubiquity\core\Framework\getUrl
static getUrl()
Definition:
Framework.php:28
Ubiquity\core\Framework\getCookies
static getCookies()
Definition:
Framework.php:44
Startup
Ubiquity\controllers\Startup\$urlParts
static $urlParts
Definition:
Startup.php:10
Ubiquity\core\Framework\getRouter
static getRouter()
Definition:
Framework.php:32
Ubiquity\core\Framework\hasAdmin
static hasAdmin()
Definition:
Framework.php:48
Router
Ubiquity\controllers\Startup\getAction
static getAction()
Definition:
Startup.php:203
Ubiquity
core
Framework.php
Generated on Tue Mar 13 2018 03:05:08 for
Ubiquity
by
doxygen
1.8.13