You are here

function _cmis_browser_content_get_folder in CMIS API 6.2

Same name and namespace in other branches
  1. 6.4 cmis_browser/cmis_browser.content_get.inc \_cmis_browser_content_get_folder()
  2. 6.3 cmis_browser/cmis_browser.content_get.inc \_cmis_browser_content_get_folder()
  3. 7.2 cmis_browser/cmis_browser.content_get.inc \_cmis_browser_content_get_folder()
  4. 7 cmis_browser/cmis_browser.content_get.inc \_cmis_browser_content_get_folder()

CMIS folder browser handler.

1 call to _cmis_browser_content_get_folder()
cmis_browser_content_get in cmis_browser/cmis_browser.content_get.inc
Build cmis_browser browse page.

File

cmis_browser/cmis_browser.content_get.inc, line 69

Code

function _cmis_browser_content_get_folder($repository, $object, $bcarray = NULL) {

  // Children lookup
  try {
    $children = cmisapi_getChildren($repository->repositoryId, $object->id);
    if (empty($bcarray)) {
      $parents = cmisapi_getObjectParents($repository->repositoryId, $object->id);
    }
  } catch (CMISException $e) {
    cmis_error_handler('cmis_browser', $e);
    return '';
  }
  return theme('cmis_browser', array(
    'bcarray' => $bcarray,
    'children' => $children,
    'id' => $_GET['id'],
    'parents' => $parents,
  ));
}