[LDAP] Check whether an entry attribute exists
Fixed bool/boolean coding standard
This commit is contained in:
parent
0b67fa3dd1
commit
56ef8a027a
@ -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.
|
||||
*
|
||||
|
Reference in New Issue
Block a user