public $mLanguageLinks;
/**
- * @var array $mCategoriesMap of category names to sort keys
+ * @var array $mCategories Map of category names to sort keys
*/
public $mCategories;
/** @var int|null Assumed rev ID for {{REVISIONID}} if no revision is set */
private $mSpeculativeRevId;
+ /** @var int|null Assumed rev timestamp for {{REVISIONTIMESTAMP}} if no revision is set */
+ private $revisionTimestampUsed;
+
/** string CSS classes to use for the wrapping div, stored in the array keys.
* If no class is given, no wrapper is added.
*/
return $this->mSpeculativeRevId;
}
+ /**
+ * @param string $timestamp TS_MW timestamp
+ * @since 1.34
+ */
+ public function setRevisionTimestampUsed( $timestamp ) {
+ $this->revisionTimestampUsed = $timestamp;
+ }
+
+ /**
+ * @return string|null TS_MW timestamp or null if not used
+ * @since 1.34
+ */
+ public function getRevisionTimestampUsed() {
+ return $this->revisionTimestampUsed;
+ }
+
public function &getLanguageLinks() {
return $this->mLanguageLinks;
}
return $this->mSections;
}
- /**
- * @deprecated since 1.31 Use getText() options.
- */
- public function getEditSectionTokens() {
- wfDeprecated( __METHOD__, '1.31' );
- return true;
- }
-
public function &getLinks() {
return $this->mLinks;
}
public function setNoGallery( $value ) {
$this->mNoGallery = (bool)$value;
}
+
public function getNoGallery() {
return $this->mNoGallery;
}
return $this->mModules;
}
- public function getModuleScripts() {
- wfDeprecated( __METHOD__, '1.33' );
- return [];
- }
-
public function getModuleStyles() {
return $this->mModuleStyles;
}
return $this->mLimitReportJSData;
}
- /**
- * @deprecated since 1.31 Use getText() options.
- */
- public function getTOCEnabled() {
- wfDeprecated( __METHOD__, '1.31' );
- return true;
- }
-
public function getEnableOOUI() {
return $this->mEnableOOUI;
}
return wfSetVar( $this->mSections, $toc );
}
- /**
- * @deprecated since 1.31 Use getText() options.
- */
- public function setEditSectionTokens( $t ) {
- wfDeprecated( __METHOD__, '1.31' );
- return true;
- }
-
public function setIndexPolicy( $policy ) {
return wfSetVar( $this->mIndexPolicy, $policy );
}
return wfSetVar( $this->mTimestamp, $timestamp );
}
- /**
- * @deprecated since 1.31 Use getText() options.
- */
- public function setTOCEnabled( $flag ) {
- wfDeprecated( __METHOD__, '1.31' );
- return true;
- }
-
public function addCategory( $c, $sort ) {
$this->mCategories[$c] = $sort;
}
public function setNewSection( $value ) {
$this->mNewSection = (bool)$value;
}
+
public function hideNewSection( $value ) {
$this->mHideNewSection = (bool)$value;
}
+
public function getHideNewSection() {
return (bool)$this->mHideNewSection;
}
+
public function getNewSection() {
return (bool)$this->mNewSection;
}
// TODO: we'll have to be smarter about this!
$this->mSections = array_merge( $this->mSections, $source->getSections() );
- $this->mTOCHTML = $this->mTOCHTML . $source->mTOCHTML;
+ $this->mTOCHTML .= $source->mTOCHTML;
// XXX: we don't want to concatenate title text, so first write wins.
// We should use the first *modified* title text, but we don't have the original to check.