',++$counter%2 ? 'odd' : 'even');
echo 'OID | ';
printf('%s | ',$attr->getOID());
break;
case 'obsolete':
printf('%s | ',$attr->getIsObsolete() ? ''._('Yes').'' : _('No'));
break;
case 'inherits':
print '';
if (is_null($attr->getSupAttribute()))
printf('(%s)',_('none'));
else {
$href = htmlspecialchars(sprintf($entry['href']['attributes'],strtolower($attr->getSupAttribute())));
printf('%s',$href,$attr->getSupAttribute());
}
print ' | ';
break;
case 'equality':
print '';
if (is_null($attr->getEquality()))
printf('(%s)',_('not specified'));
else {
$href = htmlspecialchars(sprintf($entry['href']['matching_rules'],$attr->getEquality()));
printf('%s',$href,$attr->getEquality());
}
print ' | ';
break;
case 'ordering':
printf('%s | ',
is_null($attr->getOrdering()) ? '('._('not specified').')' : $attr->getOrdering());
break;
case 'substring_rule':
printf('%s | ',
is_null($attr->getSubstr()) ? '('._('not specified').')' : $attr->getSubstr());
break;
case 'syntax':
print '';
if (is_null($attr->getType())) {
echo $attr->getSyntaxOID();
} else {
$href = htmlspecialchars(sprintf($entry['href']['syntaxes'].'&highlight_oid=%s#%s','',
$attr->getSyntaxOID(),$attr->getSyntaxOID()));
printf('%s (%s)',$href,$attr->getType(),$attr->getSyntaxOID());
}
print ' | ';
break;
case 'single_valued':
printf('%s | ',$attr->getIsSingleValue() ? _('Yes') : _('No'));
break;
case 'collective':
printf('%s | ',$attr->getIsCollective() ? _('Yes') : _('No'));
break;
case 'user_modification':
printf('%s | ',$attr->getIsNoUserModification() ? _('No') : _('Yes'));
break;
case 'usage':
printf('%s | ',$attr->getUsage() ? $attr->getUsage() : '('._('not specified').')');
break;
case 'maximum_length':
print '';
if ( is_null($attr->getMaxLength()))
echo '('._('not applicable').')';
else
printf('%s %s',number_format($attr->getMaxLength()),
$attr->getMaxLength()>1 ? _('characters') : _('character'));
print ' | ';
break;
case 'aliases':
print '';
if (count($attr->getAliases()) == 0)
printf('(%s)',_('none'));
else
foreach ($attr->getAliases() as $alias_attr_name) {
$href = htmlspecialchars(sprintf($entry['href']['attributes'],strtolower($alias_attr_name)));
printf('%s',$href,$alias_attr_name);
}
print ' | ';
break;
case 'used_by_objectclasses':
print '';
if (count($attr->getUsedInObjectClasses()) == 0)
printf('(%s)',_('none'));
else
foreach ($attr->getUsedInObjectClasses() as $used_in_oclass) {
$href = htmlspecialchars(sprintf($entry['href']['objectClasses'],strtolower($used_in_oclass)));
printf('%s ',$href,$used_in_oclass);
}
print ' | ';
break;
}
print '
';
}
print '