main/core/Repository/ResourceQueryBuilder.php
public function wherePathLike($path, $includeGivenPath = true)
    {
        $this->addWhereClause('node.path LIKE :pathlike');
        $this->parameters[':pathlike'] = $path.'%';

        if (!$includeGivenPath) {
            $this->addWhereClause('node.path <> :path');
            $this->parameters[':path'] = $path;
        }

        return $this;
    }
public function wherePathLike($path, $includeGivenPath = true)
    {
        $this->addWhereClause('node.path LIKE :pathlike');
        $this->parameters[':pathlike'] = $path.'%';

        if (!$includeGivenPath) {
            $this->addWhereClause('node.path <> :path');
            $this->parameters[':path'] = $path;
        }

        return $this;
    }
public function wherePathLike ( $ path , $ includeGivenPath = true ) { $ this -> addWhereClause ( 'node.path LIKE :pathlike' ) ; $ this -> parameters [ ':pathlike' ] = $ path . '%' ; if ( ! $ includeGivenPath ) { $ this -> addWhereClause ( 'node.path <> :path' ) ; $ this -> parameters [ ':path' ] = $ path ; } return $ this ; }
Filters nodes whose path begins with a given path.

@param string $path
@param bool   $includeGivenPath

@return ResourceQueryBuilder
Filters nodes whose path begins with a given path .