X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Ffilerepo%2FREADME;h=1423d3599c8d7a3fd7245192243f1da3efa739e8;hb=7c94ff498bcea6e7f449b3e94002a53fa8636389;hp=885a1deddd8029021cc4496f76500e53c10d12d3;hpb=9b8c83adb4503a5dcff162df571d6da4a4afacc1;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/filerepo/README b/includes/filerepo/README index 885a1deddd..1423d3599c 100644 --- a/includes/filerepo/README +++ b/includes/filerepo/README @@ -18,10 +18,10 @@ repository-specific configuration is needed, or in static members of File or FileRepo, where no such configuration is needed. File objects are generated by a factory function from the repository. The -repository thus has full control over the behaviour of its subsidiary file +repository thus has full control over the behavior of its subsidiary file class, since it can subclass the file class and override functionality at its whim. Thus there is no need for the File subclass to query its parent repository -for information about repository-class-dependent behaviour -- the file subclass +for information about repository-class-dependent behavior -- the file subclass is generally fully aware of the static preferences of its repository. Limited exceptions can be made to this rule to permit sharing of functions, or perhaps even entire classes, between repositories. @@ -39,22 +39,3 @@ LocalRepo.php. LocalRepo provides only file access, and LocalFile provides database access and higher-level functions such as cache management. Tim Starling, June 2007 - -Structure: - -File defines an abstract class File. - ForeignAPIFile extends File. - LocalFile extends File. - ForeignDBFile extends LocalFile - Image extends LocalFile - UnregisteredLocalFile extends File. - UploadStashFile extends UnregisteredLocalFile. -FileRepo defines an abstract class FileRepo. - ForeignAPIRepo extends FileRepo - FSRepo extends FileRepo - LocalRepo extends FSRepo - ForeignDBRepo extends LocalRepo - ForeignDBViaLBRepo extends LocalRepo - NullRepo extends FileRepo - -Russ Nelson, March 2011