setDocument() public method

Set the document
public setDocument ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $document ) : void
$document TYPO3\TYPO3CR\Domain\Model\NodeInterface
return void
コード例 #1
0
ファイル: AbstractChange.php プロジェクト: neos/neos-ui
 /**
  * Helper method to inform the client, that new workspace information is available
  *
  * @return void
  */
 protected function updateWorkspaceInfo()
 {
     $nodeService = new NodeService();
     $updateWorkspaceInfo = new UpdateWorkspaceInfo();
     $updateWorkspaceInfo->setDocument($nodeService->getClosestDocument($this->getSubject()));
     $this->feedbackCollection->add($updateWorkspaceInfo);
 }
コード例 #2
0
 /**
  * Helper method to inform the client, that new workspace information is available
  * @param string $documentNodeContextPath
  * @return void
  */
 protected function updateWorkspaceInfo($documentNodeContextPath)
 {
     $nodeService = new NodeService();
     $updateWorkspaceInfo = new UpdateWorkspaceInfo();
     $documnetNode = $this->nodeService->getNodeFromContextPath($documentNodeContextPath);
     $updateWorkspaceInfo->setDocument($nodeService->getClosestDocument($documnetNode));
     $this->feedbackCollection->add($updateWorkspaceInfo);
 }