From 060ebf1bff3a9055ba407204ac2704726c603bc2 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Thu, 10 Sep 2020 12:26:48 +0200 Subject: [PATCH] Allow conversion of LSattr_ldap to string --- src/includes/class/class.LSattr_ldap.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/includes/class/class.LSattr_ldap.php b/src/includes/class/class.LSattr_ldap.php index 0fbb5410..59cbd055 100644 --- a/src/includes/class/class.LSattr_ldap.php +++ b/src/includes/class/class.LSattr_ldap.php @@ -53,6 +53,15 @@ class LSattr_ldap extends LSlog_staticLoggerClass { return true; } + /** + * Allow conversion of LSattr_ldap to string + * + * @retval string The string representation of the LSattr_ldap + */ + public function __toString() { + return "<".get_class($this)." ".$this -> name.">"; + } + /** * Retourne la valeur de l'attribut après traitement lié à son type ldap *