LdapTools\Resolver\AttributeNameResolver::selectedButNotPartOfEntry PHP Метод

selectedButNotPartOfEntry() защищенный Метод

Check whether the attribute name was selected to be returned but is not yet part of the entry. Adjusts the check to be case insensitive.
protected selectedButNotPartOfEntry ( string $attribute, array $entry ) : boolean
$attribute string
$entry array
Результат boolean
    protected function selectedButNotPartOfEntry($attribute, array $entry)
    {
        $lcAttribute = MBString::strtolower($attribute);
        $inSelectedAttributes = in_array($lcAttribute, MBString::array_change_value_case($this->selectedAttributes));
        $existsInEntry = array_key_exists($lcAttribute, MBString::array_change_key_case($entry));
        return $inSelectedAttributes && !$existsInEntry;
    }