jcb-compiler/src/79740ee8-4d10-4b51-9ff5-18e1386ec1c6/README.md

84 lines
3.1 KiB
Markdown
Raw Permalink Normal View History

2023-03-21 22:52:57 +00:00
```
██████╗ ██████╗ ██╗ ██╗███████╗██████╗
██╔══██╗██╔═══██╗██║ ██║██╔════╝██╔══██╗
██████╔╝██║ ██║██║ █╗ ██║█████╗ ██████╔╝
██╔═══╝ ██║ ██║██║███╗██║██╔══╝ ██╔══██╗
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
```
# class Dynamicget (Details)
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Model**
2024-07-16 12:08:25 +00:00
2023-03-21 22:52:57 +00:00
```uml
@startuml
class Dynamicget #Gold {
# array $jointer
# array $operator
# array $guiMapper
# Config $config
2023-10-04 18:28:29 +00:00
# SiteDynamicGet $sitedynamicget
# SiteMainGet $sitemainget
2023-03-21 22:52:57 +00:00
# Customcode $customcode
# Gui $gui
# Placeholder $placeholder
# Selection $selection
2023-10-04 18:28:29 +00:00
+ __construct(Config $config, SiteDynamicGet $sitedynamicget, ...)
2023-03-21 22:52:57 +00:00
+ set(object $item, string $view_code, ...) : void
}
note right of Dynamicget::__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
SiteDynamicGet $sitedynamicget
SiteMainGet $sitemainget
Customcode $customcode
Gui $gui
Placeholder $placeholder
Selection $selection
2023-03-21 22:52:57 +00:00
end note
note right of Dynamicget::set
Set Dynamic Get
since: 3.2.0
return: void
arguments:
object $item
string $view_code
string $context
end note
@enduml
```
2024-07-16 12:08:25 +00:00
The Power feature in JCB allows you to write PHP classes and their implementations, making it easy to include them in your Joomla project. JCB handles linking, autoloading, namespacing, and folder structure creation for you.
By using the SPK (Super Power Key) in your custom code (replacing the class name in your code with the SPK), JCB will automatically pull the power from the repository into your project. This makes it available in your JCB instance, allowing you to edit it and include the class in your generated Joomla component.
JCB uses placeholders like [[[`NamespacePrefix`]]] and [[[`ComponentNamespace`]]] in namespacing to prevent collisions and improve reusability across different JCB systems. You can also set the **JCB powers path** globally or per component under the **Dynamic Integration** tab, providing flexibility and easy maintainability.
To add this specific Power to your project in JCB:
> simply use this SPK
```
Super---79740ee8_4d10_4b51_9ff5_18e1386ec1c6---Power
```
> remember to replace the `---` with `___` to activate this Power in your code
2023-03-21 22:52:57 +00:00
---
```
██╗ ██████╗██████╗
██║██╔════╝██╔══██╗
██║██║ ██████╔╝
██ ██║██║ ██╔══██╗
╚█████╔╝╚██████╗██████╔╝
╚════╝ ╚═════╝╚═════╝
```
> Build with [Joomla Component Builder](https://git.vdm.dev/joomla/Component-Builder)