API - XOOPS 2.5.11 Beta 2
By monxoops.fr
Session Class Reference
Inheritance diagram for Session:
Collaboration diagram for Session:

Public Member Functions

 init ()
 
 set ($name, $value)
 
 get ($name, $default=false)
 
 del ($name)
 
 destroy ()
 
- Public Member Functions inherited from AbstractHelper
 __construct ($dirname=null)
 
 init ()
 
 dirname ()
 
 setDebug ($bool=true)
 
 addLog ($log)
 

Protected Member Functions

 prefix ($name)
 
- Protected Member Functions inherited from AbstractHelper
 serializeForHelperLog ($value)
 

Protected Attributes

 $prefix
 
- Protected Attributes inherited from AbstractHelper
 $dirname
 
 $module
 
 $debug
 

Member Function Documentation

◆ del()

del (   $name)

Deletes a named session variable respecting our module prefix

Parameters
string$namename of variable
Returns
void
Here is the call graph for this function:

◆ destroy()

destroy ( )

Delete all session variable starting with our module prefix

Returns
void
Here is the call graph for this function:

◆ get()

get (   $name,
  $default = false 
)

Fetch a named session variable respecting our module prefix

Parameters
string$namename of variable
mixed$defaultdefault value to return if config $name is not set
Returns
mixed $value value of session variable or false if not set
Here is the call graph for this function:

◆ init()

init ( )

Initialize parent::__construct calls this after verifying module object.

Returns
void

Reimplemented from AbstractHelper.

Here is the call graph for this function:

◆ prefix()

prefix (   $name)
protected

Add our module prefix to a name

Parameters
string$namename to prefix
Returns
string module prefixed name
Here is the call graph for this function:
Here is the caller graph for this function:

◆ set()

set (   $name,
  $value 
)

Sets a named session variable respecting our module prefix

Parameters
string$namename of variable
mixed$valuevalue of variable
Returns
void
Here is the call graph for this function:

Field Documentation

◆ $prefix

$prefix
protected

The documentation for this class was generated from the following file: