PHP 인터페이스 Neos\ContentRepository\Domain\Service\PublishingServiceInterface

파일 보기 프로젝트 열기: neos/neos-development-collection 0 사용 예제들

공개 메소드들

메소드 설명
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