Class ExtMongoDbResourceManager

Summary

Fully Qualified Name: Laminas\Cache\Storage\Adapter\ExtMongoDbResourceManager

Description

Resource manager for the ext-mongodb adapter.

If you are using ext-mongo, use the MongoDbResourceManager instead.

Methods

Name Description Defined By
getCollection() ExtMongoDbResourceManager
getConnectionOptions() ExtMongoDbResourceManager
getDatabase() ExtMongoDbResourceManager
getDriverOptions() ExtMongoDbResourceManager
getResource() Instantiate and return the Collection resource ExtMongoDbResourceManager
getServer() ExtMongoDbResourceManager
hasResource() Check if a resource exists ExtMongoDbResourceManager
setCollection() ExtMongoDbResourceManager
setConnectionOptions() ExtMongoDbResourceManager
setDatabase() ExtMongoDbResourceManager
setDriverOptions() ExtMongoDbResourceManager
setResource() Set a resource ExtMongoDbResourceManager
setServer() ExtMongoDbResourceManager

Method Details

getCollection()

Parameter Name Type Description
$id string

Returns: string

getConnectionOptions()

Parameter Name Type Description
$id string

Returns: array

getDatabase()

Parameter Name Type Description
$id string

Returns: string

getDriverOptions()

Parameter Name Type Description
$id string

Returns: array

getResource()

Instantiate and return the Collection resource

Parameter Name Type Description
$id string

Returns: \Collection

getServer()

Parameter Name Type Description
$id string

Returns: null|string

hasResource()

Check if a resource exists

Parameter Name Type Description
$id string

Returns: bool

setCollection()

Parameter Name Type Description
$id string
$collection string

Returns: void

setConnectionOptions()

Parameter Name Type Description
$id string
$connectionOptions array

Returns: void

setDatabase()

Parameter Name Type Description
$id string
$database string

Returns: void

setDriverOptions()

Parameter Name Type Description
$id string
$driverOptions array

Returns: void

setResource()

Set a resource

Parameter Name Type Description
$id string
$resource array|\Collection

Returns: self Provides a fluent interface

setServer()

Parameter Name Type Description
$id string
$server string

Returns: void

Top