Horde_Ldap::_quoteRDNs PHP Method

_quoteRDNs() protected static method

Takes a single or a list of RDN arrays with an attribute name and value and properly quotes it according to RFC 1485.
protected static _quoteRDNs ( array $attribute ) : string
$attribute array A tuple or array of tuples containing the attribute name and that attribute's value which make up the RDN.
return string The properly quoted string RDN.
    protected static function _quoteRDNs($attribute)
    {
        if (is_array($attribute[0])) {
            return implode('+', array_map('self::_quoteRDN', $attribute));
        } else {
            return self::_quoteRDN($attribute);
        }
    }