eZPublishCommunityProject  2013.9
eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\EzcDatabase Class Reference

EzcDatabase based type update handler. More...

+ Inheritance diagram for eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\EzcDatabase:
+ Collaboration diagram for eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\EzcDatabase:

Public Member Functions

 __construct (Gateway $contentTypeGateway, ContentUpdater $contentUpdater)
 Creates a new content type update handler. More...
 
 deleteOldType ($fromType)
 Deletes $fromType and all of its field definitions. More...
 
 publishNewType ($toType, $newStatus)
 Publishes $toType to $newStatus. More...
 
 updateContentObjects ($fromType, $toType)
 Updates existing content objects from $fromType to $toType. More...
 
- Public Member Functions inherited from eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler
 deleteOldType ($fromType)
 Deletes $fromType and all of its field definitions. More...
 
 publishNewType ($toType, $newStatus)
 Publishes $toType to $newStatus. More...
 
 updateContentObjects ($fromType, $toType)
 Updates existing content objects from $fromType to $toType. More...
 

Protected Attributes

 $contentTypeGateway
 
 $contentUpdater
 

Detailed Description

EzcDatabase based type update handler.

Constructor & Destructor Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\EzcDatabase::__construct ( Gateway  $contentTypeGateway,
ContentUpdater  $contentUpdater 
)

Creates a new content type update handler.

Parameters
\eZ\Publish\Core\Persistence\Legacy\Content\Type\Gateway$contentTypeGateway
\eZ\Publish\Core\Persistence\Legacy\Content\Type\ContentUpdater$contentUpdater

Member Function Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\EzcDatabase::deleteOldType (   $fromType)

Deletes $fromType and all of its field definitions.

Parameters
\eZ\Publish\SPI\Persistence\Content\Type$fromType
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\EzcDatabase::publishNewType (   $toType,
  $newStatus 
)

Publishes $toType to $newStatus.

Parameters
\eZ\Publish\SPI\Persistence\Content\Type$toType
int$newStatus
Returns
void
eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\EzcDatabase::updateContentObjects (   $fromType,
  $toType 
)

Updates existing content objects from $fromType to $toType.

Parameters
\eZ\Publish\SPI\Persistence\Content\Type$fromType
\eZ\Publish\SPI\Persistence\Content\Type$toType
Returns
void

Member Data Documentation

eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\EzcDatabase::$contentTypeGateway
protected
eZ\Publish\Core\Persistence\Legacy\Content\Type\Update\Handler\EzcDatabase::$contentUpdater
protected

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