From d99c3a4e6d5a72b05b60eadfddb26b4b4dd4233d Mon Sep 17 00:00:00 2001 From: Florian Schmidt Date: Mon, 23 Jan 2017 20:30:36 +0100 Subject: [PATCH] Document nodata for HTMLFormFields This could be a useful feature for users of HTMLForm, so they should be able to know about it. Bug: T156056 Change-Id: Ib444051e38292c06ebe370465b7c751e136d42b2 --- includes/htmlform/HTMLForm.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index 78e7625915..91f4fb28c6 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -50,6 +50,9 @@ use Wikimedia\ObjectFactory; * if 'class' is not specified, this is used as a map * through HTMLForm::$typeMappings to get the class name. * 'default' -- default value when the form is displayed + * 'nodata' -- if set (to any value, which casts to true), the data + * for this field will not be loaded from the actual request. Instead, + * always the default data is set as the value of this field. * 'id' -- HTML id attribute * 'cssclass' -- CSS class * 'csshelpclass' -- CSS class used to style help text -- 2.20.1