From 400d1d300b779bce89135a794e56ef8f684eb7e7 Mon Sep 17 00:00:00 2001 From: "This, that and the other" Date: Fri, 1 Jan 2016 16:53:13 +1100 Subject: [PATCH] HTMLForm: Add comment to help grepping function names This confuses me every time I try to figure out HTMLForm's logic flow... Change-Id: I80ff89caeeaac9af6ff435ecd5c4176615d41d82 --- includes/htmlform/HTMLForm.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/htmlform/HTMLForm.php b/includes/htmlform/HTMLForm.php index b0d90af419..d75bdb3366 100644 --- a/includes/htmlform/HTMLForm.php +++ b/includes/htmlform/HTMLForm.php @@ -1396,6 +1396,7 @@ class HTMLForm extends ContextSource { $hasLabel = false; // Conveniently, PHP method names are case-insensitive. + // For grep: this can call getDiv, getRaw, getInline, getVForm, getOOUI $getFieldHtmlMethod = $displayFormat == 'table' ? 'getTableRow' : ( 'get' . $displayFormat ); foreach ( $fields as $key => $value ) { -- 2.20.1