[ Index ]

PHP Cross Reference of MediaWiki-1.24.0

title

Body

[close]

/includes/filerepo/file/ -> ForeignDBFile.php (summary)

Foreign file with an accessible MediaWiki database. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

File Size: 130 lines (3 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

ForeignDBFile:: (9 methods):
  newFromTitle()
  newFromRow()
  publish()
  recordUpload()
  restore()
  delete()
  move()
  getDescriptionUrl()
  getDescriptionText()


Class: ForeignDBFile  - X-Ref

Foreign file with an accessible MediaWiki database

newFromTitle( $title, $repo, $unused = null )   X-Ref

param: Title $title
param: FileRepo $repo
param: null $unused
return: ForeignDBFile

newFromRow( $row, $repo )   X-Ref
Create a ForeignDBFile from a title
Do not call this except from inside a repo class.

param: stdClass $row
param: FileRepo $repo
return: ForeignDBFile

publish( $srcPath, $flags = 0, array $options = array()   X-Ref

param: string $srcPath
param: int $flags
param: array $options
return: FileRepoStatus

recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '',$watch = false, $timestamp = false, User $user = null )   X-Ref

param: string $oldver
param: string $desc
param: string $license
param: string $copyStatus
param: string $source
param: bool $watch
param: bool|string $timestamp
param: User $user User object or null to use $wgUser
return: bool

restore( $versions = array()   X-Ref

param: array $versions
param: bool $unsuppress
return: FileRepoStatus

delete( $reason, $suppress = false, $user = null )   X-Ref

param: string $reason
param: bool $suppress
param: User|null $user
return: FileRepoStatus

move( $target )   X-Ref

param: Title $target
return: FileRepoStatus

getDescriptionUrl()   X-Ref

return: string

getDescriptionText( $lang = false )   X-Ref

param: bool|Language $lang Optional language to fetch description in.
return: string



Generated: Fri Nov 28 14:03:12 2014 Cross-referenced by PHPXref 0.7.1