mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
API CHANGE Removed $maxlength constructor argument from PasswordField, use setMaxlength() instead
This commit is contained in:
parent
27ec98cfce
commit
3c5c04cd75
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user