PHP Класс Neos\ContentRepository\TypeConverter\NodeTemplateConverter

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

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

Свойство Тип Описание
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$priority integer
$sourceTypes array
$targetType string

Открытые методы

Метод Описание
convertFrom ( string | array $source, string $targetType, array $subProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : mixed Converts the specified node path into a Node.

Защищенные методы

Метод Описание
extractNodeType ( string $targetType, array $source ) : NodeType Detects the requested node type and returns a corresponding NodeType instance.

Описание методов

convertFrom() публичный Метод

The node path must be an absolute context node path and can be specified as a string or as an array item with the key "__contextNodePath". The latter case is for updating existing nodes. This conversion method supports creation of new nodes because new nodes Also note that the context's "current node" is not affected by this object converter, you will need to set it to whatever node your "current" node is, if any. All elements in the source array which start with two underscores (like __contextNodePath) are specially treated by this converter. All elements in the source array which start with a *single underscore (like _hidden) are *directly* set on the Node object. All other elements, not being prefixed with underscore, are properties of the node.
public convertFrom ( string | array $source, string $targetType, array $subProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : mixed
$source string | array Either a string or array containing the absolute context node path which identifies the node. For example "/sites/mysitecom/homepage/about@user-admin"
$targetType string not used
$subProperties array not used
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface not used
Результат mixed An object or \Neos\Error\Messages\Error if the input format is not supported or could not be converted for other reasons

extractNodeType() защищенный Метод

Detects the requested node type and returns a corresponding NodeType instance.
protected extractNodeType ( string $targetType, array $source ) : NodeType
$targetType string
$source array
Результат Neos\ContentRepository\Domain\Model\NodeType

Описание свойств

$nodeTypeManager защищенное свойство

protected NodeTypeManager,Neos\ContentRepository\Domain\Service $nodeTypeManager
Результат Neos\ContentRepository\Domain\Service\NodeTypeManager

$priority защищенное свойство

protected int $priority
Результат integer

$sourceTypes защищенное свойство

protected array $sourceTypes
Результат array

$targetType защищенное свойство

protected string $targetType
Результат string