PHP Интерфейс Neos\ContentRepository\Domain\Service\PublishingServiceInterface

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

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

Метод Описание
discardAllNodes ( Workspace $workspace ) : void Discards all unpublished nodes of the given workspace.
discardNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Discards the given node.
discardNodes ( array $nodes ) : void Discards the given nodes.
getUnpublishedNodes ( Workspace $workspace ) : array<\Neos\ContentRepository\Domain\Model\NodeInterface> Returns a list of nodes contained in the given workspace which are not yet published
getUnpublishedNodesCount ( Workspace $workspace ) : integer Returns the number of unpublished nodes contained in the given workspace
publishNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Workspace $targetWorkspace = null ) : void Publishes the given node to the specified target workspace. If no workspace is specified, "live" is assumed.
publishNodes ( array $nodes, Workspace $targetWorkspace = null ) : void Publishes the given nodes to the specified target workspace. If no workspace is specified, "live" is assumed.

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

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

Discards all unpublished nodes of the given workspace.
public discardAllNodes ( Workspace $workspace ) : void
$workspace Neos\ContentRepository\Domain\Model\Workspace The workspace to flush, can't be the live workspace
Результат void

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

Discards the given node.
public discardNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
Результат void

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

Discards the given nodes.
public discardNodes ( array $nodes ) : void
$nodes array
Результат void

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

Returns a list of nodes contained in the given workspace which are not yet published
public getUnpublishedNodes ( Workspace $workspace ) : array<\Neos\ContentRepository\Domain\Model\NodeInterface>
$workspace Neos\ContentRepository\Domain\Model\Workspace
Результат array<\Neos\ContentRepository\Domain\Model\NodeInterface>

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

Returns the number of unpublished nodes contained in the given workspace
public getUnpublishedNodesCount ( Workspace $workspace ) : integer
$workspace Neos\ContentRepository\Domain\Model\Workspace
Результат integer

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

Publishes the given node to the specified target workspace. If no workspace is specified, "live" is assumed.
public publishNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Workspace $targetWorkspace = null ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$targetWorkspace Neos\ContentRepository\Domain\Model\Workspace If not set the "live" workspace is assumed to be the publishing target
Результат void

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

Publishes the given nodes to the specified target workspace. If no workspace is specified, "live" is assumed.
public publishNodes ( array $nodes, Workspace $targetWorkspace = null ) : void
$nodes array
$targetWorkspace Neos\ContentRepository\Domain\Model\Workspace If not set the "live" workspace is assumed to be the publishing target
Результат void