LdapTools\Object\LdapObject::attributeHasValue PHP 메소드

attributeHasValue() 보호된 메소드

Check if an attribute has a specific value. Called only when the attribute is known to exist already.
protected attributeHasValue ( string $attribute, mixed $value ) : boolean
$attribute string
$value mixed
리턴 boolean
    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;
        }
    }