PHP 클래스 Neos\ContentRepository\Utility

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

공개 메소드들

메소드 설명
buildAutoCreatedChildNodeIdentifier ( string $childNodeName, string $identifier ) : string Generate a stable identifier for auto-created child nodes
renderValidNodeName ( string $name ) : string Transforms a text (for example a node title) into a valid node name by removing invalid characters and transliterating special characters if possible.
sortDimensionValueArrayAndReturnDimensionsHash ( array &$dimensionValues ) : string Sorts the incoming $dimensionValues array to make sure that before hashing, the ordering is made deterministic.

메소드 상세

buildAutoCreatedChildNodeIdentifier() 공개 정적인 메소드

This is needed if multiple node variants are created through "createNode" with different dimension values. If child nodes with the same path and different identifiers exist, bad things can happen.
public static buildAutoCreatedChildNodeIdentifier ( string $childNodeName, string $identifier ) : string
$childNodeName string
$identifier string Identifier of the node where the child node should be created
리턴 string The generated UUID like identifier

renderValidNodeName() 공개 정적인 메소드

Transforms a text (for example a node title) into a valid node name by removing invalid characters and transliterating special characters if possible.
public static renderValidNodeName ( string $name ) : string
$name string The possibly invalid node name
리턴 string A valid node name

sortDimensionValueArrayAndReturnDimensionsHash() 공개 정적인 메소드

Then, calculates and returns the dimensionsHash. This method is public because it is used inside SiteImportService.
public static sortDimensionValueArrayAndReturnDimensionsHash ( array &$dimensionValues ) : string
$dimensionValues array Map of dimension names to dimension values, which will be ordered alphabetically after this method.
리턴 string the calculated DimensionsHash