enhance filerepo doc structure
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 8 Feb 2012 15:51:16 +0000 (15:51 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 8 Feb 2012 15:51:16 +0000 (15:51 +0000)
12 files changed:
includes/filerepo/FileRepo.php
includes/filerepo/RepoGroup.php
includes/filerepo/backend/FileBackend.php
includes/filerepo/backend/lockmanager/LSLockManager.php
includes/filerepo/backend/lockmanager/LockManager.php
includes/filerepo/file/ArchivedFile.php
includes/filerepo/file/File.php
includes/filerepo/file/ForeignAPIFile.php
includes/filerepo/file/ForeignDBFile.php
includes/filerepo/file/LocalFile.php
includes/filerepo/file/OldLocalFile.php
includes/filerepo/file/UnregisteredLocalFile.php

index 203a956..1ccbd46 100644 (file)
@@ -1,4 +1,12 @@
 <?php
+/**
+ * @defgroup FileRepo File Repository
+ *
+ * @brief This module handles how MediaWiki interacts with filesystems.
+ *
+ * @details
+ */
+
 /**
  * Base code for file repositories.
  *
index da6c7d9..334ef2b 100644 (file)
@@ -6,10 +6,6 @@
  * @ingroup FileRepo
  */
 
-/**
- * @defgroup FileRepo FileRepo
- */
-
 /**
  * Prioritized list of file repositories
  *
index b4b9ea2..1d699e5 100644 (file)
@@ -1,4 +1,11 @@
 <?php
+/**
+ * @defgroup FileBackend File backend
+ * @ingroup  FileRepo
+ *
+ * This module regroup classes meant for MediaWiki to interacts with
+ */
+
 /**
  * @file
  * @ingroup FileBackend
@@ -7,6 +14,7 @@
 
 /**
  * Base class for all file backend classes (including multi-write backends).
+ *
  * This class defines the methods as abstract that subclasses must implement.
  * Outside callers can assume that all backends will have these functions.
  * 
@@ -698,7 +706,8 @@ abstract class FileBackend {
 }
 
 /**
- * Base class for all backends associated with a particular storage medium.
+ * @brief Base class for all backends associated with a particular storage medium.
+ *
  * This class defines the methods as abstract that subclasses must implement.
  * Outside callers should *not* use functions with "Internal" in the name.
  * 
@@ -1255,7 +1264,7 @@ abstract class FileBackendStore extends FileBackend {
        }
 
        /**
-        * @see FileBackend::getFileList()
+        * @copydoc FileBackend::getFileList() 
         */
        final public function getFileList( array $params ) {
                list( $fullCont, $dir, $shard ) = $this->resolveStoragePath( $params['dir'] );
@@ -1625,7 +1634,7 @@ abstract class FileBackendStore extends FileBackend {
  * FileBackendStore helper function to handle file listings that span container shards.
  * Do not use this class from places outside of FileBackendStore.
  *
- * @ingroup FileBackendStore
+ * @ingroup FileBackend
  */
 class FileBackendStoreShardListIterator implements Iterator {
        /* @var FileBackendStore */
index 8b59009..b7ac743 100644 (file)
@@ -1,6 +1,8 @@
 <?php
 
 /**
+ * Manage locks using a lock daemon server.
+ *
  * Version of LockManager based on using lock daemon servers.
  * This is meant for multi-wiki systems that may share files.
  * All locks are non-blocking, which avoids deadlocks.
index bb3260e..23603a4 100644 (file)
@@ -1,4 +1,9 @@
 <?php
+/**
+ * @defgroup LockManager Lock management
+ * @ingroup FileBackend
+ */
+
 /**
  * @file
  * @ingroup LockManager
 
 /**
  * Class for handling resource locking.
+ *
  * Locks on resource keys can either be shared or exclusive.
- * 
+ *
  * Implementations must keep track of what is locked by this proccess
  * in-memory and support nested locking calls (using reference counting).
  * At least LOCK_UW and LOCK_EX must be implemented. LOCK_SH can be a no-op.
  * Locks should either be non-blocking or have low wait timeouts.
- * 
+ *
  * Subclasses should avoid throwing exceptions at all costs.
  *
  * @ingroup LockManager
@@ -94,6 +100,8 @@ abstract class LockManager {
 }
 
 /**
+ * Self releasing locks
+ *
  * LockManager helper class to handle scoped locks, which
  * release when an object is destroyed or goes out of scope.
  *
index 34044ba..3b9bd7f 100644 (file)
@@ -3,13 +3,13 @@
  * Deleted file in the 'filearchive' table
  *
  * @file
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 
 /**
  * Class representing a row of the 'filearchive' table
  *
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 class ArchivedFile {
        /**#@+
index 6b2d673..f74fb67 100644 (file)
@@ -1,9 +1,16 @@
 <?php
+/**
+ * @defgroup FileAbstraction File abstraction
+ * @ingroup FileRepo
+ *
+ * Represents files in a repository.
+ */
+
 /**
  * Base code for files.
  *
  * @file
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 
 /**
@@ -23,7 +30,7 @@
  * The convenience functions wfLocalFile() and wfFindFile() should be sufficient
  * in most cases.
  *
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 abstract class File {
        const DELETED_FILE = 1;
index 0e71075..af45e2d 100644 (file)
@@ -3,14 +3,14 @@
  * Foreign file accessible through api.php requests.
  *
  * @file
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 
 /**
  * Foreign file accessible through api.php requests.
  * Very hacky and inefficient, do not use :D
  *
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 class ForeignAPIFile extends File {
        private $mExists;
index 09bee39..191a712 100644 (file)
@@ -3,13 +3,13 @@
  * Foreign file with an accessible MediaWiki database
  *
  * @file
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 
 /**
  * Foreign file with an accessible MediaWiki database
  *
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 class ForeignDBFile extends LocalFile {
 
index 672b224..4c4e161 100644 (file)
@@ -3,7 +3,7 @@
  * Local file in the wiki's own database
  *
  * @file
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 
 /**
@@ -26,7 +26,7 @@ define( 'MW_FILE_VERSION', 8 );
  * The convenience functions wfLocalFile() and wfFindFile() should be sufficient
  * in most cases.
  *
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 class LocalFile extends File {
        /**#@+
@@ -1432,7 +1432,7 @@ class LocalFile extends File {
 
 /**
  * Helper class for file deletion
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 class LocalFileDeleteBatch {
 
@@ -1749,7 +1749,7 @@ class LocalFileDeleteBatch {
 
 /**
  * Helper class for file undeletion
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 class LocalFileRestoreBatch {
        /**
@@ -2097,7 +2097,7 @@ class LocalFileRestoreBatch {
 
 /**
  * Helper class for file movement
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 class LocalFileMoveBatch {
 
index 419c395..ebd83c4 100644 (file)
@@ -3,13 +3,13 @@
  * Old file in the oldimage table
  *
  * @file
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 
 /**
  * Class to represent a file in the oldimage table
  *
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 class OldLocalFile extends LocalFile {
        var $requestedTime, $archive_name;
index 65a18a5..cd9d3d0 100644 (file)
@@ -3,7 +3,7 @@
  * File without associated database record
  *
  * @file
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 
 /**
@@ -16,7 +16,7 @@
  * lots of functions missing. It is used by the WebStore extension in the
  * standalone role.
  *
- * @ingroup FileRepo
+ * @ingroup FileAbstraction
  */
 class UnregisteredLocalFile extends File {
        var $title, $path, $mime, $dims;