PHP 클래스 Neos\ContentRepository\Domain\Service\NodeTypeManager

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

보호된 프로퍼티들

프로퍼티 타입 설명
$cachedNodeTypes array Node types, indexed by name
$cachedSubNodeTypes array Node types, indexed by supertype
$configurationManager Neos\Flow\Configuration\ConfigurationManager
$fallbackNodeTypeName string
$fullConfigurationCache Neos\Cache\Frontend\StringFrontend
$fullNodeTypeConfigurations array

공개 메소드들

메소드 설명
createNodeType ( string $nodeTypeName ) : NodeType Creates a new node type
getNodeType ( string $nodeTypeName ) : NodeType Returns the specified node type (which could be abstract)
getNodeTypes ( boolean $includeAbstractNodeTypes = true ) : array Return all registered node types.
getSubNodeTypes ( string $superTypeName, boolean $includeAbstractNodeTypes = true ) : array Return all non-abstract node types which have a certain $superType, without the $superType itself.
hasNodeType ( string $nodeTypeName ) : boolean Checks if the specified node type exists
overrideNodeTypes ( array $completeNodeTypeConfiguration ) : void This method can be used by Functional of Behavioral Tests to completely override the node types known in the system.

보호된 메소드들

메소드 설명
evaluateSuperTypeConfiguration ( string $superTypeName, boolean $enabled, array &$completeNodeTypeConfiguration ) : NodeType Evaluates a single superType configuration and returns the NodeType if enabled.
evaluateSuperTypesConfiguration ( array $superTypesConfiguration, array &$completeNodeTypeConfiguration ) : array Evaluates the given superTypes configuation and returns the array of effective superTypes.
loadNodeType ( string $nodeTypeName, array &$completeNodeTypeConfiguration, array $fullNodeTypeConfigurationForType = null ) : NodeType Load one node type, if it is not loaded yet.
loadNodeTypes ( ) : void Loads all node types into memory.

메소드 상세

createNodeType() 공개 메소드

Creates a new node type
public createNodeType ( string $nodeTypeName ) : NodeType
$nodeTypeName string Unique name of the new node type. Example: "Neos.Neos:Page"
리턴 Neos\ContentRepository\Domain\Model\NodeType

evaluateSuperTypeConfiguration() 보호된 메소드

Evaluates a single superType configuration and returns the NodeType if enabled.
protected evaluateSuperTypeConfiguration ( string $superTypeName, boolean $enabled, array &$completeNodeTypeConfiguration ) : NodeType
$superTypeName string
$enabled boolean
$completeNodeTypeConfiguration array
리턴 Neos\ContentRepository\Domain\Model\NodeType

evaluateSuperTypesConfiguration() 보호된 메소드

Evaluates the given superTypes configuation and returns the array of effective superTypes.
protected evaluateSuperTypesConfiguration ( array $superTypesConfiguration, array &$completeNodeTypeConfiguration ) : array
$superTypesConfiguration array
$completeNodeTypeConfiguration array
리턴 array

getNodeType() 공개 메소드

Returns the specified node type (which could be abstract)
public getNodeType ( string $nodeTypeName ) : NodeType
$nodeTypeName string
리턴 Neos\ContentRepository\Domain\Model\NodeType or NULL

getNodeTypes() 공개 메소드

Return all registered node types.
public getNodeTypes ( boolean $includeAbstractNodeTypes = true ) : array
$includeAbstractNodeTypes boolean Whether to include abstract node types, defaults to TRUE
리턴 array

getSubNodeTypes() 공개 메소드

Return all non-abstract node types which have a certain $superType, without the $superType itself.
public getSubNodeTypes ( string $superTypeName, boolean $includeAbstractNodeTypes = true ) : array
$superTypeName string
$includeAbstractNodeTypes boolean Whether to include abstract node types, defaults to TRUE
리턴 array

hasNodeType() 공개 메소드

Checks if the specified node type exists
public hasNodeType ( string $nodeTypeName ) : boolean
$nodeTypeName string Name of the node type
리턴 boolean TRUE if it exists, otherwise FALSE

loadNodeType() 보호된 메소드

Load one node type, if it is not loaded yet.
protected loadNodeType ( string $nodeTypeName, array &$completeNodeTypeConfiguration, array $fullNodeTypeConfigurationForType = null ) : NodeType
$nodeTypeName string
$completeNodeTypeConfiguration array the full node type configuration for all node types
$fullNodeTypeConfigurationForType array
리턴 Neos\ContentRepository\Domain\Model\NodeType

loadNodeTypes() 보호된 메소드

Loads all node types into memory.
protected loadNodeTypes ( ) : void
리턴 void

overrideNodeTypes() 공개 메소드

In order to reset the node type override, an empty array can be passed in. In this case, the system-node-types are used again.
public overrideNodeTypes ( array $completeNodeTypeConfiguration ) : void
$completeNodeTypeConfiguration array
리턴 void

프로퍼티 상세

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

Node types, indexed by name
protected array $cachedNodeTypes
리턴 array

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

Node types, indexed by supertype
protected array $cachedSubNodeTypes
리턴 array

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

protected ConfigurationManager,Neos\Flow\Configuration $configurationManager
리턴 Neos\Flow\Configuration\ConfigurationManager

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

protected string $fallbackNodeTypeName
리턴 string

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

protected StringFrontend,Neos\Cache\Frontend $fullConfigurationCache
리턴 Neos\Cache\Frontend\StringFrontend

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

protected array $fullNodeTypeConfigurations
리턴 array