MetadataBag
class MetadataBag implements SessionBagInterface
Metadata container.
Adds metadata to the session.
Constants
CREATED |
|
UPDATED |
|
LIFETIME |
|
Methods
__construct(string $storageKey = '_sf2_meta', int $updateThreshold)
Constructor.
initialize(array $array)
Initializes the Bag.
int
getLifetime()
Gets the lifetime that the session cookie was set with.
stampNew(int $lifetime = null)
Stamps a new session's metadata.
string
getStorageKey()
Gets the storage key for this bag.
int
getCreated()
Gets the created timestamp metadata.
int
getLastUsed()
Gets the last used metadata.
mixed
clear()
Clears out data from bag.
string
getName()
Gets this bag's name.
setName(string $name)
Sets name.
Details
at line line 62
__construct(string $storageKey = '_sf2_meta', int $updateThreshold)
Constructor.
at line line 71
initialize(array $array)
Initializes the Bag.
at line line 92
int
getLifetime()
Gets the lifetime that the session cookie was set with.
at line line 105
stampNew(int $lifetime = null)
Stamps a new session's metadata.
at line line 113
string
getStorageKey()
Gets the storage key for this bag.
at line line 123
int
getCreated()
Gets the created timestamp metadata.
at line line 133
int
getLastUsed()
Gets the last used metadata.
at line line 141
mixed
clear()
Clears out data from bag.
at line line 149
string
getName()
Gets this bag's name.
at line line 159
setName(string $name)
Sets name.