Fully Qualified Name: | Zend\Session\SaveHandler\MongoDBOptions |
Extends: | AbstractOptions |
MongoDB session save handler Options
{@inheritdoc}
Parameter Name | Type | Description |
---|---|---|
$options |
Returns:
Get a configuration property
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: mixed
Test if a configuration property is null
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: bool
Override AbstractOptions::__set
Validates value if save options are being set.
Parameter Name | Type | Description |
---|---|---|
$key | string | |
$value | mixed |
Returns:
Set a configuration property to NULL
Parameter Name | Type | Description |
---|---|---|
$key | string |
Returns: void
Get collection name
Returns: string
Get data field
Returns: string
Get database name
Returns: string
Get lifetime Field
Returns: string
Get modified Field
Returns: string
Get name field
Returns: string
Get save options
Returns: string
Set collection name
Parameter Name | Type | Description |
---|---|---|
$collection | string |
Returns: \MongoDBOptions
Set data field
Parameter Name | Type | Description |
---|---|---|
$dataField | string |
Returns: \MongoDBOptions
Set database name
Parameter Name | Type | Description |
---|---|---|
$database | string |
Returns: \MongoDBOptions
Set one or more configuration properties
Parameter Name | Type | Description |
---|---|---|
$options | array|\Traversable|\AbstractOptions |
Returns: \AbstractOptions Provides fluent interface
Set lifetime field
Parameter Name | Type | Description |
---|---|---|
$lifetimeField | string |
Returns: \MongoDBOptions
Set Modified Field
Parameter Name | Type | Description |
---|---|---|
$modifiedField | string |
Returns: \MongoDBOptions
Set name field
Parameter Name | Type | Description |
---|---|---|
$nameField | string |
Returns: \MongoDBOptions
Set save options
Parameter Name | Type | Description |
---|---|---|
$saveOptions | array |
Returns: \MongoDBOptions
Enable expireAfterSeconds index.
Parameter Name | Type | Description |
---|---|---|
$useExpireAfterSecondsIndex | bool |
Returns:
Cast to array
Returns: array
Returns: bool