X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2FHTMLFormElement.php;h=1e4460a0220496ca223fea78cd62ff5319896ebb;hb=5a451fd01be397db3209c1881a335423706da5c2;hp=fbef2651f6695c6a4283d39f26f8935e2e2ceda3;hpb=9c185ca85c3c58f96e866c9347c2b7f031ddb289;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/HTMLFormElement.php b/includes/htmlform/HTMLFormElement.php index fbef2651f6..1e4460a022 100644 --- a/includes/htmlform/HTMLFormElement.php +++ b/includes/htmlform/HTMLFormElement.php @@ -5,6 +5,7 @@ * (defined in htmlform.Element.js) picks up the extra config when constructed using OO.ui.infuse(). * * Currently only supports passing 'hide-if' data. + * @phan-file-suppress PhanUndeclaredMethod */ trait HTMLFormElement { @@ -33,33 +34,3 @@ trait HTMLFormElement { } ); } } - -class HTMLFormFieldLayout extends OOUI\FieldLayout { - use HTMLFormElement; - - public function __construct( $fieldWidget, array $config = [] ) { - parent::__construct( $fieldWidget, $config ); - - // Traits - $this->initializeHTMLFormElement( $config ); - } - - protected function getJavaScriptClassName() { - return 'mw.htmlform.FieldLayout'; - } -} - -class HTMLFormActionFieldLayout extends OOUI\ActionFieldLayout { - use HTMLFormElement; - - public function __construct( $fieldWidget, $buttonWidget = false, array $config = [] ) { - parent::__construct( $fieldWidget, $buttonWidget, $config ); - - // Traits - $this->initializeHTMLFormElement( $config ); - } - - protected function getJavaScriptClassName() { - return 'mw.htmlform.ActionFieldLayout'; - } -}