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