Class Horde_Kolab_FreeBusy_Cache_Db_Base

Description

Implements interfaces:

A berkeley db based cache for free/busy data.

$Horde: framework/Kolab_FreeBusy/lib/Horde/Kolab/FreeBusy/Cache/Db/Base.php,v 1.1.2.2 2010-10-10 18:37:57 wrobel Exp $

Copyright 2004-2008 Klarälvdalens Datakonsult AB

See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.

Located in /Kolab_FreeBusy/lib/Horde/Kolab/FreeBusy/Cache/Db/Base.php (line 32)


	
			
Direct descendents
Class Description
 class Horde_Kolab_FreeBusy_Cache_Db_Acl A berkeley db based cache for free/busy data that holds relevant cache files based on folder ACLs.
 class Horde_Kolab_FreeBusy_Cache_Db_Xacl A berkeley db based cache for free/busy data that holds relevant cache files based on extended folder ACLs.
Variable Summary
 string $_type
Method Summary
 Horde_Kolab_FreeBusy_Cache_Db_Base __construct ( $cache_dir)
 NULL delete (string $uid)
 array get (string $uid)
 boolean has (string $id, string $uid)
 NULL _add (string $id, string $uid)
 NULL _remove (string $id, string $uid)
Variables
string $_type = '' (line 62)

The type of this cache.

  • access: protected

Redefined in descendants as:
Methods
Constructor __construct (line 69)

The directory that should be used for caching.

  • access: public
Horde_Kolab_FreeBusy_Cache_Db_Base __construct ( $cache_dir)
  • $cache_dir

Redefined in descendants as:
delete (line 233)

Delete a user from the DB.

  • access: public
NULL delete (string $uid)
  • string $uid: The user ID.
get (line 213)

Get the full list of relevant partials for a uid.

  • return: The list of partials.
  • access: public
array get (string $uid)
  • string $uid: The user ID.

Implementation of:
Horde_Kolab_FreeBusy_Cache_Db::get()
Get the full list of relevant partials for a uid.
has (line 193)

Is the partial relevant for the user?

  • return: True if the cache file is relevant.
  • throws: Horde_Kolab_FreeBusy_Exception In case adding the value failed
  • access: public
boolean has (string $id, string $uid)
  • string $id: The partial ID.
  • string $uid: The user ID.

Implementation of:
Horde_Kolab_FreeBusy_Cache_Db::has()
Is the partial relevant for the user?

Redefined in descendants as:
_add (line 158)

Set a partial as relevant for a user.

  • throws: Horde_Kolab_FreeBusy_Exception In case adding the value failed.
  • access: protected
NULL _add (string $id, string $uid)
  • string $id: The partial ID to add.
  • string $uid: The user ID.
_remove (line 132)

Set a partial as irrelevant for a user.

  • throws: Horde_Kolab_FreeBusy_Exception In case removing the value failed.
  • access: protected
NULL _remove (string $id, string $uid)
  • string $id: The partial ID to remove.
  • string $uid: The user ID.

Documentation generated on Sun, 30 Jan 2011 05:15:27 +0000 by phpDocumentor 1.4.3