You are here

protected function CmisBrowser::printFolderContent in CMIS API 8

Same name and namespace in other branches
  1. 8.2 src/CmisBrowser.php \Drupal\cmis\CmisBrowser::printFolderContent()
  2. 3.0.x src/CmisBrowser.php \Drupal\cmis\CmisBrowser::printFolderContent()

Add folder objects to render array.

Parameters

\Dkd\PhpCmis\Data\FolderInterface $folder:

1 call to CmisBrowser::printFolderContent()
CmisBrowser::browse in src/CmisBrowser.php
Browse.

File

src/CmisBrowser.php, line 323

Class

CmisBrowser
Description of CmisBrowser

Namespace

Drupal\cmis

Code

protected function printFolderContent(\Dkd\PhpCmis\Data\FolderInterface $folder) {
  $root = $this->connection
    ->getRootFolder();
  $element = new CmisElement($this->config, $this->popup, $this->current, '', $root
    ->getId());
  foreach ($folder
    ->getChildren() as $children) {
    $element
      ->setElement('browser', $children);
    $this->data[] = $element
      ->getDAta();
  }
}