public function getFolderTree($depth, OperationContextInterface $context = null)
    {
        $context = $this->ensureContext($context);
        $containerList = $this->getBinding()->getNavigationService()->getFolderTree(
            $this->getRepositoryId(),
            $this->getId(),
            (int) $depth,
            $context->getQueryFilterString(),
            $context->isIncludeAllowableActions(),
            $context->getIncludeRelationships(),
            $context->getRenditionFilterString(),
            $context->isIncludePathSegments()
        );

        return $this->convertBindingContainer($containerList, $context);
    }
public function getFolderTree($depth, OperationContextInterface $context = null)
    {
        $context = $this->ensureContext($context);
        $containerList = $this->getBinding()->getNavigationService()->getFolderTree(
            $this->getRepositoryId(),
            $this->getId(),
            (int) $depth,
            $context->getQueryFilterString(),
            $context->isIncludeAllowableActions(),
            $context->getIncludeRelationships(),
            $context->getRenditionFilterString(),
            $context->isIncludePathSegments()
        );

        return $this->convertBindingContainer($containerList, $context);
    }
public function getFolderTree ( $ depth , OperationContextInterface $ context = null ) { $ context = $ this -> ensureContext ( $ context ) ; $ containerList = $ this -> getBinding ( ) -> getNavigationService ( ) -> getFolderTree ( $ this -> getRepositoryId ( ) , $ this -> getId ( ) , ( int ) $ depth , $ context -> getQueryFilterString ( ) , $ context -> isIncludeAllowableActions ( ) , $ context -> getIncludeRelationships ( ) , $ context -> getRenditionFilterString ( ) , $ context -> isIncludePathSegments ( ) ) ; return $ this -> convertBindingContainer ( $ containerList , $ context ) ; }
Gets the folder tree starting with this folder using the given OperationContext.

@param integer $depth The number of levels of depth in the folder hierarchy from which to return results.
Valid values are:
1
Return only objects that are children of the folder. See also getChildren.
<Integer value greater than 1>
Return only objects that are children of the folder and descendants up to <value> levels deep.
-1
Return ALL descendant objects at all depth levels in the CMIS hierarchy.
The default value is repository specific and SHOULD be at least 2 or -1.
@param OperationContextInterface|null $context
@return TreeInterface A tree that contains FileableCmisObject objects
@see FileableCmisObject FileableCmisObject contained in returned TreeInterface
Gets the folder tree starting with this folder using the given OperationContext .