Overview

Packages

  • Folks
  • None

Classes

  • Folks
  • Folks_Activity_Form
  • Folks_Api
  • Folks_Application
  • Folks_Block_Activities
  • Folks_Block_Friends
  • Folks_Block_Know
  • Folks_Block_New
  • Folks_Block_Random
  • Folks_Block_Recent
  • Folks_Driver
  • Folks_Driver_sql
  • Folks_Friends
  • Folks_Friends_application
  • Folks_Friends_facebook
  • Folks_Friends_prefs
  • Folks_Friends_shared
  • Folks_Friends_sql
  • Folks_Login_Form
  • Folks_Notification
  • Folks_Notification_facebook
  • Folks_Notification_letter
  • Folks_Notification_mail
  • Folks_Notification_tickets
  • Folks_Search_Form
  • Overview
  • Package
  • Class
  • Tree

Class Folks_Driver_sql

Folks storage implementation for PHP's PEAR database abstraction layer.

Required values for $params:

'phptype'       The database type (e.g. 'pgsql', 'mysql', etc.).
     'table'         The name of the foo table in 'database'.
     'charset'       The database's internal charset.

Required by some database implementations:

'database'      The name of the database.
     'hostspec'      The hostname of the database server.
     'protocol'      The communication protocol ('tcp', 'unix', etc.).
     'username'      The username with which to connect to the database.
     'password'      The password associated with 'username'.
     'options'       Additional options to pass to the database.
     'tty'           The TTY on which to connect to the database.
     'port'          The port on which to connect to the database.

The table structure can be created by the scripts/sql/folks_foo.sql script.

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

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

Folks_Driver
Extended by Folks_Driver_sql
Package: Folks
Author: Duck duck@obala.net
Located at Driver/sql.php
Methods summary
public
# __construct( array $params = array() )

Constructs a new SQL storage object.

Constructs a new SQL storage object.

Parameters

$params
A hash containing connection parameters.
public
# deleteOnlineUser( mixed $user )

Remove user if is online

Remove user if is online

public
# getUsers( mixed $criteria = array(), mixed $from = 0, mixed $count = 0 )

Get users by attributes

Get users by attributes

public
# countUsers( mixed $criteria = array() )

Count users by attributes

Count users by attributes

public
# updateComments( string $user, mixed $reset = false )

Update user comments count

Update user comments count

Parameters

$user
Username
$reset
public
# getViews( )

Get user groups

Get user groups

public boolean
# userExists( string $user )

Check if user exist

Check if user exist

Parameters

$user
Username

Returns

boolean
public boolean
# addUser( string $user, array $credentials )

Adds a set of authentication credentials.

Adds a set of authentication credentials.

Parameters

$user
$userId The userId to add.
$credentials
The credentials to use.

Returns

boolean
true|PEAR_Error
Methods inherited from Folks_Driver
changePassword(), comparePassword(), deleteActivity(), deleteImage(), deleteSavedSearch(), deleteUser(), factory(), getActivity(), getAttributes(), getConfirmationCode(), getCookie(), getNewUsers(), getOnlineUsers(), getProfile(), getRandomUsers(), getRawProfile(), getRecentVisitors(), getSavedSearch(), getSearchCriteria(), isOnline(), logActivity(), logView(), resetOnlineUsers(), saveAttributes(), saveProfile(), saveSearch(), updateOnlineStatus()
API documentation generated by ApiGen