[ Index ] |
PHP Cross Reference of phpBB-3.1.12-deutsch |
[Source view] [Print] [Project Stats]
(no description)
File Size: | 434 lines (13 kb) |
Included or required: | 0 times |
Referenced: | 0 times |
Includes or requires: | 0 files |
NativeSessionStorage:: (18 methods):
__construct()
getSaveHandler()
start()
getId()
setId()
getName()
setName()
regenerate()
save()
clear()
registerBag()
getBag()
setMetadataBag()
getMetadataBag()
isStarted()
setOptions()
setSaveHandler()
loadSession()
Class: NativeSessionStorage - X-Ref
This provides a base class for session attribute storage.__construct(array $options = array() X-Ref |
Constructor. Depending on how you want the storage driver to behave you probably want to override this constructor entirely. List of options for $options array with their defaults. param: array $options Session configuration options. param: AbstractProxy|NativeSessionHandler|\SessionHandlerInterface|null $handler param: MetadataBag $metaBag MetadataBag. |
getSaveHandler() X-Ref |
Gets the save handler instance. return: AbstractProxy |
start() X-Ref |
{@inheritdoc} |
getId() X-Ref |
{@inheritdoc} |
setId($id) X-Ref |
{@inheritdoc} |
getName() X-Ref |
{@inheritdoc} |
setName($name) X-Ref |
{@inheritdoc} |
regenerate($destroy = false, $lifetime = null) X-Ref |
{@inheritdoc} |
save() X-Ref |
{@inheritdoc} |
clear() X-Ref |
{@inheritdoc} |
registerBag(SessionBagInterface $bag) X-Ref |
{@inheritdoc} |
getBag($name) X-Ref |
{@inheritdoc} |
setMetadataBag(MetadataBag $metaBag = null) X-Ref |
Sets the MetadataBag. param: MetadataBag $metaBag |
getMetadataBag() X-Ref |
Gets the MetadataBag. return: MetadataBag |
isStarted() X-Ref |
{@inheritdoc} |
setOptions(array $options) X-Ref |
Sets session.* ini variables. For convenience we omit 'session.' from the beginning of the keys. Explicitly ignores other ini keys. param: array $options Session ini directives array(key => value). |
setSaveHandler($saveHandler = null) X-Ref |
Registers session save handler as a PHP session handler. To use internal PHP session save handlers, override this method using ini_set with session.save_handler and session.save_path e.g. ini_set('session.save_handler', 'files'); ini_set('session.save_path', '/tmp'); or pass in a NativeSessionHandler instance which configures session.save_handler in the constructor, for a template see NativeFileSessionHandler or use handlers in composer package drak/native-session param: AbstractProxy|NativeSessionHandler|\SessionHandlerInterface|null $saveHandler |
loadSession(array &$session = null) X-Ref |
Load the session with attributes. After starting the session, PHP retrieves the session from whatever handlers are set to (either PHP's internal, or a custom save handler set with session_set_save_handler()). PHP takes the return value from the read() handler, unserializes it and populates $_SESSION with the result automatically. param: array|null $session |
Generated: Thu Jan 11 00:25:41 2018 | Cross-referenced by PHPXref 0.7.1 |