PHP Class Sulu\Component\Content\Mapper\Event\ContentNodeDeleteEvent

Deprecation: use events of DocumentManager instead
Inheritance: extends Symfony\Component\EventDispatcher\Event
Show file Open project: sulu/sulu Class Usage Examples

Public Methods

Method Description
__construct ( Sulu\Component\Content\Mapper\ContentMapperInterface $contentMapper, SuluNodeHelper $nodeHelper, PHPCR\NodeInterface $node, string $webspace )
getNode ( ) : PHPCR\NodeInterface Return the PHPCR node for the structure that was deleted.
getStructure ( $locale ) : Sulu\Component\Content\Compat\StructureInterface Return the structure which was deleted.
getStructures ( ) : Sulu\Component\Content\MetadataInterface[] Return all structures (i.e. for for each language).

Method Details

__construct() public method

public __construct ( Sulu\Component\Content\Mapper\ContentMapperInterface $contentMapper, SuluNodeHelper $nodeHelper, PHPCR\NodeInterface $node, string $webspace )
$contentMapper Sulu\Component\Content\Mapper\ContentMapperInterface
$nodeHelper Sulu\Component\Util\SuluNodeHelper
$node PHPCR\NodeInterface
$webspace string

getNode() public method

Return the PHPCR node for the structure that was deleted.
public getNode ( ) : PHPCR\NodeInterface
return PHPCR\NodeInterface

getStructure() public method

Return the structure which was deleted.
public getStructure ( $locale ) : Sulu\Component\Content\Compat\StructureInterface
return Sulu\Component\Content\Compat\StructureInterface

getStructures() public method

Return all structures (i.e. for for each language).
public getStructures ( ) : Sulu\Component\Content\MetadataInterface[]
return Sulu\Component\Content\MetadataInterface[]