MetadataBag::setName()

setName(string $name) Sets name. Parameters string $name

MetadataBag::initialize()

initialize(array $array) Initializes the Bag. Parameters array $array

MetadataBag::getStorageKey()

string getStorageKey() Gets the storage key for this bag. Return Value string

MetadataBag::getName()

string getName() Gets this bag's name. Return Value string

MetadataBag::getLifetime()

int getLifetime() Gets the lifetime that the session cookie was set with. Return Value int

MetadataBag::getLastUsed()

int getLastUsed() Gets the last used metadata. Return Value int Unix timestamp

MetadataBag::getCreated()

int getCreated() Gets the created timestamp metadata. Return Value int Unix timestamp

MetadataBag::clear()

mixed clear() Clears out data from bag. Return Value mixed Whatever data was contained

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 thi

MetadataAwareInterface::setMetadata()

setMetadata(string $key, mixed $value, string $domain = 'messages') Adds metadata to a message domain. Parameters string $key The key mixed $value The value string $domain The domain name