eZPublishCommunityProject  2013.5
eZ\Publish\Core\Persistence\Legacy\Handler Class Reference

The repository handler for the legacy storage engine. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Handler:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\Handler:

Public Member Functions

 __construct (EzcDbHandler $dbHandler, FieldTypeRegistry $fieldTypeRegistry, ConverterRegistry $converterRegistry, StorageRegistry $storageRegistry, TransformationProcessor $transformationProcessor, array $config=array())
 Creates a new repository handler. More...
 
 beginTransaction ()
 Begin transaction. More...
 
 commit ()
 Commit transaction. More...
 
 contentHandler ()
 
 contentLanguageHandler ()
 
 contentTypeHandler ()
 
 getFieldTypeRegistry ()
 Returns the field type registry. More...
 
 getFieldValueConverterRegistry ()
 Returns the field value converter registry. More...
 
 getStorageRegistry ()
 Returns the storage registry. More...
 
 locationHandler ()
 
 objectStateHandler ()
 
 rollback ()
 Rollback transaction. More...
 
 searchHandler ()
 
 sectionHandler ()
 
 trashHandler ()
 
 urlAliasHandler ()
 
 urlWildcardHandler ()
 
 userHandler ()
 

Protected Member Functions

 getContentGateway ()
 Returns a content gateway. More...
 
 getContentMapper ()
 Returns a content mapper. More...
 
 getContentTypeGateway ()
 Returns the content type gateway. More...
 
 getFieldHandler ()
 Returns a field handler. More...
 
 getLanguageCache ()
 Returns a Language cache. More...
 
 getLanguageMaskGenerator ()
 Returns a language mask generator. More...
 
 getLocationGateway ()
 Returns a location gateway. More...
 
 getLocationMapper ()
 Returns a location mapper. More...
 
 getObjectStateGateway ()
 Returns an object state gateway. More...
 
 getObjectStateMapper ()
 Returns an object state mapper. More...
 
 getSlugConverter ()
 Returns a slug converter. More...
 
 getStorageHandler ()
 Returns a storage handler. More...
 
 getTypeUpdateHandler ()
 Returns a Content Type update handler. More...
 
 getUrlAliasGateway ()
 Returns a UrlAlias gateway. More...
 
 getUrlAliasMapper ()
 Returns a UrlAlias mapper. More...
 
 getUrlWildcardGateway ()
 Returns a UrlWildcard gateway. More...
 
 getUrlWildcardMapper ()
 Returns a UrlWildcard mapper. More...
 

Protected Attributes

 $config
 
 $contentGateway
 
 $contentHandler
 
 $contentMapper
 
 $contentTypeGateway
 
 $contentTypeHandler
 
 $converterRegistry
 
 $dbHandler
 
 $fieldHandler
 
 $fieldTypeRegistry
 
 $languageCache
 
 $languageHandler
 
 $languageMaskGenerator
 
 $locationGateway
 
 $locationHandler
 
 $locationMapper
 
 $objectStateGateway
 
 $objectStateHandler
 
 $objectStateMapper
 
 $searchHandler
 
 $sectionHandler
 
 $storageHandler
 
 $storageRegistry
 
 $transformationProcessor
 
 $trashHandler
 
 $typeUpdateHandler
 
 $urlAliasGateway
 
 $urlAliasHandler
 
 $urlAliasMapper
 
 $urlWildcardGateway
 
 $urlWildcardHandler
 
 $urlWildcardMapper
 
 $userHandler
 

Detailed Description

The repository handler for the legacy storage engine.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Handler::__construct ( EzcDbHandler  $dbHandler,
FieldTypeRegistry  $fieldTypeRegistry,
ConverterRegistry  $converterRegistry,
StorageRegistry  $storageRegistry,
TransformationProcessor  $transformationProcessor,
array  $config = array() 
)

Creates a new repository handler.

Parameters
\eZ\Publish\Core\Persistence\Legacy\EzcDbHandler$dbHandlerThe database handler
\eZ\Publish\Core\Persistence\FieldTypeRegistry$fieldTypeRegistryShould contain field types
Content\FieldValue\ConverterRegistry$converterRegistryShould contain Field Type converters
Content\StorageRegistry$storageRegistryShould contain Field Type external storage handlers
\eZ\Publish\Core\Persistence\Legacy\Content\Search\TransformationProcessor$transformationProcessorSearch Text Transformation processor
array$configList of optional configuration flags: The flag 'defer_type_update' defines if content types should be published immediately (false), when the eZ\Publish\SPI\Persistence\Content\Type\Handler::publish()methodiscalled,orifabackgroundprocessshouldbetriggered(true),whichisthenexecutedbytheoldeZPublishcore.

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Handler::beginTransaction ( )

Begin transaction.

Begins an transaction, make sure you'll call commit or rollback when done, otherwise work will be lost.

Implements eZ\Publish\SPI\Persistence\Handler.

eZ\Publish\Core\Persistence\Legacy\Handler::commit ( )

Commit transaction.

Commit transaction, or throw exceptions if no transactions has been started.

Exceptions
\RuntimeExceptionIf no transaction has been started

Implements eZ\Publish\SPI\Persistence\Handler.

eZ\Publish\Core\Persistence\Legacy\Handler::contentHandler ( )
eZ\Publish\Core\Persistence\Legacy\Handler::getContentTypeGateway ( )
protected
eZ\Publish\Core\Persistence\Legacy\Handler::getFieldHandler ( )
protected
eZ\Publish\Core\Persistence\Legacy\Handler::getFieldTypeRegistry ( )

Returns the field type registry.

Returns

Referenced by eZ\Publish\Core\Persistence\Legacy\Handler\getFieldHandler().

eZ\Publish\Core\Persistence\Legacy\Handler::getFieldValueConverterRegistry ( )

Returns the field value converter registry.

Returns
eZ\Publish\Core\Persistence\Legacy\Handler::getLanguageCache ( )
protected

Returns a Language cache.

Returns

Referenced by eZ\Publish\Core\Persistence\Legacy\Handler\contentLanguageHandler().

eZ\Publish\Core\Persistence\Legacy\Handler::getLocationMapper ( )
protected
eZ\Publish\Core\Persistence\Legacy\Handler::getObjectStateGateway ( )
protected

Returns an object state gateway.

Returns

Referenced by eZ\Publish\Core\Persistence\Legacy\Handler\objectStateHandler().

eZ\Publish\Core\Persistence\Legacy\Handler::getObjectStateMapper ( )
protected

Returns an object state mapper.

Returns

Referenced by eZ\Publish\Core\Persistence\Legacy\Handler\objectStateHandler().

eZ\Publish\Core\Persistence\Legacy\Handler::getSlugConverter ( )
protected
eZ\Publish\Core\Persistence\Legacy\Handler::getStorageHandler ( )
protected
eZ\Publish\Core\Persistence\Legacy\Handler::getStorageRegistry ( )

Returns the storage registry.

Returns
Content
eZ\Publish\Core\Persistence\Legacy\Handler::getTypeUpdateHandler ( )
protected

Returns a Content Type update handler.

Returns

Referenced by eZ\Publish\Core\Persistence\Legacy\Handler\contentTypeHandler().

eZ\Publish\Core\Persistence\Legacy\Handler::getUrlAliasGateway ( )
protected
eZ\Publish\Core\Persistence\Legacy\Handler::getUrlAliasMapper ( )
protected

Returns a UrlAlias mapper.

Returns

Referenced by eZ\Publish\Core\Persistence\Legacy\Handler\urlAliasHandler().

eZ\Publish\Core\Persistence\Legacy\Handler::getUrlWildcardGateway ( )
protected

Returns a UrlWildcard gateway.

Returns

Referenced by eZ\Publish\Core\Persistence\Legacy\Handler\urlWildcardHandler().

eZ\Publish\Core\Persistence\Legacy\Handler::getUrlWildcardMapper ( )
protected

Returns a UrlWildcard mapper.

Returns

Referenced by eZ\Publish\Core\Persistence\Legacy\Handler\urlWildcardHandler().

eZ\Publish\Core\Persistence\Legacy\Handler::objectStateHandler ( )
eZ\Publish\Core\Persistence\Legacy\Handler::rollback ( )

Rollback transaction.

Rollback transaction, or throw exceptions if no transactions has been started.

Exceptions
\RuntimeExceptionIf no transaction has been started

Implements eZ\Publish\SPI\Persistence\Handler.

eZ\Publish\Core\Persistence\Legacy\Handler::searchHandler ( )
eZ\Publish\Core\Persistence\Legacy\Handler::sectionHandler ( )
eZ\Publish\Core\Persistence\Legacy\Handler::trashHandler ( )
eZ\Publish\Core\Persistence\Legacy\Handler::urlAliasHandler ( )
eZ\Publish\Core\Persistence\Legacy\Handler::urlWildcardHandler ( )
eZ\Publish\Core\Persistence\Legacy\Handler::userHandler ( )

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Handler::$config
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$contentGateway
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$contentHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$contentMapper
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$contentTypeGateway
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$contentTypeHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$converterRegistry
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$dbHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$fieldHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$fieldTypeRegistry
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$languageCache
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$languageHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$languageMaskGenerator
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$locationGateway
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$locationHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$locationMapper
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$objectStateGateway
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$objectStateHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$objectStateMapper
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$searchHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$sectionHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$storageHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$storageRegistry
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$transformationProcessor
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$trashHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$typeUpdateHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$urlAliasGateway
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$urlAliasHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$urlAliasMapper
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$urlWildcardGateway
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$urlWildcardHandler
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$urlWildcardMapper
protected
eZ\Publish\Core\Persistence\Legacy\Handler::$userHandler
protected

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