mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-11-18 08:19:05 +01:00
LScli :: show : show attribute label and name
This commit is contained in:
parent
fa3742c609
commit
ff2ede7c36
1 changed files with 1 additions and 1 deletions
|
@ -1956,7 +1956,7 @@ class LSldapObject {
|
|||
public function _cli_show_attr($attr_name, $raw_values=false, $prefix="") {
|
||||
if (!isset($this -> attrs[$attr_name]))
|
||||
return;
|
||||
echo "$prefix - $attr_name :";
|
||||
echo "$prefix - ".$this -> attrs[$attr_name]->getLabel()." ($attr_name) :";
|
||||
$values = ($raw_values?$this -> attrs[$attr_name]->getValue():$this -> attrs[$attr_name]->getDisplayValue());
|
||||
if (empty($values)) {
|
||||
echo " empty\n";
|
||||
|
|
Loading…
Reference in a new issue