OpenSencillo  2015.002
sessionManager Class Reference
+ Inheritance diagram for sessionManager:

Public Member Functions

 __construct ()
 sm_get ($name)
 sm_destroy ()

Private Attributes

 $i
 $smarray

Detailed Description

Definition at line 27 of file session.php.


Constructor & Destructor Documentation

Create new session or reload old session

Reimplemented in loginManager.

Definition at line 35 of file session.php.

        {
                session_start();
        }

Member Function Documentation

Session destroy

Definition at line 66 of file session.php.

        {
                session_destroy();
        }
sm_get ( name)

Get stored data from session

Parameters:
string$name
Returns:
mixed

Definition at line 45 of file session.php.

        {
                if(is_array($name))
                {
                        $this->i = 0;
                        $this->smarray = array();
                        while(sizeof($name)>$this->i)
                        {
                                $this->smarray[$this->i] = $_SESSION[$name[$this->i++]];
                        }
                        return $this->smarray;
                }
                else
                {
                        return $_SESSION[$name];
                }
        }

Field Documentation

$i [private]

Definition at line 29 of file session.php.

$smarray [private]

Definition at line 30 of file session.php.


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables