Documentation

FancyCheckboxElement extends Element

Represents an HTML element

Table of Contents

$element Element tag string
$name Element name attribute value string
$id Element id attribute value string
$attributes Map of attributes key => value array
__construct() Create a new element mixed
build() Convert this element into HTML. string
build() Convert this element into HTML. string
__construct() Create a new element mixed
getId() Get the element id property value string
getName() Get the input "name" property value string
getElement() Get the element name string
getAttributes() Get the element attributes list. array
getAttributeString() Retrieve the attributes as an html string. string

Properties

$name

Element name attribute value

private string $name

$attributes

Map of attributes key => value

private array $attributes = []

Methods

__construct()

Create a new element

public __construct( $name : string , $id : string , $value : string [, $attributes : array = [] ] ) : mixed
Parameters
$name : string

element name attribute value

$id : string

element id attribute value

$value : string
$attributes : array = []

map of additional element attributes. key => value.

Return values
mixed

build()

Convert this element into HTML.

public abstract build( ) : string
Tags
abstract
Return values
string

html element

__construct()

Create a new element

public __construct( $element : string , $name : string , $id : string [, $attributes : array = [] ] ) : mixed
Parameters
$element : string

element tag name

$name : string

element name attribute value

$id : string

element id attribute value

$attributes : array = []

map of additional element attributes. key => value.

Return values
mixed

getId()

Get the element id property value

public getId( ) : string
Return values
string

id

getName()

Get the input "name" property value

public getName( ) : string
Return values
string

name

getElement()

Get the element name

public getElement( ) : string
Return values
string

name

getAttributes()

Get the element attributes list.

public getAttributes( ) : array

Key = value. setting id or name here will have no effect.

Return values
array

attributes map

getAttributeString()

Retrieve the attributes as an html string.

public getAttributeString( ) : string
Return values
string

attributes

Search results