From: This, that and the other Date: Fri, 1 Jan 2016 05:53:13 +0000 (+1100) Subject: HTMLForm: Add comment to help grepping function names X-Git-Tag: 1.31.0-rc.0~8502^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/%24wgLogo?a=commitdiff_plain;h=400d1d300b779bce89135a794e56ef8f684eb7e7;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 ) {