PHP 클래스 Neos\ContentRepository\Domain\Service\PublishingService

상속: implements Neos\ContentRepository\Domain\Service\PublishingServiceInterface
파일 보기 프로젝트 열기: neos/neos-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$contentDimensionPresetSource Neos\ContentRepository\Domain\Service\ContentDimensionPresetSourceInterface
$contextFactory Neos\ContentRepository\Domain\Service\ContextFactoryInterface
$nodeDataRepository Neos\ContentRepository\Domain\Repository\NodeDataRepository
$nodeFactory Neos\ContentRepository\Domain\Factory\NodeFactory
$workspaceRepository Neos\ContentRepository\Domain\Repository\WorkspaceRepository

공개 메소드들

메소드 설명
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.
emitNodeDiscarded ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void Signals that a node has been discarded.
emitNodePublished ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Workspace $targetWorkspace = null ) : void Signals that a node has been published.
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, the source workspace's base workspace is assumed.
publishNodes ( array $nodes, Workspace $targetWorkspace = null ) : void Publishes the given nodes to the specified target workspace. If no workspace is specified, the source workspace's base workspace is assumed.

보호된 메소드들

메소드 설명
createContext ( Workspace $workspace, array $dimensionValues, array $contextProperties = [] ) : Context Creates a new content context based on the given workspace and the NodeData object.
doDiscardNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, array &$alreadyDiscardedNodeIdentifiers = [] ) : void Method which does the actual work of discarding, includes a protection against endless recursions and multiple discarding of the same node.
sortNodesForPublishing ( array $nodes ) : array Sort an unsorted list of nodes in a publishable order

메소드 상세

createContext() 보호된 메소드

Creates a new content context based on the given workspace and the NodeData object.
protected createContext ( Workspace $workspace, array $dimensionValues, array $contextProperties = [] ) : Context
$workspace Neos\ContentRepository\Domain\Model\Workspace Workspace for the new context
$dimensionValues array The dimension values for the new context
$contextProperties array Additional pre-defined context properties
리턴 Context

discardAllNodes() 공개 메소드

TODO: This method needs to be optimized / implemented in collaboration with a DQL-based method in NodeDataRepository
public discardAllNodes ( Workspace $workspace ) : void
$workspace Neos\ContentRepository\Domain\Model\Workspace The workspace to flush, can't be the live workspace
리턴 void

discardNode() 공개 메소드

If the node has been moved, this method will also discard all changes of child nodes of the given node.
public discardNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface The node to discard
리턴 void

discardNodes() 공개 메소드

Discards the given nodes.
public discardNodes ( array $nodes ) : void
$nodes array
리턴 void

doDiscardNode() 보호된 메소드

Method which does the actual work of discarding, includes a protection against endless recursions and multiple discarding of the same node.
protected doDiscardNode ( Neos\ContentRepository\Domain\Model\NodeInterface $node, array &$alreadyDiscardedNodeIdentifiers = [] ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface The node to discard
$alreadyDiscardedNodeIdentifiers array
리턴 void

emitNodeDiscarded() 공개 메소드

The signal emits the node that has been discarded.
public emitNodeDiscarded ( Neos\ContentRepository\Domain\Model\NodeInterface $node ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
리턴 void

emitNodePublished() 공개 메소드

The signal emits the source node and target workspace, i.e. the node contains its source workspace.
public emitNodePublished ( Neos\ContentRepository\Domain\Model\NodeInterface $node, Workspace $targetWorkspace = null ) : void
$node Neos\ContentRepository\Domain\Model\NodeInterface
$targetWorkspace Neos\ContentRepository\Domain\Model\Workspace
리턴 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, the source workspace's base workspace 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 base workspace is assumed to be the publishing target
리턴 void

publishNodes() 공개 메소드

Publishes the given nodes to the specified target workspace. If no workspace is specified, the source workspace's base workspace is assumed.
public publishNodes ( array $nodes, Workspace $targetWorkspace = null ) : void
$nodes array
$targetWorkspace Neos\ContentRepository\Domain\Model\Workspace If not set the base workspace is assumed to be the publishing target
리턴 void

sortNodesForPublishing() 보호된 메소드

Sort an unsorted list of nodes in a publishable order
protected sortNodesForPublishing ( array $nodes ) : array
$nodes array Unsorted list of nodes (unpublished nodes)
리턴 array Sorted list of nodes for publishing

프로퍼티 상세

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

protected ContentDimensionPresetSourceInterface,Neos\ContentRepository\Domain\Service $contentDimensionPresetSource
리턴 Neos\ContentRepository\Domain\Service\ContentDimensionPresetSourceInterface

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

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

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

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

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

protected NodeFactory,Neos\ContentRepository\Domain\Factory $nodeFactory
리턴 Neos\ContentRepository\Domain\Factory\NodeFactory

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

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