From 56ef8a027adc87b481a5bfef7053d80f04d86118 Mon Sep 17 00:00:00 2001 From: Hidde Wieringa Date: Sat, 9 Apr 2016 18:23:37 +0200 Subject: [PATCH] [LDAP] Check whether an entry attribute exists Fixed bool/boolean coding standard --- src/Symfony/Component/Ldap/Entry.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Symfony/Component/Ldap/Entry.php b/src/Symfony/Component/Ldap/Entry.php index 17551a4f7a223..42745c2b8928c 100644 --- a/src/Symfony/Component/Ldap/Entry.php +++ b/src/Symfony/Component/Ldap/Entry.php @@ -35,6 +35,18 @@ public function getDn() return $this->dn; } + /** + * Returns whether an attribute exists. + * + * @param $name string The name of the attribute + * + * @return bool + */ + public function hasAttribute($name) + { + return isset($this->attributes[$name]); + } + /** * Returns a specific attribute's value. * pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy