Class Horde_LDAP

Description

This is a utility class, every method is static.

$Horde: framework/LDAP/LDAP.php,v 1.5.12.15 2009/01/06 15:23:19 jan Exp $

Copyright 1999-2009 The Horde Project (http://www.horde.org/)

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

Located in /LDAP/LDAP.php (line 16)


	
			
Method Summary
 static string buildClause (string $lhs, string $op, string $rhs, [array $params = array()])
 static string quote (string $clause)
 static string quoteDN (array $parts)
Methods
static buildClause (line 31)

Return a boolean expression using the specified operator.

  • return: The LDAP search fragment.
static string buildClause (string $lhs, string $op, string $rhs, [array $params = array()])
  • string $lhs: The attribute to test.
  • string $op: The operator.
  • string $rhs: The comparison value.
  • array $params: Any additional parameters for the operator. @since Horde 3.2
static quote (line 58)

Escape characters with special meaning in LDAP searches.

  • return: The escaped string.
static string quote (string $clause)
  • string $clause: The string to escape.
static quoteDN (line 81)

Take an array of DN elements and properly quote it according to RFC 1485.

  • return: The properly quoted string DN.
static string quoteDN (array $parts)
  • array $parts:

    An array of tuples containing the attribute name and that attribute's value which make up the DN. Example:

    $parts = array(0 => array('cn', 'John Smith'),

    1. => array('dc', 'example'),
    2. => array('dc', 'com'));

Documentation generated on Sun, 30 Jan 2011 05:19:13 +0000 by phpDocumentor 1.4.3