Overview

Packages

  • None
  • Vilma

Classes

  • Vilma
  • Vilma_Api
  • Vilma_Driver
  • Vilma_Driver_Qmailldap
  • Vilma_Driver_Sql
  • Vilma_Form_DeleteDomain
  • Vilma_Form_EditAlias
  • Vilma_Form_EditDomain
  • Vilma_Form_EditForward
  • Vilma_Form_EditUser
  • Vilma_MailboxDriver
  • Vilma_MailboxDriver_Hooks
  • Vilma_MailboxDriver_Imap
  • Vilma_MailboxDriver_Maildrop
  • Vilma_MailboxDriver_Null
  • Vilma_Test
  • Overview
  • Package
  • Class
  • Tree

Class Vilma_Driver_Qmailldap

Copyright 2006-2007 Alkaloid Networks http://www.alkaloid.net

See the enclosed file LICENSE for license information (BSD). If you did did not receive this file, see http://cvs.horde.org/co.php/vilma/LICENSE.

Vilma_Driver
Extended by Vilma_Driver_Sql
Extended by Vilma_Driver_Qmailldap
Package: Vilma
Author: Ben Klang bklang@alkaloid.net
Author: David Cummings davidcummings@acm.org
Located at Driver/Qmailldap.php
Methods summary
public
# __construct( array $params )

Constructor.

Constructor.

Parameters

$params
Any parameters needed for this driver.

Overrides

Vilma_Driver_Sql::__construct()
public integer
# getDomainNumUsers( string $domain_name )

Returns the current number of users for a domain.

Returns the current number of users for a domain.

Parameters

$domain_name
<p>The name of the domain for which to get the current number of users.</p>

Returns

integer
The current number of users.

Overrides

Vilma_Driver_Sql::getDomainNumUsers()
public array
# getUsers( string $domain = null )

Returns all available users, if a domain name is passed then limit the list of users only to those users.

Returns all available users, if a domain name is passed then limit the list of users only to those users.

Parameters

$domain
<p>The name of the domain for which to fetch the users.</p>

Returns

array
The available users and their stored information.

Throws

Vilma_Exception

Overrides

Vilma_Driver_Sql::getUsers()
public array
# getUser( integer $user_id )

Returns the user information for a given user id.

Returns the user information for a given user id.

Parameters

$user_id
<p>The id of the user for which to fetch information.</p>

Returns

array
The user information.

Overrides

Vilma_Driver_Sql::getUser()
public
# deleteUser( integer $user_id )

Deletes a user.

Deletes a user.

Parameters

$user_id
The id of the user to delete.

Throws

Vilma_Exception

Overrides

Vilma_Driver_Sql::deleteUser()
public
# getUserFormAttributes( )

Overrides

Vilma_Driver::getUserFormAttributes()
public array
# getAddressInfo( string $address, string $type = 'all' )

Returns an array of information related to the address passed in.

Returns an array of information related to the address passed in.

Parameters

$address
Address for which information will be pulled.
$type
<p>Address type to request. One of 'all', 'user', 'alias', 'forward' or 'group'.</p>

Returns

array

Array of user information on success or empty array if the user does not exist.

Throws

Vilma_Exception
if address of that type doesn't exist.

Overrides

Vilma_Driver::getAddressInfo()
public
# saveAlias( array $info )

Saves or creates alias records for a user.

Saves or creates alias records for a user.

Parameters

$info
<p>The info used to store the information. Required fields are: - 'address': The destination address (used for LDAP ID lookup). - 'alias_address': The alias to create or the new data for the modified entry. - 'alias': The alias we are modifying, if we are modifying an existing one.</p>

Throws

Vilma_Exception

Overrides

Vilma_Driver::saveAlias()
public
# deleteAlias( array $info )

Deletes alias records for a given user.

Deletes alias records for a given user.

Parameters

$info
<p>The info used to store the information. Required fields are: - 'address': The destination address (used for LDAP ID lookup). - 'alias': The alias we are deleting.</p>

Throws

Vilma_Exception

Overrides

Vilma_Driver::deleteAlias()
public
# saveForward( array $info )

Saves or creates forward records for a given user.

Saves or creates forward records for a given user.

Parameters

$info
<p>The info used to store the information. Required fields are: - 'address': The destination address (used for LDAP ID lookup). - 'forward_address': The forward to create or the new data for the modified entry. - 'forward': The forward we are modifying, if we are modifying an existing one.</p>

Throws

Vilma_Exception

Overrides

Vilma_Driver::saveForward()
public
# deleteForward( array $info )

Deletes forward records for a given user.

Deletes forward records for a given user.

Parameters

$info
<p>The info used to store the information. Required fields are: - 'address': The destination address (used for LDAP ID lookup). - 'forward': The forward we are deleting.</p>

Throws

Vilma_Exception

Overrides

Vilma_Driver::deleteForward()
public
# _connect( )
Methods inherited from Vilma_Driver_Sql
deleteVirtual(), getDomain(), getDomainByName(), getDomains(), getVirtual(), getVirtuals(), saveVirtual()
Methods inherited from Vilma_Driver
deleteDomain(), factory(), getAddresses(), getAllUsers(), getDomainAdmin(), getDomainMaxUsers(), getDomainQuota(), getUserStatus(), isBelowMaxUsers(), saveDomain(), saveUser()
API documentation generated by ApiGen