[LDAP] Check whether an entry attribute exists

Fixed bool/boolean coding standard
This commit is contained in:
Hidde Wieringa 2016-04-09 18:23:37 +02:00
parent 0b67fa3dd1
commit 56ef8a027a
No known key found for this signature in database
GPG Key ID: 014B9FCF5F3BFA95

View File

@ -35,6 +35,18 @@ class Entry
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.
*