Element
in package
This is the Element class. This class represents an element of a form.
Tags
Table of Contents
TYPE | = '' | |
---|---|---|
$attributeWildcard | : string | |
$classRichFormFactory | : string|null | |
$elements | : mixed | |
$elementsClass | : array<string|int, mixed> | |
getAttributeWildcard() | This method returns the current value of the 'wildcard' attribute. | : string |
getFilterInput() | This method returns the FilterInput of the Element. | : FilterInput|null |
getType() | This method returns the type of the Element. | : string |
outputElement() | This method returns the html output tag of the Element with the name given by parameter. | : string |
setAttributeWildcard() | This method sets the 'wildcard' attribute with the given value and returns self. | : self |
setFilterInput() | This method sets the FilterInput of the Element and returns self. | : self |
getRichFormFactory() | : string | |
outputAttributes() | This method outputs the attributes (html) of the Element. | : string |
Constants
TYPE
public
mixed
TYPE
= ''
Properties
$attributeWildcard
protected
string
$attributeWildcard
= ''
$classRichFormFactory
protected
static string|null
$classRichFormFactory
= null
$elements
protected
static mixed
$elements
= null
$elementsClass
protected
static array<string|int, mixed>
$elementsClass
= []
Methods
getAttributeWildcard()
This method returns the current value of the 'wildcard' attribute.
public
getAttributeWildcard() : string
Return values
string —getFilterInput()
This method returns the FilterInput of the Element.
public
getFilterInput() : FilterInput|null
Return values
FilterInput|null —getType()
This method returns the type of the Element.
public
getType() : string
Return values
string —outputElement()
This method returns the html output tag of the Element with the name given by parameter.
public
abstract outputElement([string $name = '' ][, array<string|int, mixed> $richFormList = [] ]) : string
Parameters
- $name : string = ''
- $richFormList : array<string|int, mixed> = []
Return values
string —setAttributeWildcard()
This method sets the 'wildcard' attribute with the given value and returns self.
public
setAttributeWildcard(string $attributeWildcard) : self
Parameters
- $attributeWildcard : string
Return values
self —setFilterInput()
This method sets the FilterInput of the Element and returns self.
public
setFilterInput([FilterInput $filterInput = null ]) : self
Parameters
- $filterInput : FilterInput = null
Return values
self —getRichFormFactory()
protected
static getRichFormFactory() : string
Return values
string —outputAttributes()
This method outputs the attributes (html) of the Element.
protected
outputAttributes(string $name[, array<string|int, mixed> $richFormList = [] ]) : string
Parameters
- $name : string
- $richFormList : array<string|int, mixed> = []