eZPublishCommunityProject  2013.6
eZ\Publish\Core\FieldType\StorageGateway Class Reference

Abstract base class for storage gateways. More...

+ Inheritance diagram for eZ\Publish\Core\FieldType\StorageGateway:

Public Member Functions

 setConnection ($connection)
 Sets the data storage connection to use. More...
 

Detailed Description

Abstract base class for storage gateways.

This base class must be extended by storage gateways to be used with a eZ based storage implementation.

The setConnection() method is called by the GatewayBasedStorage to set the connection from the current persistence context.

Member Function Documentation

eZ\Publish\Core\FieldType\StorageGateway::setConnection (   $connection)
abstract

Sets the data storage connection to use.

Allows injection of the data storage connection to be used from external source. This can be a database connection resource or something else to define the storage, depending on the gateway implementation.

Parameters
mixed$connection
Returns
void

The documentation for this class was generated from the following file: