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 ( name  )  [inherited]

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

Parameters:
string $name The 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 ( name  )  [inherited]

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

Parameters:
string $name variable name to check
Returns:
bool
See also:
check

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

__set ( name,
val 
) [inherited]

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

Parameters:
string $name The variable name
mixed $val The variable value
See also:
set

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

__unset ( name  )  [inherited]

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

Parameters:
string $name Variable name to delete
See also:
del

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

afterInit (  )  [protected]

Start the session

Reimplemented from object.

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

beforeInit (  )  [protected, inherited]

Call just before the configuration initialisation

Reimplemented in form_file.

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

check ( prm  ) 

check if a variable is set

Parameters:
string|array $prm Array parameter:

  • string name: variable name
  • string nameSpace: variable name space
Returns:
bool

Reimplemented from session_abstract.

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

clear ( nameSpace = true  ) 

Clear all the session variables and start a new session

Parameters:
string|true|null $nameSpace If string will clear only the name space, if true will clear the current name space

Reimplemented from session_abstract.

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

del ( prm  )  [abstract, inherited]

Delete a session variable

Parameters:
string|array $prm Array parameter:

  • string name: variable name
  • string nameSpace: variable name space
del ( prm,
autoPrefix = true 
)

Delete a session variable

Parameters:
string|array $prm Array parameter:

  • string name: variable name
  • string nameSpace: variable name space
bool $autoPrefix

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

get ( prm  ) 

Get a session variable

Parameters:
string|array $prm Array parameter:

  • string name: variable name
  • string nameSpace: variable name space
  • bool serialize: If true, the variable will be unserialize
Returns:
mixed The variable or null if it doesn't exists

Reimplemented from session_abstract.

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

getAll (  ) 

Get all session variables

Returns:
array

Reimplemented from session_abstract.

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

getAttr ( name  )  [inherited]

Get an attribute

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

Reimplemented in response_proxy.

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

getCfg (  )  [inherited]

Get the configuration object

Returns:
config

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

getNameSpace (  )  [inherited]

Get the current name space

Returns:
string

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

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 ( name  )  [private]

Prefix the session variable name and add the namespace

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

set ( array $  prm  ) 

Set a session variable

Parameters:
array $prm Array parameter:

  • string name: variable name
  • mixed val: variable value
  • string nameSpace: variable name space
  • bool serialize: If true, the variable will be unserialize

Reimplemented from session_abstract.

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

setAttr ( name,
value 
) [inherited]

Set an attribute

Parameters:
string $name Attribute name
mixed $value Attribute value

Reimplemented in response_proxy.

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

setNameSpace ( nameSpace  )  [inherited]

Set the name space to use

Parameters:
string $nameSpace

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

setNameSpaceInArray ( array $  prm  )  [protected, inherited]

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 [protected, inherited]

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


The documentation for this class was generated from the following file:
 All Data Structures Files Functions Variables Enumerations
Generated on Tue May 8 2012 16:02:25 for nyroFwk by doxygen 1.7.1