Ubiquity  2.0.0
php rapid development framework
Framework.php
Go to the documentation of this file.
1 <?php
2 
9 namespace Ubiquity\core;
10 
16 
17 class Framework {
18  public const version='2.0.0-beta.1';
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 
Http Session utilities.
Definition: USession.php:12
This class gives access to useful methods or objects of the framework.
Definition: Framework.php:9
Http Request utilities.
Definition: URequest.php:13