[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/src/Session/Storage/ -> JoomlaStorage.php (summary)

Joomla! Content Management System

Copyright: (C) 2005 Open Source Matters, Inc.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 302 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

JoomlaStorage:: (11 methods):
  __construct()
  all()
  clear()
  close()
  get()
  has()
  remove()
  set()
  setCookieParams()
  setOptions()
  start()


Class: JoomlaStorage  - X-Ref

Service provider for the application's session dependency

__construct(Input $input, \SessionHandlerInterface $handler = null, array $options = [])   X-Ref
Constructor

param: Input                     $input    Input object
param: \SessionHandlerInterface  $handler  Session save handler
param: array                     $options  Session options

all()   X-Ref
Retrieves all variables from the session store

return: array

clear()   X-Ref
Clears all variables from the session store

return: void

close()   X-Ref
Writes session data and ends session

return: void

get(string $name, $default)   X-Ref
Get data from the session store

param: string  $name     Name of a variable
param: mixed   $default  Default value of a variable if not set
return: mixed  Value of a variable

has(string $name)   X-Ref
Check whether data exists in the session store

param: string  $name  Name of variable
return: boolean  True if the variable exists

remove(string $name)   X-Ref
Unset a variable from the session store

param: string  $name  Name of variable
return: mixed  The value from session or NULL if not set

set(string $name, $value = null)   X-Ref
Set data into the session store

param: string  $name   Name of a variable.
param: mixed   $value  Value of a variable.
return: mixed  Old value of a variable.

setCookieParams()   X-Ref
Set session cookie parameters

return: void

setOptions(array $options)   X-Ref
Sets session options

param: array  $options  Session ini directives array(key => value).
return: $this

start()   X-Ref
Start a session

return: void



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer