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

Folks_Driver:: defines an API for implementing storage backends for Folks.

Copyright Obala d.o.o. (www.obala.si)

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

Direct known subclasses

Folks_Driver_sql
Package: Folks
Author: Duck duck@obala.net
Located at Driver.php
Methods summary
public Folks_Driver
# factory( string $driver = null, array $params = null )

Attempts to return a concrete Folks_Driver instance based on $driver.

Attempts to return a concrete Folks_Driver instance based on $driver.

Parameters

$driver
<p>The type of the concrete Folks_Driver subclas to return. The clas name is based on the storage driver ($driver). The code is dynamically included.</p>
$params
<p>A hash containing any additional configuration or connection parameters a subclas might need.</p>

Returns

Folks_Driver

The newly created concrete Folks_Driver instance, or false on an error.

public
# deleteImage( string $user )

Delete user image

Delete user image

Parameters

$user
User pricture belongs to
public array
# getOnlineUsers( )

Get usersnames online

Get usersnames online

Returns

array
users online
public boolean
# resetOnlineUsers( )

Reset online users cache

Reset online users cache

Returns

boolean
public array
# getRecentVisitors( mixed $limit = 10 )

Get usersnames online

Get usersnames online

Returns

array
users online
public array
# getNewUsers( mixed $limit = 10 )

Get last signed up users

Get last signed up users

Returns

array
users online
public array
# getRandomUsers( integer $limit = 10, boolean $online = true )

Get random users

Get random users

Parameters

$limit
Username to check
$online
User is online?

Returns

array
users
public boolean
# isOnline( string $user )

Check if a user is online

Check if a user is online

Parameters

$user
Username to check

Returns

boolean
public
# updateOnlineStatus( )

Update user online status

Update user online status

public
# getRawProfile( mixed $user )

Get raw profile of current user

Get raw profile of current user

public
# getProfile( string $user = null )

Get user profile

Get user profile

Parameters

$user
Username
public
# changePassword( string $password, string $user = null )

Change user password

Change user password

Parameters

$password
Plain password
$user
Username
public
# saveProfile( array $data, string $user = null )

Save user profile

Save user profile

Parameters

$data
Profile data
$user
Username
public boolean
# logView( string $id )

Logs a user view.

Logs a user view.

Parameters

$id
Username

Returns

boolean
True, if the view was logged, false if the mesage was aleredy seen
public boolean
# deleteUser( string $user )

Delete user

Delete user

Parameters

$user
Username

Returns

boolean
public
# getAttributes( string $user = null, string $group = null )

Get user attributes

Get user attributes

Parameters

$user
Username
$group
Only a specific group
public
# saveAttributes( array $data, string $group, string $user = null )

Save user attributes

Save user attributes

Parameters

$data
Attributes data
$group
$user Username
$user
$group Only a specific group
public boolean
# comparePassword( string $user, string $plaintext )

Compare an encrypted pasword to a plaintext string to see if they match.

Compare an encrypted pasword to a plaintext string to see if they match.

Parameters

$user
Username
$plaintext
The plaintext pasword to verify.

Returns

boolean
True if matched, false otherwise.
public string
# getCookie( string $user )

Get encripted cookie login string

Get encripted cookie login string

Parameters

$user
Username to get cookie for

Returns

string
Encripted
public string
# getConfirmationCode( string $user, string $type = 'activate' )

Get confirmation code

Get confirmation code

Parameters

$user
Username to get code for
$type
Code type

Returns

string
Confirmation code
public
# saveSearch( string $criteria, string $name )

Save search criteria

Save search criteria

Parameters

$criteria
Search criteria
$name
Search name
public array
# getSavedSearch( )

Get saved search

Get saved search

Returns

array
saved searches
public array
# getSearchCriteria( string $name )

Get saved search criteria

Get saved search criteria

Parameters

$name
Username

Returns

array
search criteria
public
# deleteSavedSearch( string $name )

Delete saved search

Delete saved search

Parameters

$name
Username
public true
# logActivity( string $message, string $scope = 'folks', string $user = null )

Log users activity

Log users activity

Parameters

$message
Activity message
$scope
Scope
$user
$user

Returns

true
on success
public array
# getActivity( string $user, integer $limit = 10 )

Get user's activity

Get user's activity

Parameters

$user
Username
$limit
Number of actions to return

Returns

array
Activity log
public true
# deleteActivity( string $scope, integer $date )

Delete users activity

Delete users activity

Parameters

$scope
Scope
$date
Date

Returns

true
on success
API documentation generated by ApiGen