PHP Класс Neos\Neos\Ui\TYPO3CR\Service\NodeService

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

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

Свойство Тип Описание
$contextFactory TYPO3\TYPO3CR\Domain\Service\ContextFactoryInterface
$domainRepository TYPO3\Neos\Domain\Repository\DomainRepository
$siteRepository TYPO3\Neos\Domain\Repository\SiteRepository

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

Метод Описание
getClosestDocument ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $node ) : TYPO3\TYPO3CR\Domain\Model\NodeInterface Helper method to retrieve the closest document for a node
getNodeFromContextPath ( string $contextPath, TYPO3\Neos\Domain\Model\Site $site = null, TYPO3\Neos\Domain\Model\Domain $domain = null ) : TYPO3\TYPO3CR\Domain\Model\NodeInterface Converts a given context path to a node object
isDocument ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $node ) : boolean Helper method to check if a given node is a document node.

Защищенные методы

Метод Описание
prepareContextProperties ( string $workspaceName, array $dimensions = null ) : array Prepares the context properties for the nodes based on the given workspace and dimensions

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

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

Helper method to retrieve the closest document for a node
public getClosestDocument ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $node ) : TYPO3\TYPO3CR\Domain\Model\NodeInterface
$node TYPO3\TYPO3CR\Domain\Model\NodeInterface
Результат TYPO3\TYPO3CR\Domain\Model\NodeInterface

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

Converts a given context path to a node object
public getNodeFromContextPath ( string $contextPath, TYPO3\Neos\Domain\Model\Site $site = null, TYPO3\Neos\Domain\Model\Domain $domain = null ) : TYPO3\TYPO3CR\Domain\Model\NodeInterface
$contextPath string
$site TYPO3\Neos\Domain\Model\Site
$domain TYPO3\Neos\Domain\Model\Domain
Результат TYPO3\TYPO3CR\Domain\Model\NodeInterface

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

Helper method to check if a given node is a document node.
public isDocument ( TYPO3\TYPO3CR\Domain\Model\NodeInterface $node ) : boolean
$node TYPO3\TYPO3CR\Domain\Model\NodeInterface The node to check
Результат boolean A boolean which indicates if the given node is a document node.

prepareContextProperties() защищенный Метод

Prepares the context properties for the nodes based on the given workspace and dimensions
protected prepareContextProperties ( string $workspaceName, array $dimensions = null ) : array
$workspaceName string
$dimensions array
Результат array

Описание свойств

$contextFactory защищенное свойство

protected ContextFactoryInterface,TYPO3\TYPO3CR\Domain\Service $contextFactory
Результат TYPO3\TYPO3CR\Domain\Service\ContextFactoryInterface

$domainRepository защищенное свойство

protected DomainRepository,TYPO3\Neos\Domain\Repository $domainRepository
Результат TYPO3\Neos\Domain\Repository\DomainRepository

$siteRepository защищенное свойство

protected SiteRepository,TYPO3\Neos\Domain\Repository $siteRepository
Результат TYPO3\Neos\Domain\Repository\SiteRepository