You are here

function cmis_dev_info in CMIS API 6.2

Same name and namespace in other branches
  1. 6.4 cmis_dev/cmis_dev.module \cmis_dev_info()
  2. 6 cmis_dev/cmis_dev.module \cmis_dev_info()
  3. 6.3 cmis_dev/cmis_dev.module \cmis_dev_info()
  4. 7.2 cmis_dev/cmis_dev.module \cmis_dev_info()
  5. 7 cmis_dev/cmis_dev.module \cmis_dev_info()

Return CMIS Repository Information such as repo name, repo description, vendor name, product name and product version.

1 string reference to 'cmis_dev_info'
cmis_dev_menu in cmis_dev/cmis_dev.module
Implementation of hook_menu()

File

cmis_dev/cmis_dev.module, line 21

Code

function cmis_dev_info() {
  module_load_include('api.inc', 'cmis');
  try {
    $repository = cmisapi_getRepositoryInfo();
  } catch (CMISException $e) {
    cmis_error_handler('cmis_dev', $e);
    return '';
  }
  $rows = array(
    array(
      t('Name'),
      $repository->repositoryName,
    ),
    array(
      t('Id'),
      $repository->repositoryId,
    ),
    array(
      t('rootFolderId'),
      $repository->rootFolderId,
    ),
    array(
      t('Description'),
      $repository->repositoryDescription,
    ),
    array(
      t('Vendor'),
      $repository->vendorName,
    ),
    array(
      t('Version'),
      $repository->productVersion,
    ),
  );
  return theme('table', array(
    t('Name'),
    t('Properties'),
  ), $rows);
}