PHP Класс Neos\ContentRepository\Domain\Service\NodeTypeManager

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

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

Свойство Тип Описание
$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