Update 2024-07-16 13:58:12
This commit is contained in:
parent
b90a4230e8
commit
0468b1cfd5
@ -25,7 +25,8 @@ This repository contains an index (see below) of all the approved powers within
|
|||||||
|
|
||||||
- **Namespace**: [VDM\Psr\Cache](#vdm-psr-cache)
|
- **Namespace**: [VDM\Psr\Cache](#vdm-psr-cache)
|
||||||
|
|
||||||
- **interface CacheItemInterface** | [Details](src/171fcb39-ae27-4c2b-b091-2f70b824288b) | [Code](src/171fcb39-ae27-4c2b-b091-2f70b824288b/code.php) | [Settings](src/171fcb39-ae27-4c2b-b091-2f70b824288b/settings.json) | Super__171fcb39_ae27_4c2b_b091_2f70b824288b__Power
|
- **interface CacheItemInterface** | [Details](src/171fcb39-ae27-4c2b-b091-2f70b824288b) | [Code](src/171fcb39-ae27-4c2b-b091-2f70b824288b/code.php) | [Settings](src/171fcb39-ae27-4c2b-b091-2f70b824288b/settings.json) | SPK: `Super---171fcb39_ae27_4c2b_b091_2f70b824288b---Power`
|
||||||
|
> remember to replace the `---` with `___` in the SPK to activate that Power in your code
|
||||||
|
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
```
|
```
|
||||||
# interface CacheItemInterface (Details)
|
# interface CacheItemInterface (Details)
|
||||||
> namespace: **VDM\Psr\Cache**
|
> namespace: **VDM\Psr\Cache**
|
||||||
> extends: ****
|
|
||||||
```uml
|
```uml
|
||||||
@startuml
|
@startuml
|
||||||
interface CacheItemInterface #Lavender {
|
interface CacheItemInterface #Lavender {
|
||||||
@ -86,6 +86,20 @@ end note
|
|||||||
@enduml
|
@enduml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
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---171fcb39_ae27_4c2b_b091_2f70b824288b---Power
|
||||||
|
```
|
||||||
|
> remember to replace the `---` with `___` to activate this Power in your code
|
||||||
|
|
||||||
---
|
---
|
||||||
```
|
```
|
||||||
██╗ ██████╗██████╗
|
██╗ ██████╗██████╗
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"power": "src\/171fcb39-ae27-4c2b-b091-2f70b824288b\/code.power",
|
"power": "src\/171fcb39-ae27-4c2b-b091-2f70b824288b\/code.power",
|
||||||
"settings": "src\/171fcb39-ae27-4c2b-b091-2f70b824288b\/settings.json",
|
"settings": "src\/171fcb39-ae27-4c2b-b091-2f70b824288b\/settings.json",
|
||||||
"path": "src\/171fcb39-ae27-4c2b-b091-2f70b824288b",
|
"path": "src\/171fcb39-ae27-4c2b-b091-2f70b824288b",
|
||||||
"spk": "Super__171fcb39_ae27_4c2b_b091_2f70b824288b__Power",
|
"spk": "Super---171fcb39_ae27_4c2b_b091_2f70b824288b---Power",
|
||||||
"guid": "171fcb39-ae27-4c2b-b091-2f70b824288b"
|
"guid": "171fcb39-ae27-4c2b-b091-2f70b824288b"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user