MediaWiki
master
HTMLFormFieldRequiredOptionsException.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\HTMLForm
;
4
5
use InvalidArgumentException;
6
11
class
HTMLFormFieldRequiredOptionsException
extends
InvalidArgumentException {
12
19
public
function
__construct
(
HTMLFormField
$field, array $missing ) {
20
parent::__construct( sprintf(
"Form type `%s` expected the following parameters to be set: %s"
,
21
get_class( $field ),
22
implode(
', '
, $missing ) ) );
23
}
24
}
25
27
class_alias( HTMLFormFieldRequiredOptionsException::class,
'HTMLFormFieldRequiredOptionsException'
);
MediaWiki\HTMLForm\HTMLFormFieldRequiredOptionsException
Definition
HTMLFormFieldRequiredOptionsException.php:11
MediaWiki\HTMLForm\HTMLFormFieldRequiredOptionsException\__construct
__construct(HTMLFormField $field, array $missing)
Definition
HTMLFormFieldRequiredOptionsException.php:19
MediaWiki\HTMLForm\HTMLFormField
The parent class to generate form fields.
Definition
HTMLFormField.php:26
MediaWiki\HTMLForm
Definition
CodexHTMLForm.php:24
includes
htmlform
HTMLFormFieldRequiredOptionsException.php
Generated on Thu Oct 3 2024 11:23:42 for MediaWiki by
1.10.0