function _cmis_browser_content_get_folder in CMIS API 7.2
Same name and namespace in other branches
- 6.4 cmis_browser/cmis_browser.content_get.inc \_cmis_browser_content_get_folder()
- 6.2 cmis_browser/cmis_browser.content_get.inc \_cmis_browser_content_get_folder()
- 6.3 cmis_browser/cmis_browser.content_get.inc \_cmis_browser_content_get_folder()
- 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 72
Code
function _cmis_browser_content_get_folder($repository, $object) {
try {
$children = cmisapi_getChildren($repository->repositoryId, $object->id)->objectList;
} catch (CMISException $e) {
cmis_error_handler('cmis_browser', $e);
return '';
}
$hook = !empty($_GET['type']) && $_GET['type'] == 'popup' ? 'cmis_browser_popup' : 'cmis_browser';
return theme($hook, array(
'children' => $children,
'bcarray' => explode('/', substr($object->properties['cmis:path'], 1)),
'type' => !empty($_GET['type']) ? check_plain($_GET['type']) : '',
));
}