',++$counter%2 ? 'odd' : 'even');
echo 'OID | ';
printf('%s | ',$attr->getOID());
break;
case 'obsolete':
printf('%s | ',_('Obsolete'));
printf('%s | ',$attr->getIsObsolete() ? ''._('Yes').'' : _('No'));
break;
case 'inherits':
printf('%s | ',_('Inherits from'));
print '';
if (is_null($attr->getSupAttribute()))
printf('(%s)',_('none'));
else
printf('%s',
$ldapserver->server_id,$view,
strtolower($attr->getSupAttribute()),$attr->getSupAttribute());
print ' | ';
break;
case 'equality':
printf('%s | ',_('Equality'));
printf('%s | ',
is_null($attr->getEquality()) ? '('._('not specified').')' :
sprintf('%s',
$ldapserver->server_id,$attr->getEquality(),$attr->getEquality()));
break;
case 'ordering':
printf('%s | ',_('Ordering'));
printf('%s | ',
is_null($attr->getOrdering()) ? '('._('not specified').')' : $attr->getOrdering());
break;
case 'substring_rule':
printf('%s | ',_('Substring Rule'));
printf('%s | ',
is_null($attr->getSubstr()) ? '('._('not specified').')' : $attr->getSubstr());
break;
case 'syntax':
printf('%s | ',_('Syntax'));
print '';
if (is_null($attr->getType())) {
echo $attr->getSyntaxOID();
} else {
printf('%s (%s)',
$ldapserver->server_id,
$attr->getSyntaxOID(),$attr->getSyntaxOID(),
$attr->getType(),$attr->getSyntaxOID());
}
print ' | ';
break;
case 'single_valued':
printf('%s | ',_('Single Valued'));
printf('%s | ',$attr->getIsSingleValue() ? _('Yes') : _('No'));
break;
case 'collective':
printf('%s | ',_('Collective'));
printf('%s | ',$attr->getIsCollective() ? _('Yes') : _('No'));
break;
case 'user_modification':
printf('%s | ',_('User Modification'));
printf('%s | ',$attr->getIsNoUserModification() ? _('No') : _('Yes'));
break;
case 'usage':
printf('%s | ',_('Usage'));
printf('%s | ',$attr->getUsage() ? $attr->getUsage() : '('._('not specified').')');
break;
case 'maximum_length':
printf('%s | ',_('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':
printf('%s | ',_('Aliases'));
print '';
if (count($attr->getAliases()) == 0)
echo '('._('none').')';
else
foreach ($attr->getAliases() as $alias_attr_name)
printf('%s',
$ldapserver->server_id,strtolower($alias_attr_name),$alias_attr_name);
print ' | ';
break;
case 'used_by_objectclasses':
printf('%s | ',_('Used by objectClasses'));
print '';
if (count($attr->getUsedInObjectClasses()) == 0)
echo '('._('none').')';
else
foreach ($attr->getUsedInObjectClasses() as $used_in_oclass)
printf('%s ',
$ldapserver->server_id,strtolower($used_in_oclass),$used_in_oclass);
print ' | ';
break;
}
print '
';
}
flush();
}
}
print '