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
Drop HTMLForm & VFormHTMLForm::isVForm(), deprecated in 1.25
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
HTMLForm.php
diff --git
a/includes/htmlform/HTMLForm.php
b/includes/htmlform/HTMLForm.php
index
afb815f
..
af1743e
100644
(file)
--- a/
includes/htmlform/HTMLForm.php
+++ b/
includes/htmlform/HTMLForm.php
@@
-21,6
+21,8
@@
* @file
*/
* @file
*/
+use Wikimedia\ObjectFactory;
+
/**
* Object handling generic submission, CSRF protection, layout and
* other logic for UI forms. in a reusable manner.
/**
* Object handling generic submission, CSRF protection, layout and
* other logic for UI forms. in a reusable manner.
@@
-428,17
+430,6
@@
class HTMLForm extends ContextSource {
return $this->displayFormat;
}
return $this->displayFormat;
}
- /**
- * Test if displayFormat is 'vform'
- * @since 1.22
- * @deprecated since 1.25
- * @return bool
- */
- public function isVForm() {
- wfDeprecated( __METHOD__, '1.25' );
- return false;
- }
-
/**
* Get the HTMLFormField subclass for this descriptor.
*
/**
* Get the HTMLFormField subclass for this descriptor.
*
@@
-502,7
+493,7
@@
class HTMLForm extends ContextSource {
/**
* Prepare form for submission.
*
/**
* Prepare form for submission.
*
- * @
attention
When doing method chaining, that should be the very last
+ * @
warning
When doing method chaining, that should be the very last
* method call before displayForm().
*
* @throws MWException
* method call before displayForm().
*
* @throws MWException
@@
-1004,7
+995,7
@@
class HTMLForm extends ContextSource {
* Display the form (sending to the context's OutputPage object), with an
* appropriate error message or stack of messages, and any validation errors, etc.
*
* Display the form (sending to the context's OutputPage object), with an
* appropriate error message or stack of messages, and any validation errors, etc.
*
- * @
attention
You should call prepareForm() before calling this function.
+ * @
warning
You should call prepareForm() before calling this function.
* Moreover, when doing method chaining this should be the very last method
* call just after prepareForm().
*
* Moreover, when doing method chaining this should be the very last method
* call just after prepareForm().
*