AttributeSelectedTrait

This is the 'selected' attribute trait.

This trait has been created to share common code between form elements classes, in this case the declaration of the 'selected' attribute and its set/get methods.

Tags
see
AttributeSelectedTrait::setSelected()
see
AttributeSelectedTrait::getSelected()

Table of Contents

$selected  : bool
getSelected() This method returns the current value of the 'selected' attribute.  : bool
setSelected() This method sets the 'selected' attribute with the given value and returns self.  : self

Properties

Methods

getSelected()

This method returns the current value of the 'selected' attribute.

public getSelected() : bool
Return values
bool

setSelected()

This method sets the 'selected' attribute with the given value and returns self.

public setSelected(bool $selected) : self
Parameters
$selected : bool
Return values
self

Search results