eZPublishCommunityProject  2012.12
eZ\Publish\Core\Persistence\InMemory\SectionHandler Class Reference
+ Inheritance diagram for eZ\Publish\Core\Persistence\InMemory\SectionHandler:
+ Collaboration diagram for eZ\Publish\Core\Persistence\InMemory\SectionHandler:

Public Member Functions

 __construct (Handler $handler, Backend $backend)
 Setups current handler instance with reference to Handler object that created it. More...
 
 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)
 

Protected Attributes

 $backend
 
 $handler
 

Detailed Description

See Also
eZ

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\InMemory\SectionHandler::__construct ( Handler  $handler,
Backend  $backend 
)

Setups current handler instance with reference to Handler object that created it.

Parameters
Handler$handler
Backend$backendThe storage engine backend

Member Function Documentation

eZ\Publish\Core\Persistence\InMemory\SectionHandler::assign (   $sectionId,
  $contentId 
)
eZ\Publish\Core\Persistence\InMemory\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\InMemory\SectionHandler::create (   $name,
  $identifier 
)
eZ\Publish\Core\Persistence\InMemory\SectionHandler::delete (   $id)
eZ\Publish\Core\Persistence\InMemory\SectionHandler::load (   $id)
eZ\Publish\Core\Persistence\InMemory\SectionHandler::loadAll ( )

Get all section data.

Returns
[]

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

eZ\Publish\Core\Persistence\InMemory\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\InMemory\SectionHandler::update (   $id,
  $name,
  $identifier 
)

Member Data Documentation

eZ\Publish\Core\Persistence\InMemory\SectionHandler::$backend
protected
eZ\Publish\Core\Persistence\InMemory\SectionHandler::$handler
protected

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