[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/Horde/ -> History.php (sommaire)

(pas de description)

Poids: 337 lignes (12 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

Horde_History:: (7 méthodes):
  singleton()
  Horde_History()
  log()
  getHistory()
  getByTimestamp()
  getActionTimestamp()
  removeByNames()

HistoryObject:: (2 méthodes):
  HistoryObject()
  getData()


Classe: Horde_History  - X-Ref

The History:: class provides a method of tracking changes in Horde
objects, stored in a SQL table.

$Horde: framework/History/History.php,v 1.28.2.14 2006/05/03 21:46:13 jan Exp $

Copyright 2003-2006 Chuck Hagenbuch <chuck@horde.org>

See the enclosed file COPYING for license information (LGPL). If you
did not receive this file, see http://www.fsf.org/copyleft/lgpl.html.

singleton()   X-Ref
Attempts to return a reference to a concrete History instance.
It will only create a new instance if no History instance
currently exists.

This method must be invoked as: $var = &History::singleton()

return: Horde_History  The concrete History reference, or false on an

Horde_History()   X-Ref
Constructor.


log($guid, $attributes = array()   X-Ref
Logs an event to an item's history log. The item must be uniquely
identified by $guid. Any other details about the event are passed in
$attributes. Standard suggested attributes are:

'who' => The id of the user that performed the action (will be added
automatically if not present).

'ts' => Timestamp of the action (this will be added automatically if
it is not present).

param: string $guid            The unique identifier of the entry to
param: array $attributes       The hash of name => value entries that
param: boolean $replaceAction  If $attributes['action'] is already
return: boolean|PEAR_Error  True on success, PEAR_Error on failure.

getHistory($guid, $autocreate = null)   X-Ref
Returns a HistoryObject corresponding to the named history
entry, with the data retrieved appropriately. $autocreate has
no affect.

param: string $guid         The name of the history entry to retrieve.
param: boolean $autocreate  Deprecated.

getByTimestamp($cmp, $ts, $filters = array()   X-Ref
Finds history objects by timestamp, and optionally filter on other
fields as well.

param: string $cmp     The comparison operator (<, >, <=, >=, or =) to
param: integer $ts     The timestamp to compare against.
param: array $filters  An array of additional (ANDed) criteria.
param: string $parent  The parent history to start searching at. If non-empty,
return: array  An array of history object ids, or an empty array if

getActionTimestamp($guid, $action)   X-Ref
Gets the timestamp of the most recent change to $guid.

param: string $guid    The name of the history entry to retrieve.
param: string $action  An action: 'add', 'modify', 'delete', etc.
return: integer  The timestamp, or 0 if no matching entry is found.

removeByNames($names)   X-Ref
Remove one or more history entries by name.

param: array $names  The history entries to remove.

Classe: HistoryObject  - X-Ref

Class for presenting History information.

HistoryObject($uid, $data = array()   X-Ref
Pas de description

getData()   X-Ref
Pas de description



Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7