[commits] [Wiki] changed: Doc/Dev/HordeHistory

Wiki Guest wikiguest at horde.org
Thu May 7 08:56:13 UTC 2020


guest [37.4.228.151]  Thu, 07 May 2020 08:56:13 +0000

Modified page: https://wiki.horde.org/Doc/Dev/HordeHistory
New Revision:  4
Change log:  formatting

@@ -6,11 +6,13 @@
  Possible use cases are sync protocols, undo/rewind features or human  
consumable history information. The Horde_Activesync implementation  
uses Horde_Histories to track create/delete/update events of syncable  
items.

  ++ General Usage
  Create an implementation of the Horde_History class and fulfill its  
dependencies
-<code>$history = new Horde_History_Sql($username, Horde_Db_Adapter  
$db);</code>
+<code>$history = new Horde_History_Sql($username, Horde_Db_Adapter $db);
+</code>

  Log events related to a $guid identifying the resource tracked
+
  <code>
  $history->log('room1:shelf1:item100', array(
          'who' => 'someuser', // defaults to the user provided at  
construction of the object
          'action' => 'create',



More information about the commits mailing list