XOOPS  2.6.0
Xmf\Module\Session Class Reference
Inheritance diagram for Xmf\Module\Session:
Inheritance graph

Public Member Functions

 del ($name)
 
 destroy ()
 
 get ($name)
 
 init ()
 
 set ($name, $value)
 
- Public Member Functions inherited from Xmf\Module\Helper\AbstractHelper
 __construct ($module=null)
 
 addLog ($log)
 
 init ()
 
 setDebug ($bool=true)
 

Private Member Functions

 prefix ($name)
 

Private Attributes

 $prefix
 

Additional Inherited Members

- Protected Attributes inherited from Xmf\Module\Helper\AbstractHelper
 $debug
 
 $module
 

Detailed Description

Definition at line 32 of file Session.php.

Member Function Documentation

Xmf\Module\Session::del (   $name)

Deletes a named session variable respecting our module prefix

Parameters
string$namename of variable
Returns
void

Definition at line 101 of file Session.php.

References $_SESSION, $name, and Xmf\Module\Session\prefix().

Here is the call graph for this function:

Xmf\Module\Session::destroy ( )

Delete all session variable starting with our module prefix

Returns
void

Definition at line 113 of file Session.php.

References $_SESSION, and Xmf\Module\Session\prefix().

Here is the call graph for this function:

Xmf\Module\Session::get (   $name)

Fetch a named session variable respecting our module prefix

Parameters
string$namename of variable
Returns
mixed $value value of session variable or false if not set

Definition at line 84 of file Session.php.

References $_SESSION, $name, and Xmf\Module\Session\prefix().

Here is the call graph for this function:

Xmf\Module\Session::init ( )

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

Returns
void

Definition at line 44 of file Session.php.

References Xmf\Module\Session\prefix().

Here is the call graph for this function:

Xmf\Module\Session::prefix (   $name)
private

Add our module prefix to a name

Parameters
string$namename to prefix
Returns
string module prefixed name

Definition at line 56 of file Session.php.

References $name.

Referenced by Xmf\Module\Session\del(), Xmf\Module\Session\destroy(), Xmf\Module\Session\get(), Xmf\Module\Session\init(), and Xmf\Module\Session\set().

Here is the caller graph for this function:

Xmf\Module\Session::set (   $name,
  $value 
)

Sets a named session variable respecting our module prefix

Parameters
string$namename of variable
mixed$valuevalue of variable
Returns
void

Definition at line 71 of file Session.php.

References $_SESSION, $name, and Xmf\Module\Session\prefix().

Here is the call graph for this function:

Member Data Documentation

Xmf\Module\Session::$prefix
private

Definition at line 37 of file Session.php.


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