PHP 클래스 Neos\Neos\Command\NodeCommandControllerPlugin

- adding missing URI segments - removing dimensions on nodes / and /sites
상속: implements Neos\ContentRepository\Command\NodeCommandControllerPluginInterface
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$contentDimensionRepository Neos\ContentRepository\Domain\Repository\ContentDimensionRepository
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$dimensionCombinator Neos\ContentRepository\Domain\Service\ContentDimensionCombinator
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$nodeUriPathSegmentGenerator Neos\Neos\Utility\NodeUriPathSegmentGenerator
$output Neos\Flow\Cli\ConsoleOutput
$persistenceManager Neos\Flow\Persistence\PersistenceManagerInterface
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

공개 메소드들

메소드 설명
generateUriPathSegments ( string $workspaceName, boolean $dryRun ) : void Generate missing URI path segments
getSubCommandDescription ( string $controllerCommandName ) : string Returns a piece of description for the specific task the plugin solves for the specified command
getSubCommandShortDescription ( string $controllerCommandName ) : string Returns a short description
invokeSubCommand ( string $controllerCommandName, ConsoleOutput $output, NodeType $nodeType = null, string $workspaceName = 'live', boolean $dryRun = false, boolean $cleanup = true, string $skip = null, string $only = null ) : void A method which runs the task implemented by the plugin for the given command
removeContentDimensionsFromRootAndSitesNode ( string $workspaceName, boolean $dryRun ) : void Remove dimensions on nodes "/" and "/sites"

보호된 메소드들

메소드 설명
createContext ( string $workspaceName, array $dimensions ) : Context Creates a content context for given workspace and language identifiers
generateUriPathSegmentsForNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $dryRun ) : void Traverses through the tree starting at the given root node and sets the uriPathSegment property derived from the node label.

메소드 상세

createContext() 보호된 메소드

Creates a content context for given workspace and language identifiers
protected createContext ( string $workspaceName, array $dimensions ) : Context
$workspaceName string
$dimensions array
리턴 Neos\ContentRepository\Domain\Service\Context

generateUriPathSegments() 공개 메소드

This generates URI path segment properties for all document nodes which don't have a path segment set yet.
public generateUriPathSegments ( string $workspaceName, boolean $dryRun ) : void
$workspaceName string
$dryRun boolean
리턴 void

generateUriPathSegmentsForNode() 보호된 메소드

Traverses through the tree starting at the given root node and sets the uriPathSegment property derived from the node label.
protected generateUriPathSegmentsForNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, boolean $dryRun ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface The node where the traversal starts
$dryRun boolean
리턴 void

getSubCommandDescription() 공개 정적인 메소드

Returns a piece of description for the specific task the plugin solves for the specified command
public static getSubCommandDescription ( string $controllerCommandName ) : string
$controllerCommandName string Name of the command in question, for example "repair"
리턴 string A piece of text to be included in the overall description of the node:xy command

getSubCommandShortDescription() 공개 정적인 메소드

Returns a short description
public static getSubCommandShortDescription ( string $controllerCommandName ) : string
$controllerCommandName string Name of the command in question, for example "repair"
리턴 string A piece of text to be included in the overall description of the node:xy command

invokeSubCommand() 공개 메소드

A method which runs the task implemented by the plugin for the given command
public invokeSubCommand ( string $controllerCommandName, ConsoleOutput $output, NodeType $nodeType = null, string $workspaceName = 'live', boolean $dryRun = false, boolean $cleanup = true, string $skip = null, string $only = null ) : void
$controllerCommandName string Name of the command in question, for example "repair"
$output Neos\Flow\Cli\ConsoleOutput An instance of ConsoleOutput which can be used for output or dialogues
$nodeType Neos\ContentRepository\Domain\Model\NodeType Only handle this node type (if specified)
$workspaceName string Only handle this workspace (if specified)
$dryRun boolean If TRUE, don't do any changes, just simulate what you would do
$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

removeContentDimensionsFromRootAndSitesNode() 공개 메소드

This empties the content dimensions on those nodes, so when traversing via the Node API from the root node, the nodes below "/sites" are always reachable.
public removeContentDimensionsFromRootAndSitesNode ( string $workspaceName, boolean $dryRun ) : void
$workspaceName string
$dryRun boolean
리턴 void

프로퍼티 상세

$contentDimensionRepository 보호되어 있는 프로퍼티

protected ContentDimensionRepository,Neos\ContentRepository\Domain\Repository $contentDimensionRepository
리턴 Neos\ContentRepository\Domain\Repository\ContentDimensionRepository

$contextFactory 보호되어 있는 프로퍼티

protected ContextFactoryInterface,Neos\ContentRepository\Domain\Service $contextFactory
리턴 Neos\ContentRepository\Domain\Service\ContextFactoryInterface

$dimensionCombinator 보호되어 있는 프로퍼티

protected ContentDimensionCombinator,Neos\ContentRepository\Domain\Service $dimensionCombinator
리턴 Neos\ContentRepository\Domain\Service\ContentDimensionCombinator

$nodeDataRepository 보호되어 있는 프로퍼티

protected NodeDataRepository,Neos\ContentRepository\Domain\Repository $nodeDataRepository
리턴 Neos\ContentRepository\Domain\Repository\NodeDataRepository

$nodeUriPathSegmentGenerator 보호되어 있는 프로퍼티

protected NodeUriPathSegmentGenerator,Neos\Neos\Utility $nodeUriPathSegmentGenerator
리턴 Neos\Neos\Utility\NodeUriPathSegmentGenerator

$output 보호되어 있는 프로퍼티

protected ConsoleOutput,Neos\Flow\Cli $output
리턴 Neos\Flow\Cli\ConsoleOutput

$persistenceManager 보호되어 있는 프로퍼티

protected PersistenceManagerInterface,Neos\Flow\Persistence $persistenceManager
리턴 Neos\Flow\Persistence\PersistenceManagerInterface

$workspaceRepository 보호되어 있는 프로퍼티

protected WorkspaceRepository,Neos\ContentRepository\Domain\Repository $workspaceRepository
리턴 Neos\ContentRepository\Domain\Repository\WorkspaceRepository