2023-03-21 22:52:57 +00:00
|
|
|
```
|
|
|
|
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
|
|
|
|
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
|
|
|
|
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
|
|
|
|
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
|
|
|
|
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
|
|
|
|
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
|
|
|
|
```
|
|
|
|
# class Data (Details)
|
|
|
|
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Templatelayout**
|
|
|
|
```uml
|
|
|
|
@startuml
|
|
|
|
class Data #Gold {
|
|
|
|
# Config $config
|
2023-10-04 18:28:29 +00:00
|
|
|
# LayoutData $layoutdata
|
|
|
|
# TemplateData $templatedata
|
|
|
|
# Aliasdata $aliasdata
|
|
|
|
+ __construct(Config $config, LayoutData $layoutdata, ...)
|
2023-03-21 22:52:57 +00:00
|
|
|
+ set(string $content, string $view, ...) : bool
|
|
|
|
}
|
|
|
|
|
|
|
|
note right of Data::__construct
|
2023-10-04 18:28:29 +00:00
|
|
|
Constructor.
|
2023-03-21 22:52:57 +00:00
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
|
|
|
|
arguments:
|
2023-10-04 18:28:29 +00:00
|
|
|
Config $config
|
|
|
|
LayoutData $layoutdata
|
|
|
|
TemplateData $templatedata
|
|
|
|
Aliasdata $aliasdata
|
2023-03-21 22:52:57 +00:00
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Data::set
|
|
|
|
Set Template and Layout Data
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: bool
|
|
|
|
|
|
|
|
arguments:
|
|
|
|
string $content
|
|
|
|
string $view
|
|
|
|
bool $found = false
|
|
|
|
array $templates = []
|
|
|
|
array $layouts = []
|
|
|
|
end note
|
|
|
|
|
|
|
|
@enduml
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
```
|
|
|
|
██╗ ██████╗██████╗
|
|
|
|
██║██╔════╝██╔══██╗
|
|
|
|
██║██║ ██████╔╝
|
|
|
|
██ ██║██║ ██╔══██╗
|
|
|
|
╚█████╔╝╚██████╗██████╔╝
|
|
|
|
╚════╝ ╚═════╝╚═════╝
|
|
|
|
```
|
|
|
|
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
|
|
|
|