Address book in a database backend
Backend for personal/shared address book stored in a database, accessed using the DB-classes in PEAR.
IMPORTANT: The PEAR modules must be in the include path for this class to work.
An array with the following elements must be passed to the class constructor (elements marked ? are optional):
dsn => database DNS (see PEAR for syntax) table => table to store addresses in (must exist) owner => current user (owner of address data) ? name => name of address book ? writeable => set writeable flag (true/false) ? listing => enable/disable listingThe table used should have the following columns: owner, nickname, firstname, lastname, email, label The pair (owner,nickname) should be unique (primary key).
NOTE. This class should not be used directly. Use the "AddressBook" class instead.
Located in /functions/abook_database.php (line 58)
addressbook_backend | --abook_database
Backend name
Backend type
Database Handle
Data Source Name (connection description)
Enable/disable address book listing
Table that stores addresses
Enable/disable writing into address book
Inherited from addressbook_backend
addressbook_backend::$bnum
addressbook_backend::$error
addressbook_backend::$sname
Constructor
Add address
List all addresses
Lookup alias
Modify address
Open the database.
Deletes address book entries
Search the database
Backend supports only * and ? wildcards. Complex eregs are not supported. Search is case insensitive.
Inherited From addressbook_backend
addressbook_backend::add()
addressbook_backend::fullname()
addressbook_backend::list_addr()
addressbook_backend::lookup()
addressbook_backend::modify()
addressbook_backend::remove()
addressbook_backend::search()
addressbook_backend::set_error()
Documentation generated on Sat, 07 Oct 2006 16:08:24 +0300 by phpDocumentor 1.3.0RC6