PHP 클래스 Neos\Neos\Utility\NodeUriPathSegmentGenerator

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

보호된 프로퍼티들

프로퍼티 타입 설명
$transliterationService Neos\Neos\Service\TransliterationService

공개 메소드들

메소드 설명
generateUriPathSegment ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null, string $text = null ) : string Generates a URI path segment for a given node taking it's language dimension into account
setUniqueUriPathSegment ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Sets the best possible uriPathSegment for the given Node.

메소드 상세

generateUriPathSegment() 공개 메소드

Generates a URI path segment for a given node taking it's language dimension into account
public generateUriPathSegment ( Neos\ContentRepository\Domain\Model\NodeInterface $node = null, string $text = null ) : string
$node Neos\ContentRepository\Domain\Model\NodeInterface Optional node to determine language dimension
$text string Optional text
리턴 string

setUniqueUriPathSegment() 공개 정적인 메소드

Will use an already set uriPathSegment or alternatively the node name as base, then checks if the uriPathSegment already exists on the same level and appends a counter until a unique path segment was found.
public static setUniqueUriPathSegment ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

프로퍼티 상세

$transliterationService 보호되어 있는 프로퍼티

protected TransliterationService,Neos\Neos\Service $transliterationService
리턴 Neos\Neos\Service\TransliterationService