nyroFwk  0.2
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
session_php Class Reference
Inheritance diagram for session_php:
session_abstract object

Public Member Functions

 get ($prm)
 
 getAll ()
 
 set (array $prm)
 
 check ($prm)
 
 del ($prm, $autoPrefix=true)
 
 clear ($nameSpace=true)
 
 getSessIdForce ()
 
 getNameSpace ()
 
 setNameSpace ($nameSpace)
 
 del ($prm)
 
 __get ($name)
 
 __set ($name, $val)
 
 __isset ($name)
 
 __unset ($name)
 
 getAttr ($name)
 
 setAttr ($name, $value)
 
 getCfg ()
 

Protected Member Functions

 afterInit ()
 
 setNameSpaceInArray (array $prm)
 
 beforeInit ()
 

Protected Attributes

 $cfg
 

Private Member Functions

 prefixNameSpace ($name)
 

Detailed Description

Manage session variable Singleton

Definition at line 11 of file php.class.php.

Member Function Documentation

◆ __get()

__get (   $name)
inherited

Get a session variable, with a convenient way $session->name

Parameters
string$nameThe variable name
Returns
mixed The variable or null if it doesn't exists
See also
get

Definition at line 102 of file session/abstract.class.php.

◆ __isset()

__isset (   $name)
inherited

Check if a session variable is set, with a convenient way isset($session->name)

Parameters
string$namevariable name to check
Returns
bool
See also
check

Definition at line 124 of file session/abstract.class.php.

◆ __set()

__set (   $name,
  $val 
)
inherited

Set a variable, with a convenient way $session->name = $value

Parameters
string$nameThe variable name
mixed$valThe variable value
See also
set

Definition at line 113 of file session/abstract.class.php.

◆ __unset()

__unset (   $name)
inherited

Delete a variable, with a convenient way unset($session->name)

Parameters
string$nameVariable name to delete
See also
del

Definition at line 134 of file session/abstract.class.php.

◆ afterInit()

afterInit ( )
protected

Start the session

Definition at line 16 of file php.class.php.

◆ beforeInit()

beforeInit ( )
protectedinherited

Call just before the configuration initialisation

Definition at line 35 of file object.class.php.

◆ check()

check (   $prm)

Definition at line 69 of file php.class.php.

◆ clear()

clear (   $nameSpace = true)

Definition at line 102 of file php.class.php.

◆ del() [1/2]

del (   $prm)
abstractinherited

Delete a session variable

Parameters
string | array$prmArray parameter:
  • string name: variable name
  • string nameSpace: variable name space

◆ del() [2/2]

del (   $prm,
  $autoPrefix = true 
)

Delete a session variable

Parameters
string | array$prmArray parameter:
  • string name: variable name
  • string nameSpace: variable name space
bool$autoPrefix

Definition at line 90 of file php.class.php.

◆ get()

get (   $prm)

Definition at line 29 of file php.class.php.

◆ getAll()

getAll ( )

Definition at line 48 of file php.class.php.

◆ getAttr()

getAttr (   $name)
inherited

Get an attribute

Parameters
string$nameAttribute name
Returns
mixed|null The attribute or null if not set

Definition at line 48 of file object.class.php.

◆ getCfg()

getCfg ( )
inherited

Get the configuration object

Returns
config

Definition at line 67 of file object.class.php.

◆ getNameSpace()

getNameSpace ( )
inherited

Get the current name space

Returns
string

Definition at line 17 of file session/abstract.class.php.

◆ getSessIdForce()

getSessIdForce ( )

Get the sessId Name that should be sent trhough GET or POST values.

Returns
string

Definition at line 122 of file php.class.php.

◆ prefixNameSpace()

prefixNameSpace (   $name)
private

Prefix the session variable name and add the namespace

Definition at line 129 of file php.class.php.

◆ set()

set ( array  $prm)

Definition at line 59 of file php.class.php.

◆ setAttr()

setAttr (   $name,
  $value 
)
inherited

Set an attribute

Parameters
string$nameAttribute name
mixed$valueAttribute value

Definition at line 58 of file object.class.php.

◆ setNameSpace()

setNameSpace (   $nameSpace)
inherited

Set the name space to use

Parameters
string$nameSpace

Definition at line 26 of file session/abstract.class.php.

◆ setNameSpaceInArray()

setNameSpaceInArray ( array  $prm)
protectedinherited

Set the name space if set in the array

Parameters
array$prm

Definition at line 35 of file session/abstract.class.php.

Field Documentation

◆ $cfg

$cfg
protectedinherited

Definition at line 17 of file object.class.php.


The documentation for this class was generated from the following file:
Generated on Sun Oct 15 2017 22:25:21 for nyroFwk by doxygen 1.8.13