PHP Class Neos\ContentRepository\Domain\Service\NodeTypeManager

Afficher le fichier Open project: neos/neos-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

createNodeType() public méthode

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

evaluateSuperTypeConfiguration() protected méthode

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
Résultat Neos\ContentRepository\Domain\Model\NodeType

evaluateSuperTypesConfiguration() protected méthode

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

getNodeType() public méthode

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

getNodeTypes() public méthode

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

getSubNodeTypes() public méthode

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
Résultat array

hasNodeType() public méthode

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

loadNodeType() protected méthode

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
Résultat Neos\ContentRepository\Domain\Model\NodeType

loadNodeTypes() protected méthode

Loads all node types into memory.
protected loadNodeTypes ( ) : void
Résultat void

overrideNodeTypes() public méthode

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
Résultat void

Property Details

$cachedNodeTypes protected_oe property

Node types, indexed by name
protected array $cachedNodeTypes
Résultat array

$cachedSubNodeTypes protected_oe property

Node types, indexed by supertype
protected array $cachedSubNodeTypes
Résultat array

$configurationManager protected_oe property

protected ConfigurationManager,Neos\Flow\Configuration $configurationManager
Résultat Neos\Flow\Configuration\ConfigurationManager

$fallbackNodeTypeName protected_oe property

protected string $fallbackNodeTypeName
Résultat string

$fullConfigurationCache protected_oe property

protected StringFrontend,Neos\Cache\Frontend $fullConfigurationCache
Résultat Neos\Cache\Frontend\StringFrontend

$fullNodeTypeConfigurations protected_oe property

protected array $fullNodeTypeConfigurations
Résultat array