@@ 361-377 (lines=17) @@ | ||
358 | * @param OperationContextInterface|null $context |
|
359 | * @return int Total number of children. |
|
360 | */ |
|
361 | public function getNumChildren(OperationContextInterface $context = null) |
|
362 | { |
|
363 | $context = $this->ensureContext($context); |
|
364 | $children = $this->getBinding()->getNavigationService()->getChildren( |
|
365 | $this->getRepositoryId(), |
|
366 | $this->getId(), |
|
367 | $context->getQueryFilterString(), |
|
368 | $context->getOrderBy(), |
|
369 | $context->isIncludeAllowableActions(), |
|
370 | $context->getIncludeRelationships(), |
|
371 | $context->getRenditionFilterString(), |
|
372 | $context->isIncludePathSegments(), |
|
373 | 1 |
|
374 | ); |
|
375 | ||
376 | return $children->getNumItems(); |
|
377 | } |
|
378 | ||
379 | /** |
|
380 | * Gets the folder descendants starting with this folder. |
|
@@ 387-402 (lines=16) @@ | ||
384 | * @return TreeInterface A tree that contains FileableCmisObject objects |
|
385 | * @see FileableCmisObject FileableCmisObject contained in returned TreeInterface |
|
386 | */ |
|
387 | public function getDescendants($depth, OperationContextInterface $context = null) |
|
388 | { |
|
389 | $context = $this->ensureContext($context); |
|
390 | $containerList = $this->getBinding()->getNavigationService()->getDescendants( |
|
391 | $this->getRepositoryId(), |
|
392 | $this->getId(), |
|
393 | (int) $depth, |
|
394 | $context->getQueryFilterString(), |
|
395 | $context->isIncludeAllowableActions(), |
|
396 | $context->getIncludeRelationships(), |
|
397 | $context->getRenditionFilterString(), |
|
398 | $context->isIncludePathSegments() |
|
399 | ); |
|
400 | ||
401 | return $this->convertBindingContainer($containerList, $context); |
|
402 | } |
|
403 | ||
404 | /** |
|
405 | * Gets the parent folder object. |
|
@@ 443-458 (lines=16) @@ | ||
440 | * @return TreeInterface A tree that contains FileableCmisObject objects |
|
441 | * @see FileableCmisObject FileableCmisObject contained in returned TreeInterface |
|
442 | */ |
|
443 | public function getFolderTree($depth, OperationContextInterface $context = null) |
|
444 | { |
|
445 | $context = $this->ensureContext($context); |
|
446 | $containerList = $this->getBinding()->getNavigationService()->getFolderTree( |
|
447 | $this->getRepositoryId(), |
|
448 | $this->getId(), |
|
449 | (int) $depth, |
|
450 | $context->getQueryFilterString(), |
|
451 | $context->isIncludeAllowableActions(), |
|
452 | $context->getIncludeRelationships(), |
|
453 | $context->getRenditionFilterString(), |
|
454 | $context->isIncludePathSegments() |
|
455 | ); |
|
456 | ||
457 | return $this->convertBindingContainer($containerList, $context); |
|
458 | } |
|
459 | ||
460 | /** |
|
461 | * Returns the path of the folder. |