function _cmis_get_property in CMIS API 8
Same name and namespace in other branches
- 8.2 cmis.module \_cmis_get_property()
- 3.0.x cmis.module \_cmis_get_property()
Parameters
type $key:
type $property:
Return value
string
1 call to _cmis_get_property()
- template_preprocess_cmis_content_properties in ./
cmis.module - Template preprocess for content properties.
File
- ./
cmis.module, line 170 - Contains cmis.module.
Code
function _cmis_get_property($key, $property) {
$values = $property
->getValues();
if (!empty($values)) {
foreach ($values as &$value) {
if (!empty($value) && ($key == 'cmis:creationDate' || $key == 'cmis:lastModificationDate')) {
$value = $value
->format(\DateTime::ATOM);
}
}
return implode(', ', $values);
}
return '';
}