',++$counter%2 ? 'odd' : 'even');
printf('%s | ',$lang['oid']);
printf('%s | ',$attr->getOID());
break;
case 'obsolete':
printf('%s | ',$attr->getIsObsolete() ? ''.$lang['yes'].'' : $lang['no']);
break;
case 'inherits':
print '';
if (is_null($attr->getSupAttribute()))
printf('(%s)',$lang['none']);
else
printf('%s',
$ldapserver->server_id,$view,
strtolower($attr->getSupAttribute()),$attr->getSupAttribute());
print ' | ';
break;
case 'equality':
printf('%s | ',
is_null($attr->getEquality()) ? '('.$lang['not_specified'].')' :
sprintf('%s',
$ldapserver->server_id,$attr->getEquality(),$attr->getEquality()));
break;
case 'ordering':
printf('%s | ',
is_null($attr->getOrdering()) ? '('.$lang['not_specified'].')' : $attr->getOrdering());
break;
case 'substring_rule':
printf('%s | ',
is_null($attr->getSubstr()) ? '('.$lang['not_specified'].')' : $attr->getSubstr());
break;
case '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 | ',$attr->getIsSingleValue() ? $lang['yes'] : $lang['no']);
break;
case 'collective':
printf('%s | ',$attr->getIsCollective() ? $lang['yes'] : $lang['no']);
break;
case 'user_modification':
printf('%s | ',$attr->getIsNoUserModification() ? $lang['no'] : $lang['yes']);
break;
case 'usage':
printf('%s | ',$attr->getUsage() ? $attr->getUsage() : '('.$lang['not_specified'].')');
break;
case 'maximum_length':
print '';
if ( is_null($attr->getMaxLength()))
echo '('.$lang['not_applicable'].')';
else
printf('%s %s',number_format($attr->getMaxLength()),
$attr->getMaxLength()>1 ? $lang['characters'] : $lang['character']);
print ' | ';
break;
case 'aliases':
print '';
if (count($attr->getAliases()) == 0)
echo '('.$lang['none'].')';
else
foreach ($attr->getAliases() as $alias_attr_name)
printf('%s',
$ldapserver->server_id,$alias_attr_name,$alias_attr_name);
print ' | ';
break;
case 'used_by_objectclasses':
print '';
if (count($attr->getUsedInObjectClasses()) == 0)
echo '('.$lang['none'].')';
else
foreach ($attr->getUsedInObjectClasses() as $used_in_oclass)
printf('%s ',
$ldapserver->server_id,$used_in_oclass,$used_in_oclass);
print ' | ';
break;
}
print '
';
}
flush();
}
}
print '