PHP 클래스 Neos\Neos\Service\ContentElementWrappingService

파일 보기 프로젝트 열기: neos/neos-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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