mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-10-31 15:53:14 +01:00
LSldapObject : Added getDisplayValue() method
This commit is contained in:
parent
bdd228ff7a
commit
aa58a6932c
1 changed files with 21 additions and 0 deletions
|
@ -1073,6 +1073,27 @@ class LSldapObject {
|
|||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Retourne une valeur d'affichage de l'objet
|
||||
*
|
||||
* @author Benjamin Renard <brenard@easter-eggs.com>
|
||||
*
|
||||
* @param[in] $val string Le nom de la valeur demandee
|
||||
*
|
||||
* @retval mixed la valeur demandee ou ' ' si celle-ci est inconnue.
|
||||
*/
|
||||
function getDisplayValue($val) {
|
||||
if(isset($this -> attrs[$val])){
|
||||
if (method_exists($this -> attrs[$val],'getDisplayValue'))
|
||||
return $this -> attrs[$val] -> getDisplayValue();
|
||||
else
|
||||
return ' ';
|
||||
}
|
||||
else {
|
||||
return $this -> getValue($val);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Ajoute une valeur dans le tableau $this -> other_values
|
||||
*
|
||||
|
|
Loading…
Reference in a new issue