dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "HTMLMultiSelectField: Add 'dropdown' option for 'mw-chosen' behavior and document"
[lhc/web/wiklou.git]
/
includes
/
parser
/
ParserOptions.php
diff --git
a/includes/parser/ParserOptions.php
b/includes/parser/ParserOptions.php
index
91cd0f4
..
891c4dd
100644
(file)
--- a/
includes/parser/ParserOptions.php
+++ b/
includes/parser/ParserOptions.php
@@
-117,17
+117,22
@@
class ParserOptions {
private $mRemoveComments = true;
/**
private $mRemoveComments = true;
/**
- *
Callback for current revision fetching. Used as
first argument to call_user_func().
+ *
@var callable Callback for current revision fetching;
first argument to call_user_func().
*/
private $mCurrentRevisionCallback =
[ 'Parser', 'statelessFetchRevision' ];
/**
*/
private $mCurrentRevisionCallback =
[ 'Parser', 'statelessFetchRevision' ];
/**
- *
Callback for template fetching. Used as
first argument to call_user_func().
+ *
@var callable Callback for template fetching;
first argument to call_user_func().
*/
private $mTemplateCallback =
[ 'Parser', 'statelessFetchTemplate' ];
*/
private $mTemplateCallback =
[ 'Parser', 'statelessFetchTemplate' ];
+ /**
+ * @var callable|null Callback to generate a guess for {{REVISIONID}}
+ */
+ private $mSpeculativeRevIdCallback;
+
/**
* Enable limit report in an HTML comment on output
*/
/**
* Enable limit report in an HTML comment on output
*/
@@
-302,6
+307,11
@@
class ParserOptions {
return $this->mTemplateCallback;
}
return $this->mTemplateCallback;
}
+ /** @since 1.28 */
+ public function getSpeculativeRevIdCallback() {
+ return $this->mSpeculativeRevIdCallback;
+ }
+
public function getEnableLimitReport() {
return $this->mEnableLimitReport;
}
public function getEnableLimitReport() {
return $this->mEnableLimitReport;
}
@@
-483,6
+493,11
@@
class ParserOptions {
return wfSetVar( $this->mCurrentRevisionCallback, $x );
}
return wfSetVar( $this->mCurrentRevisionCallback, $x );
}
+ /** @since 1.28 */
+ public function setSpeculativeRevIdCallback( $x ) {
+ return wfSetVar( $this->mSpeculativeRevIdCallback, $x );
+ }
+
public function setTemplateCallback( $x ) {
return wfSetVar( $this->mTemplateCallback, $x );
}
public function setTemplateCallback( $x ) {
return wfSetVar( $this->mTemplateCallback, $x );
}