session_support extends facade
Facade for local_middag\framework\support\moodle\session_support.
Tags
Table of Contents
Methods
- confirm_sesskey() : bool
- destroy_user_sessions() : void
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- get_id() : string
- get_wants_url() : string|null
- require_sesskey() : void
- sesskey() : string
- set_user() : void
- unset_wants_url() : void
Methods
confirm_sesskey()
public
static confirm_sesskey([string|null $sesskey = = 'null' ]) : bool
Parameters
- $sesskey : string|null = = 'null'
Return values
booldestroy_user_sessions()
public
static destroy_user_sessions(int $userid[, string $except = = '\'\'' ]) : void
Parameters
- $userid : int
- $except : string = = '\'\''
get_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringget_id()
public
static get_id() : string
Return values
stringget_wants_url()
public
static get_wants_url() : string|null
Return values
string|nullrequire_sesskey()
public
static require_sesskey() : void
sesskey()
public
static sesskey() : string
Return values
stringset_user()
public
static set_user(stdClass $user) : void
Parameters
- $user : stdClass
unset_wants_url()
public
static unset_wants_url() : void