eZPublishCommunityProject  2013.4
eZ\Publish\Core\Persistence\Cache\SectionHandler Class Reference
+ Inheritance diagram for eZ\Publish\Core\Persistence\Cache\SectionHandler:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Cache\SectionHandler:

Public Member Functions

 assign ($sectionId, $contentId)
 
 assignmentsCount ($sectionId)
 Number of content assignments a Section has. More...
 
 create ($name, $identifier)
 
 delete ($id)
 
 load ($id)
 
 loadAll ()
 Get all section data. More...
 
 loadByIdentifier ($identifier)
 Get section data by identifier. More...
 
 update ($id, $name, $identifier)
 
- 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...
 

Additional Inherited Members

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

Detailed Description

See Also
eZ
Todo:
Consider loadAll & loadByIdentifier cache, however then loadAll() must be used by all (incl create) but update & delete to avoid doing several cache lookups.

Member Function Documentation

eZ\Publish\Core\Persistence\Cache\SectionHandler::assign (   $sectionId,
  $contentId 
)
eZ\Publish\Core\Persistence\Cache\SectionHandler::assignmentsCount (   $sectionId)

Number of content assignments a Section has.

Parameters
mixed$sectionId
Returns
int

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

eZ\Publish\Core\Persistence\Cache\SectionHandler::create (   $name,
  $identifier 
)
eZ\Publish\Core\Persistence\Cache\SectionHandler::delete (   $id)
eZ\Publish\Core\Persistence\Cache\SectionHandler::load (   $id)
eZ\Publish\Core\Persistence\Cache\SectionHandler::loadAll ( )

Get all section data.

Returns
[]

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

eZ\Publish\Core\Persistence\Cache\SectionHandler::loadByIdentifier (   $identifier)

Get section data by identifier.

Parameters
string$identifier
Exceptions
\eZ\Publish\API\Repository\Exceptions\NotFoundExceptionIf section is not found
Returns

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

eZ\Publish\Core\Persistence\Cache\SectionHandler::update (   $id,
  $name,
  $identifier 
)

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