src/LdapTools/Query/OperatorCollection.php
public function toLdapFilter($alias = null)
    {
        if (is_null($alias) && !empty($this->aliases)) {
            $filter = $this->getLdapFilterForAliases();
        } else {
            $filter = $this->getLdapFilter($alias);
        }

        return $filter;
    }
public function toLdapFilter($alias = null)
    {
        if (is_null($alias) && !empty($this->aliases)) {
            $filter = $this->getLdapFilterForAliases();
        } else {
            $filter = $this->getLdapFilter($alias);
        }

        return $filter;
    }
public function toLdapFilter ( $ alias = null ) { if ( is_null ( $ alias ) && ! empty ( $ this -> aliases ) ) { $ filter = $ this -> getLdapFilterForAliases ( ) ; } else { $ filter = $ this -> getLdapFilter ( $ alias ) ; } return $ filter ; }
Get the LDAP filter string representation of all the operators in the collection.

@param string|null $alias The alias to narrow the filter to.
@return string
Get the LDAP filter string representation of all the operators in the collection .