2023-03-21 22:52:57 +00:00
|
|
|
```
|
|
|
|
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
|
|
|
|
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
|
|
|
|
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
|
|
|
|
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
|
|
|
|
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
|
|
|
|
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
|
|
|
|
```
|
|
|
|
# class External (Details)
|
|
|
|
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Customcode**
|
|
|
|
```uml
|
|
|
|
@startuml
|
|
|
|
class External #Gold {
|
|
|
|
# array $code
|
|
|
|
# array $cutter
|
|
|
|
# Placeholder $placeholder
|
2024-01-27 07:09:33 +00:00
|
|
|
# $db
|
|
|
|
# $user
|
|
|
|
# $app
|
|
|
|
+ __construct(?Placeholder $placeholder = null)
|
2023-03-21 22:52:57 +00:00
|
|
|
+ set(string $string, int $debug) : string
|
|
|
|
# getCode(string $target, array $bucket) : void
|
|
|
|
# cut(string $string, string $sequence, ...) : string
|
|
|
|
}
|
|
|
|
|
|
|
|
note right of External::__construct
|
|
|
|
Constructor.
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of External::set
|
|
|
|
Set the external code string & load it in to string
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of External::getCode
|
|
|
|
Get the External Code/String
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: void
|
|
|
|
end note
|
|
|
|
|
|
|
|
note right of External::cut
|
|
|
|
Cut the External Code/String
|
|
|
|
|
|
|
|
since: 3.2.0
|
|
|
|
return: string
|
|
|
|
|
|
|
|
arguments:
|
|
|
|
string $string
|
|
|
|
string $sequence
|
|
|
|
string $key
|
|
|
|
end note
|
|
|
|
|
|
|
|
@enduml
|
|
|
|
```
|
|
|
|
|
|
|
|
---
|
|
|
|
```
|
|
|
|
██╗ ██████╗██████╗
|
|
|
|
██║██╔════╝██╔══██╗
|
|
|
|
██║██║ ██████╔╝
|
|
|
|
██ ██║██║ ██╔══██╗
|
|
|
|
╚█████╔╝╚██████╗██████╔╝
|
|
|
|
╚════╝ ╚═════╝╚═════╝
|
|
|
|
```
|
|
|
|
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
|
|
|
|