Neos\ContentRepository\Domain\Repository\NodeDataRepository::countByParentAndNodeType PHP Метод

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

NOTE: Only considers persisted nodes!
public countByParentAndNodeType ( string $parentPath, string $nodeTypeFilter, Workspace $workspace, array $dimensions = null, boolean $includeRemovedNodes = false ) : integer
$parentPath string Absolute path of the parent node
$nodeTypeFilter string Filter the node type of the nodes, allows complex expressions (e.g. "Neos.Neos:Page", "!Neos.Neos:Page,Neos.Neos:Text" or NULL)
$workspace Neos\ContentRepository\Domain\Model\Workspace The containing workspace
$dimensions array
$includeRemovedNodes boolean Should removed nodes be included in the result (defaults to FALSE)
Результат integer The number of nodes a similar call to findByParentAndNodeType() would return without any pending added nodes
    public function countByParentAndNodeType($parentPath, $nodeTypeFilter, Workspace $workspace, array $dimensions = null, $includeRemovedNodes = false)
    {
        return count($this->findByParentAndNodeType($parentPath, $nodeTypeFilter, $workspace, $dimensions, $includeRemovedNodes));
    }