*/
class WikiRevision implements ImportableUploadRevision, ImportableOldRevision {
- /**
- * @since 1.17
- * @deprecated in 1.29. Unused.
- * @note Introduced in 9b3128eb2b654761f21fd4ca1d5a1a4b796dc912, unused there, unused now.
- */
- public $importer = null;
-
/**
* @since 1.2
* @var Title
*/
public $timestamp = "20010115000000";
- /**
- * @since 1.2
- * @var int
- * @deprecated in 1.29. Unused.
- * @note Introduced in 436a028086fb3f01c4605c5ad2964d56f9306aca, unused there, unused now.
- */
- public $user = 0;
-
/**
* @since 1.2
* @var string
*/
public $sha1base36 = false;
+ /**
+ * @since 1.34
+ * @var string[]
+ */
+ protected $tags = [];
+
/**
* @since 1.17
* @var string
/** @var bool */
private $mNoUpdates = false;
- /** @var Config $config */
+ /**
+ * @deprecated since 1.31, along with self::downloadSource()
+ * @var Config $config
+ */
private $config;
+ /**
+ * @param Config $config Deprecated since 1.31, along with self::downloadSource(). Just pass an
+ * empty HashConfig.
+ */
public function __construct( Config $config ) {
$this->config = $config;
}
$this->sha1base36 = $sha1base36;
}
+ /**
+ * @since 1.34
+ * @param string[] $tags
+ */
+ public function setTags( array $tags ) {
+ $this->tags = $tags;
+ }
+
/**
* @since 1.12.2
* @param string $filename
/**
* @since 1.12.2
- * @param array $params
+ * @param string $params
*/
public function setParams( $params ) {
$this->params = $params;
return false;
}
+ /**
+ * @since 1.34
+ * @return string[]
+ */
+ public function getTags() {
+ return $this->tags;
+ }
+
/**
* @since 1.17
* @return string
/**
* @since 1.12.2
- * @deprecated in 1.31. Use UploadImporter::import
+ * @deprecated in 1.31. Use UploadRevisionImporter::import
* @return bool
*/
public function importUpload() {
/**
* @since 1.12.2
- * @deprecated in 1.31. Use UploadImporter::downloadSource
+ * @deprecated in 1.31. No replacement
* @return bool|string
*/
public function downloadSource() {