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
see
AttributeMaxlengthTrait::setMaxlength()
see
AttributeMaxlengthTrait::getMaxlength()

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

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
Return values
self

Search results