xplo.re Medusa Core Framework 3.2
  • Namespace
  • Class
  • Tree
  • Deprecated
  • Event
  • Todo
  • Download

Namespaces

  • Core
    • Authentication
      • Auto
        • Driver
      • Driver
    • Cache
      • Driver
    • Charset
      • Driver
    • Configuration
      • Driver
    • Controller
    • Converter
      • Driver
    • Decoder
      • Driver
    • Encoder
      • Driver
    • Env
      • Authentication
      • Locale
      • Proxy
      • Server
        • HTTP
        • Redirect
        • X
    • Exception
    • Exchange
      • Driver
    • Fault
      • Formatter
        • Driver
      • Incident
        • Exception
      • Reporter
        • Driver
    • Field
    • Filter
      • Driver
    • Formatter
      • Driver
        • coreuimarkup
          • Token
    • Hash
    • Loader
    • Locale
    • Log
      • Driver
    • Module
      • Dependency
        • Requirement
          • Core
          • PHP
      • Linkage
        • Driver
    • PDF
    • Plugin
    • Query
      • Driver
    • Server
      • Driver
    • Session
      • Driver
    • Set
    • Storage
      • Driver
      • Field
        • Element
    • Stream
      • Driver
    • String
    • Translation
      • Driver
      • Language
        • Driver
    • Type
    • URI
      • Driver
    • Version
    • View
      • Driver
        • coreui
          • Control
            • Button
            • Table
          • Element
        • htmlbuilder
          • Tags
        • yui
          • Modules
  • None
  • PHP

Classes

  • files
  • sqlite
  • storage

Class storage

Storage session driver.

Core\Object implements Core\Chainable
Extended by Core\Set implements Core\Accessor
Extended by Core\Session
Extended by Core\Session\Driver\storage
Namespace: Core\Session\Driver
Package: Core\Session
Since: 3.0
Requires: PHP 5.3
Version: 1.0
Located at Session/Driver/storage.inc.php

Methods summary

protected
# __construct( Core\URI $uri )

Use auto-create factory to instantiate a session driver instance.

Use auto-create factory to instantiate a session driver instance.

Parameters

$uri
Driver configuration URI.

Since

3.0

Overrides

Core\Session::__construct
protected boolean
# _handleClose( )

Session close handler.

Session close handler.

Returns

boolean

Since

3.0
protected boolean
# _handleDestroy( string $id )

Session destroy handler.

Session destroy handler.

Parameters

$id
Session ID to destroy.

Returns

boolean

Throws

Core\Exception\Configuration
Cannot destroy session data without chained storage driver.

Since

3.0
protected boolean
# _handleGc( integer $lifetime )

Session garbage collector.

Session garbage collector.

Parameters

$lifetime
Lifetime in seconds of sessions to clear.

Returns

boolean

Throws

Core\Exception\Configuration
Cannot garbage collect session data without chained storage driver.

Since

3.0
protected boolean
# _handleOpen( $path, $name )

Session open handler.

Session open handler.

Returns

boolean

Since

3.0
protected string
# _handleRead( string $id )

Session read handler.

Session read handler.

Parameters

$id
Session ID to fetch.

Returns

string
Serialised session data.

Throws

Core\Exception\Configuration
Cannot fetch session data without chained storage driver.

Since

3.0
protected boolean
# _handleWrite( string $id, string $data )

Session write handler.

Session write handler.

Parameters

$id
Session ID to write data for.
$data
Serialised session data to store.

Returns

boolean

Throws

Core\Exception\Configuration
Cannot write session data without chained storage driver.

Since

3.0
protected
# _setHandler( )

Configures all session handler callbacks.

Configures all session handler callbacks.

Since

3.0
public integer|boolean
# chain( Core\Chainable $object, array $flags = null )

Connects another object to the current object. Usage depends on the actual class implementation; common examples are lazy configuration completion or layer expansions.

Connects another object to the current object. Usage depends on the actual class implementation; common examples are lazy configuration completion or layer expansions.

Parameters

$object
Object to chain to instance.
$flags

Optional array of additional chain flags. Usage depends on the actual chain implementation.

Returns

integer|boolean
Returns a non-zero value on success, otherwise false.

Throws

Core\Exception\InvalidArgument
Class of provided object is not supported.

Since

3.0

Overrides

Core\Object::chain

Methods inherited from Core\Session

__destruct(), _setParameters(), activate(), active(), activeInstance(), autocreate(), deactivate(), generateID(), getToken(), id(), name(), parameterID(), purge()

Methods inherited from Core\Set

__get(), __isset()

Methods inherited from Core\Object

__autocreateFactory(), __call(), __processParameters(), __toString(), attachMethod(), getValueForKey(), getValueForKeyPath(), getValueForUndefinedKey(), hash(), issetValueForKey(), setValueForKey(), setValueForKeyPath(), setValueForUndefinedKey(), uuid()

Constants summary

string AutochainParameter

List of automatically chained registry keys.

List of automatically chained registry keys.

Since

3.1
# 'autochain'
string DataParameter

Name of storage reference for session data.

Name of storage reference for session data.

Since

3.0
# 'data'

Constants inherited from Core\Session

CookieDomainParameter, CookieHTTPRestriction, CookieLifetimeParameter, CookieParameter, CookiePathParameter, CookieSecurity, GcLifetimeParameter, GcProbabilityParameter, IPSecurityParameter, LifetimeParameter, NameParameter, RefererCheckParameter, RequireCookie

Constants inherited from Core\Object

AnyParameterType, AutochainParameterType, AutocreateParameterType, BooleanParameterType, CharParameterType, EnumParameterType, IntegerParameterType, RealParameterType, StringParameterType, UserParameterType

Properties summary

protected $_v_driver

Reference to storage driver instance.

Reference to storage driver instance.

Since

3.0
#

Properties inherited from Core\Session

$_activeSession, $_v_parameters

Magic properties

public read-only Storage $driver

Chained storage driver instance.

Magic properties inherited from Core\Session

$parameters

Magic properties inherited from Core\Object

$hash, $uuid

xplo.re Medusa Core Framework 3.2 API documentation generated by ApiGen