PHP Класс Neos\Neos\Service\ContentElementWrappingService

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$htmlAugmenter HtmlAugmenter
$nodeAuthorizationService Neos\ContentRepository\Service\AuthorizationService
$nodePropertyConverterService Neos\Neos\Service\Mapping\NodePropertyConverterService
$privilegeManager Neos\Flow\Security\Authorization\PrivilegeManagerInterface

Открытые методы

Метод Описание
wrapContentObject ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $content, string $typoScriptPath ) : string Wrap the $content identified by $node with the needed markup for the backend.
wrapCurrentDocumentMetadata ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $content, string $typoScriptPath ) : string

Защищенные методы

Метод Описание
addCssClasses ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node, array $initialClasses = [] ) : array Add required CSS classes to the attributes.
addDocumentMetadata ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array Collects metadata for the Neos backend specifically for document nodes.
addGenericEditingMetadata ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array Collects metadata attributes used to allow editing of the node in the Neos backend.
addNodePropertyAttributes ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array Adds node properties to the given $attributes collection and returns the extended array
collectEditingClassNames ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array Collects CSS class names used for styling editable elements in the Neos backend.
dasherize ( string $value ) : string Converts camelCased strings to lower cased and non-camel-cased strings
hasInlineEditableProperties ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean Checks if the given Node has any properties configured as 'inlineEditable'
isInlineEditable ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean Determine if the Node or one of it's properties is inline editable.
needsMetadata ( Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $renderCurrentDocumentMetadata ) : boolean
renderNodePropertyAttribute ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : array Renders data attributes needed for the given node property.

Описание методов

addCssClasses() защищенный Метод

Add required CSS classes to the attributes.
protected addCssClasses ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node, array $initialClasses = [] ) : array
$attributes array
$node Neos\ContentRepository\Domain\Model\NodeInterface
$initialClasses array
Результат array

addDocumentMetadata() защищенный Метод

Collects metadata for the Neos backend specifically for document nodes.
protected addDocumentMetadata ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array
$attributes array
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат array

addGenericEditingMetadata() защищенный Метод

Collects metadata attributes used to allow editing of the node in the Neos backend.
protected addGenericEditingMetadata ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array
$attributes array
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат array

addNodePropertyAttributes() защищенный Метод

Adds node properties to the given $attributes collection and returns the extended array
protected addNodePropertyAttributes ( array $attributes, Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array
$attributes array
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат array the merged attributes

collectEditingClassNames() защищенный Метод

Collects CSS class names used for styling editable elements in the Neos backend.
protected collectEditingClassNames ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : array
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат array

dasherize() защищенный Метод

Converts camelCased strings to lower cased and non-camel-cased strings
protected dasherize ( string $value ) : string
$value string
Результат string

hasInlineEditableProperties() защищенный Метод

Checks if the given Node has any properties configured as 'inlineEditable'
protected hasInlineEditableProperties ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат boolean

isInlineEditable() защищенный Метод

$parsedType = TypeHandling::parseType($dataType);
protected isInlineEditable ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат boolean

needsMetadata() защищенный Метод

protected needsMetadata ( Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $renderCurrentDocumentMetadata ) : boolean
$node Neos\ContentRepository\Domain\Model\NodeInterface
$renderCurrentDocumentMetadata boolean
Результат boolean

renderNodePropertyAttribute() защищенный Метод

Renders data attributes needed for the given node property.
protected renderNodePropertyAttribute ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $propertyName ) : array
$node Neos\ContentRepository\Domain\Model\NodeInterface
$propertyName string
Результат array

wrapContentObject() публичный Метод

Wrap the $content identified by $node with the needed markup for the backend.
public wrapContentObject ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $content, string $typoScriptPath ) : string
$node Neos\ContentRepository\Domain\Model\NodeInterface
$content string
$typoScriptPath string
Результат string

wrapCurrentDocumentMetadata() публичный Метод

public wrapCurrentDocumentMetadata ( Neos\ContentRepository\Domain\Model\NodeInterface $node, string $content, string $typoScriptPath ) : string
$node Neos\ContentRepository\Domain\Model\NodeInterface
$content string
$typoScriptPath string
Результат string

Описание свойств

$htmlAugmenter защищенное свойство

protected HtmlAugmenter,Neos\Neos\Service $htmlAugmenter
Результат HtmlAugmenter

$nodeAuthorizationService защищенное свойство

protected AuthorizationService,Neos\ContentRepository\Service $nodeAuthorizationService
Результат Neos\ContentRepository\Service\AuthorizationService

$nodePropertyConverterService защищенное свойство

protected NodePropertyConverterService,Neos\Neos\Service\Mapping $nodePropertyConverterService
Результат Neos\Neos\Service\Mapping\NodePropertyConverterService

$privilegeManager защищенное свойство

protected PrivilegeManagerInterface,Neos\Flow\Security\Authorization $privilegeManager
Результат Neos\Flow\Security\Authorization\PrivilegeManagerInterface