abook_local_fileBackend for address book as a pipe separated file
Stores the address book in a local file
An array with the following elements must be passed to the class constructor (elements marked ? are optional):
filename => path to addressbook file
? create => if true: file is created if it does not exist.
? umask => umask set before opening file.
? name => name of address book.
? detect_writeable => detect address book access permissions by
checking file permissions.
? writeable => allow writing into address book. Used only when
detect_writeable is set to false.
? listing => enable/disable listing
? line_length => allowed address book record size NOTE. This class should not be used directly. Use the "AddressBook" class instead.
Located in /nasmail/functions/abook_local_file.php (line 37)
addressbook_backend | --abook_local_file
bool
$create
= false (line 63)
Create file, if it not present
bool
$detect_writeable
= true (line 68)
Detect, if address book is writeable by checking file permisions
object
$filehandle
= 0 (line 58)
File handle
string
$filename
= '' (line 53)
File used to store data
integer
$line_length
= 2048 (line 91)
Sets max entry size (number of bytes used for all address book fields
(including escapes) + 4 delimiters + 1 linefeed)
bool
$listing
= true (line 80)
controls listing of address book
string
$umask
(line 85)
Umask of the file
bool
$writeable
= false (line 75)
Control write access to address book
Option does not have any effect, if 'detect_writeable' is 'true'
Inherited from addressbook_backend
addressbook_backend::$bnum
addressbook_backend::$error
addressbook_backend::$sname
Constructor abook_local_file (line 100)
Constructor
add (line 391)
Add address
close (line 202)
Close the file and forget the filehandle
list_addr (line 356)
List all addresses
lock (line 210)
Lock the datafile - try 20 times in 5 seconds
lookup (line 319)
Lookup alias
modify (line 492)
Modify address
open (line 151)
Open the addressbook file and store the file pointer.
Use $file as the file to open, or the class' own filename property. If $param is empty and file is open, do nothing.
overwrite (line 231)
Overwrite the file with data from $rows
NOTE! Previous locks are broken by this function
quotevalue (line 562)
Function for quoting values before saving
remove (line 455)
Delete address
search (line 268)
Search the file
unlock (line 221)
Unlock the datafile
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:13 +0200 by phpDocumentor 1.4.3