PHP Класс Neos\Neos\Command\NodeCommandControllerPlugin

- adding missing URI segments - removing dimensions on nodes / and /sites
Наследование: implements Neos\ContentRepository\Command\NodeCommandControllerPluginInterface
Показать файл Открыть проект

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

Свойство Тип Описание
$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