2023-03-21 22:52:57 +00:00
|
|
|
```
|
|
|
|
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
|
|
|
|
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
|
|
|
|
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
|
|
|
|
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
|
|
|
|
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
|
|
|
|
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
|
|
|
|
```
|
|
|
|
# class Infusion (Details)
|
|
|
|
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Power**
|
|
|
|
```uml
|
|
|
|
@startuml
|
|
|
|
class Infusion #Gold {
|
|
|
|
# Config $config
|
|
|
|
# Power $power
|
|
|
|
# Content $content
|
2023-10-10 09:39:16 +00:00
|
|
|
# Contents $contents
|
2023-03-21 22:52:57 +00:00
|
|
|
# Autoloader $autoloader
|
|
|
|
# Parser $parser
|
|
|
|
# RepoReadme $reporeadme
|
|
|
|
# ReposReadme $reposreadme
|
|
|
|
# Placeholder $placeholder
|
|
|
|
# Event $event
|
|
|
|
# array $linker
|
2023-10-10 09:39:16 +00:00
|
|
|
+ __construct(Config $config, Power $power, ...)
|
2023-03-21 22:52:57 +00:00
|
|
|
+ set() : void
|
|
|
|
- parsePowers() : void
|
|
|
|
- setSuperPowers() : void
|
2023-10-04 18:28:29 +00:00
|
|
|
- mergePowers($powers, $old) : void
|
|
|
|
- sortPowers($powers) : void
|
2023-03-21 22:52:57 +00:00
|
|
|
- setPowers() : void
|
|
|
|
- index(array $powers) : string
|
|
|
|
- code(object $power) : string
|
2023-04-13 15:44:10 +00:00
|
|
|
- raw(object $power) : string
|
2023-03-21 22:52:57 +00:00
|
|
|
- linker(object $power) : string
|
|
|
|
}
|
|
|
|
|
|
|
|
note right of Infusion::__construct
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
|
|
|
|
arguments:
|
2023-10-10 09:39:16 +00:00
|
|
|
Config $config
|
|
|
|
Power $power
|
|
|
|
Content $content
|
|
|
|
Contents $contents
|
|
|
|
Autoloader $autoloader
|
|
|
|
Parser $parser
|
|
|
|
RepoReadme $reporeadme
|
|
|
|
ReposReadme $reposreadme
|
|
|
|
Placeholder $placeholder
|
|
|
|
Event $event
|
2023-03-21 22:52:57 +00:00
|
|
|
end note
|
|
|
|
|
|
|
|
note left of Infusion::set
|
|
|
|
Infuse the powers data with the content
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: void
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Infusion::parsePowers
|
|
|
|
We parse the powers to get the class map of all methods
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: void
|
|
|
|
end note
|
|
|
|
|
|
|
|
note left of Infusion::setSuperPowers
|
|
|
|
Set the Super Powers details
|
|
|
|
|
|
|
|
since: 3.2.0
|
2023-10-04 18:28:29 +00:00
|
|
|
return: void
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Infusion::mergePowers
|
|
|
|
Merge the old missing powers found in local repository back into the index
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: void
|
|
|
|
end note
|
|
|
|
|
|
|
|
note left of Infusion::sortPowers
|
|
|
|
Sort Powers
|
|
|
|
|
|
|
|
since: 3.2.0
|
2023-03-21 22:52:57 +00:00
|
|
|
return: void
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Infusion::setPowers
|
|
|
|
Set the Powers code
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: void
|
|
|
|
end note
|
|
|
|
|
|
|
|
note left of Infusion::index
|
|
|
|
Build the Super Power Index
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Infusion::code
|
|
|
|
Get the Power code
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
2023-04-13 15:44:10 +00:00
|
|
|
note left of Infusion::raw
|
|
|
|
Get the Raw (unchanged) Power code
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of Infusion::linker
|
2023-03-21 22:52:57 +00:00
|
|
|
Get the Power Linker
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
@enduml
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
```
|
|
|
|
██╗ ██████╗██████╗
|
|
|
|
██║██╔════╝██╔══██╗
|
|
|
|
██║██║ ██████╔╝
|
|
|
|
██ ██║██║ ██╔══██╗
|
|
|
|
╚█████╔╝╚██████╗██████╔╝
|
|
|
|
╚════╝ ╚═════╝╚═════╝
|
|
|
|
```
|
|
|
|
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
|
|
|
|