You are here

function cmis_version_supported in CMIS API 6.2

Returns supported CMIS version

Return value

string

File

./cmis.module, line 139

Code

function cmis_version_supported() {
  $repository = cmisapi_getRepositoryInfo();
  foreach (array(
    'cmisVersionSupported',
    'cmisVersionsSupported',
  ) as $property_name) {
    if (isset($repository->{$property_name})) {
      return (string) $repository->{$property_name};
    }
  }
  throw new CMISException('Unable to determine CMIS supported version');
}