API CHANGE Removed $maxlength constructor argument from PasswordField, use setMaxlength() instead

This commit is contained in:
Ingo Schommer 2012-01-02 17:45:47 +01:00
parent 27ec98cfce
commit 3c5c04cd75

View File

@ -6,20 +6,13 @@
*/
class PasswordField extends TextField {
/**
* maxlength of the password field
*
* @var int
*/
protected $maxLength;
/**
* Returns an input field, class="text" and type="text" with an optional
* maxlength
*/
function __construct($name, $title = null, $value = "", $maxLength = null) {
$this->maxLength = $maxLength;
function __construct($name, $title = null, $value = "") {
if(count(func_get_args()) > 3) Deprecation::notice('3.0', 'Use setMaxLength() instead of constructor arguments');
parent::__construct($name, $title, $value);
}