AttributeMaxlengthTrait
This is the 'maxLength' attribute trait.
This trait has been created to share common code between form elements classes, in this case the declaration of the 'maxLength' attribute and its set/get methods.
Tags
Table of Contents
$maxlength | : int | |
---|---|---|
getMaxlength() | This method returns the current value of the 'maxLength' attribute. | : int |
setMaxlength() | This method sets the 'maxLength' attribute with the given value and returns self. | : self |
Properties
$maxlength
protected
int
$maxlength
= -1
Methods
getMaxlength()
This method returns the current value of the 'maxLength' attribute.
public
getMaxlength() : int
Return values
int —setMaxlength()
This method sets the 'maxLength' attribute with the given value and returns self.
public
setMaxlength(int $maxlength) : self
Parameters
- $maxlength : int