img_name ); $file = new self( $title, $repo ); $file->loadFromRow( $row ); return $file; } /** * @param string $srcPath * @param int $flags * @param array $options * @return FileRepoStatus * @throws MWException */ function publish( $srcPath, $flags = 0, array $options = array() ) { $this->readOnlyError(); } /** * @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 * @throws MWException */ function recordUpload( $oldver, $desc, $license = '', $copyStatus = '', $source = '', $watch = false, $timestamp = false, User $user = null ) { $this->readOnlyError(); } /** * @param array $versions * @param bool $unsuppress * @return FileRepoStatus * @throws MWException */ function restore( $versions = array(), $unsuppress = false ) { $this->readOnlyError(); } /** * @param string $reason * @param bool $suppress * @param User|null $user * @return FileRepoStatus * @throws MWException */ function delete( $reason, $suppress = false, $user = null ) { $this->readOnlyError(); } /** * @param Title $target * @return FileRepoStatus * @throws MWException */ function move( $target ) { $this->readOnlyError(); } /** * @return string */ function getDescriptionUrl() { // Restore remote behavior return File::getDescriptionUrl(); } /** * @param bool|Language $lang Optional language to fetch description in. * @return string */ function getDescriptionText( $lang = false ) { // Restore remote behavior return File::getDescriptionText( $lang ); } }