steffen: server/kolab-horde-framework/kolab-horde-framework/LDAP LDAP.php, NONE, 1.1 package.xml, NONE, 1.1
cvs at intevation.de
cvs at intevation.de
Fri Oct 14 16:33:08 CEST 2005
Author: steffen
Update of /kolabrepository/server/kolab-horde-framework/kolab-horde-framework/LDAP
In directory doto:/tmp/cvs-serv28903/kolab-horde-framework/kolab-horde-framework/LDAP
Added Files:
LDAP.php package.xml
Log Message:
Separated Horde Framework from kolab-resource-handlers
--- NEW FILE: LDAP.php ---
<?php
/**
* This is a utility class, every method is static.
*
* $Horde: framework/LDAP/LDAP.php,v 1.5 2004/01/01 15:15:52 jan Exp $
*
* Copyright 1999-2004 Chuck Hagenbuch <chuck at 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.
*
* @author Chuck Hagenbuch <chuck at horde.org>
* @version $Revision: 1.1 $
* @since Horde 2.2
* @package Horde_LDAP
*/
class Horde_LDAP {
/**
* Return a boolean expression using the specified operator.
*
* @access public
*
* @param string $lhs The attribute to test.
* @param string $op The operator.
* @param string $rhs The comparison value.
*
* @returns string The LDAP search fragment.
*/
function buildClause($lhs, $op, $rhs)
{
switch ($op) {
case 'LIKE':
return empty($rhs) ?
sprintf('(%s=*)', $lhs) :
sprintf('(%s=*%s*)', $lhs, $rhs);
default:
return sprintf('(%s%s%s)', $lhs, $op, $rhs);
}
}
}
--- NEW FILE: package.xml ---
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!-- $Horde: framework/LDAP/package.xml,v 1.1 2004/01/13 05:00:27 chuck Exp $ -->
<!DOCTYPE package SYSTEM "http://pear.php.net/dtd/package-1.0">
<package version="1.0">
<name>Horde_LDAP</name>
<summary>LDAP Utility Class</summary>
<description>
Horde_LDAP:: contains some utility functions for dealing with LDA.
</description>
<license>LGPL</license>
<maintainers>
<maintainer>
<user>chuck</user>
<role>lead</role>
<name>Chuck Hagenbuch</name>
<email>chuck at horde.org</email>
</maintainer>
</maintainers>
<release>
<version>0.0.1</version>
<state>alpha</state>
<date>2004-01-12</date>
<notes>Initial Release.</notes>
<provides type="class" name="Horde_LDAP" />
<filelist>
<file role="php" name="LDAP.php" baseinstalldir="/Horde"/>
</filelist>
</release>
<changelog>
<release>
<version>0.0.1</version>
<date>2004-01-12</date>
<state>alpha</state>
<notes>Initial release as a PEAR package</notes>
</release>
</changelog>
</package>
More information about the commits
mailing list