@@ 361-376 (lines=16) @@ | ||
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 | ); |
|
374 | ||
375 | return $children->getNumItems(); |
|
376 | } |
|
377 | ||
378 | /** |
|
379 | * Gets the folder descendants starting with this folder. |
|
@@ 386-401 (lines=16) @@ | ||
383 | * @return TreeInterface A tree that contains FileableCmisObject objects |
|
384 | * @see FileableCmisObject FileableCmisObject contained in returned TreeInterface |
|
385 | */ |
|
386 | public function getDescendants($depth, OperationContextInterface $context = null) |
|
387 | { |
|
388 | $context = $this->ensureContext($context); |
|
389 | $containerList = $this->getBinding()->getNavigationService()->getDescendants( |
|
390 | $this->getRepositoryId(), |
|
391 | $this->getId(), |
|
392 | (int) $depth, |
|
393 | $context->getQueryFilterString(), |
|
394 | $context->isIncludeAllowableActions(), |
|
395 | $context->getIncludeRelationships(), |
|
396 | $context->getRenditionFilterString(), |
|
397 | $context->isIncludePathSegments() |
|
398 | ); |
|
399 | ||
400 | return $this->convertBindingContainer($containerList, $context); |
|
401 | } |
|
402 | ||
403 | /** |
|
404 | * Gets the parent folder object. |
|
@@ 442-457 (lines=16) @@ | ||
439 | * @return TreeInterface A tree that contains FileableCmisObject objects |
|
440 | * @see FileableCmisObject FileableCmisObject contained in returned TreeInterface |
|
441 | */ |
|
442 | public function getFolderTree($depth, OperationContextInterface $context = null) |
|
443 | { |
|
444 | $context = $this->ensureContext($context); |
|
445 | $containerList = $this->getBinding()->getNavigationService()->getFolderTree( |
|
446 | $this->getRepositoryId(), |
|
447 | $this->getId(), |
|
448 | (int) $depth, |
|
449 | $context->getQueryFilterString(), |
|
450 | $context->isIncludeAllowableActions(), |
|
451 | $context->getIncludeRelationships(), |
|
452 | $context->getRenditionFilterString(), |
|
453 | $context->isIncludePathSegments() |
|
454 | ); |
|
455 | ||
456 | return $this->convertBindingContainer($containerList, $context); |
|
457 | } |
|
458 | ||
459 | /** |
|
460 | * Returns the path of the folder. |