Files
ops-Gazelle/classes/g.class.php
T
itismadness 4f8a2c5dad Implement router class (!71)
Squashed commit of the following:

Author: itismadness <[email protected]>

    fix bug with router on ajax calls
    finish up initial router implementation
    Merge branch 'master' into router
    Add tests for router
    Fix boolean on authorized function
    Finish basic implementation for the router
2018-06-12 08:48:15 -04:00

18 lines
338 B
PHP

<?
class G {
/** @var DB_MYSQL */
public static $DB;
/** @var CACHE */
public static $Cache;
/** @var \Gazelle\Router */
public static $Router;
public static $LoggedUser;
public static function initialize() {
global $DB, $Cache, $LoggedUser;
self::$DB = $DB;
self::$Cache = $Cache;
self::$LoggedUser =& $LoggedUser;
}
}