src/Sulu/Component/Content/Export/WebspaceExport.php
protected function buildNodeUuidToPathWhere($nodes, $not = false)
    {
        if ($nodes) {
            $paths = $this->getPathsByUuids($nodes);

            $wheres = [];
            foreach ($nodes as $key => $uuid) {
                if (isset($paths[$uuid])) {
                    $wheres[] = sprintf('ISDESCENDANTNODE("%s")', $paths[$uuid]);
                }
            }

            if (!empty($wheres)) {
                return ($not ? 'NOT ' : '') . '(' . implode(' OR ', $wheres) . ')';
            }
        }
    }
protected function buildNodeUuidToPathWhere($nodes, $not = false)
    {
        if ($nodes) {
            $paths = $this->getPathsByUuids($nodes);

            $wheres = [];
            foreach ($nodes as $key => $uuid) {
                if (isset($paths[$uuid])) {
                    $wheres[] = sprintf('ISDESCENDANTNODE("%s")', $paths[$uuid]);
                }
            }

            if (!empty($wheres)) {
                return ($not ? 'NOT ' : '') . '(' . implode(' OR ', $wheres) . ')';
            }
        }
    }
protected function buildNodeUuidToPathWhere ( $ nodes , $ not = false ) { if ( $ nodes ) { $ paths = $ this -> getPathsByUuids ( $ nodes ) ; $ wheres = [ ] ; foreach ( $ nodes as $ key => $ uuid ) { if ( isset ( $ paths [ $ uuid ] ) ) { $ wheres [ ] = sprintf ( 'ISDESCENDANTNODE("%s")' , $ paths [ $ uuid ] ) ; } } if ( ! empty ( $ wheres ) ) { return ( $ not ? 'NOT ' : '' ) . '(' . implode ( ' OR ' , $ wheres ) . ')' ; } } }
Build query to return only specific nodes.

@param $nodes
@param bool|false $not

@return string

@throws DocumentManagerException
Build query to return only specific nodes .