Index: trunk/phase3/includes/filerepo/file/OldLocalFile.php |
— | — | @@ -3,13 +3,13 @@ |
4 | 4 | * Old file in the oldimage table |
5 | 5 | * |
6 | 6 | * @file |
7 | | - * @ingroup FileRepo |
| 7 | + * @ingroup FileAbstraction |
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Class to represent a file in the oldimage table |
12 | 12 | * |
13 | | - * @ingroup FileRepo |
| 13 | + * @ingroup FileAbstraction |
14 | 14 | */ |
15 | 15 | class OldLocalFile extends LocalFile { |
16 | 16 | var $requestedTime, $archive_name; |
Index: trunk/phase3/includes/filerepo/file/LocalFile.php |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | * Local file in the wiki's own database |
5 | 5 | * |
6 | 6 | * @file |
7 | | - * @ingroup FileRepo |
| 7 | + * @ingroup FileAbstraction |
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | * The convenience functions wfLocalFile() and wfFindFile() should be sufficient |
28 | 28 | * in most cases. |
29 | 29 | * |
30 | | - * @ingroup FileRepo |
| 30 | + * @ingroup FileAbstraction |
31 | 31 | */ |
32 | 32 | class LocalFile extends File { |
33 | 33 | /**#@+ |
— | — | @@ -1432,7 +1432,7 @@ |
1433 | 1433 | |
1434 | 1434 | /** |
1435 | 1435 | * Helper class for file deletion |
1436 | | - * @ingroup FileRepo |
| 1436 | + * @ingroup FileAbstraction |
1437 | 1437 | */ |
1438 | 1438 | class LocalFileDeleteBatch { |
1439 | 1439 | |
— | — | @@ -1749,7 +1749,7 @@ |
1750 | 1750 | |
1751 | 1751 | /** |
1752 | 1752 | * Helper class for file undeletion |
1753 | | - * @ingroup FileRepo |
| 1753 | + * @ingroup FileAbstraction |
1754 | 1754 | */ |
1755 | 1755 | class LocalFileRestoreBatch { |
1756 | 1756 | /** |
— | — | @@ -2097,7 +2097,7 @@ |
2098 | 2098 | |
2099 | 2099 | /** |
2100 | 2100 | * Helper class for file movement |
2101 | | - * @ingroup FileRepo |
| 2101 | + * @ingroup FileAbstraction |
2102 | 2102 | */ |
2103 | 2103 | class LocalFileMoveBatch { |
2104 | 2104 | |
Index: trunk/phase3/includes/filerepo/file/UnregisteredLocalFile.php |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | * File without associated database record |
5 | 5 | * |
6 | 6 | * @file |
7 | | - * @ingroup FileRepo |
| 7 | + * @ingroup FileAbstraction |
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** |
— | — | @@ -16,7 +16,7 @@ |
17 | 17 | * lots of functions missing. It is used by the WebStore extension in the |
18 | 18 | * standalone role. |
19 | 19 | * |
20 | | - * @ingroup FileRepo |
| 20 | + * @ingroup FileAbstraction |
21 | 21 | */ |
22 | 22 | class UnregisteredLocalFile extends File { |
23 | 23 | var $title, $path, $mime, $dims; |
Index: trunk/phase3/includes/filerepo/file/File.php |
— | — | @@ -1,9 +1,16 @@ |
2 | 2 | <?php |
3 | 3 | /** |
| 4 | + * @defgroup FileAbstraction File abstraction |
| 5 | + * @ingroup FileRepo |
| 6 | + * |
| 7 | + * Represents files in a repository. |
| 8 | + */ |
| 9 | + |
| 10 | +/** |
4 | 11 | * Base code for files. |
5 | 12 | * |
6 | 13 | * @file |
7 | | - * @ingroup FileRepo |
| 14 | + * @ingroup FileAbstraction |
8 | 15 | */ |
9 | 16 | |
10 | 17 | /** |
— | — | @@ -23,7 +30,7 @@ |
24 | 31 | * The convenience functions wfLocalFile() and wfFindFile() should be sufficient |
25 | 32 | * in most cases. |
26 | 33 | * |
27 | | - * @ingroup FileRepo |
| 34 | + * @ingroup FileAbstraction |
28 | 35 | */ |
29 | 36 | abstract class File { |
30 | 37 | const DELETED_FILE = 1; |
Index: trunk/phase3/includes/filerepo/file/ForeignDBFile.php |
— | — | @@ -3,13 +3,13 @@ |
4 | 4 | * Foreign file with an accessible MediaWiki database |
5 | 5 | * |
6 | 6 | * @file |
7 | | - * @ingroup FileRepo |
| 7 | + * @ingroup FileAbstraction |
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Foreign file with an accessible MediaWiki database |
12 | 12 | * |
13 | | - * @ingroup FileRepo |
| 13 | + * @ingroup FileAbstraction |
14 | 14 | */ |
15 | 15 | class ForeignDBFile extends LocalFile { |
16 | 16 | |
Index: trunk/phase3/includes/filerepo/file/ForeignAPIFile.php |
— | — | @@ -3,14 +3,14 @@ |
4 | 4 | * Foreign file accessible through api.php requests. |
5 | 5 | * |
6 | 6 | * @file |
7 | | - * @ingroup FileRepo |
| 7 | + * @ingroup FileAbstraction |
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Foreign file accessible through api.php requests. |
12 | 12 | * Very hacky and inefficient, do not use :D |
13 | 13 | * |
14 | | - * @ingroup FileRepo |
| 14 | + * @ingroup FileAbstraction |
15 | 15 | */ |
16 | 16 | class ForeignAPIFile extends File { |
17 | 17 | private $mExists; |
Index: trunk/phase3/includes/filerepo/file/ArchivedFile.php |
— | — | @@ -3,13 +3,13 @@ |
4 | 4 | * Deleted file in the 'filearchive' table |
5 | 5 | * |
6 | 6 | * @file |
7 | | - * @ingroup FileRepo |
| 7 | + * @ingroup FileAbstraction |
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** |
11 | 11 | * Class representing a row of the 'filearchive' table |
12 | 12 | * |
13 | | - * @ingroup FileRepo |
| 13 | + * @ingroup FileAbstraction |
14 | 14 | */ |
15 | 15 | class ArchivedFile { |
16 | 16 | /**#@+ |
Index: trunk/phase3/includes/filerepo/backend/lockmanager/LSLockManager.php |
— | — | @@ -1,6 +1,8 @@ |
2 | 2 | <?php |
3 | 3 | |
4 | 4 | /** |
| 5 | + * Manage locks using a lock daemon server. |
| 6 | + * |
5 | 7 | * Version of LockManager based on using lock daemon servers. |
6 | 8 | * This is meant for multi-wiki systems that may share files. |
7 | 9 | * All locks are non-blocking, which avoids deadlocks. |
Index: trunk/phase3/includes/filerepo/backend/lockmanager/LockManager.php |
— | — | @@ -1,5 +1,10 @@ |
2 | 2 | <?php |
3 | 3 | /** |
| 4 | + * @defgroup LockManager Lock management |
| 5 | + * @ingroup FileBackend |
| 6 | + */ |
| 7 | + |
| 8 | +/** |
4 | 9 | * @file |
5 | 10 | * @ingroup LockManager |
6 | 11 | * @author Aaron Schulz |
— | — | @@ -7,13 +12,14 @@ |
8 | 13 | |
9 | 14 | /** |
10 | 15 | * Class for handling resource locking. |
| 16 | + * |
11 | 17 | * Locks on resource keys can either be shared or exclusive. |
12 | | - * |
| 18 | + * |
13 | 19 | * Implementations must keep track of what is locked by this proccess |
14 | 20 | * in-memory and support nested locking calls (using reference counting). |
15 | 21 | * At least LOCK_UW and LOCK_EX must be implemented. LOCK_SH can be a no-op. |
16 | 22 | * Locks should either be non-blocking or have low wait timeouts. |
17 | | - * |
| 23 | + * |
18 | 24 | * Subclasses should avoid throwing exceptions at all costs. |
19 | 25 | * |
20 | 26 | * @ingroup LockManager |
— | — | @@ -94,6 +100,8 @@ |
95 | 101 | } |
96 | 102 | |
97 | 103 | /** |
| 104 | + * Self releasing locks |
| 105 | + * |
98 | 106 | * LockManager helper class to handle scoped locks, which |
99 | 107 | * release when an object is destroyed or goes out of scope. |
100 | 108 | * |
Index: trunk/phase3/includes/filerepo/backend/FileBackend.php |
— | — | @@ -1,5 +1,12 @@ |
2 | 2 | <?php |
3 | 3 | /** |
| 4 | + * @defgroup FileBackend File backend |
| 5 | + * @ingroup FileRepo |
| 6 | + * |
| 7 | + * This module regroup classes meant for MediaWiki to interacts with |
| 8 | + */ |
| 9 | + |
| 10 | +/** |
4 | 11 | * @file |
5 | 12 | * @ingroup FileBackend |
6 | 13 | * @author Aaron Schulz |
— | — | @@ -7,6 +14,7 @@ |
8 | 15 | |
9 | 16 | /** |
10 | 17 | * Base class for all file backend classes (including multi-write backends). |
| 18 | + * |
11 | 19 | * This class defines the methods as abstract that subclasses must implement. |
12 | 20 | * Outside callers can assume that all backends will have these functions. |
13 | 21 | * |
— | — | @@ -698,7 +706,8 @@ |
699 | 707 | } |
700 | 708 | |
701 | 709 | /** |
702 | | - * Base class for all backends associated with a particular storage medium. |
| 710 | + * @brief Base class for all backends associated with a particular storage medium. |
| 711 | + * |
703 | 712 | * This class defines the methods as abstract that subclasses must implement. |
704 | 713 | * Outside callers should *not* use functions with "Internal" in the name. |
705 | 714 | * |
— | — | @@ -1255,7 +1264,7 @@ |
1256 | 1265 | } |
1257 | 1266 | |
1258 | 1267 | /** |
1259 | | - * @see FileBackend::getFileList() |
| 1268 | + * @copydoc FileBackend::getFileList() |
1260 | 1269 | */ |
1261 | 1270 | final public function getFileList( array $params ) { |
1262 | 1271 | list( $fullCont, $dir, $shard ) = $this->resolveStoragePath( $params['dir'] ); |
— | — | @@ -1625,7 +1634,7 @@ |
1626 | 1635 | * FileBackendStore helper function to handle file listings that span container shards. |
1627 | 1636 | * Do not use this class from places outside of FileBackendStore. |
1628 | 1637 | * |
1629 | | - * @ingroup FileBackendStore |
| 1638 | + * @ingroup FileBackend |
1630 | 1639 | */ |
1631 | 1640 | class FileBackendStoreShardListIterator implements Iterator { |
1632 | 1641 | /* @var FileBackendStore */ |
Index: trunk/phase3/includes/filerepo/RepoGroup.php |
— | — | @@ -7,10 +7,6 @@ |
8 | 8 | */ |
9 | 9 | |
10 | 10 | /** |
11 | | - * @defgroup FileRepo FileRepo |
12 | | - */ |
13 | | - |
14 | | -/** |
15 | 11 | * Prioritized list of file repositories |
16 | 12 | * |
17 | 13 | * @ingroup FileRepo |
Index: trunk/phase3/includes/filerepo/FileRepo.php |
— | — | @@ -1,5 +1,13 @@ |
2 | 2 | <?php |
3 | 3 | /** |
| 4 | + * @defgroup FileRepo File Repository |
| 5 | + * |
| 6 | + * @brief This module handles how MediaWiki interacts with filesystems. |
| 7 | + * |
| 8 | + * @details |
| 9 | + */ |
| 10 | + |
| 11 | +/** |
4 | 12 | * Base code for file repositories. |
5 | 13 | * |
6 | 14 | * @file |