Ubiquity  2.0.3
php rapid development framework
Framework.php
Go to the documentation of this file.
1 <?php
2 
9 namespace Ubiquity\core;
10 
17 
18 class Framework {
19  public const version = '2.0.3';
20 
21  public static function getController() {
22  return Startup::getController ();
23  }
24 
25  public static function getAction() {
26  return Startup::getAction ();
27  }
28 
29  public static function getUrl() {
30  return \implode ( "/", Startup::$urlParts );
31  }
32 
33  public static function getRouter() {
34  return new Router ();
35  }
36 
37  public static function getORM() {
38  return new OrmUtils();
39  }
40 
41  public static function getRequest() {
42  return new URequest ();
43  }
44 
45  public static function getSession() {
46  return new USession ();
47  }
48 
49  public static function getCookies() {
50  return new UCookie ();
51  }
52 
53  public static function hasAdmin() {
54  return \class_exists ( "controllers\Admin" );
55  }
56 }
57 
Http Session utilities.
Definition: USession.php:14
This class gives access to useful methods or objects of the framework.
Definition: Framework.php:9
Utilitaires de mappage Objet/relationnel.
Definition: OrmUtils.php:16
Http Request utilities.
Definition: URequest.php:13