Manual:LocalFile.php

From MediaWiki.org
Jump to navigation Jump to search
Other languages:
English • ‎français • ‎polski • ‎日本語

LocalFile.php contains a class, LocalFile (which extends File ) to represent a local file in the wiki's own database.

Methods[edit]

  • upload( $srcPath, $comment, $pageText, $flags = 0, $props = false, $timestamp = false, $user = null ) Upload a file and record it in the DB
  • recordUpload2() Record a file upload in the upload log and the image table