From 0468b1cfd5b32812c54657f0de5f9b095bdeef3e Mon Sep 17 00:00:00 2001 From: aB0t Date: Tue, 16 Jul 2024 13:58:26 +0200 Subject: [PATCH] Update 2024-07-16 13:58:12 --- README.md | 3 ++- .../README.md | 16 +++++++++++++++- super-powers.json | 2 +- 3 files changed, 18 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b1a008a..eca4bd5 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,8 @@ This repository contains an index (see below) of all the approved powers within - **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 --- ``` diff --git a/src/171fcb39-ae27-4c2b-b091-2f70b824288b/README.md b/src/171fcb39-ae27-4c2b-b091-2f70b824288b/README.md index e761590..44a2318 100644 --- a/src/171fcb39-ae27-4c2b-b091-2f70b824288b/README.md +++ b/src/171fcb39-ae27-4c2b-b091-2f70b824288b/README.md @@ -8,7 +8,7 @@ ``` # interface CacheItemInterface (Details) > namespace: **VDM\Psr\Cache** -> extends: **** + ```uml @startuml interface CacheItemInterface #Lavender { @@ -86,6 +86,20 @@ end note @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 + --- ``` ██╗ ██████╗██████╗ diff --git a/super-powers.json b/super-powers.json index 30bd5b0..fffa9c0 100644 --- a/super-powers.json +++ b/super-powers.json @@ -7,7 +7,7 @@ "power": "src\/171fcb39-ae27-4c2b-b091-2f70b824288b\/code.power", "settings": "src\/171fcb39-ae27-4c2b-b091-2f70b824288b\/settings.json", "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" } } \ No newline at end of file