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