eZPublishCommunityProject  2013.6
eZ\Publish\Core\Persistence\Cache\ContentHandler Class Reference
+ Inheritance diagram for eZ\Publish\Core\Persistence\Cache\ContentHandler:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Cache\ContentHandler:

Public Member Functions

 addRelation (RelationCreateStruct $relation)
 
 copy ($contentId, $versionNo=null)
 
 create (CreateStruct $struct)
 
 createDraftFromVersion ($contentId, $srcVersion, $userId)
 
 deleteContent ($contentId)
 
 deleteVersion ($contentId, $versionNo)
 
 listVersions ($contentId)
 
 load ($contentId, $version, $translations=null)
 
 loadContentInfo ($contentId)
 
 loadDraftsForUser ($userId)
 
 loadRelations ($sourceContentId, $sourceContentVersionNo=null, $type=null)
 
 loadReverseRelations ($destinationContentId, $type=null)
 
 loadVersionInfo ($contentId, $versionNo)
 
 publish ($contentId, $versionNo, MetadataUpdateStruct $struct)
 
 removeRelation ($relationId, $type)
 
 setStatus ($contentId, $status, $version)
 
 updateContent ($contentId, $versionNo, UpdateStruct $struct)
 
 updateMetadata ($contentId, MetadataUpdateStruct $struct)
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Cache\AbstractHandler
 __construct (CacheService $cache, PersistenceFactory $persistenceFactory, PersistenceLogger $logger)
 Setups current handler with everything needed. More...
 
- Public Member Functions inherited from eZ\Publish\SPI\Persistence\Content\Handler
 updateContent ($contentId, $versionNo, UpdateStruct $content)
 Updates a content version, identified by $contentId and $versionNo. More...
 

Public Attributes

const FIELD_VALUE_DOM_DOCUMENT_KEY = '§:DomDocument:§'
 

Protected Member Functions

 cloneAndSerializeXMLFields (Content $content)
 Custom serializer for Content. More...
 
 unSerializeXMLFields (Content $content)
 Custom unSerializer for Content. More...
 

Additional Inherited Members

- Protected Attributes inherited from eZ\Publish\Core\Persistence\Cache\AbstractHandler
 $cache
 
 $logger
 
 $persistenceFactory
 

Detailed Description

See Also
eZ

Member Function Documentation

eZ\Publish\Core\Persistence\Cache\ContentHandler::addRelation ( RelationCreateStruct  $relation)
See Also
::addRelation

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::cloneAndSerializeXMLFields ( Content  $content)
protected

Custom serializer for Content.

Needed for DomDocuments on field values as they can not be serialized directly.

Todo:
Change SPI to document that fieldValue->data and external data must be serializable, then remove this.
Parameters
Content$content
Returns
Content A serializable version of Content

Referenced by eZ\Publish\Core\Persistence\Cache\ContentHandler\load(), eZ\Publish\Core\Persistence\Cache\ContentHandler\publish(), and eZ\Publish\Core\Persistence\Cache\ContentHandler\updateContent().

eZ\Publish\Core\Persistence\Cache\ContentHandler::copy (   $contentId,
  $versionNo = null 
)
See Also
::copy

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\InMemory\ContentHandler::create ( CreateStruct  $content)
See Also
::create

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\InMemory\ContentHandler::createDraftFromVersion (   $contentId,
  $srcVersion,
  $userId 
)
See Also
::createDraftFromVersion

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::deleteContent (   $contentId)
See Also
::deleteContent

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::deleteVersion (   $contentId,
  $versionNo 
)
See Also
::deleteVersion

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::listVersions (   $contentId)
See Also
::listVersions

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::load (   $contentId,
  $version,
  $translations = null 
)
See Also
::load

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::loadContentInfo (   $contentId)
See Also
::loadContentInfo

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::loadDraftsForUser (   $userId)
See Also
::loadDraftsForUser

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::loadRelations (   $sourceContentId,
  $sourceContentVersionNo = null,
  $type = null 
)
See Also
::loadRelations

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::loadReverseRelations (   $destinationContentId,
  $type = null 
)
See Also
::loadReverseRelations

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::loadVersionInfo (   $contentId,
  $versionNo 
)
See Also
::loadVersionInfo

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::publish (   $contentId,
  $versionNo,
MetadataUpdateStruct  $struct 
)
See Also
::publish

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::removeRelation (   $relationId,
  $type 
)
See Also
::removeRelation

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::setStatus (   $contentId,
  $status,
  $version 
)
See Also
::setStatus

Implements eZ\Publish\SPI\Persistence\Content\Handler.

eZ\Publish\Core\Persistence\Cache\ContentHandler::unSerializeXMLFields ( Content  $content)
protected

Custom unSerializer for Content.

Needed for DomDocuments on field values as they can not be serialized directly.

See Also
cloneAndSerializeXMLFields
Parameters
Content$content
Returns
Content

Referenced by eZ\Publish\Core\Persistence\Cache\ContentHandler\load().

eZ\Publish\Core\Persistence\InMemory\ContentHandler::updateContent (   $contentId,
  $versionNo,
UpdateStruct  $updateStruct 
)
See Also
::updateContent
eZ\Publish\Core\Persistence\Cache\ContentHandler::updateMetadata (   $contentId,
MetadataUpdateStruct  $struct 
)
See Also
::updateMetadata

Implements eZ\Publish\SPI\Persistence\Content\Handler.

Member Data Documentation

const eZ\Publish\Core\Persistence\Cache\ContentHandler::FIELD_VALUE_DOM_DOCUMENT_KEY = '§:DomDocument:§'

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