Class Horde_Kolab_Server_test

Description

This class provides a class for testing the Kolab Server DB.

$Horde: framework/Kolab_Server/lib/Horde/Kolab/Server/test.php,v 1.2.2.8 2009/04/25 08:56:34 wrobel Exp $

Copyright 2008-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 /Kolab_Server/lib/Horde/Kolab/Server/test.php (line 35)

Horde_Kolab_Server
   |
   --Horde_Kolab_Server_ldap
      |
      --Horde_Kolab_Server_test
Variable Summary
Method Summary
 Horde_Kolab_Server_test Horde_Kolab_Server_test ([array $params = array()])
 NULL unbind ()
 boolean _add (string $dn, array $data)
 boolean|PEAR_Error _bind ([string $dn = false], [string $pw = ''])
 int _count (array $result)
 array|PEAR_Error _doSearch (array $filter, [array $attributes = null])
 int _errno ()
 string _error ()
 mixe _fetchEntry ()
 mixed _firstEntry (array $result)
 array _getAttributes (array $entry)
 string _getDn (array $entry)
 mixed _getEntries (array $result)
 resource _nextEntry (resource $entry)
 array|PEAR_Error _parse (string $filter)
 array|PEAR_Error _parseSub (string $filter)
 array|PEAR_Error _read (string $dn, [string $attrs = null])
 int _resultSort (array $a, array $b)
 array|PEAR_Error _search (string $filter, [array $attributes = null], [string $base = null])
 boolean _sort (resource &$result, string $attribute)
Variables
int $_current_index (line 77)

An index into the current result for iterating.

array $_current_result (line 70)

A result cache for iterating over the result.

int $_errno = 0 (line 49)

Buffer for error numbers.

int $_error = '' (line 56)

Buffer for error descriptions.

array $_result (line 42)

Array holding the current result set.

string $_sort_by (line 63)

Attribute used for sorting.

Inherited Variables

Inherited from Horde_Kolab_Server_ldap

Horde_Kolab_Server_ldap::$_base_dn
Horde_Kolab_Server_ldap::$_bound
Horde_Kolab_Server_ldap::$_connection

Inherited from Horde_Kolab_Server

Horde_Kolab_Server::$uid
Horde_Kolab_Server::$valid_types
Horde_Kolab_Server::$_params
Methods
Constructor Horde_Kolab_Server_test (line 84)

Construct a new Horde_Kolab_Server object.

Horde_Kolab_Server_test Horde_Kolab_Server_test ([array $params = array()])
  • array $params: Parameter array.
unbind (line 153)

Disconnect from LDAP.

NULL unbind ()

Redefinition of:
Horde_Kolab_Server_ldap::unbind()
Disconnect from LDAP.
_add (line 431)

Add a new object

  • return: True if adding succeeded.
boolean _add (string $dn, array $data)
  • string $dn: The DN of the object to be added.
  • array $data: The attributes of the object to be added.

Redefinition of:
Horde_Kolab_Server_ldap::_add()
Add a new object
_bind (line 104)

Binds the LDAP connection with a specific user and pass.

  • return: Whether or not the binding succeeded.
boolean|PEAR_Error _bind ([string $dn = false], [string $pw = ''])
  • string $dn: DN to bind with
  • string $pw: Password associated to this DN.

Redefinition of:
Horde_Kolab_Server_ldap::_bind()
Binds the LDAP connection with a specific user and pass.
_count (line 463)

Count the number of results.

  • return: The number of records found.
int _count (array $result)
  • array $result: The LDAP search result.

Redefinition of:
Horde_Kolab_Server_ldap::_count()
Count the number of results.
_doSearch (line 286)

Perform the search.

  • return: A LDAP serach result.
array|PEAR_Error _doSearch (array $filter, [array $attributes = null])
  • array $filter: Filter criteria-
  • array $attributes: Restrict the search result to these attributes.
_errno (line 624)

Return the current LDAP error number.

  • return: The current LDAP error number.
int _errno ()

Redefinition of:
Horde_Kolab_Server_ldap::_errno()
Return the current LDAP error number.
_error (line 634)

Return the current LDAP error description.

  • return: The current LDAP error description.
string _error ()

Redefinition of:
Horde_Kolab_Server_ldap::_error()
Return the current LDAP error description.
_fetchEntry (line 511)

Return the current entry of a result.

  • return: The current entry of the result or false.
mixe _fetchEntry ()
_firstEntry (line 543)

Return the first entry of a result.

  • return: The first entry of the result or false.
mixed _firstEntry (array $result)
  • array $result: The LDAP search result.

Redefinition of:
Horde_Kolab_Server_ldap::_firstEntry()
Return the first entry of a result.
_getAttributes (line 498)

Return the attributes of an entry.

  • return: The attributes of the entry.
array _getAttributes (array $entry)
  • array $entry: The LDAP entry.

Redefinition of:
Horde_Kolab_Server_ldap::_getAttributes()
Return the attributes of an entry.
_getDn (line 479)

Return the dn of an entry.

  • return: The DN of the entry.
string _getDn (array $entry)
  • array $entry: The LDAP entry.

Redefinition of:
Horde_Kolab_Server_ldap::_getDn()
Return the dn of an entry.
_getEntries (line 569)

Return the entries of a result.

  • return: The entries of the result or false.
mixed _getEntries (array $result)
  • array $result: The LDAP search result.

Redefinition of:
Horde_Kolab_Server_ldap::_getEntries()
Return the entries of a result.
_nextEntry (line 557)

Return the next entry of a result.

  • return: The next entry of the result.
resource _nextEntry (resource $entry)
  • resource $entry: The current LDAP entry.

Redefinition of:
Horde_Kolab_Server_ldap::_nextEntry()
Return the next entry of a result.
_parse (line 166)

Parse LDAP filter.

Partially derived from Net_LDAP_Filter.

  • return: An array of the parsed filter.
array|PEAR_Error _parse (string $filter)
  • string $filter: The filter string.
_parseSub (line 204)

Parse a LDAP subfilter.

  • return: An array of the parsed subfilter.
array|PEAR_Error _parseSub (string $filter)
  • string $filter: The subfilter string.
_read (line 386)

Read object data.

  • return: An array of attributes.
array|PEAR_Error _read (string $dn, [string $attrs = null])
  • string $dn: The object to retrieve.
  • string $attrs: Restrict to these attributes

Redefinition of:
Horde_Kolab_Server_ldap::_read()
Read object data.
_resultSort (line 611)

Sort two entries.

  • return: Comparison result.
int _resultSort (array $a, array $b)
  • array $a: First entry.
  • array $b: Second entry.
_search (line 241)

Search for an object.

  • return: A LDAP serach result.
array|PEAR_Error _search (string $filter, [array $attributes = null], [string $base = null])
  • string $filter: Filter criteria.
  • array $attributes: Restrict the search result to these attributes.
  • string $base: DN of the search base.

Redefinition of:
Horde_Kolab_Server_ldap::_search()
Search for an object.
_sort (line 592)

Sort the entries of a result.

  • return: True if sorting succeeded.
boolean _sort (resource &$result, string $attribute)
  • resource &$result: The LDAP search result.
  • string $attribute: The attribute used for sorting.

Redefinition of:
Horde_Kolab_Server_ldap::_sort()
Sort the entries of a result.

Inherited Methods

Inherited From Horde_Kolab_Server_ldap

 Horde_Kolab_Server_ldap::addrsForIdOrMail()
 Horde_Kolab_Server_ldap::buildSearchQuery()
 Horde_Kolab_Server_ldap::getBaseUid()
 Horde_Kolab_Server_ldap::getGroupAddresses()
 Horde_Kolab_Server_ldap::getGroups()
 Horde_Kolab_Server_ldap::gidForAttr()
 Horde_Kolab_Server_ldap::mailForIdOrMail()
 Horde_Kolab_Server_ldap::mapAttributes()
 Horde_Kolab_Server_ldap::mapField()
 Horde_Kolab_Server_ldap::mapKeys()
 Horde_Kolab_Server_ldap::memberOfGroupAddress()
 Horde_Kolab_Server_ldap::save()
 Horde_Kolab_Server_ldap::searchQuery()
 Horde_Kolab_Server_ldap::uidForAttr()
 Horde_Kolab_Server_ldap::uidForIdOrMail()
 Horde_Kolab_Server_ldap::uidForMailAddress()
 Horde_Kolab_Server_ldap::unbind()
 Horde_Kolab_Server_ldap::unmapAttributes()
 Horde_Kolab_Server_ldap::_add()
 Horde_Kolab_Server_ldap::_attrsForFilter()
 Horde_Kolab_Server_ldap::_attrsFromResult()
 Horde_Kolab_Server_ldap::_bind()
 Horde_Kolab_Server_ldap::_connect()
 Horde_Kolab_Server_ldap::_count()
 Horde_Kolab_Server_ldap::_determineType()
 Horde_Kolab_Server_ldap::_dnForFilter()
 Horde_Kolab_Server_ldap::_dnFromResult()
 Horde_Kolab_Server_ldap::_errno()
 Horde_Kolab_Server_ldap::_error()
 Horde_Kolab_Server_ldap::_firstEntry()
 Horde_Kolab_Server_ldap::_generateUid()
 Horde_Kolab_Server_ldap::_getAttributes()
 Horde_Kolab_Server_ldap::_getDn()
 Horde_Kolab_Server_ldap::_getDns()
 Horde_Kolab_Server_ldap::_getEntries()
 Horde_Kolab_Server_ldap::_getObjectClasses()
 Horde_Kolab_Server_ldap::_listObjects()
 Horde_Kolab_Server_ldap::_nextEntry()
 Horde_Kolab_Server_ldap::_read()
 Horde_Kolab_Server_ldap::_search()
 Horde_Kolab_Server_ldap::_sort()

Inherited From Horde_Kolab_Server

 Horde_Kolab_Server::Horde_Kolab_Server()
 Horde_Kolab_Server::add()
 Horde_Kolab_Server::addrsForIdOrMail()
 Horde_Kolab_Server::factory()
 Horde_Kolab_Server::fetch()
 Horde_Kolab_Server::generateUid()
 Horde_Kolab_Server::getBaseUid()
 Horde_Kolab_Server::getGroups()
 Horde_Kolab_Server::gidForAttr()
 Horde_Kolab_Server::gidForMail()
 Horde_Kolab_Server::listHash()
 Horde_Kolab_Server::listObjects()
 Horde_Kolab_Server::mailForIdOrMail()
 Horde_Kolab_Server::memberOfGroupAddress()
 Horde_Kolab_Server::read()
 Horde_Kolab_Server::save()
 Horde_Kolab_Server::singleton()
 Horde_Kolab_Server::store()
 Horde_Kolab_Server::uidForAlias()
 Horde_Kolab_Server::uidForAttr()
 Horde_Kolab_Server::uidForId()
 Horde_Kolab_Server::uidForIdOrMail()
 Horde_Kolab_Server::uidForMail()
 Horde_Kolab_Server::uidForMailAddress()
 Horde_Kolab_Server::uidForMailOrAlias()
 Horde_Kolab_Server::uidForMailOrIdOrAlias()
 Horde_Kolab_Server::_determineType()
 Horde_Kolab_Server::_generateUid()
 Horde_Kolab_Server::_listObjects()
 Horde_Kolab_Server::_read()

Documentation generated on Sun, 30 Jan 2011 05:22:40 +0000 by phpDocumentor 1.4.3