img_name ); $file = new self( $title, $repo ); $file->loadFromRow( $row ); return $file; } /** * @param $srcPath String * @param $flags int * @param $options Array * @return \FileRepoStatus * @throws MWException */ function publish( $srcPath, $flags = 0, array $options = array() ) { $this->readOnlyError(); } /** * @param $oldver * @param $desc string * @param $license string * @param $copyStatus string * @param $source string * @param $watch bool * @param $timestamp bool|string * @param $user User object or null to use $wgUser * @return bool * @throws MWException */ function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '', $watch = false, $timestamp = false, User $user = null ) { $this->readOnlyError(); } /** * @param $versions array * @param $unsuppress bool * @return \FileRepoStatus * @throws MWException */ function restore( $versions = array(), $unsuppress = false ) { $this->readOnlyError(); } /** * @param $reason string * @param $suppress bool * @return \FileRepoStatus * @throws MWException */ function delete( $reason, $suppress = false ) { $this->readOnlyError(); } /** * @param $target Title * @return \FileRepoStatus * @throws MWException */ function move( $target ) { $this->readOnlyError(); } /** * @return string */ function getDescriptionUrl() { // Restore remote behavior return File::getDescriptionUrl(); } /** * @return string */ function getDescriptionText() { // Restore remote behavior return File::getDescriptionText(); } }