public static function get_global_backup($name) {
        if ($name === 'DB') {
            // no cloning of database object,
            // we just need the original reference, not original state
            return self::$globals['DB'];
        }
        if (isset(self::$globals[$name])) {
            if (is_object(self::$globals[$name])) {
                $return = clone(self::$globals[$name]);
                return $return;
            } else {
                return self::$globals[$name];
            }
        }
        return null;
    }
public static function get_global_backup($name) {
        if ($name === 'DB') {
            // no cloning of database object,
            // we just need the original reference, not original state
            return self::$globals['DB'];
        }
        if (isset(self::$globals[$name])) {
            if (is_object(self::$globals[$name])) {
                $return = clone(self::$globals[$name]);
                return $return;
            } else {
                return self::$globals[$name];
            }
        }
        return null;
    }
public static function get_global_backup ( $ name ) { if ( $ name === 'DB' ) { // no cloning of database object, // we just need the original reference, not original state return self :: $ globals [ 'DB' ] ; } if ( isset ( self :: $ globals [ $ name ] ) ) { if ( is_object ( self :: $ globals [ $ name ] ) ) { $ return = clone ( self :: $ globals [ $ name ] ) ; return $ return ; } else { return self :: $ globals [ $ name ] ; } } return null ; }
Returns original state of global variable.
@static
@param string $name
@return mixed
Returns original state of global variable .