HTMLForm: Add comment to help grepping function names
authorThis, that and the other <at.light@live.com.au>
Fri, 1 Jan 2016 05:53:13 +0000 (16:53 +1100)
committerThis, that and the other <at.light@live.com.au>
Fri, 1 Jan 2016 05:53:13 +0000 (16:53 +1100)
This confuses me every time I try to figure out HTMLForm's logic flow...

Change-Id: I80ff89caeeaac9af6ff435ecd5c4176615d41d82

includes/htmlform/HTMLForm.php

index b0d90af..d75bdb3 100644 (file)
@@ -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 ) {