eZPublishCommunityProject  2013.9
eZ\Bundle\EzPublishCoreBundle\ApiLoader\LegacyStorageEngineFactory Class Reference

Public Member Functions

 __construct (ContainerInterface $container)
 
 buildLegacyEngine (EzcDbHandler $dbhandler, $deferTypeUpdate)
 Builds the Legacy Storage Engine. More...
 
 registerFieldType ($fieldTypeServiceId, $fieldTypeAlias)
 Registers an eZ Publish field type. More...
 
 registerFieldTypeConverter ($typeIdentifier, $className)
 Registers a field type converter as expected in legacy storage engine. More...
 

Protected Attributes

 $container
 
 $converters = array()
 
 $fieldTypes = array()
 

Constructor & Destructor Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\LegacyStorageEngineFactory::__construct ( ContainerInterface  $container)

Member Function Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\LegacyStorageEngineFactory::buildLegacyEngine ( EzcDbHandler  $dbhandler,
  $deferTypeUpdate 
)

Builds the Legacy Storage Engine.

Parameters
\eZ\Publish\Core\Persistence\Legacy\EzcDbHandler$dbhandler
boolean$deferTypeUpdate
Returns
eZ\Bundle\EzPublishCoreBundle\ApiLoader\LegacyStorageEngineFactory::registerFieldType (   $fieldTypeServiceId,
  $fieldTypeAlias 
)

Registers an eZ Publish field type.

Field types are being registered as a closure so that they will be lazy loaded.

Parameters
string$fieldTypeServiceIdThe field type service Id
string$fieldTypeAliasThe field type alias (e.g. "ezstring")
Todo:
Refactor since it seems to duplicate RepositoryFactory::registerFieldType()
eZ\Bundle\EzPublishCoreBundle\ApiLoader\LegacyStorageEngineFactory::registerFieldTypeConverter (   $typeIdentifier,
  $className 
)

Registers a field type converter as expected in legacy storage engine.

$className must implement eZ interface.

Parameters
string$typeIdentifierField type identifier the converter will be used for
string$classNameFQN of the converter class

Member Data Documentation

eZ\Bundle\EzPublishCoreBundle\ApiLoader\LegacyStorageEngineFactory::$container
protected
eZ\Bundle\EzPublishCoreBundle\ApiLoader\LegacyStorageEngineFactory::$converters = array()
protected
eZ\Bundle\EzPublishCoreBundle\ApiLoader\LegacyStorageEngineFactory::$fieldTypes = array()
protected

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