Property | Type | Description | |
---|---|---|---|
$encoder | Sulu\Component\DocumentManager\PropertyEncoder |
Method | Description | |
---|---|---|
__construct ( Sulu\Component\DocumentManager\PropertyEncoder $encoder ) | ||
copyFromShadow ( object $document, PHPCR\NodeInterface $node ) | Copy tags and categories from base-locale to current locale. | |
copyShadowProperties ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event ) | Handles persist event of document manager. | |
copyToShadows ( object $document, PHPCR\NodeInterface $node ) | Copy tags and categories from current locale to all shadowed pages with this locale as base-locale. | |
getSubscribedEvents ( ) |
Method | Description | |
---|---|---|
supports ( $document ) |
Method | Description | |
---|---|---|
getCategories ( PHPCR\NodeInterface $node, $locale ) : array | Returns categories of given node and locale. | |
getLocale ( $propertyName ) | ||
getNavigationContext ( PHPCR\NodeInterface $node, $locale ) : array | Returns navigation context of given node and locale. | |
getTags ( PHPCR\NodeInterface $node, $locale ) : array | Returns tags of given node and locale. |
public __construct ( Sulu\Component\DocumentManager\PropertyEncoder $encoder ) | ||
$encoder | Sulu\Component\DocumentManager\PropertyEncoder |
public copyFromShadow ( object $document, PHPCR\NodeInterface $node ) | ||
$document | object | |
$node | PHPCR\NodeInterface |
public copyShadowProperties ( Sulu\Component\DocumentManager\Event\AbstractMappingEvent $event ) | ||
$event | Sulu\Component\DocumentManager\Event\AbstractMappingEvent |
public copyToShadows ( object $document, PHPCR\NodeInterface $node ) | ||
$document | object | |
$node | PHPCR\NodeInterface |