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
see
AttributeReadonlyTrait::setReadonly()
see
AttributeReadonlyTrait::getReadonly()

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

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

Search results