PHP Class Pop\Web\Session

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

Méthodes publiques

Méthode 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

Méthode Description
__construct ( ) : Session Constructor

Method Details

__get() public méthode

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

__isset() public méthode

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

__set() public méthode

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
Résultat void

__unset() public méthode

Unset the $_SESSION global variable.
public __unset ( string $name ) : void
$name string
Résultat void

getId() public méthode

Return the current the session id.
public getId ( ) : string
Résultat string

getInstance() public static méthode

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
Résultat Session

kill() public méthode

Destroy the session.
public kill ( ) : void
Résultat void

regenerateId() public méthode

Regenerate the session id.
public regenerateId ( ) : void
Résultat void