Jump to content

手册:UploadBase.php

From mediawiki.org
This page is a translated version of the page Manual:UploadBase.php and the translation is 80% complete.
Outdated translations are marked like this.

UploadBase和子类是MediaWiki文件上传的后端。前端由ApiUpload和SpecialUpload组成。

函数

  • UploadBase::performUpload( $comment, $pageText, $watch, $user ) 真正执行上传。将文件存储在本地存储库中,如有必要,进行监视并运行UploadComplete钩子。
  • UploadBase::getLocalFile() 返回本地文件并在必要时进行初始化。