From: Aaron Schulz Date: Sun, 19 Aug 2012 19:46:14 +0000 (-0700) Subject: Cleaned up FileJournal documentation. X-Git-Tag: 1.31.0-rc.0~22667^2 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=04d088b5fcb16a3bd576be73c1620243fc90361f;p=lhc%2Fweb%2Fwiklou.git Cleaned up FileJournal documentation. Change-Id: I411b1328d4a3fa04283292646a34926c0d485b22 --- diff --git a/includes/filebackend/filejournal/FileJournal.php b/includes/filebackend/filejournal/FileJournal.php index 234788b4ee..ce029bbeaf 100644 --- a/includes/filebackend/filejournal/FileJournal.php +++ b/includes/filebackend/filejournal/FileJournal.php @@ -43,7 +43,7 @@ abstract class FileJournal { * Construct a new instance from configuration. * $config includes: * 'ttlDays' : days to keep log entries around (false means "forever") - * + * * @param $config Array */ protected function __construct( array $config ) { @@ -70,7 +70,7 @@ abstract class FileJournal { /** * Get a statistically unique ID string - * + * * @return string <9 char TS_MW timestamp in base 36><22 random base 36 chars> */ final public function getTimestampedUUID() { @@ -89,7 +89,7 @@ abstract class FileJournal { * path : The storage path of the file * newSha1 : The final base 36 SHA-1 of the file * Note that 'false' should be used as the SHA-1 for non-existing files. - * + * * @param $entries Array List of file operations (each an array of parameters) * @param $batchId string UUID string that identifies the operation batch * @return Status @@ -103,7 +103,7 @@ abstract class FileJournal { /** * @see FileJournal::logChangeBatch() - * + * * @param $entries Array List of file operations (each an array of parameters) * @param $batchId string UUID string that identifies the operation batch * @return Status @@ -118,9 +118,9 @@ abstract class FileJournal { * id : unique, monotonic, ID for this change * batch_uuid : UUID for an operation batch * backend : the backend name - * op : primitive operation (create,update,delete) + * op : primitive operation (create,update,delete,null) * path : affected storage path - * path_sha1 : base 36 sha1 of the affected storage path + * new_sha1 : base 36 sha1 of the new file had the operation succeeded * timestamp : TS_MW timestamp of the batch change * Also, $next is updated to the ID of the next entry.