src/Core/LTIX.php
public static function wrapped_session_all($session_object)
    {
        global $TSUGI_SESSION_OBJECT;
        if ( $session_object === null && isset($TSUGI_SESSION_OBJECT) ) $session_object = $TSUGI_SESSION_OBJECT;
        if ( is_object($session_object) ) {
            return $session_object->all();
        }
        if ( is_array($session_object) ) {
            $retval = array();
            $retval = array_merge($retval,$session_object); // Make a copy
            return $retval;
        }
        if ( ! isset($_SESSION) ) return array();
        $retval = array();
        $retval = array_merge($retval, $_SESSION);
        return $retval;
    }
public static function wrapped_session_all($session_object)
    {
        global $TSUGI_SESSION_OBJECT;
        if ( $session_object === null && isset($TSUGI_SESSION_OBJECT) ) $session_object = $TSUGI_SESSION_OBJECT;
        if ( is_object($session_object) ) {
            return $session_object->all();
        }
        if ( is_array($session_object) ) {
            $retval = array();
            $retval = array_merge($retval,$session_object); // Make a copy
            return $retval;
        }
        if ( ! isset($_SESSION) ) return array();
        $retval = array();
        $retval = array_merge($retval, $_SESSION);
        return $retval;
    }
public static function wrapped_session_all ( $ session_object ) { global $ TSUGI_SESSION_OBJECT ; if ( $ session_object === null && isset ( $ TSUGI_SESSION_OBJECT ) ) $ session_object = $ TSUGI_SESSION_OBJECT ; if ( is_object ( $ session_object ) ) { return $ session_object -> all ( ) ; } if ( is_array ( $ session_object ) ) { $ retval = array ( ) ; $ retval = array_merge ( $ retval , $ session_object ) ; // Make a copy return $ retval ; } if ( ! isset ( $ _SESSION ) ) return array ( ) ; $ retval = array ( ) ; $ retval = array_merge ( $ retval , $ _SESSION ) ; return $ retval ; }
Get all session values
Get all session values