PHP Класс Neos\ContentRepository\Command\NodeCommandController

Наследование: extends Neos\Flow\Cli\CommandController, implements Neos\Flow\Cli\DescriptionAwareCommandControllerInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$nodeTypeManager Neos\ContentRepository\Domain\Service\NodeTypeManager
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
$pluginConfigurations array
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

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

Метод Описание
autoCreateChildNodesCommand ( string $nodeType = null, string $workspace = 'live', boolean $dryRun = false ) : void Create missing child nodes
processDescription ( string $controllerCommandName, string $description, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : string Processes the given description of the specified command.
processShortDescription ( string $controllerCommandName, string $shortDescription, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : string Processes the given short description of the specified command.
repairCommand ( string $nodeType = null, string $workspace = 'live', boolean $dryRun = false, boolean $cleanup = true, string $skip = null, string $only = null ) : void Repair inconsistent nodes

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

Метод Описание
detectPlugins ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array Detects plugins for this command controller

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

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

This is a legacy command which automatically creates missing child nodes for a node type based on the structure defined in the NodeTypes configuration. NOTE: Usage of this command is deprecated and it will be remove eventually. Please use node:repair instead.
Устаревший: since 1.2
public autoCreateChildNodesCommand ( string $nodeType = null, string $workspace = 'live', boolean $dryRun = false ) : void
$nodeType string Node type name, if empty update all declared node types
$workspace string Workspace name, default is 'live'
$dryRun boolean Don't do anything, but report missing child nodes
Результат void

detectPlugins() защищенный статический Метод

Detects plugins for this command controller
protected static detectPlugins ( Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : array
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface
Результат array

processDescription() публичный статический Метод

Processes the given description of the specified command.
public static processDescription ( string $controllerCommandName, string $description, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : string
$controllerCommandName string Name of the command the description is referring to, for example "flush"
$description string The command description so far
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface The object manager, can be used to access further information necessary for rendering the description
Результат string the possibly modified command description

processShortDescription() публичный статический Метод

Processes the given short description of the specified command.
public static processShortDescription ( string $controllerCommandName, string $shortDescription, Neos\Flow\ObjectManagement\ObjectManagerInterface $objectManager ) : string
$controllerCommandName string Name of the command the description is referring to, for example "flush"
$shortDescription string The short command description so far
$objectManager Neos\Flow\ObjectManagement\ObjectManagerInterface The object manager, can be used to access further information necessary for rendering the description
Результат string the possibly modified short command description

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

This command analyzes and repairs the node tree structure and individual nodes based on the current node type configuration. It is possible to execute only one or more specific checks by providing the --skip or --only option. See the full description of checks further below for possible check identifiers. The following checks will be performed: {pluginDescriptions} Examples: ./flow node:repair ./flow node:repair --node-type Neos.NodeTypes:Page ./flow node:repair --workspace user-robert --only removeOrphanNodes,removeNodesWithInvalidDimensions ./flow node:repair --skip removeUndefinedProperties
public repairCommand ( string $nodeType = null, string $workspace = 'live', boolean $dryRun = false, boolean $cleanup = true, string $skip = null, string $only = null ) : void
$nodeType string Node type name, if empty update all declared node types
$workspace string Workspace name, default is 'live'
$dryRun boolean Don't do anything, but report actions
$cleanup boolean If FALSE, cleanup tasks are skipped
$skip string Skip the given check or checks (comma separated)
$only string Only execute the given check or checks (comma separated)
Результат void

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

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

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

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

protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager
Результат Neos\Flow\ObjectManagement\ObjectManagerInterface

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

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

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

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
Результат Neos\ContentRepository\Domain\Repository\WorkspaceRepository