2023-03-21 22:52:57 +00:00
|
|
|
```
|
|
|
|
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
|
|
|
|
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
|
|
|
|
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
|
|
|
|
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
|
|
|
|
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
|
|
|
|
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
|
|
|
|
```
|
2023-10-04 18:28:29 +00:00
|
|
|
# final class FieldXML (Details)
|
|
|
|
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Creator**
|
2023-03-21 22:52:57 +00:00
|
|
|
```uml
|
|
|
|
@startuml
|
2023-10-04 18:28:29 +00:00
|
|
|
class FieldXML << (F,LightGreen) >> #RoyalBlue {
|
|
|
|
# Config $config
|
|
|
|
# Language $language
|
|
|
|
# Field $field
|
|
|
|
# Groups $groups
|
|
|
|
# Name $name
|
|
|
|
# TypeName $typename
|
|
|
|
# Attributes $attributes
|
|
|
|
# Xml $xml
|
|
|
|
# CustomFieldTypeFile $customfieldtypefile
|
|
|
|
# Counter $counter
|
|
|
|
+ __construct(Config $config, Language $language, ...)
|
|
|
|
+ get(string $setType, array $fieldAttributes, ...) : \stdClass
|
2023-03-21 22:52:57 +00:00
|
|
|
}
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of FieldXML::__construct
|
|
|
|
Constructor.
|
2023-04-13 15:44:10 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
|
|
|
|
arguments:
|
2023-10-04 18:28:29 +00:00
|
|
|
Config $config
|
|
|
|
Language $language
|
|
|
|
Field $field
|
|
|
|
Groups $groups
|
|
|
|
Name $name
|
|
|
|
TypeName $typename
|
|
|
|
Attributes $attributes
|
|
|
|
Xml $xml
|
|
|
|
CustomFieldTypeFile $customfieldtypefile
|
|
|
|
Counter $counter
|
2023-03-21 22:52:57 +00:00
|
|
|
end note
|
|
|
|
|
2023-10-04 18:28:29 +00:00
|
|
|
note right of FieldXML::get
|
|
|
|
Create a field with simpleXMLElement class
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
2023-10-04 18:28:29 +00:00
|
|
|
return: \stdClass
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
arguments:
|
2023-10-04 18:28:29 +00:00
|
|
|
string $setType
|
|
|
|
array $fieldAttributes
|
|
|
|
string $name
|
|
|
|
string $typeName
|
|
|
|
string $langView
|
|
|
|
string $nameSingleCode
|
|
|
|
string $nameListCode
|
|
|
|
array $placeholders
|
|
|
|
array|null $optionArray
|
|
|
|
?array $custom = null
|
|
|
|
string $taber = ''
|
2023-03-21 22:52:57 +00:00
|
|
|
end note
|
|
|
|
|
|
|
|
@enduml
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
```
|
|
|
|
██╗ ██████╗██████╗
|
|
|
|
██║██╔════╝██╔══██╗
|
|
|
|
██║██║ ██████╔╝
|
|
|
|
██ ██║██║ ██╔══██╗
|
|
|
|
╚█████╔╝╚██████╗██████╔╝
|
|
|
|
╚════╝ ╚═════╝╚═════╝
|
|
|
|
```
|
|
|
|
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
|
|
|
|