PHP 클래스 Neos\ContentRepository\Command\NodeCommandController

상속: extends Neos\Flow\Cli\CommandController, implements Neos\Flow\Cli\DescriptionAwareCommandControllerInterface
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$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