*_count attributes

This commit is contained in:
Roland Gruber 2019-08-19 21:01:40 +02:00
parent 6815777b8c
commit fa259a2168
1 changed files with 17 additions and 0 deletions

View File

@ -455,6 +455,23 @@ class lamGroupList extends lamList {
}
}
/**
* {@inheritDoc}
* @see lamList::getAdditionalLDAPAttributesToRead()
*/
protected function getAdditionalLDAPAttributesToRead() {
$attrs = $this->type->getAttributes();
$ret = array();
$countLen = strlen('_count');
foreach ($attrs as $attr) {
$attrName = $attr->getAttributeName();
if (strrpos($attrName, '_count') === (strlen($attrName) - $countLen)) {
$ret[] = substr($attrName, 0, strlen($attrName) - $countLen);
}
}
return $ret;
}
}