wiki.techinc.nl/includes/htmlform/HTMLTextFieldWithButton.php
Ori Livneh c099155a17 ellapsed => elapsed
Also fix some files that don't end with a newline.

Change-Id: Id0672d685b929a5832b42f733dad49683536180a
2015-06-23 03:32:33 +00:00

17 lines
503 B
PHP

<?php
/**
* Creates a text input field with a button assigned to the input field.
*/
class HTMLTextFieldWithButton extends HTMLTextField {
/** @var HTMLFormClassWithButton $mClassWithButton */
protected $mClassWithButton = null;
public function __construct( $info ) {
$this->mClassWithButton = new HTMLFormFieldWithButton( $info );
parent::__construct( $info );
}
public function getInputHTML( $value ) {
return $this->mClassWithButton->getElement( parent::getInputHTML( $value ) );
}
}