src/LdapTools/Object/LdapObject.php
protected function attributeHasValue($attribute, $value)
    {
        $attribute = $this->resolveAttributeName($attribute);

        if (is_array($this->attributes[$attribute])) {
            return in_array($value, $this->attributes[$attribute]);
        } else {
            return ($this->attributes[$attribute] == $value);
        }
    }
protected function attributeHasValue($attribute, $value)
    {
        $attribute = $this->resolveAttributeName($attribute);

        if (is_array($this->attributes[$attribute])) {
            return in_array($value, $this->attributes[$attribute]);
        } else {
            return ($this->attributes[$attribute] == $value);
        }
    }
protected function attributeHasValue ( $ attribute , $ value ) { $ attribute = $ this -> resolveAttributeName ( $ attribute ) ; if ( is_array ( $ this -> attributes [ $ attribute ] ) ) { return in_array ( $ value , $ this -> attributes [ $ attribute ] ) ; } else { return ( $ this -> attributes [ $ attribute ] == $ value ) ; } }
Check if an attribute has a specific value. Called only when the attribute is known to exist already.

@param string $attribute
@param mixed $value
@return bool
Check if an attribute has a specific value . Called only when the attribute is known to exist already .