FormField
in package
YetiForce shop form field class.
Table of Contents
- $attributes : array<string|int, mixed>
- Field attributes
- $label : string|null
- Label
- $name : string
- Name
- $type : string
- Type
- __construct() : mixed
- Construct
- addAttribute() : void
- Add field attribute
- getAttributes() : array<string|int, mixed>
- Get field attributes
- getLabel() : string|null
- Get label
- getName() : string
- Get name
- getType() : string
- Get type
Properties
$attributes
Field attributes
private
array<string|int, mixed>
$attributes
= []
$label
Label
private
string|null
$label
$name
Name
private
string
$name
$type
Type
private
string
$type
Methods
__construct()
Construct
public
__construct(string $name, string|null $label, string $type) : mixed
Parameters
- $name : string
- $label : string|null
- $type : string
Return values
mixed —addAttribute()
Add field attribute
public
addAttribute(string $name, string $value) : void
Parameters
- $name : string
- $value : string
Return values
void —getAttributes()
Get field attributes
public
getAttributes() : array<string|int, mixed>
Return values
array<string|int, mixed> —getLabel()
Get label
public
getLabel() : string|null
Return values
string|null —getName()
Get name
public
getName() : string
Return values
string —getType()
Get type
public
getType() : string