PHP Class Pop\Web\Session

Author: Nick Sagona, III ([email protected])
Inheritance: implements ArrayAccess
Mostrar archivo Open project: nicksagona/PopPHP Class Usage Examples

Public Methods

Method Description
__get ( string $name ) : mixed Get method to return the value of the $_SESSION global variable.
__isset ( string $name ) : boolean Return the isset value of the $_SESSION global variable.
__set ( string $name, mixed $value ) : void Set a property in the session object that is linked to the $_SESSION global variable.
__unset ( string $name ) : void Unset the $_SESSION global variable.
getId ( ) : string Return the current the session id.
getInstance ( ) : Session Determine whether or not an instance of the session object exists already, and instantiate the object if it does not exist.
kill ( ) : void Destroy the session.
regenerateId ( ) : void Regenerate the session id.

Private Methods

Method Description
__construct ( ) : Session Constructor

Method Details

__get() public method

Get method to return the value of the $_SESSION global variable.
public __get ( string $name ) : mixed
$name string
return mixed

__isset() public method

Return the isset value of the $_SESSION global variable.
public __isset ( string $name ) : boolean
$name string
return boolean

__set() public method

Set a property in the session object that is linked to the $_SESSION global variable.
public __set ( string $name, mixed $value ) : void
$name string
$value mixed
return void

__unset() public method

Unset the $_SESSION global variable.
public __unset ( string $name ) : void
$name string
return void

getId() public method

Return the current the session id.
public getId ( ) : string
return string

getInstance() public static method

Determine whether or not an instance of the session object exists already, and instantiate the object if it does not exist.
public static getInstance ( ) : Session
return Session

kill() public method

Destroy the session.
public kill ( ) : void
return void

regenerateId() public method

Regenerate the session id.
public regenerateId ( ) : void
return void