[ Index ]
 

Code source de CakePHP 1.1.13.4450

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/cake/libs/ -> session.php (sommaire)

Session class for Cake. Cake abstracts the handling of sessions. There are several convenient methods to access session information. This class is the implementation of those methods. They are mostly used by the Session Component.

Copyright: Copyright 2005-2007, Cake Software Foundation, Inc.
License: http://www.opensource.org/licenses/mit-license.php The MIT License
Version: $Revision: 4409 $
Poids: 601 lignes (15 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

CakeSession:: (22 méthodes):
  __construct()
  checkSessionVar()
  delSessionVar()
  getError()
  getLastError()
  isValid()
  readSessionVar()
  returnSessionVars()
  writeSessionVar()
  __close()
  __destroy()
  destroyInvalid()
  __gc()
  __initSession()
  __checkValid()
  __open()
  __read()
  __regenerateId()
  renew()
  __sessionVarNames()
  __setError()
  __write()


Classe: CakeSession  - X-Ref

Session class for Cake.

Cake abstracts the handling of sessions. There are several convenient methods to access session information.
This class is the implementation of those methods. They are mostly used by the Session Component.

__construct($base = null, $start = true)   X-Ref
Constructor.

param: string $base The base path for the Session
param: boolean $start

checkSessionVar($name)   X-Ref
Returns true if given variable is set in session.

param: string $name Variable name to check for
return: boolean True if variable is there

delSessionVar($name)   X-Ref
Removes a variable from session.

param: string $name Session variable to remove
return: boolean Success

getError($errorNumber)   X-Ref
Return error description for given error number.

param: int $errorNumber
return: string Error as string

getLastError()   X-Ref
Returns last occurred error as a string, if any.

return: mixed Error description as a string, or false.

isValid()   X-Ref
Returns true if session is valid.

return: boolean

readSessionVar($name = null)   X-Ref
Returns given session variable, or all of them, if no parameters given.

param: mixed $name The name of the session variable
return: mixed The value of the session variable

returnSessionVars()   X-Ref
Returns all session variables.

return: mixed Full $_SESSION array, or false on error.

writeSessionVar($name, $value)   X-Ref
Writes value to given session variable name.

param: mixed $name
param: string $value
return: void

__close()   X-Ref
Method called on close of a database
session

return: boolean

__destroy($key)   X-Ref
Method called on the destruction of a
database session

param: integer $key
return: boolean

destroyInvalid()   X-Ref
Helper method to destroy invalid sessions.

return: void

__gc($expires)   X-Ref
Helper function called on gc for
database sessions

param: unknown_type $expires
return: boolean

__initSession()   X-Ref
Helper method to initialize a session, based on Cake core settings.

return: void

__checkValid()   X-Ref
Helper method to create a new session.

return: void

__open()   X-Ref
Method called on open of a database
sesson

return: boolean

__read($key)   X-Ref
Method used to read from a database
session

param: mixed $key The key of the value to read
return: mixed The value of the key or false if it does not exist

__regenerateId()   X-Ref
Helper method to restart a session.

return: void

renew()   X-Ref
Restarts this session.

return: void

__sessionVarNames($name)   X-Ref
Helper method to extract variable names from the session
variable

param: mixed $name Variable names as array or string.
return: string The expression to eval to get the value or false

__setError($errorNumber, $errorMessage)   X-Ref
Helper method to set an internal error message.

param: int $errorNumber Number of the error
param: string $errorMessage Description of the error
return: void

__write($key, $value)   X-Ref
Helper function called on write for database
sessions

param: mixed $key The name of the var
param: mixed $value The value of the var
return: boolean



Généré le : Sun Feb 25 19:27:47 2007 par Balluche grâce à PHPXref 0.7