abook_databaseAddress 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 /nasmail/functions/abook_database.php (line 45)
addressbook_backend | --abook_database
resource
$dbh
= false (line 78)
Database Handle
integer
$db_type
= 0 (line 97)
Stores database type for db specific workarounds
string
$dsn
= '' (line 61)
Data Source Name (connection description)
bool
$listing
= true (line 88)
Enable/disable address book listing
string
$owner
= '' (line 73)
Owner name
Limits list of database entries visible to end user
string
$table
= '' (line 66)
Table that stores addresses
bool
$writeable
= true (line 83)
Enable/disable writing into address book
Inherited from addressbook_backend
addressbook_backend::$bnum
addressbook_backend::$error
addressbook_backend::$sname
Constructor abook_database (line 105)
Constructor
add (line 348)
Add address
close (line 199)
Close the file and forget the filehandle
list_addr (line 309)
List all addresses
lookup (line 271)
Lookup alias
modify (line 429)
Modify address
open (line 157)
Open the database.
remove (line 391)
Delete address
search (line 211)
Search the database
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 Sun, 22 Nov 2009 17:36:11 +0200 by phpDocumentor 1.4.3