Resource for setting session options

uses
category Zend
package Zend_Application
subpackage Resource
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License
inherited_from \Zend_Application_Resource_ResourceAbstract

 Methods

Create a instance with options

__construct(mixed $options = null
Inherited

Must take an optional single argument, $options.

inherited_from \Zend_Application_Resource_Resource::__construct()

Parameters

$options

mixed

Retrieve the bootstrap to which the resource is attached

getBootstrap() : null | \Zend_Application_Bootstrap_Bootstrapper
Inherited
inherited_from \Zend_Application_Resource_Resource::getBootstrap()

Returns

null\Zend_Application_Bootstrap_Bootstrapper

Retrieve resource options

getOptions() : array
Inherited
inherited_from \Zend_Application_Resource_Resource::getOptions()

Returns

array

Get session save handler

getSaveHandler() : \Zend_Session_SaveHandler_Interface

Exceptions

\Zend_Application_Resource_Exception

Returns

\Zend_Session_SaveHandler_Interface

Defined by Zend_Application_Resource_Resource

init() : void

Merge options recursively

mergeOptions(array $array1, mixed $array2 = null) : array
Inherited

Parameters

$array1

array

$array2

mixed

Returns

array

Set the bootstrap to which the resource is attached

setBootstrap(\Zend_Application_Bootstrap_Bootstrapper $bootstrap) : \Zend_Application_Resource_Resource
Inherited
inherited_from \Zend_Application_Resource_Resource::setBootstrap()

Parameters

$bootstrap

\Zend_Application_Bootstrap_Bootstrapper

Returns

\Zend_Application_Resource_Resource

Set options from array

setOptions(array $options) : \Zend_Application_Resource_ResourceAbstract
Inherited
inherited_from \Zend_Application_Resource_Resource::setOptions()

Parameters

$options

array

Configuration for resource

Returns

\Zend_Application_Resource_ResourceAbstract

Set session save handler

setSaveHandler(array|string|\Zend_Session_SaveHandler_Interface $saveHandler) : \Zend_Application_Resource_Session

Parameters

$saveHandler

arraystring\Zend_Session_SaveHandler_Interface

Exceptions

\Zend_Application_Resource_Exception When $saveHandler is not a valid save handler

Returns

\Zend_Application_Resource_Session

_hasSaveHandler()

_hasSaveHandler() : boolean

Returns

boolean

 Properties

 

Parent bootstrap

$_bootstrap : \Zend_Application_Bootstrap_Bootstrapper

Default

 

Options for the resource

$_options : array

Default

array()
 

Save handler to use

$_saveHandler : \Zend_Session_SaveHandler_Interface

Default

null
 

Option keys to skip when calling setOptions()

$_skipOptions : array

Default

array('options', 'config')