Class Turba_Driver_prefs

Description

Turba directory driver implementation for Horde Preferences - very simple, lightweight container.

$Horde: turba/lib/Driver/prefs.php,v 1.10.10.7 2009/10/07 16:16:38 mrubinsk Exp $

Located in /lib/Driver/prefs.php (line 12)

Turba_Driver
   |
   --Turba_Driver_prefs
Method Summary
 void _add ( $attributes)
 void _canAdd ()
 void _delete ( $object_key,  $object_id)
 void _getAddressBook ()
 void _init ()
 Hash _read (array $criteria,  $ids, array $fields, string $id)
 void _save ( $object_key,  $object_id,  $attributes)
 array _search (array $criteria, array $fields)
 void _setAddressBook ( $addressbook)
Variables
Methods
_add (line 64)

Adds the specified object to the preferences.

void _add ( $attributes)
  • $attributes

Redefinition of:
Turba_Driver::_add()
Adds the specified contact to the SQL database.
_canAdd (line 76)
  • see: _canAdd()
void _canAdd ()

Redefinition of:
Turba_Driver::_canAdd()
_delete (line 84)

Deletes the specified object from the preferences.

void _delete ( $object_key,  $object_id)
  • $object_key
  • $object_id

Redefinition of:
Turba_Driver::_delete()
Deletes the specified contact from the SQL database.
_getAddressBook (line 103)
void _getAddressBook ()
_init (line 16)
void _init ()

Redefinition of:
Turba_Driver::_init()
Initialize the driver.
_read (line 45)

Reads the given data from the preferences and returns the result's fields.

  • return: containing the search results.
Hash _read (array $criteria,  $ids, array $fields, string $id)
  • array $criteria: Search criteria.
  • string $id: Data identifier.
  • array $fields: List of fields to return.
  • $ids

Redefinition of:
Turba_Driver::_read()
Reads the given data from the address book and returns the results.
_save (line 96)

Saves the specified object in the preferences.

void _save ( $object_key,  $object_id,  $attributes)
  • $object_key
  • $object_id
  • $attributes

Redefinition of:
Turba_Driver::_save()
Saves the specified object in the SQL database.
_search (line 30)

Returns all entries - searching isn't implemented here for now. The parameters are simply ignored.

  • return: Hash containing the search results.
array _search (array $criteria, array $fields)
  • array $criteria: Array containing the search criteria.
  • array $fields: List of fields to return.

Redefinition of:
Turba_Driver::_search()
Searches the address book with the given criteria and returns a filtered list of results. If the criteria parameter is an empty array, all records will be returned.
_setAddressBook (line 116)
void _setAddressBook ( $addressbook)
  • $addressbook

Inherited Methods

Inherited From Turba_Driver

 Turba_Driver::Turba_Driver()
 Turba_Driver::add()
 Turba_Driver::canAdd()
 Turba_Driver::checkDefaultShare()
 Turba_Driver::count()
 Turba_Driver::createShare()
 Turba_Driver::delete()
 Turba_Driver::deleteAll()
 Turba_Driver::generateUID()
 Turba_Driver::getBlobs()
 Turba_Driver::getContactOwner()
 Turba_Driver::getCountry()
 Turba_Driver::getCriteria()
 Turba_Driver::getFields()
 Turba_Driver::getName()
 Turba_Driver::getObject()
 Turba_Driver::getObjects()
 Turba_Driver::getParams()
 Turba_Driver::hasCapability()
 Turba_Driver::hasPermission()
 Turba_Driver::listTimeObjects()
 Turba_Driver::makeSearch()
 Turba_Driver::removeUserData()
 Turba_Driver::save()
 Turba_Driver::search()
 Turba_Driver::singleton()
 Turba_Driver::toDriver()
 Turba_Driver::toDriverKeys()
 Turba_Driver::toHash()
 Turba_Driver::toTurbaKeys()
 Turba_Driver::tovCard()
 Turba_Driver::_add()
 Turba_Driver::_canAdd()
 Turba_Driver::_delete()
 Turba_Driver::_getContactOwner()
 Turba_Driver::_getTimeObjectTurbaList()
 Turba_Driver::_getTimeObjectTurbaListFallback()
 Turba_Driver::_init()
 Turba_Driver::_makeKey()
 Turba_Driver::_read()
 Turba_Driver::_save()
 Turba_Driver::_search()
 Turba_Driver::_toTurbaObjects()

Documentation generated on Sun, 30 Jan 2011 05:39:26 +0000 by phpDocumentor 1.4.3