Overview

Packages

  • Horde
    • Data
  • None
  • Turba

Classes

  • Turba
  • Turba_Api
  • Turba_Driver
  • Turba_Driver_Facebook
  • Turba_Driver_Favourites
  • Turba_Driver_Group
  • Turba_Driver_Imsp
  • Turba_Driver_Kolab
  • Turba_Driver_Ldap
  • Turba_Driver_Prefs
  • Turba_Driver_Share
  • Turba_Driver_Sql
  • Turba_Driver_Vbook
  • Turba_Exception
  • Turba_Factory_Driver
  • Turba_Form_AddContact
  • Turba_Form_Contact
  • Turba_Form_ContactBase
  • Turba_Form_CreateAddressBook
  • Turba_Form_DeleteAddressBook
  • Turba_Form_EditAddressBook
  • Turba_Form_EditContact
  • Turba_Form_EditContactGroup
  • Turba_List
  • Turba_LoginTasks_SystemTask_Upgrade
  • Turba_Object
  • Turba_Object_Group
  • Turba_Test
  • Turba_View_Browse
  • Turba_View_Contact
  • Turba_View_DeleteContact
  • Turba_View_Duplicates
  • Turba_View_EditContact
  • Turba_View_List
  • Overview
  • Package
  • Class
  • Tree

Class Turba_Driver_Sql

Turba directory driver implementation for the Horde_Db database abstraction layer.

Copyright 2010-2012 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (ASL). If you did did not receive this file, see http://www.horde.org/licenses/apache.

Turba_Driver implements Countable
Extended by Turba_Driver_Sql
Package: Turba
Category: Horde
License: ASL
Author: Jon Parise jon@csh.rit.edu
Author: Michael J. Rubinsky mrubinsk@horde.org
Located at Driver/Sql.php
Methods summary
public
# __construct( string $name = '', array $params = array() )

Constructor.

Constructor.

Parameters

$name
The source name
$params
Additional parameters needed: <span class="php-quote">'db'</span> - (Horde_Db_Adapter) A DB Adapter object.

Overrides

Turba_Driver::__construct()
public integer
# count( )

Returns the number of contacts of the current user in this address book.

Returns the number of contacts of the current user in this address book.

Returns

integer
The number of contacts that the user owns.

Throws

Turba_Exception

Overrides

Turba_Driver::count()
public array
# searchDuplicates( )

Searches the current address book for duplicate entries.

Searches the current address book for duplicate entries.

Duplicates are determined by comparing email and name or last name and first name values.

Returns

array
A hash with the following format: array('name' => array('John Doe' => Turba_List, ...), ...)

Throws

Turba_Exception

Overrides

Turba_Driver::searchDuplicates()
public string
# _save( Turba_Object $object )

Saves the specified object in the SQL database.

Saves the specified object in the SQL database.

Parameters

$object
The object to save.

Returns

string
The object id, possibly updated.

Throws

Turba_Exception
public
# removeUserData( string $user )

Remove all entries owned by the specified user.

Remove all entries owned by the specified user.

Parameters

$user
The user's data to remove.

Throws

Horde_Exception_PermissionDenied

Overrides

Turba_Driver::removeUserData()
public Turba_List
# getTimeObjectTurbaList( Horde_Date $start, Horde_Date $end, string $field )

Obtain Turba_List of items to get TimeObjects out of.

Obtain Turba_List of items to get TimeObjects out of.

Parameters

$start
The starting date.
$end
The ending date.
$field
<p>The address book field containing the timeObject information (birthday, anniversary)</p>

Returns

Turba_List
Object list.

Throws

Turba_Exception

Overrides

Turba_Driver::getTimeObjectTurbaList()
Methods inherited from Turba_Driver
add(), canAdd(), checkDefaultShare(), createShare(), delete(), deleteAll(), fromASContact(), getBlobs(), getContactOwner(), getCriteria(), getFields(), getName(), getObject(), getObjects(), getParams(), hasCapability(), hasPermission(), listTimeObjects(), makeSearch(), save(), search(), setContactOwner(), setSourceName(), toASContact(), toDriver(), toDriverKeys(), toHash(), toTurbaKeys(), tovCard()
Properties inherited from Turba_Driver
$alternativeName, $approximate, $fields, $listNameField, $map, $strict, $tabs, $title
API documentation generated by ApiGen