Manuel:File.php
Cette page est obsolète. |
Fichier MediaWiki : File.php | |
---|---|
Emplacement : | includes/filerepo/file/ |
Code source : | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes : | File |
File.php contient la classe File qui représente les fichiers d'un répertoire.
Notes d'utilisation :
- A number of public functions, especially many of the 'stubs' (i.e. unimplemented public methods), are meant to be overridden.
- The name of a file class is known only to the Repo object. To get File objects or generate new ones, use the Repo factory functions. It is usually sufficient to use something like:
- MediaWikiServices::getInstance()->getRepoGroup()->findFile()
- MediaWikiServices::getInstance()->getRepoGroup()->getLocalRepo()->newFile()
Voir aussi
- Manuel:LocalFile.php - Extends the File class to represent a local file in the database.
- Manual:RepoGroup.php - Creates prioritized list of file repositories.