update 2023-10-10 10:16:07
This commit is contained in:
parent
dc62360576
commit
1ba2cdbd9d
@ -31,7 +31,6 @@ This repository contains an index (see below) of all the approved powers within
|
||||
- **abstract class Factory** | [Details](src/d910d8b8-4c23-4f3e-8cda-438f2d2bd7ac) | [Code](src/d910d8b8-4c23-4f3e-8cda-438f2d2bd7ac/code.php) | [Settings](src/d910d8b8-4c23-4f3e-8cda-438f2d2bd7ac/settings.json) | Super__d910d8b8_4c23_4f3e_8cda_438f2d2bd7ac__Power
|
||||
- **final class Component** | [Details](src/e2472b22-a329-44d8-b4a2-ae3ba99e17a0) | [Code](src/e2472b22-a329-44d8-b4a2-ae3ba99e17a0/code.php) | [Settings](src/e2472b22-a329-44d8-b4a2-ae3ba99e17a0/settings.json) | Super__e2472b22_a329_44d8_b4a2_ae3ba99e17a0__Power
|
||||
- **class Config** | [Details](src/fa4bf18e-301e-42e3-91fb-6e0096c07adc) | [Code](src/fa4bf18e-301e-42e3-91fb-6e0096c07adc/code.php) | [Settings](src/fa4bf18e-301e-42e3-91fb-6e0096c07adc/settings.json) | Super__fa4bf18e_301e_42e3_91fb_6e0096c07adc__Power
|
||||
- **class Content** | [Details](src/adfbe68a-6d22-43e5-aee8-2787e8c47e75) | [Code](src/adfbe68a-6d22-43e5-aee8-2787e8c47e75/code.php) | [Settings](src/adfbe68a-6d22-43e5-aee8-2787e8c47e75/settings.json) | Super__adfbe68a_6d22_43e5_aee8_2787e8c47e75__Power
|
||||
- **class Customcode** | [Details](src/313b43c4-98c3-4f62-9177-2d73ec8eba31) | [Code](src/313b43c4-98c3-4f62-9177-2d73ec8eba31/code.php) | [Settings](src/313b43c4-98c3-4f62-9177-2d73ec8eba31/settings.json) | Super__313b43c4_98c3_4f62_9177_2d73ec8eba31__Power
|
||||
- **class Field** | [Details](src/d7ba2d5d-10b6-470d-978d-9f91ea65ee75) | [Code](src/d7ba2d5d-10b6-470d-978d-9f91ea65ee75/code.php) | [Settings](src/d7ba2d5d-10b6-470d-978d-9f91ea65ee75/settings.json) | Super__d7ba2d5d_10b6_470d_978d_9f91ea65ee75__Power
|
||||
- **class Language** | [Details](src/8eee7df5-2775-41a9-9372-c46c5939a252) | [Code](src/8eee7df5-2775-41a9-9372-c46c5939a252/code.php) | [Settings](src/8eee7df5-2775-41a9-9372-c46c5939a252/settings.json) | Super__8eee7df5_2775_41a9_9372_c46c5939a252__Power
|
||||
@ -41,8 +40,6 @@ This repository contains an index (see below) of all the approved powers within
|
||||
- **Namespace**: [VDM\Joomla\Componentbuilder\Interfaces](#vdm-joomla-componentbuilder-interfaces)
|
||||
|
||||
- **interface Cryptinterface** | [Details](src/81de8f57-dd9c-4a17-964f-848cd4a0743b) | [Code](src/81de8f57-dd9c-4a17-964f-848cd4a0743b/code.php) | [Settings](src/81de8f57-dd9c-4a17-964f-848cd4a0743b/settings.json) | Super__81de8f57_dd9c_4a17_964f_848cd4a0743b__Power
|
||||
- **interface Mapperdoubleinterface** | [Details](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f) | [Code](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f/code.php) | [Settings](src/fbc58009-fa16-4d49-a0dd-419c3b62d42f/settings.json) | Super__fbc58009_fa16_4d49_a0dd_419c3b62d42f__Power
|
||||
- **interface Mappersingleinterface** | [Details](src/78527c29-24ad-4735-ad4c-ec33a4952d9b) | [Code](src/78527c29-24ad-4735-ad4c-ec33a4952d9b/code.php) | [Settings](src/78527c29-24ad-4735-ad4c-ec33a4952d9b/settings.json) | Super__78527c29_24ad_4735_ad4c_ec33a4952d9b__Power
|
||||
- **interface Serverinterface** | [Details](src/86ac0760-26f5-4746-9c7f-ce77860f80f8) | [Code](src/86ac0760-26f5-4746-9c7f-ce77860f80f8/code.php) | [Settings](src/86ac0760-26f5-4746-9c7f-ce77860f80f8/settings.json) | Super__86ac0760_26f5_4746_9c7f_ce77860f80f8__Power
|
||||
- **Namespace**: [VDM\Joomla\Componentbuilder\Power](#vdm-joomla-componentbuilder-power)
|
||||
|
||||
@ -149,6 +146,8 @@ This repository contains an index (see below) of all the approved powers within
|
||||
- **final class TemplateData** | [Details](src/8591f6db-dd3c-4a63-9b3f-574c0ec74ade) | [Code](src/8591f6db-dd3c-4a63-9b3f-574c0ec74ade/code.php) | [Settings](src/8591f6db-dd3c-4a63-9b3f-574c0ec74ade/settings.json) | Super__8591f6db_dd3c_4a63_9b3f_574c0ec74ade__Power
|
||||
- **final class Title** | [Details](src/6a1dddb3-a955-425e-b713-8ef81f256035) | [Code](src/6a1dddb3-a955-425e-b713-8ef81f256035/code.php) | [Settings](src/6a1dddb3-a955-425e-b713-8ef81f256035/settings.json) | Super__6a1dddb3_a955_425e_b713_8ef81f256035__Power
|
||||
- **final class UikitComp** | [Details](src/54ec57f6-2fc3-42e5-975e-1fabeacb845d) | [Code](src/54ec57f6-2fc3-42e5-975e-1fabeacb845d/code.php) | [Settings](src/54ec57f6-2fc3-42e5-975e-1fabeacb845d/settings.json) | Super__54ec57f6_2fc3_42e5_975e_1fabeacb845d__Power
|
||||
- **class ContentMulti** | [Details](src/5f57ff1a-c196-45b1-a2ac-33766b44fb95) | [Code](src/5f57ff1a-c196-45b1-a2ac-33766b44fb95/code.php) | [Settings](src/5f57ff1a-c196-45b1-a2ac-33766b44fb95/settings.json) | Super__5f57ff1a_c196_45b1_a2ac_33766b44fb95__Power
|
||||
- **class ContentOne** | [Details](src/adfbe68a-6d22-43e5-aee8-2787e8c47e75) | [Code](src/adfbe68a-6d22-43e5-aee8-2787e8c47e75/code.php) | [Settings](src/adfbe68a-6d22-43e5-aee8-2787e8c47e75/settings.json) | Super__adfbe68a_6d22_43e5_aee8_2787e8c47e75__Power
|
||||
- **class UpdateMysql** | [Details](src/2b5c9989-1d4e-4f59-8b95-5cd2f72f82d9) | [Code](src/2b5c9989-1d4e-4f59-8b95-5cd2f72f82d9/code.php) | [Settings](src/2b5c9989-1d4e-4f59-8b95-5cd2f72f82d9/settings.json) | Super__2b5c9989_1d4e_4f59_8b95_5cd2f72f82d9__Power
|
||||
- **Namespace**: [VDM\Joomla\Componentbuilder\Compiler\Component](#vdm-joomla-componentbuilder-compiler-component)
|
||||
|
||||
@ -298,7 +297,6 @@ This repository contains an index (see below) of all the approved powers within
|
||||
- **class Joomlaplugin** | [Details](src/9eba241c-af90-42dd-ae05-92ff4d8391d3) | [Code](src/9eba241c-af90-42dd-ae05-92ff4d8391d3/code.php) | [Settings](src/9eba241c-af90-42dd-ae05-92ff4d8391d3/settings.json) | Super__9eba241c_af90_42dd_ae05_92ff4d8391d3__Power
|
||||
- **class Language** | [Details](src/9f00e793-86f8-4ef9-b775-a3eb129f83c0) | [Code](src/9f00e793-86f8-4ef9-b775-a3eb129f83c0/code.php) | [Settings](src/9f00e793-86f8-4ef9-b775-a3eb129f83c0/settings.json) | Super__9f00e793_86f8_4ef9_b775_a3eb129f83c0__Power
|
||||
- **class Library** | [Details](src/253317c7-3c3b-48a0-aec8-8af5e7a86504) | [Code](src/253317c7-3c3b-48a0-aec8-8af5e7a86504/code.php) | [Settings](src/253317c7-3c3b-48a0-aec8-8af5e7a86504/settings.json) | Super__253317c7_3c3b_48a0_aec8_8af5e7a86504__Power
|
||||
- **class Mapper** | [Details](src/23f2ca33-440a-4941-8e9a-4bc67522c0cb) | [Code](src/23f2ca33-440a-4941-8e9a-4bc67522c0cb/code.php) | [Settings](src/23f2ca33-440a-4941-8e9a-4bc67522c0cb/settings.json) | Super__23f2ca33_440a_4941_8e9a_4bc67522c0cb__Power
|
||||
- **class Model** | [Details](src/0601fee8-d51e-4af0-9ad3-b5f8700c4a45) | [Code](src/0601fee8-d51e-4af0-9ad3-b5f8700c4a45/code.php) | [Settings](src/0601fee8-d51e-4af0-9ad3-b5f8700c4a45/settings.json) | Super__0601fee8_d51e_4af0_9ad3_b5f8700c4a45__Power
|
||||
- **class Placeholder** | [Details](src/2f7b1998-bb93-4055-ae82-aa659ce8a37f) | [Code](src/2f7b1998-bb93-4055-ae82-aa659ce8a37f/code.php) | [Settings](src/2f7b1998-bb93-4055-ae82-aa659ce8a37f/settings.json) | Super__2f7b1998_bb93_4055_ae82_aa659ce8a37f__Power
|
||||
- **class Power** | [Details](src/de01527a-6586-46ea-92e7-11ea3de1cedb) | [Code](src/de01527a-6586-46ea-92e7-11ea3de1cedb/code.php) | [Settings](src/de01527a-6586-46ea-92e7-11ea3de1cedb/settings.json) | Super__de01527a_6586_46ea_92e7_11ea3de1cedb__Power
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class Category (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class Category << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class Category extends StorageRegistry implements Storageregistryinterface
|
||||
final class Category extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -14,6 +14,7 @@ class Infusion #Gold {
|
||||
# Config $config
|
||||
# Power $power
|
||||
# Content $content
|
||||
# Contents $contents
|
||||
# Autoloader $autoloader
|
||||
# Parser $parser
|
||||
# RepoReadme $reporeadme
|
||||
@ -21,7 +22,7 @@ class Infusion #Gold {
|
||||
# Placeholder $placeholder
|
||||
# Event $event
|
||||
# array $linker
|
||||
+ __construct(?Config $config = null, ?Power $power = null, ...)
|
||||
+ __construct(Config $config, Power $power, ...)
|
||||
+ set() : void
|
||||
- parsePowers() : void
|
||||
- setSuperPowers() : void
|
||||
@ -40,15 +41,16 @@ note right of Infusion::__construct
|
||||
since: 3.2.0
|
||||
|
||||
arguments:
|
||||
?Config $config = null
|
||||
?Power $power = null
|
||||
?Content $content = null
|
||||
?Autoloader $autoloader = null
|
||||
?Parser $parser = null
|
||||
?RepoReadme $reporeadme = null
|
||||
?ReposReadme $reposreadme = null
|
||||
?Placeholder $placeholder = null
|
||||
?Event $event = null
|
||||
Config $config
|
||||
Power $power
|
||||
Content $content
|
||||
Contents $contents
|
||||
Autoloader $autoloader
|
||||
Parser $parser
|
||||
RepoReadme $reporeadme
|
||||
ReposReadme $reposreadme
|
||||
Placeholder $placeholder
|
||||
Event $event
|
||||
end note
|
||||
|
||||
note left of Infusion::set
|
||||
|
@ -12,10 +12,10 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Power;
|
||||
|
||||
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Factory as Compiler;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Config;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Content;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Builder\ContentOne as Content;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Builder\ContentMulti as Contents;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Autoloader;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Parser;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Repo\Readme as RepoReadme;
|
||||
@ -34,75 +34,83 @@ use VDM\Joomla\Utilities\ObjectHelper;
|
||||
class Infusion
|
||||
{
|
||||
/**
|
||||
* Compiler Config
|
||||
* The Config Class.
|
||||
*
|
||||
* @var Config
|
||||
* @var Config
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Config $config;
|
||||
|
||||
/**
|
||||
* Power Objects
|
||||
* The Power Class.
|
||||
*
|
||||
* @var Power
|
||||
* @var Power
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Power $power;
|
||||
|
||||
/**
|
||||
* Compiler Content
|
||||
* The ContentOne Class.
|
||||
*
|
||||
* @var Content
|
||||
* @var Content
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Content $content;
|
||||
|
||||
/**
|
||||
* Compiler Powers Autoloader
|
||||
* The ContentMulti Class.
|
||||
*
|
||||
* @var Autoloader
|
||||
* @var Contents
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Contents $contents;
|
||||
|
||||
/**
|
||||
* The Autoloader Class.
|
||||
*
|
||||
* @var Autoloader
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Autoloader $autoloader;
|
||||
|
||||
/**
|
||||
* Compiler Powers Parser
|
||||
* The Parser Class.
|
||||
*
|
||||
* @var Parser
|
||||
* @var Parser
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Parser $parser;
|
||||
|
||||
/**
|
||||
* Compiler Powers Repo Readme Builder
|
||||
* The Readme Class.
|
||||
*
|
||||
* @var RepoReadme
|
||||
* @var RepoReadme
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected RepoReadme $reporeadme;
|
||||
|
||||
/**
|
||||
* Compiler Powers Repos Readme Builder
|
||||
* The Readme Class.
|
||||
*
|
||||
* @var ReposReadme
|
||||
* @var ReposReadme
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected ReposReadme $reposreadme;
|
||||
|
||||
/**
|
||||
* Compiler Placeholder
|
||||
* The Placeholder Class.
|
||||
*
|
||||
* @var Placeholder
|
||||
* @var Placeholder
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Placeholder $placeholder;
|
||||
|
||||
/**
|
||||
* Compiler Event
|
||||
* The EventInterface Class.
|
||||
*
|
||||
* @var Event
|
||||
* @var Event
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Event $event;
|
||||
|
||||
/**
|
||||
@ -135,31 +143,35 @@ class Infusion
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param Config|null $config The Config object.
|
||||
* @param Power|null $power The power object.
|
||||
* @param Content|null $content The compiler content object.
|
||||
* @param Autoloader|null $autoloader The powers autoloader object.
|
||||
* @param Parser|null $parser The powers parser object.
|
||||
* @param RepoReadme|null $reporeadme The powers repo readme builder object.
|
||||
* @param ReposReadme|null $reposreadme The powers repos readme builder object.
|
||||
* @param Placeholder|null $placeholder The placeholder object.
|
||||
* @param Event|null $event The events object.
|
||||
* @param Config $config The Config Class.
|
||||
* @param Power $power The Power Class.
|
||||
* @param Content $content The ContentOne Class.
|
||||
* @param Contents $contents The ContentMulti Class.
|
||||
* @param Autoloader $autoloader The Autoloader Class.
|
||||
* @param Parser $parser The Parser Class.
|
||||
* @param RepoReadme $reporeadme The Readme Class.
|
||||
* @param ReposReadme $reposreadme The Readme Class.
|
||||
* @param Placeholder $placeholder The Placeholder Class.
|
||||
* @param Event $event The EventInterface Class.
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function __construct(?Config $config = null, ?Power $power = null, ?Content $content = null,
|
||||
?Autoloader $autoloader = null, ?Parser $parser = null, ?RepoReadme $reporeadme = null,
|
||||
?ReposReadme $reposreadme = null, ?Placeholder $placeholder = null, ?Event $event = null)
|
||||
public function __construct(Config $config, Power $power, Content $content,
|
||||
Contents $contents, Autoloader $autoloader,
|
||||
Parser $parser, RepoReadme $reporeadme,
|
||||
ReposReadme $reposreadme, Placeholder $placeholder,
|
||||
Event $event)
|
||||
{
|
||||
$this->config = $config ?: Compiler::_('Config');
|
||||
$this->power = $power ?: Compiler::_('Power');
|
||||
$this->content = $content ?: Compiler::_('Content');
|
||||
$this->autoloader = $autoloader ?: Compiler::_('Power.Autoloader');
|
||||
$this->parser = $parser ?: Compiler::_('Power.Parser');
|
||||
$this->reporeadme = $reporeadme ?: Compiler::_('Power.Repo.Readme');
|
||||
$this->reposreadme = $reposreadme ?: Compiler::_('Power.Repos.Readme');
|
||||
$this->placeholder = $placeholder ?: Compiler::_('Placeholder');
|
||||
$this->event = $event ?: Compiler::_('Event');
|
||||
$this->config = $config;
|
||||
$this->power = $power;
|
||||
$this->content = $content;
|
||||
$this->contents = $contents;
|
||||
$this->autoloader = $autoloader;
|
||||
$this->parser = $parser;
|
||||
$this->reporeadme = $reporeadme;
|
||||
$this->reposreadme = $reposreadme;
|
||||
$this->placeholder = $placeholder;
|
||||
$this->event = $event;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -199,7 +211,7 @@ class Infusion
|
||||
// only parse those approved
|
||||
if ($power->approved == 1)
|
||||
{
|
||||
$power->main_class_code = $this->placeholder->update($power->main_class_code, $this->content->active);
|
||||
$power->main_class_code = $this->placeholder->update($power->main_class_code, $this->content->allActive());
|
||||
$power->parsed_class_code = $this->parser->code($power->main_class_code);
|
||||
}
|
||||
}
|
||||
@ -238,13 +250,13 @@ class Infusion
|
||||
}
|
||||
|
||||
// POWERREADME
|
||||
$this->content->set_($key, 'POWERREADME', $this->reposreadme->get($powers));
|
||||
$this->contents->set("{$key}|POWERREADME", $this->reposreadme->get($powers));
|
||||
|
||||
// sort all powers
|
||||
$this->sortPowers($powers);
|
||||
|
||||
// POWERINDEX
|
||||
$this->content->set_($key, 'POWERINDEX', $this->index($powers));
|
||||
$this->contents->set("{$key}|POWERINDEX", $this->index($powers));
|
||||
|
||||
// Trigger Event: jcb_ce_onAfterInfuseSuperPowerDetails
|
||||
$this->event->trigger(
|
||||
@ -308,16 +320,16 @@ class Infusion
|
||||
);
|
||||
|
||||
// POWERCODE
|
||||
$this->content->set_($power->key, 'POWERCODE', $this->code($power));
|
||||
$this->contents->set("{$power->key}|POWERCODE", $this->code($power));
|
||||
|
||||
// CODEPOWER
|
||||
$this->content->set_($power->key, 'CODEPOWER', $this->raw($power));
|
||||
$this->contents->set("{$power->key}|CODEPOWER", $this->raw($power));
|
||||
|
||||
// POWERLINKER
|
||||
$this->content->set_($power->key, 'POWERLINKER', $this->linker($power));
|
||||
$this->contents->set("{$power->key}|POWERLINKER", $this->linker($power));
|
||||
|
||||
// POWERLINKER
|
||||
$this->content->set_($power->key, 'POWERREADME', $this->reporeadme->get($power));
|
||||
$this->contents->set("{$power->key}|POWERREADME", $this->reporeadme->get($power));
|
||||
|
||||
// Trigger Event: jcb_ce_onAfterInfusePowerData
|
||||
$this->event->trigger(
|
||||
@ -404,7 +416,7 @@ class Infusion
|
||||
|
||||
$code[] = '}' . PHP_EOL;
|
||||
|
||||
return $this->placeholder->update(implode(PHP_EOL, $code), $this->content->active);
|
||||
return $this->placeholder->update(implode(PHP_EOL, $code), $this->content->allActive());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -447,7 +459,6 @@ class Infusion
|
||||
}
|
||||
|
||||
return json_encode($linker, JSON_PRETTY_PRINT);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,73 +1,81 @@
|
||||
/**
|
||||
* Compiler Config
|
||||
* The Config Class.
|
||||
*
|
||||
* @var Config
|
||||
* @var Config
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Config $config;
|
||||
|
||||
/**
|
||||
* Power Objects
|
||||
* The Power Class.
|
||||
*
|
||||
* @var Power
|
||||
* @var Power
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Power $power;
|
||||
|
||||
/**
|
||||
* Compiler Content
|
||||
* The ContentOne Class.
|
||||
*
|
||||
* @var Content
|
||||
* @var Content
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Content $content;
|
||||
|
||||
/**
|
||||
* Compiler Powers Autoloader
|
||||
* The ContentMulti Class.
|
||||
*
|
||||
* @var Autoloader
|
||||
* @var Contents
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Contents $contents;
|
||||
|
||||
/**
|
||||
* The Autoloader Class.
|
||||
*
|
||||
* @var Autoloader
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Autoloader $autoloader;
|
||||
|
||||
/**
|
||||
* Compiler Powers Parser
|
||||
* The Parser Class.
|
||||
*
|
||||
* @var Parser
|
||||
* @var Parser
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Parser $parser;
|
||||
|
||||
/**
|
||||
* Compiler Powers Repo Readme Builder
|
||||
* The Readme Class.
|
||||
*
|
||||
* @var RepoReadme
|
||||
* @var RepoReadme
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected RepoReadme $reporeadme;
|
||||
|
||||
/**
|
||||
* Compiler Powers Repos Readme Builder
|
||||
* The Readme Class.
|
||||
*
|
||||
* @var ReposReadme
|
||||
* @var ReposReadme
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected ReposReadme $reposreadme;
|
||||
|
||||
/**
|
||||
* Compiler Placeholder
|
||||
* The Placeholder Class.
|
||||
*
|
||||
* @var Placeholder
|
||||
* @var Placeholder
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Placeholder $placeholder;
|
||||
|
||||
/**
|
||||
* Compiler Event
|
||||
* The EventInterface Class.
|
||||
*
|
||||
* @var Event
|
||||
* @var Event
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Event $event;
|
||||
|
||||
/**
|
||||
@ -100,31 +108,35 @@
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param Config|null $config The Config object.
|
||||
* @param Power|null $power The power object.
|
||||
* @param Content|null $content The compiler content object.
|
||||
* @param Autoloader|null $autoloader The powers autoloader object.
|
||||
* @param Parser|null $parser The powers parser object.
|
||||
* @param RepoReadme|null $reporeadme The powers repo readme builder object.
|
||||
* @param ReposReadme|null $reposreadme The powers repos readme builder object.
|
||||
* @param Placeholder|null $placeholder The placeholder object.
|
||||
* @param Event|null $event The events object.
|
||||
* @param Config $config The Config Class.
|
||||
* @param Power $power The Power Class.
|
||||
* @param Content $content The ContentOne Class.
|
||||
* @param Contents $contents The ContentMulti Class.
|
||||
* @param Autoloader $autoloader The Autoloader Class.
|
||||
* @param Parser $parser The Parser Class.
|
||||
* @param RepoReadme $reporeadme The Readme Class.
|
||||
* @param ReposReadme $reposreadme The Readme Class.
|
||||
* @param Placeholder $placeholder The Placeholder Class.
|
||||
* @param Event $event The EventInterface Class.
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function __construct(?Config $config = null, ?Power $power = null, ?Content $content = null,
|
||||
?Autoloader $autoloader = null, ?Parser $parser = null, ?RepoReadme $reporeadme = null,
|
||||
?ReposReadme $reposreadme = null, ?Placeholder $placeholder = null, ?Event $event = null)
|
||||
public function __construct(Config $config, Power $power, Content $content,
|
||||
Contents $contents, Autoloader $autoloader,
|
||||
Parser $parser, RepoReadme $reporeadme,
|
||||
ReposReadme $reposreadme, Placeholder $placeholder,
|
||||
Event $event)
|
||||
{
|
||||
$this->config = $config ?: Compiler::_('Config');
|
||||
$this->power = $power ?: Compiler::_('Power');
|
||||
$this->content = $content ?: Compiler::_('Content');
|
||||
$this->autoloader = $autoloader ?: Compiler::_('Power.Autoloader');
|
||||
$this->parser = $parser ?: Compiler::_('Power.Parser');
|
||||
$this->reporeadme = $reporeadme ?: Compiler::_('Power.Repo.Readme');
|
||||
$this->reposreadme = $reposreadme ?: Compiler::_('Power.Repos.Readme');
|
||||
$this->placeholder = $placeholder ?: Compiler::_('Placeholder');
|
||||
$this->event = $event ?: Compiler::_('Event');
|
||||
$this->config = $config;
|
||||
$this->power = $power;
|
||||
$this->content = $content;
|
||||
$this->contents = $contents;
|
||||
$this->autoloader = $autoloader;
|
||||
$this->parser = $parser;
|
||||
$this->reporeadme = $reporeadme;
|
||||
$this->reposreadme = $reposreadme;
|
||||
$this->placeholder = $placeholder;
|
||||
$this->event = $event;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -164,7 +176,7 @@
|
||||
// only parse those approved
|
||||
if ($power->approved == 1)
|
||||
{
|
||||
$power->main_class_code = $this->placeholder->update($power->main_class_code, $this->content->active);
|
||||
$power->main_class_code = $this->placeholder->update($power->main_class_code, $this->content->allActive());
|
||||
$power->parsed_class_code = $this->parser->code($power->main_class_code);
|
||||
}
|
||||
}
|
||||
@ -203,13 +215,13 @@
|
||||
}
|
||||
|
||||
// POWERREADME
|
||||
$this->content->set_($key, 'POWERREADME', $this->reposreadme->get($powers));
|
||||
$this->contents->set("{$key}|POWERREADME", $this->reposreadme->get($powers));
|
||||
|
||||
// sort all powers
|
||||
$this->sortPowers($powers);
|
||||
|
||||
// POWERINDEX
|
||||
$this->content->set_($key, 'POWERINDEX', $this->index($powers));
|
||||
$this->contents->set("{$key}|POWERINDEX", $this->index($powers));
|
||||
|
||||
// Trigger Event: jcb_ce_onAfterInfuseSuperPowerDetails
|
||||
$this->event->trigger(
|
||||
@ -273,16 +285,16 @@
|
||||
);
|
||||
|
||||
// POWERCODE
|
||||
$this->content->set_($power->key, 'POWERCODE', $this->code($power));
|
||||
$this->contents->set("{$power->key}|POWERCODE", $this->code($power));
|
||||
|
||||
// CODEPOWER
|
||||
$this->content->set_($power->key, 'CODEPOWER', $this->raw($power));
|
||||
$this->contents->set("{$power->key}|CODEPOWER", $this->raw($power));
|
||||
|
||||
// POWERLINKER
|
||||
$this->content->set_($power->key, 'POWERLINKER', $this->linker($power));
|
||||
$this->contents->set("{$power->key}|POWERLINKER", $this->linker($power));
|
||||
|
||||
// POWERLINKER
|
||||
$this->content->set_($power->key, 'POWERREADME', $this->reporeadme->get($power));
|
||||
$this->contents->set("{$power->key}|POWERREADME", $this->reporeadme->get($power));
|
||||
|
||||
// Trigger Event: jcb_ce_onAfterInfusePowerData
|
||||
$this->event->trigger(
|
||||
@ -369,7 +381,7 @@
|
||||
|
||||
$code[] = '}' . PHP_EOL;
|
||||
|
||||
return $this->placeholder->update(implode(PHP_EOL, $code), $this->content->active);
|
||||
return $this->placeholder->update(implode(PHP_EOL, $code), $this->content->allActive());
|
||||
}
|
||||
|
||||
/**
|
||||
@ -412,4 +424,4 @@
|
||||
}
|
||||
|
||||
return json_encode($linker, JSON_PRETTY_PRINT);
|
||||
}
|
||||
}
|
@ -11,20 +11,20 @@
|
||||
"type": "class",
|
||||
"use_selection": {
|
||||
"use_selection0": {
|
||||
"use": "d910d8b8-4c23-4f3e-8cda-438f2d2bd7ac",
|
||||
"as": "Compiler"
|
||||
},
|
||||
"use_selection1": {
|
||||
"use": "fa4bf18e-301e-42e3-91fb-6e0096c07adc",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection2": {
|
||||
"use_selection1": {
|
||||
"use": "b836c1b1-b6b1-44f7-b8a2-9a763a4185b1",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection3": {
|
||||
"use_selection2": {
|
||||
"use": "adfbe68a-6d22-43e5-aee8-2787e8c47e75",
|
||||
"as": "default"
|
||||
"as": "Content"
|
||||
},
|
||||
"use_selection3": {
|
||||
"use": "5f57ff1a-c196-45b1-a2ac-33766b44fb95",
|
||||
"as": "Contents"
|
||||
},
|
||||
"use_selection4": {
|
||||
"use": "6e64917c-d687-4ef3-a655-811319f5a81e",
|
||||
|
@ -279,7 +279,7 @@ class Paths
|
||||
|
||||
// set the lang key
|
||||
$this->extractor->langKeys[strtoupper($module->folder_name)] =
|
||||
$module->id . '_M0dU|3';
|
||||
$module->id . '_M0dUl3';
|
||||
|
||||
// return the path
|
||||
if ($module->target == 2)
|
||||
@ -406,7 +406,7 @@ class Paths
|
||||
// set the lang key
|
||||
$this->extractor->langKeys['PLG_' . strtoupper(
|
||||
$plugin->group . '_' . $plugin->file_name
|
||||
)] = $plugin->id . '_P|uG!n';
|
||||
)] = $plugin->id . '_pLuG!n';
|
||||
|
||||
// return the path
|
||||
return $plugin->group . '/' . $plugin->file_name;
|
||||
|
@ -244,7 +244,7 @@
|
||||
|
||||
// set the lang key
|
||||
$this->extractor->langKeys[strtoupper($module->folder_name)] =
|
||||
$module->id . '_M0dU|3';
|
||||
$module->id . '_M0dUl3';
|
||||
|
||||
// return the path
|
||||
if ($module->target == 2)
|
||||
@ -371,7 +371,7 @@
|
||||
// set the lang key
|
||||
$this->extractor->langKeys['PLG_' . strtoupper(
|
||||
$plugin->group . '_' . $plugin->file_name
|
||||
)] = $plugin->id . '_P|uG!n';
|
||||
)] = $plugin->id . '_pLuG!n';
|
||||
|
||||
// return the path
|
||||
return $plugin->group . '/' . $plugin->file_name;
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class HiddenFields (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class HiddenFields << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,9 +12,9 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Abstraction\StorageRegistry\Traits\ToString;
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Abstraction\Registry\Traits\ToString;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -22,7 +22,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class HiddenFields extends StorageRegistry implements Storageregistryinterface
|
||||
final class HiddenFields extends Registry implements Registryinterface
|
||||
{
|
||||
/**
|
||||
* To String Values
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class DatabaseKeys (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class DatabaseKeys << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class DatabaseKeys extends StorageRegistry implements Storageregistryinterface
|
||||
final class DatabaseKeys extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class DoNotEscape (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class DoNotEscape << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class DoNotEscape extends StorageRegistry implements Storageregistryinterface
|
||||
final class DoNotEscape extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class NewPublishingFields (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class NewPublishingFields << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,9 +12,9 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Abstraction\StorageRegistry\Traits\Count;
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Abstraction\Registry\Traits\Count;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -22,7 +22,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class NewPublishingFields extends StorageRegistry implements Storageregistryinterface
|
||||
final class NewPublishingFields extends Registry implements Registryinterface
|
||||
{
|
||||
/**
|
||||
* Count Values
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class ScriptMediaSwitch (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class ScriptMediaSwitch << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,9 +12,9 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Abstraction\StorageRegistry\Traits\InArray;
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Abstraction\Registry\Traits\InArray;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -22,7 +22,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class ScriptMediaSwitch extends StorageRegistry implements Storageregistryinterface
|
||||
final class ScriptMediaSwitch extends Registry implements Registryinterface
|
||||
{
|
||||
/**
|
||||
* In Array
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class SiteMainGet (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class SiteMainGet << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class SiteMainGet extends StorageRegistry implements Storageregistryinterface
|
||||
final class SiteMainGet extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class DynamicFields (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class DynamicFields << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,9 +12,9 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Abstraction\StorageRegistry\Traits\ToString;
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Abstraction\Registry\Traits\ToString;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -22,7 +22,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class DynamicFields extends StorageRegistry implements Storageregistryinterface
|
||||
final class DynamicFields extends Registry implements Registryinterface
|
||||
{
|
||||
/**
|
||||
* To String Values
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class ItemsMethodEximportString (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class ItemsMethodEximportString << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class ItemsMethodEximportString extends StorageRegistry implements Storageregistryinterface
|
||||
final class ItemsMethodEximportString extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class CustomList (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class CustomList << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class CustomList extends StorageRegistry implements Storageregistryinterface
|
||||
final class CustomList extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -1,55 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September, 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Service;
|
||||
|
||||
|
||||
use Joomla\DI\Container;
|
||||
use Joomla\DI\ServiceProviderInterface;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Content;
|
||||
|
||||
|
||||
/**
|
||||
* Mapper Service Provider
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
class Mapper implements ServiceProviderInterface
|
||||
{
|
||||
/**
|
||||
* Registers the service provider with a DI container.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return void
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function register(Container $container)
|
||||
{
|
||||
$container->alias(Content::class, 'Content')
|
||||
->share('Content', [$this, 'getContent'], true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Content
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return Content
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getContent(Container $container): Content
|
||||
{
|
||||
return new Content();
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,26 +0,0 @@
|
||||
/**
|
||||
* Registers the service provider with a DI container.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return void
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function register(Container $container)
|
||||
{
|
||||
$container->alias(Content::class, 'Content')
|
||||
->share('Content', [$this, 'getContent'], true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Content
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return Content
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getContent(Container $container): Content
|
||||
{
|
||||
return new Content();
|
||||
}
|
@ -8,26 +8,17 @@
|
||||
```
|
||||
# final class PermissionAction (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **MapperDouble**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class PermissionAction << (F,LightGreen) >> #RoyalBlue {
|
||||
# firstKey(string $key) : string
|
||||
# secondKey(string $key) : string
|
||||
+ __construct()
|
||||
}
|
||||
|
||||
note right of PermissionAction::firstKey
|
||||
Model the first key
|
||||
note right of PermissionAction::__construct
|
||||
Constructor.
|
||||
|
||||
since: 3.2.0
|
||||
return: string
|
||||
end note
|
||||
|
||||
note right of PermissionAction::secondKey
|
||||
Model the second key
|
||||
|
||||
since: 3.2.0
|
||||
return: string
|
||||
end note
|
||||
|
||||
@enduml
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Componentbuilder\Interfaces\Mapperdoubleinterface;
|
||||
use VDM\Joomla\Componentbuilder\Abstraction\MapperDouble;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,32 +21,16 @@ use VDM\Joomla\Componentbuilder\Abstraction\MapperDouble;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class PermissionAction extends MapperDouble implements Mapperdoubleinterface
|
||||
final class PermissionAction extends Registry implements Registryinterface
|
||||
{
|
||||
/**
|
||||
* Model the first key
|
||||
* Constructor.
|
||||
*
|
||||
* @param string $key The first key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function firstKey(string $key): string
|
||||
public function __construct()
|
||||
{
|
||||
return $key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Model the second key
|
||||
*
|
||||
* @param string $key The second key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function secondKey(string $key): string
|
||||
{
|
||||
return $key;
|
||||
$this->setSeparator('|');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,25 +1,9 @@
|
||||
/**
|
||||
* Model the first key
|
||||
* Constructor.
|
||||
*
|
||||
* @param string $key The first key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function firstKey(string $key): string
|
||||
public function __construct()
|
||||
{
|
||||
return $key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Model the second key
|
||||
*
|
||||
* @param string $key The second key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function secondKey(string $key): string
|
||||
{
|
||||
return $key;
|
||||
$this->setSeparator('|');
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
{
|
||||
"add_head": "0",
|
||||
"add_licensing_template": "2",
|
||||
"extends": "4d4e76e9-12d9-4d19-b58c-b88974b2586a",
|
||||
"extends": "7e822c03-1b20-41d1-9427-f5b8d5836af7",
|
||||
"guid": "2528f2bb-6ebc-4d55-9a9d-23ef58534c1a",
|
||||
"implements": [
|
||||
"fbc58009-fa16-4d49-a0dd-419c3b62d42f"
|
||||
"64e291c2-11f1-423d-a44d-837cc12cc017"
|
||||
],
|
||||
"load_selection": null,
|
||||
"name": "PermissionAction",
|
||||
|
@ -77,7 +77,7 @@ class Library implements ServiceProviderInterface
|
||||
$container->get('Registry'),
|
||||
$container->get('Event'),
|
||||
$container->get('Component'),
|
||||
$container->get('Content'),
|
||||
$container->get('Compiler.Builder.Content.One'),
|
||||
$container->get('Utilities.Counter'),
|
||||
$container->get('Utilities.Paths'),
|
||||
$container->get('Utilities.Folder'),
|
||||
|
@ -50,7 +50,7 @@
|
||||
$container->get('Registry'),
|
||||
$container->get('Event'),
|
||||
$container->get('Component'),
|
||||
$container->get('Content'),
|
||||
$container->get('Compiler.Builder.Content.One'),
|
||||
$container->get('Utilities.Counter'),
|
||||
$container->get('Utilities.Paths'),
|
||||
$container->get('Utilities.Folder'),
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class ModelWhmcsField (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class ModelWhmcsField << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class ModelWhmcsField extends StorageRegistry implements Storageregistryinterface
|
||||
final class ModelWhmcsField extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,18 +8,18 @@
|
||||
```
|
||||
# class UpdateMysql (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **MapperSingle**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class UpdateMysql #Gold {
|
||||
# key(string $key) : string
|
||||
# getActiveKeys(string $path) : ?array
|
||||
}
|
||||
|
||||
note right of UpdateMysql::key
|
||||
Model the key
|
||||
note right of UpdateMysql::getActiveKeys
|
||||
Get that the active keys from a path
|
||||
|
||||
since: 3.2.0
|
||||
return: string
|
||||
return: ?array
|
||||
end note
|
||||
|
||||
@enduml
|
||||
|
@ -12,8 +12,7 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Componentbuilder\Interfaces\Mappersingleinterface;
|
||||
use VDM\Joomla\Componentbuilder\Abstraction\MapperSingle;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,20 +20,24 @@ use VDM\Joomla\Componentbuilder\Abstraction\MapperSingle;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
class UpdateMysql extends MapperSingle implements Mappersingleinterface
|
||||
class UpdateMysql extends Registry
|
||||
{
|
||||
/**
|
||||
* Model the key
|
||||
* Get that the active keys from a path
|
||||
*
|
||||
* @param string $key The key to model
|
||||
* @param string $path The path to determine the location.
|
||||
*
|
||||
* @return string
|
||||
* @return array|null The valid array of keys
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function key(string $key): string
|
||||
protected function getActiveKeys(string $path): ?array
|
||||
{
|
||||
return preg_replace('/\s+/', '', $key);
|
||||
}
|
||||
|
||||
if (!empty($path))
|
||||
{
|
||||
return [preg_replace('/\s+/', '', $path)];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,12 +1,17 @@
|
||||
/**
|
||||
* Model the key
|
||||
* Get that the active keys from a path
|
||||
*
|
||||
* @param string $key The key to model
|
||||
* @param string $path The path to determine the location.
|
||||
*
|
||||
* @return string
|
||||
* @return array|null The valid array of keys
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function key(string $key): string
|
||||
protected function getActiveKeys(string $path): ?array
|
||||
{
|
||||
return preg_replace('/\s+/', '', $key);
|
||||
}
|
||||
if (!empty($path))
|
||||
{
|
||||
return [preg_replace('/\s+/', '', $path)];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
@ -1,11 +1,9 @@
|
||||
{
|
||||
"add_head": "0",
|
||||
"add_licensing_template": "2",
|
||||
"extends": "c6bbc3ee-58e7-4463-adba-5c5ae839ee36",
|
||||
"extends": "7e822c03-1b20-41d1-9427-f5b8d5836af7",
|
||||
"guid": "2b5c9989-1d4e-4f59-8b95-5cd2f72f82d9",
|
||||
"implements": [
|
||||
"78527c29-24ad-4735-ad4c-ec33a4952d9b"
|
||||
],
|
||||
"implements": null,
|
||||
"load_selection": null,
|
||||
"name": "UpdateMysql",
|
||||
"power_version": "1.0.0",
|
||||
|
@ -22,6 +22,8 @@ class Builder #Gold {
|
||||
+ getCategoryOtherName(Container $container) : CategoryOtherName
|
||||
+ getCheckBox(Container $container) : CheckBox
|
||||
+ getComponentFields(Container $container) : ComponentFields
|
||||
+ getContentMulti(Container $container) : ContentMulti
|
||||
+ getContentOne(Container $container) : ContentOne
|
||||
+ getCustomAlias(Container $container) : CustomAlias
|
||||
+ getCustomField(Container $container) : CustomField
|
||||
+ getCustomFieldLinks(Container $container) : CustomFieldLinks
|
||||
@ -178,6 +180,20 @@ note right of Builder::getComponentFields
|
||||
return: ComponentFields
|
||||
end note
|
||||
|
||||
note left of Builder::getContentMulti
|
||||
Get The ContentMulti Class.
|
||||
|
||||
since: 3.2.0
|
||||
return: ContentMulti
|
||||
end note
|
||||
|
||||
note right of Builder::getContentOne
|
||||
Get The ContentOne Class.
|
||||
|
||||
since: 3.2.0
|
||||
return: ContentOne
|
||||
end note
|
||||
|
||||
note left of Builder::getCustomAlias
|
||||
Get The CustomAlias Class.
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -53,310 +53,318 @@
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection10": {
|
||||
"use": "9d74d613-5ef7-4cf1-9f12-64f0a8e19806",
|
||||
"use": "5f57ff1a-c196-45b1-a2ac-33766b44fb95",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection11": {
|
||||
"use": "87d1da23-08d6-4fbf-bd0d-b746da240b8a",
|
||||
"use": "adfbe68a-6d22-43e5-aee8-2787e8c47e75",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection12": {
|
||||
"use": "a4857c60-680c-4e0c-ae8f-9250a7b5e317",
|
||||
"use": "9d74d613-5ef7-4cf1-9f12-64f0a8e19806",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection13": {
|
||||
"use": "202f748a-516b-4782-962e-ac9725c3cac4",
|
||||
"use": "87d1da23-08d6-4fbf-bd0d-b746da240b8a",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection14": {
|
||||
"use": "9551b683-67b6-4367-bb14-4b016def37e3",
|
||||
"use": "a4857c60-680c-4e0c-ae8f-9250a7b5e317",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection15": {
|
||||
"use": "0d8db719-39a6-48b4-85a6-2f97e784e588",
|
||||
"use": "202f748a-516b-4782-962e-ac9725c3cac4",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection16": {
|
||||
"use": "b3c36de1-9b18-4ea8-8383-6ab8f0e33996",
|
||||
"use": "9551b683-67b6-4367-bb14-4b016def37e3",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection17": {
|
||||
"use": "58b7f907-4195-4ca3-886c-17877be59887",
|
||||
"use": "0d8db719-39a6-48b4-85a6-2f97e784e588",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection18": {
|
||||
"use": "ce0899a9-6271-4fc4-800a-697c122bb112",
|
||||
"use": "b3c36de1-9b18-4ea8-8383-6ab8f0e33996",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection19": {
|
||||
"use": "0d9d3294-0bed-4c44-b1a1-e172f62cafb2",
|
||||
"use": "58b7f907-4195-4ca3-886c-17877be59887",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection20": {
|
||||
"use": "1ae9a8e8-59f7-4844-a08d-9a4dce4be076",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection86": {
|
||||
"use": "e9b6b06b-f600-4f9d-984d-79c70ae7ae92",
|
||||
"use": "ce0899a9-6271-4fc4-800a-697c122bb112",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection21": {
|
||||
"use": "d5530adf-c809-45a9-87fc-7cecd3d972d8",
|
||||
"use": "0d9d3294-0bed-4c44-b1a1-e172f62cafb2",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection22": {
|
||||
"use": "961a2a2e-9f95-4b5f-b1c0-62ee783f9c66",
|
||||
"use": "1ae9a8e8-59f7-4844-a08d-9a4dce4be076",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection23": {
|
||||
"use": "a090a472-eb3d-4086-a6d5-4215e1b1851f",
|
||||
"use": "e9b6b06b-f600-4f9d-984d-79c70ae7ae92",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection24": {
|
||||
"use": "e4e65c5b-00ec-439c-96bf-3153c3a73398",
|
||||
"use": "d5530adf-c809-45a9-87fc-7cecd3d972d8",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection25": {
|
||||
"use": "dba0776e-e582-4f73-af3e-e7ed17bc34b3",
|
||||
"use": "961a2a2e-9f95-4b5f-b1c0-62ee783f9c66",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection26": {
|
||||
"use": "8f46f85d-7921-44e9-a40e-dc4f01c5d43a",
|
||||
"use": "a090a472-eb3d-4086-a6d5-4215e1b1851f",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection27": {
|
||||
"use": "c7b6f0d5-ec47-4166-915c-e78d49b4fb63",
|
||||
"use": "e4e65c5b-00ec-439c-96bf-3153c3a73398",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection28": {
|
||||
"use": "507ab90f-7d64-4697-9815-d96f5d1d1185",
|
||||
"use": "dba0776e-e582-4f73-af3e-e7ed17bc34b3",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection29": {
|
||||
"use": "e54965e7-34fd-481e-b40c-4da089afec5a",
|
||||
"use": "8f46f85d-7921-44e9-a40e-dc4f01c5d43a",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection30": {
|
||||
"use": "0b45357f-b077-4337-92f3-65c1e19d36cd",
|
||||
"use": "c7b6f0d5-ec47-4166-915c-e78d49b4fb63",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection31": {
|
||||
"use": "2cb33994-052e-42dd-adbc-3ea9f932816f",
|
||||
"use": "507ab90f-7d64-4697-9815-d96f5d1d1185",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection32": {
|
||||
"use": "952423ba-015a-4104-89a4-030695aa4d15",
|
||||
"use": "e54965e7-34fd-481e-b40c-4da089afec5a",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection33": {
|
||||
"use": "1f086665-c007-4085-b363-3a118659ff1b",
|
||||
"use": "0b45357f-b077-4337-92f3-65c1e19d36cd",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection34": {
|
||||
"use": "972c4de9-6f6f-463b-8eea-cc7cbdb96aba",
|
||||
"use": "2cb33994-052e-42dd-adbc-3ea9f932816f",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection35": {
|
||||
"use": "45652787-9085-4c67-914f-0da25ae62646",
|
||||
"use": "952423ba-015a-4104-89a4-030695aa4d15",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection36": {
|
||||
"use": "6b386f2e-3eb1-4f60-81af-a90c8da1ffeb",
|
||||
"use": "1f086665-c007-4085-b363-3a118659ff1b",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection37": {
|
||||
"use": "bb26cf63-69a5-4c43-b2df-43284c9d907d",
|
||||
"use": "972c4de9-6f6f-463b-8eea-cc7cbdb96aba",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection38": {
|
||||
"use": "a90a2495-9c26-446c-867e-9ee8f42fb6af",
|
||||
"use": "45652787-9085-4c67-914f-0da25ae62646",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection39": {
|
||||
"use": "7415fdb4-5719-40b7-b01f-05588e968b47",
|
||||
"use": "6b386f2e-3eb1-4f60-81af-a90c8da1ffeb",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection40": {
|
||||
"use": "e696927b-e8f4-4cfc-9d25-215db4e3c7a8",
|
||||
"use": "bb26cf63-69a5-4c43-b2df-43284c9d907d",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection41": {
|
||||
"use": "c8c5d364-d2bf-41c0-8c64-6b6fed1a28b6",
|
||||
"use": "a90a2495-9c26-446c-867e-9ee8f42fb6af",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection42": {
|
||||
"use": "7506a35c-fa32-44ab-bd41-363439b20b82",
|
||||
"use": "7415fdb4-5719-40b7-b01f-05588e968b47",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection43": {
|
||||
"use": "597663e1-1c02-43e8-aea5-f2161e38ac7f",
|
||||
"use": "e696927b-e8f4-4cfc-9d25-215db4e3c7a8",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection44": {
|
||||
"use": "4a857023-2d96-4649-9ed5-910d0329854d",
|
||||
"use": "c8c5d364-d2bf-41c0-8c64-6b6fed1a28b6",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection45": {
|
||||
"use": "c6de9da0-1a73-4c73-b355-7fe02efe4c9d",
|
||||
"use": "7506a35c-fa32-44ab-bd41-363439b20b82",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection46": {
|
||||
"use": "f052eeef-5112-4efe-98c8-8c7db69dc2d1",
|
||||
"use": "597663e1-1c02-43e8-aea5-f2161e38ac7f",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection47": {
|
||||
"use": "a5189bfe-6d15-4452-9fa5-e3e57f7fa791",
|
||||
"use": "4a857023-2d96-4649-9ed5-910d0329854d",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection48": {
|
||||
"use": "b8a92303-8543-4d88-a83c-ece300eaba6d",
|
||||
"use": "c6de9da0-1a73-4c73-b355-7fe02efe4c9d",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection49": {
|
||||
"use": "3468b447-a929-4c28-84a1-f2c3a27e3127",
|
||||
"use": "f052eeef-5112-4efe-98c8-8c7db69dc2d1",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection50": {
|
||||
"use": "b0b26749-5e2c-4b56-8982-48172f2531fa",
|
||||
"use": "a5189bfe-6d15-4452-9fa5-e3e57f7fa791",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection51": {
|
||||
"use": "28cac2bb-df04-454f-b4d6-923b573eb94e",
|
||||
"use": "b8a92303-8543-4d88-a83c-ece300eaba6d",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection52": {
|
||||
"use": "9cdff2af-bd1b-452f-810e-d034b9720d2a",
|
||||
"use": "3468b447-a929-4c28-84a1-f2c3a27e3127",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection53": {
|
||||
"use": "9ff6d6cd-afea-4f15-a67b-fd132d386989",
|
||||
"use": "b0b26749-5e2c-4b56-8982-48172f2531fa",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection54": {
|
||||
"use": "0f141480-afe6-41fb-996c-2a4e566a2f0d",
|
||||
"use": "28cac2bb-df04-454f-b4d6-923b573eb94e",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection55": {
|
||||
"use": "66b7b5f8-60d6-427a-9f8c-84c11a3d6780",
|
||||
"use": "9cdff2af-bd1b-452f-810e-d034b9720d2a",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection56": {
|
||||
"use": "9d1eec29-f304-4b08-a3e7-8b2d6b1f4a1f",
|
||||
"use": "9ff6d6cd-afea-4f15-a67b-fd132d386989",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection57": {
|
||||
"use": "bf92e1c1-3d5e-4e9d-a585-c79e1468df33",
|
||||
"use": "0f141480-afe6-41fb-996c-2a4e566a2f0d",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection58": {
|
||||
"use": "46b02edb-427e-4c26-a5cb-279828eb4433",
|
||||
"use": "66b7b5f8-60d6-427a-9f8c-84c11a3d6780",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection59": {
|
||||
"use": "3f83fe11-1ef6-4020-bd73-f3bb58cefe3a",
|
||||
"use": "9d1eec29-f304-4b08-a3e7-8b2d6b1f4a1f",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection60": {
|
||||
"use": "74595661-236d-4aa1-99f3-358d093000be",
|
||||
"use": "bf92e1c1-3d5e-4e9d-a585-c79e1468df33",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection61": {
|
||||
"use": "fd885c23-88dd-440a-9b05-d02a2b2962f9",
|
||||
"use": "46b02edb-427e-4c26-a5cb-279828eb4433",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection62": {
|
||||
"use": "2528f2bb-6ebc-4d55-9a9d-23ef58534c1a",
|
||||
"use": "3f83fe11-1ef6-4020-bd73-f3bb58cefe3a",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection63": {
|
||||
"use": "94f4939f-82cc-4196-802b-1346ce5c7f99",
|
||||
"use": "74595661-236d-4aa1-99f3-358d093000be",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection64": {
|
||||
"use": "5e3d856d-8174-4131-b4e9-9328066438e1",
|
||||
"use": "fd885c23-88dd-440a-9b05-d02a2b2962f9",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection65": {
|
||||
"use": "e046b530-47fe-406f-b45a-b5eec8cbb238",
|
||||
"use": "2528f2bb-6ebc-4d55-9a9d-23ef58534c1a",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection66": {
|
||||
"use": "a601888d-12b6-427f-94ae-95004206e24e",
|
||||
"use": "94f4939f-82cc-4196-802b-1346ce5c7f99",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection67": {
|
||||
"use": "480d11b9-783b-45d5-bce1-b0c2fcaad08a",
|
||||
"use": "5e3d856d-8174-4131-b4e9-9328066438e1",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection68": {
|
||||
"use": "17bf80af-3609-4f36-a520-be1a339c278b",
|
||||
"use": "e046b530-47fe-406f-b45a-b5eec8cbb238",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection69": {
|
||||
"use": "9042fac6-5ca5-4ebe-94fe-cf9b0718ed36",
|
||||
"use": "a601888d-12b6-427f-94ae-95004206e24e",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection70": {
|
||||
"use": "2e764839-8ec6-4726-af50-b5678e0714a4",
|
||||
"use": "480d11b9-783b-45d5-bce1-b0c2fcaad08a",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection71": {
|
||||
"use": "d8e46d2c-d63e-4b92-80a2-d17638a7ae9e",
|
||||
"use": "17bf80af-3609-4f36-a520-be1a339c278b",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection72": {
|
||||
"use": "c0e46033-5ade-4829-88b7-ca160d36a4d1",
|
||||
"use": "9042fac6-5ca5-4ebe-94fe-cf9b0718ed36",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection73": {
|
||||
"use": "ec0682ee-9166-48f8-951b-9b763792c1d1",
|
||||
"use": "2e764839-8ec6-4726-af50-b5678e0714a4",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection74": {
|
||||
"use": "abdb7d20-a15e-42d8-bd91-7b09514df7f2",
|
||||
"use": "d8e46d2c-d63e-4b92-80a2-d17638a7ae9e",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection75": {
|
||||
"use": "33f5131e-4a5b-414b-95dd-d22227c2666d",
|
||||
"use": "c0e46033-5ade-4829-88b7-ca160d36a4d1",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection76": {
|
||||
"use": "d393c946-4481-43fa-b737-449119dd0a63",
|
||||
"use": "ec0682ee-9166-48f8-951b-9b763792c1d1",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection77": {
|
||||
"use": "52de0ac8-bb9d-4a45-bd2a-a44c48c17ffe",
|
||||
"use": "abdb7d20-a15e-42d8-bd91-7b09514df7f2",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection78": {
|
||||
"use": "17fa7789-a7d1-465e-b733-8c8d53f5ca1b",
|
||||
"use": "33f5131e-4a5b-414b-95dd-d22227c2666d",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection79": {
|
||||
"use": "94e0beae-7daa-43b2-81b9-0bde390a76d8",
|
||||
"use": "d393c946-4481-43fa-b737-449119dd0a63",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection80": {
|
||||
"use": "d645881c-ae8c-4828-a217-6bad98cd3b44",
|
||||
"use": "52de0ac8-bb9d-4a45-bd2a-a44c48c17ffe",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection81": {
|
||||
"use": "8ca30d59-e56a-4cdd-bd8c-d9aad28f5903",
|
||||
"use": "17fa7789-a7d1-465e-b733-8c8d53f5ca1b",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection82": {
|
||||
"use": "8591f6db-dd3c-4a63-9b3f-574c0ec74ade",
|
||||
"use": "94e0beae-7daa-43b2-81b9-0bde390a76d8",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection83": {
|
||||
"use": "6a1dddb3-a955-425e-b713-8ef81f256035",
|
||||
"use": "d645881c-ae8c-4828-a217-6bad98cd3b44",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection84": {
|
||||
"use": "54ec57f6-2fc3-42e5-975e-1fabeacb845d",
|
||||
"use": "8ca30d59-e56a-4cdd-bd8c-d9aad28f5903",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection85": {
|
||||
"use": "8591f6db-dd3c-4a63-9b3f-574c0ec74ade",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection86": {
|
||||
"use": "6a1dddb3-a955-425e-b713-8ef81f256035",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection87": {
|
||||
"use": "54ec57f6-2fc3-42e5-975e-1fabeacb845d",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection88": {
|
||||
"use": "2b5c9989-1d4e-4f59-8b95-5cd2f72f82d9",
|
||||
"as": "default"
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class History (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class History << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class History extends StorageRegistry implements Storageregistryinterface
|
||||
final class History extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class Search (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class Search << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class Search extends StorageRegistry implements Storageregistryinterface
|
||||
final class Search extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class ComponentFields (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class ComponentFields << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,9 +12,9 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Abstraction\StorageRegistry\Traits\VarExport;
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Abstraction\Registry\Traits\VarExport;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -22,7 +22,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class ComponentFields extends StorageRegistry implements Storageregistryinterface
|
||||
final class ComponentFields extends Registry implements Registryinterface
|
||||
{
|
||||
/**
|
||||
* Var Export Values
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class SiteFieldData (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class SiteFieldData << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,9 +12,9 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Abstraction\StorageRegistry\Traits\InArray;
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Abstraction\Registry\Traits\InArray;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -22,7 +22,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class SiteFieldData extends StorageRegistry implements Storageregistryinterface
|
||||
final class SiteFieldData extends Registry implements Registryinterface
|
||||
{
|
||||
/**
|
||||
* In Array
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class ModelExpertFieldInitiator (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class ModelExpertFieldInitiator << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class ModelExpertFieldInitiator extends StorageRegistry implements Storageregistryinterface
|
||||
final class ModelExpertFieldInitiator extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class OtherOrder (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class OtherOrder << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class OtherOrder extends StorageRegistry implements Storageregistryinterface
|
||||
final class OtherOrder extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -1142,9 +1142,9 @@ final class FieldString implements Fieldtypeinterface
|
||||
}
|
||||
// incase the field is in the config and has not been set
|
||||
if ('config' === $nameSingleCode && 'configs' === $nameListCode
|
||||
|| (strpos($nameSingleCode, 'P|uG!n') !== false
|
||||
|| (strpos($nameSingleCode, 'pLuG!n') !== false
|
||||
|| strpos(
|
||||
$nameSingleCode, 'M0dU|3'
|
||||
$nameSingleCode, 'M0dUl3'
|
||||
) !== false))
|
||||
{
|
||||
// set lang (just incase)
|
||||
|
@ -1103,9 +1103,9 @@
|
||||
}
|
||||
// incase the field is in the config and has not been set
|
||||
if ('config' === $nameSingleCode && 'configs' === $nameListCode
|
||||
|| (strpos($nameSingleCode, 'P|uG!n') !== false
|
||||
|| (strpos($nameSingleCode, 'pLuG!n') !== false
|
||||
|| strpos(
|
||||
$nameSingleCode, 'M0dU|3'
|
||||
$nameSingleCode, 'M0dUl3'
|
||||
) !== false))
|
||||
{
|
||||
// set lang (just incase)
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class JsonItem (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class JsonItem << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class JsonItem extends StorageRegistry implements Storageregistryinterface
|
||||
final class JsonItem extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class OtherJoin (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class OtherJoin << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class OtherJoin extends StorageRegistry implements Storageregistryinterface
|
||||
final class OtherJoin extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,35 +8,26 @@
|
||||
```
|
||||
# final class PermissionViews (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **MapperDouble**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class PermissionViews << (F,LightGreen) >> #RoyalBlue {
|
||||
+ __construct()
|
||||
+ build() : string
|
||||
# firstKey(string $key) : string
|
||||
# secondKey(string $key) : string
|
||||
}
|
||||
|
||||
note right of PermissionViews::__construct
|
||||
Constructor.
|
||||
|
||||
since: 3.2.0
|
||||
end note
|
||||
|
||||
note right of PermissionViews::build
|
||||
Get the build view content
|
||||
|
||||
since: 3.2.0
|
||||
return: string
|
||||
end note
|
||||
|
||||
note right of PermissionViews::firstKey
|
||||
Model the first key
|
||||
|
||||
since: 3.2.0
|
||||
return: string
|
||||
end note
|
||||
|
||||
note right of PermissionViews::secondKey
|
||||
Model the second key
|
||||
|
||||
since: 3.2.0
|
||||
return: string
|
||||
end note
|
||||
|
||||
@enduml
|
||||
```
|
||||
|
@ -13,8 +13,7 @@ namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
|
||||
use VDM\Joomla\Componentbuilder\Interfaces\Mapperdoubleinterface;
|
||||
use VDM\Joomla\Componentbuilder\Abstraction\MapperDouble;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -22,8 +21,18 @@ use VDM\Joomla\Componentbuilder\Abstraction\MapperDouble;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class PermissionViews extends MapperDouble implements Mapperdoubleinterface
|
||||
final class PermissionViews extends Registry
|
||||
{
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setSeparator('|');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the build view content
|
||||
*
|
||||
@ -57,32 +66,6 @@ final class PermissionViews extends MapperDouble implements Mapperdoubleinterfac
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Model the first key
|
||||
*
|
||||
* @param string $key The first key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function firstKey(string $key): string
|
||||
{
|
||||
return $key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Model the second key
|
||||
*
|
||||
* @param string $key The second key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function secondKey(string $key): string
|
||||
{
|
||||
return $key;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,13 @@
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setSeparator('|');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the build view content
|
||||
*
|
||||
@ -31,30 +41,4 @@
|
||||
}
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Model the first key
|
||||
*
|
||||
* @param string $key The first key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function firstKey(string $key): string
|
||||
{
|
||||
return $key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Model the second key
|
||||
*
|
||||
* @param string $key The second key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function secondKey(string $key): string
|
||||
{
|
||||
return $key;
|
||||
}
|
@ -1,11 +1,9 @@
|
||||
{
|
||||
"add_head": "0",
|
||||
"add_licensing_template": "2",
|
||||
"extends": "4d4e76e9-12d9-4d19-b58c-b88974b2586a",
|
||||
"extends": "7e822c03-1b20-41d1-9427-f5b8d5836af7",
|
||||
"guid": "480d11b9-783b-45d5-bce1-b0c2fcaad08a",
|
||||
"implements": [
|
||||
"fbc58009-fa16-4d49-a0dd-419c3b62d42f"
|
||||
],
|
||||
"implements": null,
|
||||
"load_selection": null,
|
||||
"name": "PermissionViews",
|
||||
"power_version": "1.0.0",
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class Lists (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class Lists << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class Lists extends StorageRegistry implements Storageregistryinterface
|
||||
final class Lists extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class GoogleChart (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class GoogleChart << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class GoogleChart extends StorageRegistry implements Storageregistryinterface
|
||||
final class GoogleChart extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -117,7 +117,7 @@ class Utilities implements ServiceProviderInterface
|
||||
public function getCounter(Container $container): Counter
|
||||
{
|
||||
return new Counter(
|
||||
$container->get('Content')
|
||||
$container->get('Compiler.Builder.Content.One')
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -81,7 +81,7 @@
|
||||
public function getCounter(Container $container): Counter
|
||||
{
|
||||
return new Counter(
|
||||
$container->get('Content')
|
||||
$container->get('Compiler.Builder.Content.One')
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class SiteFields (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class SiteFields << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class SiteFields extends StorageRegistry implements Storageregistryinterface
|
||||
final class SiteFields extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class UikitComp (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class UikitComp << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class UikitComp extends StorageRegistry implements Storageregistryinterface
|
||||
final class UikitComp extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class DatabaseUniqueGuid (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class DatabaseUniqueGuid << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class DatabaseUniqueGuid extends StorageRegistry implements Storageregistryinterface
|
||||
final class DatabaseUniqueGuid extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class ListJoin (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class ListJoin << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class ListJoin extends StorageRegistry implements Storageregistryinterface
|
||||
final class ListJoin extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class Bucket (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Power\Generator**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class Bucket << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Power\Generator;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class Bucket extends StorageRegistry implements Storageregistryinterface
|
||||
final class Bucket extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,26 +8,17 @@
|
||||
```
|
||||
# final class PermissionCore (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **MapperDouble**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class PermissionCore << (F,LightGreen) >> #RoyalBlue {
|
||||
# firstKey(string $key) : string
|
||||
# secondKey(string $key) : string
|
||||
+ __construct()
|
||||
}
|
||||
|
||||
note right of PermissionCore::firstKey
|
||||
Model the first key
|
||||
note right of PermissionCore::__construct
|
||||
Constructor.
|
||||
|
||||
since: 3.2.0
|
||||
return: string
|
||||
end note
|
||||
|
||||
note right of PermissionCore::secondKey
|
||||
Model the second key
|
||||
|
||||
since: 3.2.0
|
||||
return: string
|
||||
end note
|
||||
|
||||
@enduml
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Componentbuilder\Interfaces\Mapperdoubleinterface;
|
||||
use VDM\Joomla\Componentbuilder\Abstraction\MapperDouble;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,32 +21,16 @@ use VDM\Joomla\Componentbuilder\Abstraction\MapperDouble;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class PermissionCore extends MapperDouble implements Mapperdoubleinterface
|
||||
final class PermissionCore extends Registry implements Registryinterface
|
||||
{
|
||||
/**
|
||||
* Model the first key
|
||||
* Constructor.
|
||||
*
|
||||
* @param string $key The first key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function firstKey(string $key): string
|
||||
public function __construct()
|
||||
{
|
||||
return $key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Model the second key
|
||||
*
|
||||
* @param string $key The second key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function secondKey(string $key): string
|
||||
{
|
||||
return $key;
|
||||
$this->setSeparator('|');
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,25 +1,9 @@
|
||||
/**
|
||||
* Model the first key
|
||||
* Constructor.
|
||||
*
|
||||
* @param string $key The first key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function firstKey(string $key): string
|
||||
public function __construct()
|
||||
{
|
||||
return $key;
|
||||
}
|
||||
|
||||
/**
|
||||
* Model the second key
|
||||
*
|
||||
* @param string $key The second key to model
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function secondKey(string $key): string
|
||||
{
|
||||
return $key;
|
||||
$this->setSeparator('|');
|
||||
}
|
@ -1,10 +1,10 @@
|
||||
{
|
||||
"add_head": "0",
|
||||
"add_licensing_template": "2",
|
||||
"extends": "4d4e76e9-12d9-4d19-b58c-b88974b2586a",
|
||||
"extends": "7e822c03-1b20-41d1-9427-f5b8d5836af7",
|
||||
"guid": "5e3d856d-8174-4131-b4e9-9328066438e1",
|
||||
"implements": [
|
||||
"fbc58009-fa16-4d49-a0dd-419c3b62d42f"
|
||||
"64e291c2-11f1-423d-a44d-837cc12cc017"
|
||||
],
|
||||
"load_selection": null,
|
||||
"name": "PermissionCore",
|
||||
|
@ -6,27 +6,35 @@
|
||||
██║ ╚██████╔╝╚███╔███╔╝███████╗██║ ██║
|
||||
╚═╝ ╚═════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝
|
||||
```
|
||||
# class Mapper (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Service**
|
||||
# class ContentMulti (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class Mapper #Gold {
|
||||
+ register(Container $container) : void
|
||||
+ getContent(Container $container) : Content
|
||||
class ContentMulti #Gold {
|
||||
+ __construct()
|
||||
# getActiveKeys(string $path) : ?array
|
||||
# modelActiveKeys(array $keys) : ?array
|
||||
}
|
||||
|
||||
note right of Mapper::register
|
||||
Registers the service provider with a DI container.
|
||||
note right of ContentMulti::__construct
|
||||
Constructor.
|
||||
|
||||
since: 3.2.0
|
||||
return: void
|
||||
end note
|
||||
|
||||
note right of Mapper::getContent
|
||||
Get the Compiler Content
|
||||
note right of ContentMulti::getActiveKeys
|
||||
Get that the active keys from a path
|
||||
|
||||
since: 3.2.0
|
||||
return: Content
|
||||
return: ?array
|
||||
end note
|
||||
|
||||
note right of ContentMulti::modelActiveKeys
|
||||
Model that the active key
|
||||
|
||||
since: 3.2.0
|
||||
return: ?array
|
||||
end note
|
||||
|
||||
@enduml
|
89
src/5f57ff1a-c196-45b1-a2ac-33766b44fb95/code.php
Normal file
89
src/5f57ff1a-c196-45b1-a2ac-33766b44fb95/code.php
Normal file
@ -0,0 +1,89 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September, 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Placefix;
|
||||
use VDM\Joomla\Abstraction\Registry\Traits\IsArray;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
* Compiler Content Multi
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
class ContentMulti extends Registry implements Registryinterface
|
||||
{
|
||||
/**
|
||||
* Is an Array
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
use IsArray;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setSeparator('|');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get that the active keys from a path
|
||||
*
|
||||
* @param string $path The path to determine the location mapper.
|
||||
*
|
||||
* @return array|null The valid array of keys
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getActiveKeys(string $path): ?array
|
||||
{
|
||||
// Call the parent class's version of this method
|
||||
$keys = parent::getActiveKeys($path);
|
||||
|
||||
if ($keys === null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->modelActiveKeys($keys);
|
||||
}
|
||||
|
||||
/**
|
||||
* Model that the active key
|
||||
*
|
||||
* @param array $keys The keys to the location mapper.
|
||||
*
|
||||
* @return array|null The valid array of key
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function modelActiveKeys(array $keys): ?array
|
||||
{
|
||||
if (isset($keys[1]))
|
||||
{
|
||||
return [$keys[0], Placefix::_h($keys[1])];
|
||||
}
|
||||
|
||||
if (isset($keys[0]))
|
||||
{
|
||||
return [$keys[0]];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
60
src/5f57ff1a-c196-45b1-a2ac-33766b44fb95/code.power
Normal file
60
src/5f57ff1a-c196-45b1-a2ac-33766b44fb95/code.power
Normal file
@ -0,0 +1,60 @@
|
||||
/**
|
||||
* Is an Array
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
use IsArray;
|
||||
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->setSeparator('|');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get that the active keys from a path
|
||||
*
|
||||
* @param string $path The path to determine the location mapper.
|
||||
*
|
||||
* @return array|null The valid array of keys
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getActiveKeys(string $path): ?array
|
||||
{
|
||||
// Call the parent class's version of this method
|
||||
$keys = parent::getActiveKeys($path);
|
||||
|
||||
if ($keys === null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
return $this->modelActiveKeys($keys);
|
||||
}
|
||||
|
||||
/**
|
||||
* Model that the active key
|
||||
*
|
||||
* @param array $keys The keys to the location mapper.
|
||||
*
|
||||
* @return array|null The valid array of key
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function modelActiveKeys(array $keys): ?array
|
||||
{
|
||||
if (isset($keys[1]))
|
||||
{
|
||||
return [$keys[0], Placefix::_h($keys[1])];
|
||||
}
|
||||
|
||||
if (isset($keys[0]))
|
||||
{
|
||||
return [$keys[0]];
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
@ -1,26 +1,29 @@
|
||||
{
|
||||
"add_head": "1",
|
||||
"add_head": "0",
|
||||
"add_licensing_template": "2",
|
||||
"extends": "0",
|
||||
"guid": "23f2ca33-440a-4941-8e9a-4bc67522c0cb",
|
||||
"extends": "7e822c03-1b20-41d1-9427-f5b8d5836af7",
|
||||
"guid": "5f57ff1a-c196-45b1-a2ac-33766b44fb95",
|
||||
"implements": [
|
||||
"-1"
|
||||
"64e291c2-11f1-423d-a44d-837cc12cc017"
|
||||
],
|
||||
"load_selection": null,
|
||||
"name": "Mapper",
|
||||
"name": "ContentMulti",
|
||||
"power_version": "1.0.0",
|
||||
"system_name": "JCB.Compiler.Service.Mapper",
|
||||
"system_name": "JCB.Compiler.Builder.ContentMulti",
|
||||
"type": "class",
|
||||
"use_selection": {
|
||||
"use_selection0": {
|
||||
"use": "adfbe68a-6d22-43e5-aee8-2787e8c47e75",
|
||||
"use": "500f3a7f-c16d-4dd4-81b2-2df6776b5388",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection1": {
|
||||
"use": "c09e8968-c767-4175-bb3d-8432f206a2c7",
|
||||
"as": "default"
|
||||
}
|
||||
},
|
||||
"namespace": "VDM\\Joomla\\Componentbuilder.Compiler.Service.Mapper",
|
||||
"description": "Mapper Service Provider\r\n\r\n@since 3.2.0",
|
||||
"implements_custom": "ServiceProviderInterface",
|
||||
"namespace": "VDM\\Joomla\\Componentbuilder.Compiler.Builder.ContentMulti",
|
||||
"description": "Compiler Content Multi\r\n\r\n@since 3.2.0",
|
||||
"licensing_template": "\/**\r\n * @package Joomla.Component.Builder\r\n *\r\n * @created 4th September, 2022\r\n * @author Llewellyn van der Merwe <https:\/\/dev.vdm.io>\r\n * @git Joomla Component Builder <https:\/\/git.vdm.dev\/joomla\/Component-Builder>\r\n * @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.\r\n * @license GNU General Public License version 2 or later; see LICENSE.txt\r\n *\/\r\n",
|
||||
"head": "use Joomla\\DI\\Container;\r\nuse Joomla\\DI\\ServiceProviderInterface;",
|
||||
"head": "",
|
||||
"composer": ""
|
||||
}
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class OrderZero (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class OrderZero << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class OrderZero extends StorageRegistry implements Storageregistryinterface
|
||||
final class OrderZero extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -24,7 +24,7 @@ class Structuresingle << (F,LightGreen) >> #RoyalBlue {
|
||||
# Paths $paths
|
||||
# Files $files
|
||||
# CMSApplication $app
|
||||
+ __construct(?Config $config = null, ?Registry $registry = null, ...)
|
||||
+ __construct(Config $config, Registry $registry, ...)
|
||||
+ build() : bool
|
||||
- doLicenseCheck() : bool
|
||||
- doReadmeCheck() : bool
|
||||
@ -40,19 +40,19 @@ class Structuresingle << (F,LightGreen) >> #RoyalBlue {
|
||||
}
|
||||
|
||||
note right of Structuresingle::__construct
|
||||
Constructor
|
||||
Constructor.
|
||||
|
||||
since: 3.2.0
|
||||
|
||||
arguments:
|
||||
?Config $config = null
|
||||
?Registry $registry = null
|
||||
?Settings $settings = null
|
||||
?Component $component = null
|
||||
?Content $content = null
|
||||
?Counter $counter = null
|
||||
?Paths $paths = null
|
||||
?Files $files = null
|
||||
Config $config
|
||||
Registry $registry
|
||||
Settings $settings
|
||||
Component $component
|
||||
Content $content
|
||||
Counter $counter
|
||||
Paths $paths
|
||||
Files $files
|
||||
?CMSApplication $app = null
|
||||
end note
|
||||
|
||||
|
@ -17,12 +17,11 @@ use Joomla\CMS\Application\CMSApplication;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Filesystem\Folder;
|
||||
use Joomla\CMS\Filesystem\File;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Factory as Compiler;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Component\Settings;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Content;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Config;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Registry;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Component\Settings;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Component;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Builder\ContentOne as Content;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Counter;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Paths;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Files;
|
||||
@ -70,65 +69,65 @@ final class Structuresingle
|
||||
protected string $zipFullPath;
|
||||
|
||||
/**
|
||||
* Compiler Config
|
||||
* The Config Class.
|
||||
*
|
||||
* @var Config
|
||||
* @var Config
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Config $config;
|
||||
|
||||
/**
|
||||
* The compiler registry
|
||||
* The Registry Class.
|
||||
*
|
||||
* @var Registry
|
||||
* @var Registry
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Registry $registry;
|
||||
|
||||
/**
|
||||
* Compiler Component Joomla Version Settings
|
||||
* The Settings Class.
|
||||
*
|
||||
* @var Settings
|
||||
* @var Settings
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Settings $settings;
|
||||
|
||||
/**
|
||||
* Compiler Component
|
||||
* The Component Class.
|
||||
*
|
||||
* @var Component
|
||||
* @var Component
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Component $component;
|
||||
|
||||
/**
|
||||
* Compiler Content
|
||||
* The ContentOne Class.
|
||||
*
|
||||
* @var Content
|
||||
* @var Content
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Content $content;
|
||||
|
||||
/**
|
||||
* Compiler Counter
|
||||
* The Counter Class.
|
||||
*
|
||||
* @var Counter
|
||||
* @var Counter
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Counter $counter;
|
||||
|
||||
/**
|
||||
* Compiler Paths
|
||||
* The Paths Class.
|
||||
*
|
||||
* @var Paths
|
||||
* @var Paths
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Paths $paths;
|
||||
|
||||
/**
|
||||
* Compiler Utilities Files
|
||||
* The Files Class.
|
||||
*
|
||||
* @var Files
|
||||
* @var Files
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Files $files;
|
||||
@ -142,34 +141,32 @@ final class Structuresingle
|
||||
protected CMSApplication $app;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Constructor.
|
||||
*
|
||||
* @param Config|null $config The compiler config object.
|
||||
* @param Registry|null $registry The compiler registry object.
|
||||
* @param Settings|null $settings The compiler component Joomla version settings object.
|
||||
* @param Component|null $component The component class.
|
||||
* @param Content|null $content The compiler content object.
|
||||
* @param Counter|null $counter The compiler counter object.
|
||||
* @param Paths|null $paths The compiler paths object.
|
||||
* @param Files|null $files The compiler files object.
|
||||
* @param CMSApplication|null $app The CMS Application object.
|
||||
* @param Config $config The Config Class.
|
||||
* @param Registry $registry The Registry Class.
|
||||
* @param Settings $settings The Settings Class.
|
||||
* @param Component $component The Component Class.
|
||||
* @param Content $content The ContentOne Class.
|
||||
* @param Counter $counter The Counter Class.
|
||||
* @param Paths $paths The Paths Class.
|
||||
* @param Files $files The Files Class.
|
||||
* @param CMSApplication|null $app The CMS Application object.
|
||||
*
|
||||
* @throws \Exception
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function __construct(?Config $config = null, ?Registry $registry = null,
|
||||
?Settings $settings = null, ?Component $component = null,
|
||||
?Content $content = null, ?Counter $counter = null, ?Paths $paths = null,
|
||||
?Files $files = null, ?CMSApplication $app = null)
|
||||
public function __construct(Config $config, Registry $registry, Settings $settings,
|
||||
Component $component, Content $content, Counter $counter,
|
||||
Paths $paths, Files $files, ?CMSApplication $app = null)
|
||||
{
|
||||
$this->config = $config ?: Compiler::_('Config');
|
||||
$this->registry = $registry ?: Compiler::_('Registry');
|
||||
$this->settings = $settings ?: Compiler::_('Component.Settings');
|
||||
$this->component = $component ?: Compiler::_('Component');
|
||||
$this->content = $content ?: Compiler::_('Content');
|
||||
$this->counter = $counter ?: Compiler::_('Utilities.Counter');
|
||||
$this->paths = $paths ?: Compiler::_('Utilities.Paths');
|
||||
$this->files = $files ?: Compiler::_('Utilities.Files');
|
||||
$this->config = $config;
|
||||
$this->registry = $registry;
|
||||
$this->settings = $settings;
|
||||
$this->component = $component;
|
||||
$this->content = $content;
|
||||
$this->counter = $counter;
|
||||
$this->paths = $paths;
|
||||
$this->files = $files;
|
||||
$this->app = $app ?: Factory::getApplication();
|
||||
}
|
||||
|
||||
|
@ -31,65 +31,65 @@
|
||||
protected string $zipFullPath;
|
||||
|
||||
/**
|
||||
* Compiler Config
|
||||
* The Config Class.
|
||||
*
|
||||
* @var Config
|
||||
* @var Config
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Config $config;
|
||||
|
||||
/**
|
||||
* The compiler registry
|
||||
* The Registry Class.
|
||||
*
|
||||
* @var Registry
|
||||
* @var Registry
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Registry $registry;
|
||||
|
||||
/**
|
||||
* Compiler Component Joomla Version Settings
|
||||
* The Settings Class.
|
||||
*
|
||||
* @var Settings
|
||||
* @var Settings
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Settings $settings;
|
||||
|
||||
/**
|
||||
* Compiler Component
|
||||
* The Component Class.
|
||||
*
|
||||
* @var Component
|
||||
* @var Component
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Component $component;
|
||||
|
||||
/**
|
||||
* Compiler Content
|
||||
* The ContentOne Class.
|
||||
*
|
||||
* @var Content
|
||||
* @var Content
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Content $content;
|
||||
|
||||
/**
|
||||
* Compiler Counter
|
||||
* The Counter Class.
|
||||
*
|
||||
* @var Counter
|
||||
* @var Counter
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Counter $counter;
|
||||
|
||||
/**
|
||||
* Compiler Paths
|
||||
* The Paths Class.
|
||||
*
|
||||
* @var Paths
|
||||
* @var Paths
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Paths $paths;
|
||||
|
||||
/**
|
||||
* Compiler Utilities Files
|
||||
* The Files Class.
|
||||
*
|
||||
* @var Files
|
||||
* @var Files
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected Files $files;
|
||||
@ -103,34 +103,32 @@
|
||||
protected CMSApplication $app;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
* Constructor.
|
||||
*
|
||||
* @param Config|null $config The compiler config object.
|
||||
* @param Registry|null $registry The compiler registry object.
|
||||
* @param Settings|null $settings The compiler component Joomla version settings object.
|
||||
* @param Component|null $component The component class.
|
||||
* @param Content|null $content The compiler content object.
|
||||
* @param Counter|null $counter The compiler counter object.
|
||||
* @param Paths|null $paths The compiler paths object.
|
||||
* @param Files|null $files The compiler files object.
|
||||
* @param CMSApplication|null $app The CMS Application object.
|
||||
* @param Config $config The Config Class.
|
||||
* @param Registry $registry The Registry Class.
|
||||
* @param Settings $settings The Settings Class.
|
||||
* @param Component $component The Component Class.
|
||||
* @param Content $content The ContentOne Class.
|
||||
* @param Counter $counter The Counter Class.
|
||||
* @param Paths $paths The Paths Class.
|
||||
* @param Files $files The Files Class.
|
||||
* @param CMSApplication|null $app The CMS Application object.
|
||||
*
|
||||
* @throws \Exception
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function __construct(?Config $config = null, ?Registry $registry = null,
|
||||
?Settings $settings = null, ?Component $component = null,
|
||||
?Content $content = null, ?Counter $counter = null, ?Paths $paths = null,
|
||||
?Files $files = null, ?CMSApplication $app = null)
|
||||
public function __construct(Config $config, Registry $registry, Settings $settings,
|
||||
Component $component, Content $content, Counter $counter,
|
||||
Paths $paths, Files $files, ?CMSApplication $app = null)
|
||||
{
|
||||
$this->config = $config ?: Compiler::_('Config');
|
||||
$this->registry = $registry ?: Compiler::_('Registry');
|
||||
$this->settings = $settings ?: Compiler::_('Component.Settings');
|
||||
$this->component = $component ?: Compiler::_('Component');
|
||||
$this->content = $content ?: Compiler::_('Content');
|
||||
$this->counter = $counter ?: Compiler::_('Utilities.Counter');
|
||||
$this->paths = $paths ?: Compiler::_('Utilities.Paths');
|
||||
$this->files = $files ?: Compiler::_('Utilities.Files');
|
||||
$this->config = $config;
|
||||
$this->registry = $registry;
|
||||
$this->settings = $settings;
|
||||
$this->component = $component;
|
||||
$this->content = $content;
|
||||
$this->counter = $counter;
|
||||
$this->paths = $paths;
|
||||
$this->files = $files;
|
||||
$this->app = $app ?: Factory::getApplication();
|
||||
}
|
||||
|
||||
|
@ -11,46 +11,42 @@
|
||||
"type": "final class",
|
||||
"use_selection": {
|
||||
"use_selection0": {
|
||||
"use": "d910d8b8-4c23-4f3e-8cda-438f2d2bd7ac",
|
||||
"as": "Compiler"
|
||||
},
|
||||
"use_selection1": {
|
||||
"use": "63dabe82-0f4a-4ade-9851-8518ade23de2",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection2": {
|
||||
"use": "adfbe68a-6d22-43e5-aee8-2787e8c47e75",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection3": {
|
||||
"use": "fa4bf18e-301e-42e3-91fb-6e0096c07adc",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection4": {
|
||||
"use_selection1": {
|
||||
"use": "e5d9804f-0eb0-4ee9-b406-ad4e8cdbc1f6",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection5": {
|
||||
"use_selection2": {
|
||||
"use": "63dabe82-0f4a-4ade-9851-8518ade23de2",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection3": {
|
||||
"use": "e2472b22-a329-44d8-b4a2-ae3ba99e17a0",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection6": {
|
||||
"use_selection4": {
|
||||
"use": "adfbe68a-6d22-43e5-aee8-2787e8c47e75",
|
||||
"as": "Content"
|
||||
},
|
||||
"use_selection5": {
|
||||
"use": "e6d871a6-bbe7-497d-af01-68f6bb9a87f4",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection7": {
|
||||
"use_selection6": {
|
||||
"use": "6f20369a-8536-4870-a1a3-cda254c939c8",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection8": {
|
||||
"use_selection7": {
|
||||
"use": "1d967151-7c20-4ca7-9400-65233cdcd4db",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection9": {
|
||||
"use_selection8": {
|
||||
"use": "1f28cb53-60d9-4db1-b517-3c7dc6b429ef",
|
||||
"as": "default"
|
||||
},
|
||||
"use_selection10": {
|
||||
"use_selection9": {
|
||||
"use": "a68c010b-e92e-47d5-8a44-d23cfddeb6c6",
|
||||
"as": "default"
|
||||
}
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class Title (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class Title << (F,LightGreen) >> #RoyalBlue {
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\Compiler\Builder;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\Storageregistryinterface;
|
||||
use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
use VDM\Joomla\Interfaces\Registryinterface;
|
||||
use VDM\Joomla\Abstraction\Registry;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Abstraction\StorageRegistry;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class Title extends StorageRegistry implements Storageregistryinterface
|
||||
final class Title extends Registry implements Registryinterface
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,7 @@
|
||||
```
|
||||
# final class JsonItemArray (Details)
|
||||
> namespace: **VDM\Joomla\Componentbuilder\Compiler\Builder**
|
||||
> extends: **StorageRegistry**
|
||||
> extends: **Registry**
|
||||
```uml
|
||||
@startuml
|
||||
class JsonItemArray << (F,LightGreen) >> #RoyalBlue {
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user