',++$counter%2 ? 'odd' : 'even');
echo 'OID | ';
printf('%s | ',$attr->getOID());
break;
case 'obsolete':
printf('%s | ',$attr->getIsObsolete() ? ''._('Yes').'' : _('No'));
break;
case 'inherits':
echo '';
if (is_null($attr->getSupAttribute()))
{
printf('(%s)', _('none'));
}
else {
$href = htmlspecialchars(sprintf('%s&viewvalue=%s',$entry['href']['attributes'],strtolower($attr->getSupAttribute())));
if (isAjaxEnabled())
{
printf('%s',
$href, strtolower($attr->getSupAttribute()), $attr->getSupAttribute());
}
else
{
printf('%s', $href, $attr->getSupAttribute());
}
}
echo ' | ';
break;
case 'equality':
echo '';
if (is_null($attr->getEquality()))
{
printf('(%s)', _('not specified'));
}
else {
$href = htmlspecialchars(sprintf('%s&viewvalue=%s',$entry['href']['matching_rules'],$attr->getEquality()));
if (isAjaxEnabled())
{
printf('%s',
$href, $href, _('Matching Rules'), $attr->getEquality(), $attr->getEquality());
}
else
{
printf('%s', $href, $attr->getEquality());
}
}
echo ' | ';
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':
echo '';
if (is_null($attr->getType())) {
echo $attr->getSyntaxOID();
} else {
$href = htmlspecialchars(sprintf('%s&highlight_oid=%s',$entry['href']['syntaxes'],$attr->getSyntaxOID()));
if (isAjaxEnabled())
{
printf('%s (%s)',
$href, $href, _('Syntaxes'), '', $attr->getType(), $attr->getSyntaxOID());
}
else
{
printf('%s (%s)', $href, $attr->getType(), $attr->getSyntaxOID());
}
}
echo ' | ';
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':
echo '';
if ( is_null($attr->getMaxLength()))
{
echo '(' . _('not applicable') . ')';
}
else
{
printf('%s %s', number_format($attr->getMaxLength()),
$attr->getMaxLength() > 1 ? _('characters') : _('character'));
}
echo ' | ';
break;
case 'aliases':
echo '';
if (count($attr->getAliases()) == 0)
{
printf('(%s)', _('none'));
}
else
{
foreach ($attr->getAliases() as $alias)
{
$href = htmlspecialchars(sprintf('%s&viewvalue=%s', $entry['href']['attributes'], strtolower($alias)));
if (isAjaxEnabled())
{
printf('%s',
$href, strtolower($alias), $alias);
} else
{
printf('%s', $href, $alias);
}
}
}
echo ' | ';
break;
case 'used_by_objectclasses':
echo '';
if (count($attr->getUsedInObjectClasses()) == 0)
{
printf('(%s)', _('none'));
}
else
{
foreach ($attr->getUsedInObjectClasses() as $objectclass)
{
$href = htmlspecialchars(sprintf('%s&viewvalue=%s', $entry['href']['objectclasses'], strtolower($objectclass)));
if (isAjaxEnabled())
{
printf('%s ',
$href, $href, _('ObjectClasses'), strtolower($objectclass), $objectclass);
} else
{
printf('%s ', $href, $objectclass);
}
}
}
echo ' | ';
break;
case 'force_as_may':
printf('%s | ',$attr->isForceMay() ? _('Yes') : _('No'));
break;
}
echo '
';
}
echo '