[ Index ]

PHP Cross Reference of vtigercrm-6.1.0

title

Body

[close]

/libraries/HTTP_Session/Session/Container/ -> Memcache.php (summary)

Database container for session data Memcache database container

Author: Chad Wagner <[email protected]>
Author: Torsten Roehr <[email protected]>
Copyright: 1997-2007 The PHP Group
License: http://www.php.net/license/3_0.txt PHP License 3.0
Version: CVS: $Id: Memcache.php,v 1.3 2007/07/14 12:11:55 troehr Exp $
File Size: 202 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

HTTP_Session_Container_Memcache:: (9 methods):
  HTTP_Session_Container_Memcache()
  _connect()
  _setDefaults()
  open()
  close()
  read()
  write()
  destroy()
  gc()


Class: HTTP_Session_Container_Memcache  - X-Ref

Database container for session data

HTTP_Session_Container_Memcache($options)   X-Ref
Constructor method

$options is an array with the options.<br>
The options are:
<ul>
<li>'memcache' - Memcache object
<li>'prefix' - Key prefix, default is 'sessiondata:'</li>
</ul>

param: array $options Options
return: object

_connect($mc)   X-Ref
Connect to database by using the given DSN string

param: string $mc Memcache object
return: mixed   Object on error, otherwise bool

_setDefaults()   X-Ref
Set some default options

return: void

open($save_path, $session_name)   X-Ref
Establish connection to a database

param: string $save_path    Save path
param: string $session_name Session name
return: mixed  Object on error, otherwise bool

close()   X-Ref
Free resources

return: bool

read($id)   X-Ref
Read session data

param: string $id Session id
return: mixed

write($id, $data)   X-Ref
Write session data

param: string $id   Session id
param: mixed  $data Session data
return: bool

destroy($id)   X-Ref
Destroy session data

param: string $id Session id
return: bool

gc($maxlifetime)   X-Ref
Garbage collection

param: int $maxlifetime Maximum lifetime
return: bool



Generated: Fri Nov 28 20:08:37 2014 Cross-referenced by PHPXref 0.7.1