X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLFormField.php;h=20d7250f36fef02d3d8eba281b4b8893d4b63420;hb=bacc11eb30ddf01624d5448f432b96afdae67c28;hp=13756e3d648cfca39849a8ea25e2ebbf025d0c9b;hpb=9c7e834c1fc2a943227c817678ddf301a7489711;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLFormField.php b/includes/htmlform/HTMLFormField.php index 13756e3d64..20d7250f36 100644 --- a/includes/htmlform/HTMLFormField.php +++ b/includes/htmlform/HTMLFormField.php @@ -55,6 +55,15 @@ abstract class HTMLFormField { return false; } + /** + * True if this field type is able to display errors; false if validation errors need to be + * displayed in the main HTMLForm error area. + * @return bool + */ + public function canDisplayErrors() { + return true; + } + /** * Get a translated interface message * @@ -916,7 +925,8 @@ abstract class HTMLFormField { * Returns the given attributes from the parameters * * @param array $list List of attributes to get - * @param array $mappings Optional - Key/value map of attribute names to use instead of the ones passed in + * @param array $mappings Optional - Key/value map of attribute names to use + * instead of the ones passed in. * @return array Attributes */ public function getAttributes( array $list, array $mappings = null ) {