src/LdapTools/Query/Operator/BaseOperator.php
protected function getAttributeToQuery($alias)
    {
        $attribute = $this->getTranslatedAttribute($alias) ?: $this->getAttribute();

        // This avoids possible LDAP injection from unverified input for an attribute name.
        if (!LdapUtilities::isValidAttributeFormat($attribute)) {
            throw new LdapQueryException(sprintf('Attribute "%s" is not a valid name or OID.', $attribute));
        }

        return $attribute;
    }
protected function getAttributeToQuery($alias)
    {
        $attribute = $this->getTranslatedAttribute($alias) ?: $this->getAttribute();

        // This avoids possible LDAP injection from unverified input for an attribute name.
        if (!LdapUtilities::isValidAttributeFormat($attribute)) {
            throw new LdapQueryException(sprintf('Attribute "%s" is not a valid name or OID.', $attribute));
        }

        return $attribute;
    }
protected function getAttributeToQuery ( $ alias ) { $ attribute = $ this -> getTranslatedAttribute ( $ alias ) ? : $ this -> getAttribute ( ) ; // This avoids possible LDAP injection from unverified input for an attribute name. if ( ! LdapUtilities :: isValidAttributeFormat ( $ attribute ) ) { throw new LdapQueryException ( sprintf ( 'Attribute "%s" is not a valid name or OID.' , $ attribute ) ) ; } return $ attribute ; }
This will get the translated attribute or just the attribute if no schema translation was done.

@param null|string $alias
@return string
@throws LdapQueryException
This will get the translated attribute or just the attribute if no schema translation was done .