Moves all major structre function to container. Adds new Server replacment class for legacy calls. Refactored multiple classes. Add more advanced compiler options, with donation notice.
This commit is contained in:
parent
7fa8964b44
commit
339aec221e
12
README.md
12
README.md
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.1.13) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.1.17) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -140,14 +140,14 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 6th February, 2023
|
+ *Last Build*: 12th February, 2023
|
||||||
+ *Version*: 3.1.13
|
+ *Version*: 3.1.17
|
||||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **360674**
|
+ *Line count*: **364590**
|
||||||
+ *Field count*: **2009**
|
+ *Field count*: **2009**
|
||||||
+ *File count*: **2314**
|
+ *File count*: **2325**
|
||||||
+ *Folder count*: **408**
|
+ *Folder count*: **409**
|
||||||
|
|
||||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
|
@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.1.13) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.1.17) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||||
|
|
||||||
@ -140,14 +140,14 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 6th February, 2023
|
+ *Last Build*: 12th February, 2023
|
||||||
+ *Version*: 3.1.13
|
+ *Version*: 3.1.17
|
||||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **360674**
|
+ *Line count*: **364590**
|
||||||
+ *Field count*: **2009**
|
+ *Field count*: **2009**
|
||||||
+ *File count*: **2314**
|
+ *File count*: **2325**
|
||||||
+ *Folder count*: **408**
|
+ *Folder count*: **409**
|
||||||
|
|
||||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
|
@ -620,27 +620,33 @@ class Compiler extends Infusion
|
|||||||
{
|
{
|
||||||
// for plugin event TODO change event api signatures
|
// for plugin event TODO change event api signatures
|
||||||
$component_context = CFactory::_('Config')->component_context;
|
$component_context = CFactory::_('Config')->component_context;
|
||||||
|
|
||||||
// Trigger Event: jcb_ce_onBeforeSetFileContent
|
// Trigger Event: jcb_ce_onBeforeSetFileContent
|
||||||
CFactory::_('Event')->trigger(
|
CFactory::_('Event')->trigger(
|
||||||
'jcb_ce_onBeforeSetFileContent',
|
'jcb_ce_onBeforeSetFileContent',
|
||||||
array(&$component_context, &$name, &$path, &$bom, &$view)
|
array(&$component_context, &$name, &$path, &$bom, &$view)
|
||||||
);
|
);
|
||||||
|
|
||||||
// set the file name
|
// set the file name
|
||||||
CFactory::_('Content')->set('FILENAME', $name);
|
CFactory::_('Content')->set('FILENAME', $name);
|
||||||
|
|
||||||
// check if the file should get PHP opening
|
// check if the file should get PHP opening
|
||||||
$php = '';
|
$php = '';
|
||||||
if (ComponentbuilderHelper::checkFileType($name, 'php'))
|
if (ComponentbuilderHelper::checkFileType($name, 'php'))
|
||||||
{
|
{
|
||||||
$php = "<?php\n";
|
$php = "<?php\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
// get content of the file
|
// get content of the file
|
||||||
$string = FileHelper::getContent($path);
|
$string = FileHelper::getContent($path);
|
||||||
|
|
||||||
// Trigger Event: jcb_ce_onGetFileContents
|
// Trigger Event: jcb_ce_onGetFileContents
|
||||||
CFactory::_('Event')->trigger(
|
CFactory::_('Event')->trigger(
|
||||||
'jcb_ce_onGetFileContents',
|
'jcb_ce_onGetFileContents',
|
||||||
array(&$component_context, &$string, &$name, &$path, &$bom,
|
array(&$component_context, &$string, &$name, &$path, &$bom,
|
||||||
&$view)
|
&$view)
|
||||||
);
|
);
|
||||||
|
|
||||||
// see if we should add a BOM
|
// see if we should add a BOM
|
||||||
if (strpos((string) $string, (string) Placefix::_h('BOM')) !== false)
|
if (strpos((string) $string, (string) Placefix::_h('BOM')) !== false)
|
||||||
{
|
{
|
||||||
@ -649,8 +655,10 @@ class Compiler extends Infusion
|
|||||||
);
|
);
|
||||||
$string = $php . $bom . $code;
|
$string = $php . $bom . $code;
|
||||||
}
|
}
|
||||||
|
|
||||||
// set the answer
|
// set the answer
|
||||||
$answer = CFactory::_('Placeholder')->update($string, CFactory::_('Content')->active, 3);
|
$answer = CFactory::_('Placeholder')->update($string, CFactory::_('Content')->active, 3);
|
||||||
|
|
||||||
// set the dynamic answer
|
// set the dynamic answer
|
||||||
if ($view)
|
if ($view)
|
||||||
{
|
{
|
||||||
@ -658,19 +666,23 @@ class Compiler extends Infusion
|
|||||||
$answer, CFactory::_('Content')->get_($view), 3
|
$answer, CFactory::_('Content')->get_($view), 3
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if this file needs extra care :)
|
// check if this file needs extra care :)
|
||||||
if (isset($this->updateFileContent[$path]))
|
if (CFactory::_('Registry')->exists('update.file.content.' . $path))
|
||||||
{
|
{
|
||||||
$answer = CFactory::_('Customcode')->update($answer);
|
$answer = CFactory::_('Customcode')->update($answer);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Trigger Event: jcb_ce_onBeforeSetFileContent
|
// Trigger Event: jcb_ce_onBeforeSetFileContent
|
||||||
CFactory::_('Event')->trigger(
|
CFactory::_('Event')->trigger(
|
||||||
'jcb_ce_onBeforeWriteFileContent',
|
'jcb_ce_onBeforeWriteFileContent',
|
||||||
array(&$component_context, &$answer, &$name, &$path, &$bom,
|
array(&$component_context, &$answer, &$name, &$path, &$bom,
|
||||||
&$view)
|
&$view)
|
||||||
);
|
);
|
||||||
|
|
||||||
// add answer back to file
|
// add answer back to file
|
||||||
CFactory::_('Utilities.File')->write($path, $answer);
|
CFactory::_('Utilities.File')->write($path, $answer);
|
||||||
|
|
||||||
// count the file lines
|
// count the file lines
|
||||||
CFactory::_('Utilities.Counter')->line += substr_count((string) $answer, PHP_EOL);
|
CFactory::_('Utilities.Counter')->line += substr_count((string) $answer, PHP_EOL);
|
||||||
}
|
}
|
||||||
@ -695,7 +707,7 @@ class Compiler extends Infusion
|
|||||||
&& ($update_server = CFactory::_('Component')->get('update_server')) !== null)
|
&& ($update_server = CFactory::_('Component')->get('update_server')) !== null)
|
||||||
{
|
{
|
||||||
// move to server
|
// move to server
|
||||||
ComponentbuilderHelper::moveToServer(
|
CFactory::_('Server')->legacyMove(
|
||||||
$update_server_xml_path,
|
$update_server_xml_path,
|
||||||
$this->updateServerFileName . '.xml',
|
$this->updateServerFileName . '.xml',
|
||||||
(int) $update_server,
|
(int) $update_server,
|
||||||
@ -726,7 +738,7 @@ class Compiler extends Infusion
|
|||||||
))
|
))
|
||||||
{
|
{
|
||||||
// move to server
|
// move to server
|
||||||
ComponentbuilderHelper::moveToServer(
|
CFactory::_('Server')->legacyMove(
|
||||||
$module->update_server_xml_path,
|
$module->update_server_xml_path,
|
||||||
$module->update_server_xml_file_name,
|
$module->update_server_xml_file_name,
|
||||||
(int) $module->update_server,
|
(int) $module->update_server,
|
||||||
@ -759,7 +771,7 @@ class Compiler extends Infusion
|
|||||||
))
|
))
|
||||||
{
|
{
|
||||||
// move to server
|
// move to server
|
||||||
ComponentbuilderHelper::moveToServer(
|
CFactory::_('Server')->legacyMove(
|
||||||
$plugin->update_server_xml_path,
|
$plugin->update_server_xml_path,
|
||||||
$plugin->update_server_xml_file_name,
|
$plugin->update_server_xml_file_name,
|
||||||
(int) $plugin->update_server,
|
(int) $plugin->update_server,
|
||||||
@ -1051,7 +1063,7 @@ class Compiler extends Infusion
|
|||||||
&$component_sales_name, &$this->componentData)
|
&$component_sales_name, &$this->componentData)
|
||||||
);
|
);
|
||||||
// move to server
|
// move to server
|
||||||
ComponentbuilderHelper::moveToServer(
|
CFactory::_('Server')->legacyMove(
|
||||||
$this->filepath['component'],
|
$this->filepath['component'],
|
||||||
$component_sales_name . '.zip',
|
$component_sales_name . '.zip',
|
||||||
(int) CFactory::_('Component')->get('sales_server'),
|
(int) CFactory::_('Component')->get('sales_server'),
|
||||||
@ -1146,7 +1158,7 @@ class Compiler extends Infusion
|
|||||||
&$module)
|
&$module)
|
||||||
);
|
);
|
||||||
// move to server
|
// move to server
|
||||||
ComponentbuilderHelper::moveToServer(
|
CFactory::_('Server')->legacyMove(
|
||||||
$this->filepath['modules'][$module->id],
|
$this->filepath['modules'][$module->id],
|
||||||
$module->zip_name . '.zip',
|
$module->zip_name . '.zip',
|
||||||
(int) $module->sales_server,
|
(int) $module->sales_server,
|
||||||
@ -1240,7 +1252,7 @@ class Compiler extends Infusion
|
|||||||
&$plugin)
|
&$plugin)
|
||||||
);
|
);
|
||||||
// move to server
|
// move to server
|
||||||
ComponentbuilderHelper::moveToServer(
|
CFactory::_('Server')->legacyMove(
|
||||||
$this->filepath['plugins'][$plugin->id],
|
$this->filepath['plugins'][$plugin->id],
|
||||||
$plugin->zip_name . '.zip',
|
$plugin->zip_name . '.zip',
|
||||||
(int) $plugin->sales_server,
|
(int) $plugin->sales_server,
|
||||||
|
@ -19,7 +19,6 @@ use VDM\Joomla\Utilities\ArrayHelper;
|
|||||||
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Placefix;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Placefix;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line;
|
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Unique;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Unique;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -1140,7 +1139,7 @@ class Get
|
|||||||
// set the old version
|
// set the old version
|
||||||
CFactory::_('Component')->set('old_component_version', CFactory::_('Component')->component_version);
|
CFactory::_('Component')->set('old_component_version', CFactory::_('Component')->component_version);
|
||||||
// set the new version, and set update switch
|
// set the new version, and set update switch
|
||||||
CFactory::_('Component')->set('component_version ', implode(
|
CFactory::_('Component')->set('component_version', implode(
|
||||||
'.', $version
|
'.', $version
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
@ -2772,7 +2771,7 @@ class Get
|
|||||||
* get the plugin xml template
|
* get the plugin xml template
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
*
|
* @deprecated 3.3
|
||||||
*/
|
*/
|
||||||
public function getPluginXMLTemplate(&$plugin)
|
public function getPluginXMLTemplate(&$plugin)
|
||||||
{
|
{
|
||||||
@ -2804,7 +2803,6 @@ class Get
|
|||||||
* @param int $when To set when to update
|
* @param int $when To set when to update
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
|
||||||
* @deprecated 3.3
|
* @deprecated 3.3
|
||||||
*/
|
*/
|
||||||
protected function setNewCustomCode($when = 1)
|
protected function setNewCustomCode($when = 1)
|
||||||
@ -2826,7 +2824,6 @@ class Get
|
|||||||
* @param int $when To set when to update
|
* @param int $when To set when to update
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
*
|
|
||||||
* @deprecated 3.3
|
* @deprecated 3.3
|
||||||
*/
|
*/
|
||||||
protected function setExistingCustomCode($when = 1)
|
protected function setExistingCustomCode($when = 1)
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -5443,7 +5443,7 @@ class Fields extends Structure
|
|||||||
}
|
}
|
||||||
// load another file
|
// load another file
|
||||||
$target = array('admin' => 'customfield');
|
$target = array('admin' => 'customfield');
|
||||||
$this->buildDynamique(
|
CFactory::_('Utilities.Structure')->build(
|
||||||
$target, 'fieldcustom', $data['custom']['type']
|
$target, 'fieldcustom', $data['custom']['type']
|
||||||
);
|
);
|
||||||
// get the extends name
|
// get the extends name
|
||||||
@ -5540,7 +5540,7 @@ class Fields extends Structure
|
|||||||
{
|
{
|
||||||
// first build the custom field type file
|
// first build the custom field type file
|
||||||
$target = array('admin' => 'customfield');
|
$target = array('admin' => 'customfield');
|
||||||
$this->buildDynamique(
|
CFactory::_('Utilities.Structure')->build(
|
||||||
$target, 'field' . $data['custom']['extends'],
|
$target, 'field' . $data['custom']['extends'],
|
||||||
$data['custom']['type']
|
$data['custom']['type']
|
||||||
);
|
);
|
||||||
@ -5739,7 +5739,7 @@ class Fields extends Structure
|
|||||||
{
|
{
|
||||||
// we first create the file
|
// we first create the file
|
||||||
$target = array('admin' => 'filter_' . $nameListCode);
|
$target = array('admin' => 'filter_' . $nameListCode);
|
||||||
$this->buildDynamique(
|
CFactory::_('Utilities.Structure')->build(
|
||||||
$target, 'filter'
|
$target, 'filter'
|
||||||
);
|
);
|
||||||
// the search language string
|
// the search language string
|
||||||
@ -6087,7 +6087,7 @@ class Fields extends Structure
|
|||||||
CFactory::_('Content')->set_('customfilterfield_' . $filter['filter_type'], 'ADD_BUTTON', '');
|
CFactory::_('Content')->set_('customfilterfield_' . $filter['filter_type'], 'ADD_BUTTON', '');
|
||||||
// now build the custom filter field type file
|
// now build the custom filter field type file
|
||||||
$target = array('admin' => 'customfilterfield');
|
$target = array('admin' => 'customfilterfield');
|
||||||
$this->buildDynamique(
|
CFactory::_('Utilities.Structure')->build(
|
||||||
$target, 'fieldlist',
|
$target, 'fieldlist',
|
||||||
$filter['filter_type']
|
$filter['filter_type']
|
||||||
);
|
);
|
||||||
|
@ -273,7 +273,7 @@ class Interpretation extends Fields
|
|||||||
$component = CFactory::_('Config')->component_code_name;
|
$component = CFactory::_('Config')->component_code_name;
|
||||||
$Component = CFactory::_('Content')->get('Component');
|
$Component = CFactory::_('Content')->get('Component');
|
||||||
$target = array('admin' => 'emailer');
|
$target = array('admin' => 'emailer');
|
||||||
$done = $this->buildDynamique($target, 'emailer', $component);
|
$done = CFactory::_('Utilities.Structure')->build($target, 'emailer', $component);
|
||||||
if ($done)
|
if ($done)
|
||||||
{
|
{
|
||||||
// the text for the file BAKING
|
// the text for the file BAKING
|
||||||
@ -820,7 +820,7 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
// set whmcs encrypt file into place
|
// set whmcs encrypt file into place
|
||||||
$target = array('admin' => 'whmcs');
|
$target = array('admin' => 'whmcs');
|
||||||
$done = $this->buildDynamique($target, 'whmcs');
|
$done = CFactory::_('Utilities.Structure')->build($target, 'whmcs');
|
||||||
// the text for the file WHMCS_ENCRYPTION_BODY
|
// the text for the file WHMCS_ENCRYPTION_BODY
|
||||||
CFactory::_('Content')->set_('whmcs', 'WHMCS_ENCRYPTION_BODY', $this->setWHMCSCryption());
|
CFactory::_('Content')->set_('whmcs', 'WHMCS_ENCRYPTION_BODY', $this->setWHMCSCryption());
|
||||||
// ENCRYPT_FILE
|
// ENCRYPT_FILE
|
||||||
@ -1105,7 +1105,7 @@ class Interpretation extends Fields
|
|||||||
);
|
);
|
||||||
$name = explode('.xml', $name)[0];
|
$name = explode('.xml', $name)[0];
|
||||||
$target = array('admin' => $name);
|
$target = array('admin' => $name);
|
||||||
$this->buildDynamique($target, 'update_server');
|
CFactory::_('Utilities.Structure')->build($target, 'update_server');
|
||||||
CFactory::_('Content')->set_($name, 'UPDATE_SERVER_XML', implode(PHP_EOL, $updateXML));
|
CFactory::_('Content')->set_($name, 'UPDATE_SERVER_XML', implode(PHP_EOL, $updateXML));
|
||||||
|
|
||||||
// set the Update server file name
|
// set the Update server file name
|
||||||
@ -1284,7 +1284,7 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
$name = StringHelper::safe($update['version']);
|
$name = StringHelper::safe($update['version']);
|
||||||
$target = array('admin' => $name);
|
$target = array('admin' => $name);
|
||||||
$this->buildDynamique($target, 'sql_update', $update['version']);
|
CFactory::_('Utilities.Structure')->build($target, 'sql_update', $update['version']);
|
||||||
$_name = preg_replace('/[\.]+/', '_', (string) $update['version']);
|
$_name = preg_replace('/[\.]+/', '_', (string) $update['version']);
|
||||||
CFactory::_('Content')->set_($name . '_' . $_name, 'UPDATE_VERSION_MYSQL',
|
CFactory::_('Content')->set_($name . '_' . $_name, 'UPDATE_VERSION_MYSQL',
|
||||||
$update['mysql']
|
$update['mysql']
|
||||||
@ -1389,10 +1389,10 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
// set help file into admin place
|
// set help file into admin place
|
||||||
$target = array('admin' => 'help');
|
$target = array('admin' => 'help');
|
||||||
$admindone = $this->buildDynamique($target, 'help');
|
$admindone = CFactory::_('Utilities.Structure')->build($target, 'help');
|
||||||
// set the help file into site place
|
// set the help file into site place
|
||||||
$target = array('site' => 'help');
|
$target = array('site' => 'help');
|
||||||
$sitedone = $this->buildDynamique($target, 'help');
|
$sitedone = CFactory::_('Utilities.Structure')->build($target, 'help');
|
||||||
if ($admindone && $sitedone)
|
if ($admindone && $sitedone)
|
||||||
{
|
{
|
||||||
// HELP
|
// HELP
|
||||||
@ -2133,7 +2133,7 @@ class Interpretation extends Fields
|
|||||||
// build the file target values
|
// build the file target values
|
||||||
$target = array('site' => $nameSingleCode);
|
$target = array('site' => $nameSingleCode);
|
||||||
// build the edit.xml file
|
// build the edit.xml file
|
||||||
if ($this->buildDynamique($target, 'admin_menu'))
|
if (CFactory::_('Utilities.Structure')->build($target, 'admin_menu'))
|
||||||
{
|
{
|
||||||
// set the lang
|
// set the lang
|
||||||
$lang = StringHelper::safe(
|
$lang = StringHelper::safe(
|
||||||
@ -2183,7 +2183,7 @@ class Interpretation extends Fields
|
|||||||
// build the file target values
|
// build the file target values
|
||||||
$target = array('site' => $view['settings']->code);
|
$target = array('site' => $view['settings']->code);
|
||||||
// build the default.xml file
|
// build the default.xml file
|
||||||
if ($this->buildDynamique($target, 'menu'))
|
if (CFactory::_('Utilities.Structure')->build($target, 'menu'))
|
||||||
{
|
{
|
||||||
// set the lang
|
// set the lang
|
||||||
$lang = StringHelper::safe(
|
$lang = StringHelper::safe(
|
||||||
@ -5471,9 +5471,11 @@ class Interpretation extends Fields
|
|||||||
elseif (1 == $type)
|
elseif (1 == $type)
|
||||||
{
|
{
|
||||||
// add this button only if this is not the default view
|
// add this button only if this is not the default view
|
||||||
if ($this->dynamicDashboardType !== 'custom_admin_views'
|
$dynamic_dashboard = CFactory::_('Registry')->get('build.dashboard', '');
|
||||||
|| ($this->dynamicDashboardType === 'custom_admin_views'
|
$dynamic_dashboard_type = CFactory::_('Registry')->get('build.dashboard.type', '');
|
||||||
&& $this->dynamicDashboard !== $viewCodeName))
|
if ($dynamic_dashboard_type !== 'custom_admin_views'
|
||||||
|
|| ($dynamic_dashboard_type === 'custom_admin_views'
|
||||||
|
&& $dynamic_dashboard !== $viewCodeName))
|
||||||
{
|
{
|
||||||
$buttons[] = $tab . Indent::_(2)
|
$buttons[] = $tab . Indent::_(2)
|
||||||
. "//" . Line::_(__Line__, __Class__) . " add cpanel button";
|
. "//" . Line::_(__Line__, __Class__) . " add cpanel button";
|
||||||
@ -5663,7 +5665,7 @@ class Interpretation extends Fields
|
|||||||
// add the controller for this view
|
// add the controller for this view
|
||||||
// build the file
|
// build the file
|
||||||
$target = array(CFactory::_('Config')->build_target => $viewCodeName);
|
$target = array(CFactory::_('Config')->build_target => $viewCodeName);
|
||||||
$this->buildDynamique($target, 'custom_form');
|
CFactory::_('Utilities.Structure')->build($target, 'custom_form');
|
||||||
// GET_FORM_CUSTOM
|
// GET_FORM_CUSTOM
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5807,14 +5809,14 @@ class Interpretation extends Fields
|
|||||||
))
|
))
|
||||||
{
|
{
|
||||||
// get dates
|
// get dates
|
||||||
$created = $this->getCreatedDate($view);
|
$created = CFactory::_('Model.Createdate')->get($view);
|
||||||
$modified = $this->getLastModifiedDate($view);
|
$modified = CFactory::_('Model.Modifieddate')->get($view);
|
||||||
// add file to view
|
// add file to view
|
||||||
$target = array(CFactory::_('Config')->build_target => $view['settings']->code);
|
$target = array(CFactory::_('Config')->build_target => $view['settings']->code);
|
||||||
$config = array(Placefix::_h('CREATIONDATE') => $created,
|
$config = array(Placefix::_h('CREATIONDATE') => $created,
|
||||||
Placefix::_h('BUILDDATE') => $modified,
|
Placefix::_h('BUILDDATE') => $modified,
|
||||||
Placefix::_h('VERSION') => $view['settings']->version);
|
Placefix::_h('VERSION') => $view['settings']->version);
|
||||||
$this->buildDynamique($target, 'javascript_file', false, $config);
|
CFactory::_('Utilities.Structure')->build($target, 'javascript_file', false, $config);
|
||||||
// set path
|
// set path
|
||||||
if ('site' === CFactory::_('Config')->build_target)
|
if ('site' === CFactory::_('Config')->build_target)
|
||||||
{
|
{
|
||||||
@ -6997,8 +6999,8 @@ class Interpretation extends Fields
|
|||||||
if (($data_ = CFactory::_('Registry')->
|
if (($data_ = CFactory::_('Registry')->
|
||||||
extract('builder.template_data.' . CFactory::_('Config')->build_target . '.' . $view['settings']->code)) !== null)
|
extract('builder.template_data.' . CFactory::_('Config')->build_target . '.' . $view['settings']->code)) !== null)
|
||||||
{
|
{
|
||||||
$created = $this->getCreatedDate($view);
|
$created = CFactory::_('Model.Createdate')->get($view);
|
||||||
$modified = $this->getLastModifiedDate($view);
|
$modified = CFactory::_('Model.Modifieddate')->get($view);
|
||||||
foreach ($data_ as $template => $data)
|
foreach ($data_ as $template => $data)
|
||||||
{
|
{
|
||||||
// build the file
|
// build the file
|
||||||
@ -7006,7 +7008,7 @@ class Interpretation extends Fields
|
|||||||
$config = array(Placefix::_h('CREATIONDATE') => $created,
|
$config = array(Placefix::_h('CREATIONDATE') => $created,
|
||||||
Placefix::_h('BUILDDATE') => $modified,
|
Placefix::_h('BUILDDATE') => $modified,
|
||||||
Placefix::_h('VERSION') => $view['settings']->version);
|
Placefix::_h('VERSION') => $view['settings']->version);
|
||||||
$this->buildDynamique($target, 'template', $template, $config);
|
CFactory::_('Utilities.Structure')->build($target, 'template', $template, $config);
|
||||||
// set the file data
|
// set the file data
|
||||||
$TARGET = StringHelper::safe(
|
$TARGET = StringHelper::safe(
|
||||||
CFactory::_('Config')->build_target, 'U'
|
CFactory::_('Config')->build_target, 'U'
|
||||||
@ -7050,7 +7052,7 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
// build the file
|
// build the file
|
||||||
$target = array(CFactory::_('Config')->build_target => $layout);
|
$target = array(CFactory::_('Config')->build_target => $layout);
|
||||||
$this->buildDynamique($target, 'layout');
|
CFactory::_('Utilities.Structure')->build($target, 'layout');
|
||||||
// set the file data
|
// set the file data
|
||||||
$TARGET = StringHelper::safe(
|
$TARGET = StringHelper::safe(
|
||||||
CFactory::_('Config')->build_target, 'U'
|
CFactory::_('Config')->build_target, 'U'
|
||||||
@ -13424,12 +13426,12 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
// first build the layout file
|
// first build the layout file
|
||||||
$target = array('admin' => $nameSingleCode);
|
$target = array('admin' => $nameSingleCode);
|
||||||
$this->buildDynamique($target, $type, $layoutName);
|
CFactory::_('Utilities.Structure')->build($target, $type, $layoutName);
|
||||||
// add to front if needed
|
// add to front if needed
|
||||||
if (CFactory::_('Config')->lang_target === 'both')
|
if (CFactory::_('Config')->lang_target === 'both')
|
||||||
{
|
{
|
||||||
$target = array('site' => $nameSingleCode);
|
$target = array('site' => $nameSingleCode);
|
||||||
$this->buildDynamique($target, $type, $layoutName);
|
CFactory::_('Utilities.Structure')->build($target, $type, $layoutName);
|
||||||
}
|
}
|
||||||
if (StringHelper::check($items))
|
if (StringHelper::check($items))
|
||||||
{
|
{
|
||||||
@ -13458,12 +13460,12 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
// first build the layout file
|
// first build the layout file
|
||||||
$target = array('admin' => $nameSingleCode);
|
$target = array('admin' => $nameSingleCode);
|
||||||
$this->buildDynamique($target, 'layoutoverride', $layoutName);
|
CFactory::_('Utilities.Structure')->build($target, 'layoutoverride', $layoutName);
|
||||||
// add to front if needed
|
// add to front if needed
|
||||||
if (CFactory::_('Config')->lang_target === 'both')
|
if (CFactory::_('Config')->lang_target === 'both')
|
||||||
{
|
{
|
||||||
$target = array('site' => $nameSingleCode);
|
$target = array('site' => $nameSingleCode);
|
||||||
$this->buildDynamique($target, 'layoutoverride', $layoutName);
|
CFactory::_('Utilities.Structure')->build($target, 'layoutoverride', $layoutName);
|
||||||
}
|
}
|
||||||
// make sure items is an empty string (should not be needed.. but)
|
// make sure items is an empty string (should not be needed.. but)
|
||||||
if (!StringHelper::check($items))
|
if (!StringHelper::check($items))
|
||||||
@ -15404,7 +15406,7 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
// setup Ajax files
|
// setup Ajax files
|
||||||
$target = array('admin' => 'import_' . $nameListCode);
|
$target = array('admin' => 'import_' . $nameListCode);
|
||||||
$this->buildDynamique($target, 'customimport');
|
CFactory::_('Utilities.Structure')->build($target, 'customimport');
|
||||||
// load the custom script to the files
|
// load the custom script to the files
|
||||||
// IMPORT_EXT_METHOD <<<DYNAMIC>>>
|
// IMPORT_EXT_METHOD <<<DYNAMIC>>>
|
||||||
CFactory::_('Content')->set_('import_' . $nameListCode, 'IMPORT_EXT_METHOD', CFactory::_('Customcode.Dispenser')->get(
|
CFactory::_('Content')->set_('import_' . $nameListCode, 'IMPORT_EXT_METHOD', CFactory::_('Customcode.Dispenser')->get(
|
||||||
@ -16566,14 +16568,14 @@ class Interpretation extends Fields
|
|||||||
&& StringHelper::check($list_fileScript))
|
&& StringHelper::check($list_fileScript))
|
||||||
{
|
{
|
||||||
// get dates
|
// get dates
|
||||||
$_created = $this->getCreatedDate($viewArray);
|
$_created = CFactory::_('Model.Createdate')->get($viewArray);
|
||||||
$_modified = $this->getLastModifiedDate($viewArray);
|
$_modified = CFactory::_('Model.Modifieddate')->get($viewArray);
|
||||||
// add file to view
|
// add file to view
|
||||||
$_target = array(CFactory::_('Config')->build_target => $nameListCode);
|
$_target = array(CFactory::_('Config')->build_target => $nameListCode);
|
||||||
$_config = array(Placefix::_h('CREATIONDATE') => $_created,
|
$_config = array(Placefix::_h('CREATIONDATE') => $_created,
|
||||||
Placefix::_h('BUILDDATE') => $_modified,
|
Placefix::_h('BUILDDATE') => $_modified,
|
||||||
Placefix::_h('VERSION') => $viewArray['settings']->version);
|
Placefix::_h('VERSION') => $viewArray['settings']->version);
|
||||||
$this->buildDynamique($_target, 'javascript_file', false, $_config);
|
CFactory::_('Utilities.Structure')->build($_target, 'javascript_file', false, $_config);
|
||||||
// set path
|
// set path
|
||||||
$_path = '/administrator/components/com_' . CFactory::_('Config')->component_code_name
|
$_path = '/administrator/components/com_' . CFactory::_('Config')->component_code_name
|
||||||
. '/assets/js/' . $nameListCode . '.js';
|
. '/assets/js/' . $nameListCode . '.js';
|
||||||
@ -18733,7 +18735,7 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
// lets also set the category helper for this view
|
// lets also set the category helper for this view
|
||||||
$target = array('site' => 'category' . $otherView);
|
$target = array('site' => 'category' . $otherView);
|
||||||
$this->buildDynamique($target, 'category');
|
CFactory::_('Utilities.Structure')->build($target, 'category');
|
||||||
// insure the file gets updated
|
// insure the file gets updated
|
||||||
CFactory::_('Content')->set_('category' . $otherView, 'view', $otherView);
|
CFactory::_('Content')->set_('category' . $otherView, 'view', $otherView);
|
||||||
CFactory::_('Content')->set_('category' . $otherView, 'View', ucfirst((string) $otherView));
|
CFactory::_('Content')->set_('category' . $otherView, 'View', ucfirst((string) $otherView));
|
||||||
@ -22951,7 +22953,7 @@ class Interpretation extends Fields
|
|||||||
$slidecounter++;
|
$slidecounter++;
|
||||||
// build the template file
|
// build the template file
|
||||||
$target = array('custom_admin' => CFactory::_('Config')->component_code_name);
|
$target = array('custom_admin' => CFactory::_('Config')->component_code_name);
|
||||||
$this->buildDynamique($target, 'template', $tempName);
|
CFactory::_('Utilities.Structure')->build($target, 'template', $tempName);
|
||||||
// set the file data
|
// set the file data
|
||||||
$TARGET = StringHelper::safe(
|
$TARGET = StringHelper::safe(
|
||||||
CFactory::_('Config')->build_target, 'U'
|
CFactory::_('Config')->build_target, 'U'
|
||||||
@ -23178,7 +23180,7 @@ class Interpretation extends Fields
|
|||||||
// set the code name
|
// set the code name
|
||||||
$codeName = CFactory::_('Config')->component_code_name;
|
$codeName = CFactory::_('Config')->component_code_name;
|
||||||
// set default dashboard
|
// set default dashboard
|
||||||
if (!StringHelper::check($this->dynamicDashboard))
|
if (!CFactory::_('Registry')->get('build.dashboard'))
|
||||||
{
|
{
|
||||||
$menus .= "JHtmlSidebar::addEntry(JText:" . ":_('" . $lang
|
$menus .= "JHtmlSidebar::addEntry(JText:" . ":_('" . $lang
|
||||||
. "_DASHBOARD'), 'index.php?option=com_" . $codeName
|
. "_DASHBOARD'), 'index.php?option=com_" . $codeName
|
||||||
@ -24272,7 +24274,7 @@ class Interpretation extends Fields
|
|||||||
CFactory::_('Config')->lang_target, $lang . '_GLOBAL_DESC', "The Global Parameters"
|
CFactory::_('Config')->lang_target, $lang . '_GLOBAL_DESC', "The Global Parameters"
|
||||||
);
|
);
|
||||||
// add auto checkin if required
|
// add auto checkin if required
|
||||||
if ($this->addCheckin)
|
if (CFactory::_('Config')->get('add_checkin', false))
|
||||||
{
|
{
|
||||||
$this->configFieldSets[] = Indent::_(2) . "<field";
|
$this->configFieldSets[] = Indent::_(2) . "<field";
|
||||||
$this->configFieldSets[] = Indent::_(3) . 'name="check_in"';
|
$this->configFieldSets[] = Indent::_(3) . 'name="check_in"';
|
||||||
|
@ -116,7 +116,8 @@ class Infusion extends Interpretation
|
|||||||
CFactory::_('Content')->get('CREATIONDATE'));
|
CFactory::_('Content')->get('CREATIONDATE'));
|
||||||
|
|
||||||
// BUILDDATE
|
// BUILDDATE
|
||||||
CFactory::_('Content')->set('BUILDDATE', JFactory::getDate()->format('jS F, Y'));
|
CFactory::_('Content')->set('BUILDDATE', JFactory::getDate(
|
||||||
|
CFactory::_('Config')->get('build_date', 'now'))->format('jS F, Y'));
|
||||||
CFactory::_('Content')->set('GLOBALBUILDDATE',
|
CFactory::_('Content')->set('GLOBALBUILDDATE',
|
||||||
CFactory::_('Content')->get('BUILDDATE'));
|
CFactory::_('Content')->get('BUILDDATE'));
|
||||||
|
|
||||||
@ -1104,8 +1105,8 @@ class Infusion extends Interpretation
|
|||||||
);
|
);
|
||||||
|
|
||||||
// check if this custom admin view is the default view
|
// check if this custom admin view is the default view
|
||||||
if ($this->dynamicDashboardType === 'custom_admin_views'
|
if (CFactory::_('Registry')->get('build.dashboard.type', '') === 'custom_admin_views'
|
||||||
&& $this->dynamicDashboard === $view['settings']->code)
|
&& CFactory::_('Registry')->get('build.dashboard', '') === $view['settings']->code)
|
||||||
{
|
{
|
||||||
// HIDEMAINMENU <<<DYNAMIC>>>
|
// HIDEMAINMENU <<<DYNAMIC>>>
|
||||||
CFactory::_('Content')->set_($view['settings']->code, 'HIDEMAINMENU', '');
|
CFactory::_('Content')->set_($view['settings']->code, 'HIDEMAINMENU', '');
|
||||||
@ -1328,7 +1329,7 @@ class Infusion extends Interpretation
|
|||||||
$this->setVersionController();
|
$this->setVersionController();
|
||||||
|
|
||||||
// only set these if default dashboard it used
|
// only set these if default dashboard it used
|
||||||
if (!StringHelper::check($this->dynamicDashboard))
|
if (!CFactory::_('Registry')->get('build.dashboard'))
|
||||||
{
|
{
|
||||||
// DASHBOARDVIEW
|
// DASHBOARDVIEW
|
||||||
CFactory::_('Content')->set('DASHBOARDVIEW', CFactory::_('Config')->component_code_name);
|
CFactory::_('Content')->set('DASHBOARDVIEW', CFactory::_('Config')->component_code_name);
|
||||||
@ -1360,7 +1361,7 @@ class Infusion extends Interpretation
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
// DASHBOARDVIEW
|
// DASHBOARDVIEW
|
||||||
CFactory::_('Content')->set('DASHBOARDVIEW', $this->dynamicDashboard);
|
CFactory::_('Content')->set('DASHBOARDVIEW', CFactory::_('Registry')->get('build.dashboard'));
|
||||||
}
|
}
|
||||||
|
|
||||||
// add import
|
// add import
|
||||||
@ -1368,7 +1369,7 @@ class Infusion extends Interpretation
|
|||||||
{
|
{
|
||||||
// setup import files
|
// setup import files
|
||||||
$target = array('admin' => 'import');
|
$target = array('admin' => 'import');
|
||||||
$this->buildDynamique($target, 'import');
|
CFactory::_('Utilities.Structure')->build($target, 'import');
|
||||||
// IMPORT_EXT_METHOD <<<DYNAMIC>>>
|
// IMPORT_EXT_METHOD <<<DYNAMIC>>>
|
||||||
CFactory::_('Content')->set_('import', 'IMPORT_EXT_METHOD', PHP_EOL . PHP_EOL . CFactory::_('Placeholder')->update_(
|
CFactory::_('Content')->set_('import', 'IMPORT_EXT_METHOD', PHP_EOL . PHP_EOL . CFactory::_('Placeholder')->update_(
|
||||||
ComponentbuilderHelper::getDynamicScripts('ext')
|
ComponentbuilderHelper::getDynamicScripts('ext')
|
||||||
@ -1388,7 +1389,7 @@ class Infusion extends Interpretation
|
|||||||
{
|
{
|
||||||
// setup Ajax files
|
// setup Ajax files
|
||||||
$target = array('admin' => 'ajax');
|
$target = array('admin' => 'ajax');
|
||||||
$this->buildDynamique($target, 'ajax');
|
CFactory::_('Utilities.Structure')->build($target, 'ajax');
|
||||||
// set the controller
|
// set the controller
|
||||||
CFactory::_('Content')->set_('ajax', 'REGISTER_AJAX_TASK', $this->setRegisterAjaxTask('admin'));
|
CFactory::_('Content')->set_('ajax', 'REGISTER_AJAX_TASK', $this->setRegisterAjaxTask('admin'));
|
||||||
CFactory::_('Content')->set_('ajax', 'AJAX_INPUT_RETURN', $this->setAjaxInputReturn('admin'));
|
CFactory::_('Content')->set_('ajax', 'AJAX_INPUT_RETURN', $this->setAjaxInputReturn('admin'));
|
||||||
@ -1403,7 +1404,7 @@ class Infusion extends Interpretation
|
|||||||
{
|
{
|
||||||
// setup Ajax files
|
// setup Ajax files
|
||||||
$target = array('site' => 'ajax');
|
$target = array('site' => 'ajax');
|
||||||
$this->buildDynamique($target, 'ajax');
|
CFactory::_('Utilities.Structure')->build($target, 'ajax');
|
||||||
// set the controller
|
// set the controller
|
||||||
CFactory::_('Content')->set_('ajax', 'REGISTER_SITE_AJAX_TASK', $this->setRegisterAjaxTask('site'));
|
CFactory::_('Content')->set_('ajax', 'REGISTER_SITE_AJAX_TASK', $this->setRegisterAjaxTask('site'));
|
||||||
CFactory::_('Content')->set_('ajax', 'AJAX_SITE_INPUT_RETURN', $this->setAjaxInputReturn('site'));
|
CFactory::_('Content')->set_('ajax', 'AJAX_SITE_INPUT_RETURN', $this->setAjaxInputReturn('site'));
|
||||||
@ -1420,7 +1421,7 @@ class Infusion extends Interpretation
|
|||||||
{
|
{
|
||||||
// setup rule file
|
// setup rule file
|
||||||
$target = array('admin' => 'a_rule_zi');
|
$target = array('admin' => 'a_rule_zi');
|
||||||
$this->buildDynamique($target, 'rule', $rule);
|
CFactory::_('Utilities.Structure')->build($target, 'rule', $rule);
|
||||||
// set the JFormRule Name
|
// set the JFormRule Name
|
||||||
CFactory::_('Content')->set_('a_rule_zi_' . $rule, 'Name', ucfirst((string) $rule));
|
CFactory::_('Content')->set_('a_rule_zi_' . $rule, 'Name', ucfirst((string) $rule));
|
||||||
// set the JFormRule PHP
|
// set the JFormRule PHP
|
||||||
|
@ -73,10 +73,10 @@ use Joomla\Utilities\ArrayHelper;
|
|||||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||||
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
use PhpOffice\PhpSpreadsheet\Spreadsheet;
|
||||||
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
|
||||||
|
use VDM\Joomla\Utilities;
|
||||||
use Joomla\Archive\Archive;
|
use Joomla\Archive\Archive;
|
||||||
use Joomla\CMS\Filesystem\Folder;
|
use Joomla\CMS\Filesystem\Folder;
|
||||||
use Joomla\CMS\Filesystem\Path;
|
use Joomla\CMS\Filesystem\Path;
|
||||||
use VDM\Joomla\Utilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Componentbuilder component helper.
|
* Componentbuilder component helper.
|
||||||
|
@ -1284,12 +1284,14 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_YES="Yes"
|
|||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_YOUTUBE="Youtube"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_YOUTUBE="Youtube"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ZOOM_IN="Zoom In"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ZOOM_IN="Zoom In"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_ZOOM_OUT="Zoom Out"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_ZOOM_OUT="Zoom Out"
|
||||||
|
COM_COMPONENTBUILDER_ADVANCED_OPTIONS="Advanced Options"
|
||||||
COM_COMPONENTBUILDER_AHEAD="Ahead"
|
COM_COMPONENTBUILDER_AHEAD="Ahead"
|
||||||
COM_COMPONENTBUILDER_AHEAD_MEANS_YOUR_BLOCAL_SNIPPETB_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_A_BNEWER_MODIFIED_DATEB_THEN_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE="Ahead means your <b>local snippet</b> (with the same name, library and type) has a <b>newer modified date</b> then the community snippet (with the same name, library and type)."
|
COM_COMPONENTBUILDER_AHEAD_MEANS_YOUR_BLOCAL_SNIPPETB_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_A_BNEWER_MODIFIED_DATEB_THEN_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE="Ahead means your <b>local snippet</b> (with the same name, library and type) has a <b>newer modified date</b> then the community snippet (with the same name, library and type)."
|
||||||
COM_COMPONENTBUILDER_AJAX="Ajax"
|
COM_COMPONENTBUILDER_AJAX="Ajax"
|
||||||
COM_COMPONENTBUILDER_ALIAS="Alias"
|
COM_COMPONENTBUILDER_ALIAS="Alias"
|
||||||
COM_COMPONENTBUILDER_ALIGNMENT="Alignment"
|
COM_COMPONENTBUILDER_ALIGNMENT="Alignment"
|
||||||
COM_COMPONENTBUILDER_ALL="All"
|
COM_COMPONENTBUILDER_ALL="All"
|
||||||
|
COM_COMPONENTBUILDER_ALLOWS_YOU_TO_OVERRIDE_THE_BUILD_DATE_BY_SELECTING_A_DATE_MANUALLY_FROM_THE_CALENDER="Allows you to override the build date by selecting a date manually from the calender."
|
||||||
COM_COMPONENTBUILDER_ALL_FOUND_INSTANCES_IN_S_WHERE_REPLACED="All found instances in %s where replaced"
|
COM_COMPONENTBUILDER_ALL_FOUND_INSTANCES_IN_S_WHERE_REPLACED="All found instances in %s where replaced"
|
||||||
COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER="All is good, please check again latter."
|
COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATTER="All is good, please check again latter."
|
||||||
COM_COMPONENTBUILDER_ALL_IS_GOOD_THERE_IS_NO_NOTICE_AT_THIS_TIME="All is good, there is no notice at this time."
|
COM_COMPONENTBUILDER_ALL_IS_GOOD_THERE_IS_NO_NOTICE_AT_THIS_TIME="All is good, there is no notice at this time."
|
||||||
@ -1332,10 +1334,12 @@ COM_COMPONENTBUILDER_BASIC_TUTORIAL_ON_GIT_BSB="Basic Tutorial on git: <b>%s</b>
|
|||||||
COM_COMPONENTBUILDER_BBEST_TO_NOT_CONTINUEBBR_WE_COULD_NOT_LOAD_THE_CHECKSUM_FOR_THIS_PACKAGE_AND_SO_NO_VALIDATION_WAS_POSSIBLE_THIS_MAY_BE_DUE_TO_YOUR_NETWORK_OR_A_CHANGE_TO_THAT_PACKAGE_NAME="<b>Best to not continue!</b><br />We could not load the checksum for this package, and so no validation was possible. This may be due to your network, or a change to that package name."
|
COM_COMPONENTBUILDER_BBEST_TO_NOT_CONTINUEBBR_WE_COULD_NOT_LOAD_THE_CHECKSUM_FOR_THIS_PACKAGE_AND_SO_NO_VALIDATION_WAS_POSSIBLE_THIS_MAY_BE_DUE_TO_YOUR_NETWORK_OR_A_CHANGE_TO_THAT_PACKAGE_NAME="<b>Best to not continue!</b><br />We could not load the checksum for this package, and so no validation was possible. This may be due to your network, or a change to that package name."
|
||||||
COM_COMPONENTBUILDER_BBEST_TO_NOT_CONTINUEBBR_YOU_CAN_REFRESH_AND_TRY_AGAINBR_BUT_NOTE_THAT_THIS_PACKAGE_BFAILEDB_CHECKSUM_VALIDATION_THIS_COULD_BE_A_SERIOUS_SECURITY_BREACH_DO_NOT_CONTINUE="<b>Best to not continue!</b><br />You can Refresh and try again.<br />But note that this package <b>FAILED</b> checksum validation, this could be a serious security breach! DO NOT CONTINUE!!!"
|
COM_COMPONENTBUILDER_BBEST_TO_NOT_CONTINUEBBR_YOU_CAN_REFRESH_AND_TRY_AGAINBR_BUT_NOTE_THAT_THIS_PACKAGE_BFAILEDB_CHECKSUM_VALIDATION_THIS_COULD_BE_A_SERIOUS_SECURITY_BREACH_DO_NOT_CONTINUE="<b>Best to not continue!</b><br />You can Refresh and try again.<br />But note that this package <b>FAILED</b> checksum validation, this could be a serious security breach! DO NOT CONTINUE!!!"
|
||||||
COM_COMPONENTBUILDER_BCUSTOM_FILESB_NOT_MOVED_TO_CORRECT_LOCATION="<b>Custom files</b> not moved to correct location!"
|
COM_COMPONENTBUILDER_BCUSTOM_FILESB_NOT_MOVED_TO_CORRECT_LOCATION="<b>Custom files</b> not moved to correct location!"
|
||||||
|
COM_COMPONENTBUILDER_BECOME_A_CONTRIBUTOR="Become a Contributor"
|
||||||
COM_COMPONENTBUILDER_BEHAVIOUR="Behaviour"
|
COM_COMPONENTBUILDER_BEHAVIOUR="Behaviour"
|
||||||
COM_COMPONENTBUILDER_BEHIND="Behind"
|
COM_COMPONENTBUILDER_BEHIND="Behind"
|
||||||
COM_COMPONENTBUILDER_BEHIND_MEANS_YOUR_BLOCAL_SNIPPETB_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_A_BOLDER_MODIFIED_DATEB_THEN_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE="Behind means your <b>local snippet</b> (with the same name, library and type) has a <b>older modified date</b> then the community snippet (with the same name, library and type)."
|
COM_COMPONENTBUILDER_BEHIND_MEANS_YOUR_BLOCAL_SNIPPETB_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_A_BOLDER_MODIFIED_DATEB_THEN_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE="Behind means your <b>local snippet</b> (with the same name, library and type) has a <b>older modified date</b> then the community snippet (with the same name, library and type)."
|
||||||
COM_COMPONENTBUILDER_BETA_RELEASE="Beta Release"
|
COM_COMPONENTBUILDER_BETA_RELEASE="Beta Release"
|
||||||
|
COM_COMPONENTBUILDER_BE_A_PART_OF_JCB="Be a Part of JCB"
|
||||||
COM_COMPONENTBUILDER_BE_CAUTIOUS_DO_NOT_CONTINUE_UNLESS_YOU_TRUST_THE_ORIGIN_OF_THIS_PACKAGE="Be cautious! Do not continue unless you trust the origin of this package!"
|
COM_COMPONENTBUILDER_BE_CAUTIOUS_DO_NOT_CONTINUE_UNLESS_YOU_TRUST_THE_ORIGIN_OF_THIS_PACKAGE="Be cautious! Do not continue unless you trust the origin of this package!"
|
||||||
COM_COMPONENTBUILDER_BFIELD_TYPEB_IDS_MISMATCH_IN_BSB="<b>Field type</b> id:%s mismatch in <b>%s</b>."
|
COM_COMPONENTBUILDER_BFIELD_TYPEB_IDS_MISMATCH_IN_BSB="<b>Field type</b> id:%s mismatch in <b>%s</b>."
|
||||||
COM_COMPONENTBUILDER_BFIELD_TYPEB_NOT_SET_FOR_BSB="<b>Field type</b> not set for <b>%s</b>."
|
COM_COMPONENTBUILDER_BFIELD_TYPEB_NOT_SET_FOR_BSB="<b>Field type</b> not set for <b>%s</b>."
|
||||||
@ -1353,6 +1357,7 @@ COM_COMPONENTBUILDER_BTHE_EXPANSION_WAS_SUCCESSFULLYB_TO_SEE_MORE_INFORMATION_CH
|
|||||||
COM_COMPONENTBUILDER_BTHE_TMP_FOLDER_HAS_BEEN_CLEAR_SUCCESSFULLYB="<b>The tmp folder has been clear successfully!</b>"
|
COM_COMPONENTBUILDER_BTHE_TMP_FOLDER_HAS_BEEN_CLEAR_SUCCESSFULLYB="<b>The tmp folder has been clear successfully!</b>"
|
||||||
COM_COMPONENTBUILDER_BUILD="Build"
|
COM_COMPONENTBUILDER_BUILD="Build"
|
||||||
COM_COMPONENTBUILDER_BUILDIN="Build-in"
|
COM_COMPONENTBUILDER_BUILDIN="Build-in"
|
||||||
|
COM_COMPONENTBUILDER_BUILD_DATE="Build Date"
|
||||||
COM_COMPONENTBUILDER_BULK="Bulk"
|
COM_COMPONENTBUILDER_BULK="Bulk"
|
||||||
COM_COMPONENTBUILDER_BULK_GET_ALL_NEW_SNIPPETS="Bulk Get All New Snippets"
|
COM_COMPONENTBUILDER_BULK_GET_ALL_NEW_SNIPPETS="Bulk Get All New Snippets"
|
||||||
COM_COMPONENTBUILDER_BULK_TOOLS="Bulk Tools"
|
COM_COMPONENTBUILDER_BULK_TOOLS="Bulk Tools"
|
||||||
@ -3667,6 +3672,7 @@ COM_COMPONENTBUILDER_CONFIG_VIEW_FIELD_LABEL="View & Field"
|
|||||||
COM_COMPONENTBUILDER_CONFIG_YES="Yes"
|
COM_COMPONENTBUILDER_CONFIG_YES="Yes"
|
||||||
COM_COMPONENTBUILDER_CONFIRMATION_STEP_BEFORE_IMPORTING="Confirmation Step Before Importing!"
|
COM_COMPONENTBUILDER_CONFIRMATION_STEP_BEFORE_IMPORTING="Confirmation Step Before Importing!"
|
||||||
COM_COMPONENTBUILDER_CONTEXT="Context"
|
COM_COMPONENTBUILDER_CONTEXT="Context"
|
||||||
|
COM_COMPONENTBUILDER_CONTRIBUTE_TO_JCB="Contribute to JCB"
|
||||||
COM_COMPONENTBUILDER_CONTRIBUTOR="Contributor"
|
COM_COMPONENTBUILDER_CONTRIBUTOR="Contributor"
|
||||||
COM_COMPONENTBUILDER_CONTRIBUTORS="Contributors"
|
COM_COMPONENTBUILDER_CONTRIBUTORS="Contributors"
|
||||||
COM_COMPONENTBUILDER_COPYRIGHT="Copyright"
|
COM_COMPONENTBUILDER_COPYRIGHT="Copyright"
|
||||||
@ -4394,6 +4400,8 @@ COM_COMPONENTBUILDER_DISPLAY_SWITCH_FOR_DYNAMIC_PLACEMENT_IN_RELATION_TO_THE_USE
|
|||||||
COM_COMPONENTBUILDER_DIVERGED="Diverged"
|
COM_COMPONENTBUILDER_DIVERGED="Diverged"
|
||||||
COM_COMPONENTBUILDER_DIVERGED_MEANS_YOUR_BLOCAL_SNIPPETB_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_A_BDIVERGEDB_FROM_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_IN_THAT_IT_DOES_NOT_HAVE_THE_SAME_BCREATIONB_OR_BMODIFIED_DATEB="Diverged means your <b>local snippet</b> (with the same name, library and type) has a <b>diverged</b> from the community snippet (with the same name, library and type) in that it does not have the same <b>creation</b> or <b>modified date</b>."
|
COM_COMPONENTBUILDER_DIVERGED_MEANS_YOUR_BLOCAL_SNIPPETB_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_HAS_A_BDIVERGEDB_FROM_THE_COMMUNITY_SNIPPET_WITH_THE_SAME_NAME_LIBRARY_AND_TYPE_IN_THAT_IT_DOES_NOT_HAVE_THE_SAME_BCREATIONB_OR_BMODIFIED_DATEB="Diverged means your <b>local snippet</b> (with the same name, library and type) has a <b>diverged</b> from the community snippet (with the same name, library and type) in that it does not have the same <b>creation</b> or <b>modified date</b>."
|
||||||
COM_COMPONENTBUILDER_DOES_THIS_PACKAGE_REQUIRE_A_KEY_TO_INSTALL="Does this package require a key to install."
|
COM_COMPONENTBUILDER_DOES_THIS_PACKAGE_REQUIRE_A_KEY_TO_INSTALL="Does this package require a key to install."
|
||||||
|
COM_COMPONENTBUILDER_DONATE_TO_JCB="Donate to JCB"
|
||||||
|
COM_COMPONENTBUILDER_DONATIONS="Donations!"
|
||||||
COM_COMPONENTBUILDER_DOWNLOAD_UPDATE="Download Update"
|
COM_COMPONENTBUILDER_DOWNLOAD_UPDATE="Download Update"
|
||||||
COM_COMPONENTBUILDER_DO_NOT_ADD="Do not add"
|
COM_COMPONENTBUILDER_DO_NOT_ADD="Do not add"
|
||||||
COM_COMPONENTBUILDER_DTCOMPANYDTDDSDD="<dt>Company</dt><dd>%s</dd>"
|
COM_COMPONENTBUILDER_DTCOMPANYDTDDSDD="<dt>Company</dt><dd>%s</dd>"
|
||||||
@ -4708,6 +4716,7 @@ COM_COMPONENTBUILDER_EDIT_S_S_DIRECTLY="Edit %s (%s) directly"
|
|||||||
COM_COMPONENTBUILDER_EDIT_VERSIONS="Edit Version"
|
COM_COMPONENTBUILDER_EDIT_VERSIONS="Edit Version"
|
||||||
COM_COMPONENTBUILDER_EDIT_VERSIONS_DESC="Allows users in this group to edit versions."
|
COM_COMPONENTBUILDER_EDIT_VERSIONS_DESC="Allows users in this group to edit versions."
|
||||||
COM_COMPONENTBUILDER_EDIT_VIEW="Edit View"
|
COM_COMPONENTBUILDER_EDIT_VIEW="Edit View"
|
||||||
|
COM_COMPONENTBUILDER_ELEVATE_JCB_TODAY="Elevate JCB Today"
|
||||||
COM_COMPONENTBUILDER_EMAIL="Email"
|
COM_COMPONENTBUILDER_EMAIL="Email"
|
||||||
COM_COMPONENTBUILDER_EMAIL_S="Email %s"
|
COM_COMPONENTBUILDER_EMAIL_S="Email %s"
|
||||||
COM_COMPONENTBUILDER_EMAIL_WITH_THE_NEW_KEY_WAS_SENT="Email with the new key was sent"
|
COM_COMPONENTBUILDER_EMAIL_WITH_THE_NEW_KEY_WAS_SENT="Email with the new key was sent"
|
||||||
@ -4716,6 +4725,8 @@ COM_COMPONENTBUILDER_EMCOPYRIGHTEM_BSB="<em>Copyright:</em> <b>%s</b>"
|
|||||||
COM_COMPONENTBUILDER_EMEMAILEM_BSB="<em>Email:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMEMAILEM_BSB="<em>Email:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMLICENSEEM_BSB="<em>License:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMLICENSEEM_BSB="<em>License:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_EMOWNEREM_BSB="<em>Owner:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMOWNEREM_BSB="<em>Owner:</em> <b>%s</b>"
|
||||||
|
COM_COMPONENTBUILDER_EMPOWER_JCB="Empower JCB"
|
||||||
|
COM_COMPONENTBUILDER_EMPOWER_THE_FUTURE_WITH_JCB="Empower the Future with JCB"
|
||||||
COM_COMPONENTBUILDER_EMPTY_TRASH="Empty trash"
|
COM_COMPONENTBUILDER_EMPTY_TRASH="Empty trash"
|
||||||
COM_COMPONENTBUILDER_EMWEBSITEEM_BSB="<em>Website:</em> <b>%s</b>"
|
COM_COMPONENTBUILDER_EMWEBSITEEM_BSB="<em>Website:</em> <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_ENTER_YOUR_REPLACE_TEXT="Enter your replace text"
|
COM_COMPONENTBUILDER_ENTER_YOUR_REPLACE_TEXT="Enter your replace text"
|
||||||
@ -5451,6 +5462,7 @@ COM_COMPONENTBUILDER_FORCE_LOCAL_UPDATE="Force Local Update"
|
|||||||
COM_COMPONENTBUILDER_FORCE_THAT_THIS_JCB_PACKAGE_IMPORT_SEARCH_FOR_LOCAL_ITEMS_TO_BE_DONE_WITH_GUID_VALUE_ONLY_IF_BMERGEB_IS_SET_TO_YES_ABOVE="Force that this JCB package import (search for local items) to be done with GUID value only, if <b>Merge</b> is set to yes above."
|
COM_COMPONENTBUILDER_FORCE_THAT_THIS_JCB_PACKAGE_IMPORT_SEARCH_FOR_LOCAL_ITEMS_TO_BE_DONE_WITH_GUID_VALUE_ONLY_IF_BMERGEB_IS_SET_TO_YES_ABOVE="Force that this JCB package import (search for local items) to be done with GUID value only, if <b>Merge</b> is set to yes above."
|
||||||
COM_COMPONENTBUILDER_FOUND="Found"
|
COM_COMPONENTBUILDER_FOUND="Found"
|
||||||
COM_COMPONENTBUILDER_FOUND_TEXT="Found Text"
|
COM_COMPONENTBUILDER_FOUND_TEXT="Found Text"
|
||||||
|
COM_COMPONENTBUILDER_FOUR_SPACES="4 Spaces"
|
||||||
COM_COMPONENTBUILDER_FREEOPEN="Free/Open"
|
COM_COMPONENTBUILDER_FREEOPEN="Free/Open"
|
||||||
COM_COMPONENTBUILDER_FULL_WIDTH_IN_TAB="Full Width in Tab"
|
COM_COMPONENTBUILDER_FULL_WIDTH_IN_TAB="Full Width in Tab"
|
||||||
COM_COMPONENTBUILDER_FUNCTION_NAME_ALREADY_TAKEN_PLEASE_TRY_AGAIN="Function name already taken, please try again."
|
COM_COMPONENTBUILDER_FUNCTION_NAME_ALREADY_TAKEN_PLEASE_TRY_AGAIN="Function name already taken, please try again."
|
||||||
@ -5487,6 +5499,7 @@ COM_COMPONENTBUILDER_GET_THE_SNIPPET_FROM_GITHUB_AND_INSTALL_IT_LOCALLY="Get the
|
|||||||
COM_COMPONENTBUILDER_GET_THE_SNIPPET_FROM_GITHUB_AND_UPDATE_THE_LOCAL_VERSION="Get the snippet from gitHub and update the local version"
|
COM_COMPONENTBUILDER_GET_THE_SNIPPET_FROM_GITHUB_AND_UPDATE_THE_LOCAL_VERSION="Get the snippet from gitHub and update the local version"
|
||||||
COM_COMPONENTBUILDER_GET_TOKEN="Get Token"
|
COM_COMPONENTBUILDER_GET_TOKEN="Get Token"
|
||||||
COM_COMPONENTBUILDER_GET_TOKEN_FROM_VDM_TO_GET_UPDATE_NOTICE_AND_ADD_IT_TO_YOUR_GLOBAL_OPTIONS="Get token from VDM to get update notice, and add it to your global options."
|
COM_COMPONENTBUILDER_GET_TOKEN_FROM_VDM_TO_GET_UPDATE_NOTICE_AND_ADD_IT_TO_YOUR_GLOBAL_OPTIONS="Get token from VDM to get update notice, and add it to your global options."
|
||||||
|
COM_COMPONENTBUILDER_GIVE_TO_JCB="Give to JCB"
|
||||||
COM_COMPONENTBUILDER_GLOBAL="Global"
|
COM_COMPONENTBUILDER_GLOBAL="Global"
|
||||||
COM_COMPONENTBUILDER_GLUECODE="Glue/Code"
|
COM_COMPONENTBUILDER_GLUECODE="Glue/Code"
|
||||||
COM_COMPONENTBUILDER_GREAT_THIS_FUNCTION_NAME_WILL_WORK="Great, this function name will work!"
|
COM_COMPONENTBUILDER_GREAT_THIS_FUNCTION_NAME_WILL_WORK="Great, this function name will work!"
|
||||||
@ -5594,6 +5607,7 @@ COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_LABEL="URL"
|
|||||||
COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_MESSAGE="Error! Please add url here."
|
COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_MESSAGE="Error! Please add url here."
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_DESC="A count of the number of times this Help Document has been revised."
|
COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_DESC="A count of the number of times this Help Document has been revised."
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_LABEL="Version"
|
COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_LABEL="Version"
|
||||||
|
COM_COMPONENTBUILDER_HELP_JCB_GROW="Help JCB Grow"
|
||||||
COM_COMPONENTBUILDER_HELP_MANAGER="Help"
|
COM_COMPONENTBUILDER_HELP_MANAGER="Help"
|
||||||
COM_COMPONENTBUILDER_HERE_YOU_CAN_ENTER_THE_REPLACE_TEXT_THAT_YOU_WOULD_LIKE_TO_USE_AS_REPLACEMENT_FOR_THE_SEARCH_TEXT_FOUND="Here you can enter the replace text that you would like to use as replacement for the search text found."
|
COM_COMPONENTBUILDER_HERE_YOU_CAN_ENTER_THE_REPLACE_TEXT_THAT_YOU_WOULD_LIKE_TO_USE_AS_REPLACEMENT_FOR_THE_SEARCH_TEXT_FOUND="Here you can enter the replace text that you would like to use as replacement for the search text found."
|
||||||
COM_COMPONENTBUILDER_HERE_YOU_CAN_ENTER_YOUR_SEARCH_TEXT="Here you can enter your search text."
|
COM_COMPONENTBUILDER_HERE_YOU_CAN_ENTER_YOUR_SEARCH_TEXT="Here you can enter your search text."
|
||||||
@ -5604,11 +5618,15 @@ COM_COMPONENTBUILDER_HIDE_ONLY="Hide Only"
|
|||||||
COM_COMPONENTBUILDER_HIDE_TOGGLE="Hide Toggle"
|
COM_COMPONENTBUILDER_HIDE_TOGGLE="Hide Toggle"
|
||||||
COM_COMPONENTBUILDER_HOW_TO_GET_A_S_FREE_KEYSA_FROM_VDM="How to get <a %s >free keys</a> from VDM."
|
COM_COMPONENTBUILDER_HOW_TO_GET_A_S_FREE_KEYSA_FROM_VDM="How to get <a %s >free keys</a> from VDM."
|
||||||
COM_COMPONENTBUILDER_HR_HTHREECUSTOM_CODES_WARNINGHTHREE="<hr /><h3>Custom Codes Warning</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREECUSTOM_CODES_WARNINGHTHREE="<hr /><h3>Custom Codes Warning</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREECZEROMPZERONTHREENT_ISSUE_FOUNDHTHREEPTHE_PATH_S_COULD_NOT_BE_USEDP="<hr /><h3>c0mp0n3nt issue found</h3><p>The path (%s) could not be used.</p>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEDASHBOARD_ERRORHTHREE="<hr /><h3>Dashboard Error</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEDYNAMIC_FOLDERS_WERE_DETECTEDHTHREE="<hr /><h3>Dynamic folder(s) were detected.</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREEDYNAMIC_FOLDERS_WERE_DETECTEDHTHREE="<hr /><h3>Dynamic folder(s) were detected.</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_ERRORHTHREE="<hr /><h3>External Code Error</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_ERRORHTHREE="<hr /><h3>External Code Error</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_NOTICEHTHREE="<hr /><h3>External Code Notice</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_NOTICEHTHREE="<hr /><h3>External Code Notice</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_WARNINGHTHREE="<hr /><h3>External Code Warning</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_WARNINGHTHREE="<hr /><h3>External Code Warning</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEFIELD_NOTICEHTHREE="<hr /><h3>Field Notice</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREEFIELD_NOTICEHTHREE="<hr /><h3>Field Notice</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEFILE_PATH_ERRORHTHREE="<hr /><h3>File Path Error</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEFOLDER_PATH_ERRORHTHREE="<hr /><h3>Folder Path Error</h3>"
|
||||||
COM_COMPONENTBUILDER_HTHREEPLACEHOLDER_REMOVEDHTHREEPBTHISB_CUSTOM_CODE_CAN_ONLY_BE_USED_IN_BOTHERB_CUSTOM_CODE_NOT_IN_IT_SELF_SINCE_THAT_WILL_CAUSE_A_INFINITE_LOOP_IN_THE_COMPILERP="<h3>Placeholder Removed!</h3><p><b>This</b> custom code can only be used in <b>other</b> custom code, not in it self! Since that will cause a infinite loop in the compiler.</p>"
|
COM_COMPONENTBUILDER_HTHREEPLACEHOLDER_REMOVEDHTHREEPBTHISB_CUSTOM_CODE_CAN_ONLY_BE_USED_IN_BOTHERB_CUSTOM_CODE_NOT_IN_IT_SELF_SINCE_THAT_WILL_CAUSE_A_INFINITE_LOOP_IN_THE_COMPILERP="<h3>Placeholder Removed!</h3><p><b>This</b> custom code can only be used in <b>other</b> custom code, not in it self! Since that will cause a infinite loop in the compiler.</p>"
|
||||||
COM_COMPONENTBUILDER_HTHREESHTHREEPCUSTOM_CODE_CAN_ONLY_BE_USED_IN_OTHER_CUSTOM_CODE_IF_SET_AS_BJCB_MANUALB_YOU_CAN_NOT_ADD_THEM_TO_EMHASH_AUTOMATIONEM_CODE_AT_THIS_POINTP="<h3>%s</h3><p>Custom code can only be used in other custom code if set as <b>JCB (manual)</b>, you can not add them to <em>Hash (Automation)</em> code at this point.</p>"
|
COM_COMPONENTBUILDER_HTHREESHTHREEPCUSTOM_CODE_CAN_ONLY_BE_USED_IN_OTHER_CUSTOM_CODE_IF_SET_AS_BJCB_MANUALB_YOU_CAN_NOT_ADD_THEM_TO_EMHASH_AUTOMATIONEM_CODE_AT_THIS_POINTP="<h3>%s</h3><p>Custom code can only be used in other custom code if set as <b>JCB (manual)</b>, you can not add them to <em>Hash (Automation)</em> code at this point.</p>"
|
||||||
COM_COMPONENTBUILDER_HTHREES_NAMESPACE_ERROR_SHTHREEPYOU_MUST_ATLEAST_HAVE_TWO_SECTIONS_IN_YOUR_NAMESPACE_YOU_JUST_HAVE_ONE_S_THIS_IS_AN_UNACCEPTABLE_ACTION_PLEASE_SEE_A_HREFS_PSRFOURA_FOR_MORE_INFOPPTHIS_S_WAS_THEREFORE_REMOVED_A_HREFSCLICK_HEREA_TO_FIX_THIS_ISSUEP="<h3>%s namespace error (%s)</h3><p>You must at-least have two sections in your namespace, you just have one (%s). This is an unacceptable action, please see <a href=%s >psr-4</a> for more info.</p><p>This %s was therefore removed, <a href=%s>click here</a> to fix this issue.</p>"
|
COM_COMPONENTBUILDER_HTHREES_NAMESPACE_ERROR_SHTHREEPYOU_MUST_ATLEAST_HAVE_TWO_SECTIONS_IN_YOUR_NAMESPACE_YOU_JUST_HAVE_ONE_S_THIS_IS_AN_UNACCEPTABLE_ACTION_PLEASE_SEE_A_HREFS_PSRFOURA_FOR_MORE_INFOPPTHIS_S_WAS_THEREFORE_REMOVED_A_HREFSCLICK_HEREA_TO_FIX_THIS_ISSUEP="<h3>%s namespace error (%s)</h3><p>You must at-least have two sections in your namespace, you just have one (%s). This is an unacceptable action, please see <a href=%s >psr-4</a> for more info.</p><p>This %s was therefore removed, <a href=%s>click here</a> to fix this issue.</p>"
|
||||||
@ -5683,6 +5701,10 @@ COM_COMPONENTBUILDER_IMPORT_UNABLE_TO_FIND_IMPORT_PACKAGE="Package to import not
|
|||||||
COM_COMPONENTBUILDER_IMPORT_UPDATE_DATA="Import Data"
|
COM_COMPONENTBUILDER_IMPORT_UPDATE_DATA="Import Data"
|
||||||
COM_COMPONENTBUILDER_IMPORT_UPLOAD_BOTTON="Upload File"
|
COM_COMPONENTBUILDER_IMPORT_UPLOAD_BOTTON="Upload File"
|
||||||
COM_COMPONENTBUILDER_INACTIVE="Inactive"
|
COM_COMPONENTBUILDER_INACTIVE="Inactive"
|
||||||
|
COM_COMPONENTBUILDER_INDENTATION_OPTIONS="Indentation Options"
|
||||||
|
COM_COMPONENTBUILDER_INVEST_IN_JCB="Invest in JCB"
|
||||||
|
COM_COMPONENTBUILDER_INVEST_IN_THE_FUTURE_OF_JOOMLA_COMPONENT_BUILDER_JCB_BY_MAKING_A_BFINANCIAL_CONTRIBUTIONB_NO_MATTER_HOW_SMALL_THE_CONTINUAL_SUPPORT_OF_ALL_THOSE_USING_THE_TOOL_WILL_BE_MORE_THAN_ENOUGH_TO_ENSURE_ITS_CONTINUED_GROWTH_AND_RELEVANCE_BY_INVESTING_IN_THIS_OPENSOURCE_PROJECT_YOU_ARE_SECURING_ITS_FUTURE_AS_A_VITAL_TOOL_FOR_PHP_PROGRAMMERS="Invest in the future of Joomla Component Builder (JCB) by making a <b>financial contribution</b>, no matter how small. The continual support of all those using the tool will be more than enough to ensure its continued growth and relevance. By investing in this open-source project, you are securing its future as a vital tool for PHP programmers."
|
||||||
|
COM_COMPONENTBUILDER_INVEST_IN_THE_FUTURE_OF_JOOMLA_COMPONENT_BUILDER_JCB_BY_MAKING_A_BFINANCIAL_DONATIONB_SUPPORT_THE_NECESSARY_DEVELOPMENT_AND_MAINTENANCE_OF_THIS_OPENSOURCE_PROJECT_ENSURING_ITS_CONTINUED_GROWTH_AND_RELEVANCE_FOR_THE_COMMUNITY_YOUR_CONTRIBUTION_WILL_HELP_SECURE_THE_FUTURE_OF_THIS_VITAL_TOOL_FOR_PHP_PROGRAMMERS="Invest in the future of Joomla Component Builder (JCB) by making a <b>financial donation</b>. Support the necessary development and maintenance of this open-source project, ensuring its continued growth and relevance for the community. Your contribution will help secure the future of this vital tool for PHP programmers."
|
||||||
COM_COMPONENTBUILDER_IN_SYNC="In Sync"
|
COM_COMPONENTBUILDER_IN_SYNC="In Sync"
|
||||||
COM_COMPONENTBUILDER_ISOLATE="Isolate"
|
COM_COMPONENTBUILDER_ISOLATE="Isolate"
|
||||||
COM_COMPONENTBUILDER_IS_BEING_COMPILED="is being compiled"
|
COM_COMPONENTBUILDER_IS_BEING_COMPILED="is being compiled"
|
||||||
@ -5690,14 +5712,66 @@ COM_COMPONENTBUILDER_IS_NOT_ONLY_FOUR_LISTRADIOCHECKBOXES="Is Not (only 4 list/r
|
|||||||
COM_COMPONENTBUILDER_IS_ONLY_FOUR_LISTRADIOCHECKBOXES="Is (only 4 list/radio/checkboxes)"
|
COM_COMPONENTBUILDER_IS_ONLY_FOUR_LISTRADIOCHECKBOXES="Is (only 4 list/radio/checkboxes)"
|
||||||
COM_COMPONENTBUILDER_ITEM_CODE="Item Code"
|
COM_COMPONENTBUILDER_ITEM_CODE="Item Code"
|
||||||
COM_COMPONENTBUILDER_IWEBSITEI_BSB="<i>Website:</i> <b>%s</b>"
|
COM_COMPONENTBUILDER_IWEBSITEI_BSB="<i>Website:</i> <b>%s</b>"
|
||||||
|
COM_COMPONENTBUILDER_JCB_BE_THE_CHANGE="JCB: Be the Change"
|
||||||
|
COM_COMPONENTBUILDER_JCB_BUILDS_A_BETTER_FUTURE="JCB Builds a Better Future"
|
||||||
COM_COMPONENTBUILDER_JCB_COMMUNITY="JCB Community"
|
COM_COMPONENTBUILDER_JCB_COMMUNITY="JCB Community"
|
||||||
COM_COMPONENTBUILDER_JCB_COMMUNITY_PACKAGES="JCB Community Packages"
|
COM_COMPONENTBUILDER_JCB_COMMUNITY_PACKAGES="JCB Community Packages"
|
||||||
COM_COMPONENTBUILDER_JCB_COMMUNITY_SNIPPETS="JCB Community Snippets"
|
COM_COMPONENTBUILDER_JCB_COMMUNITY_SNIPPETS="JCB Community Snippets"
|
||||||
|
COM_COMPONENTBUILDER_JCB_CONTRIBUTES_TO_OPENSOURCE="JCB Contributes to Open-Source"
|
||||||
|
COM_COMPONENTBUILDER_JCB_EMPOWERS_PHP_DEVELOPERS="JCB Empowers PHP Developers"
|
||||||
|
COM_COMPONENTBUILDER_JCB_ENABLES_PHP_DEVELOPMENT="JCB Enables PHP Development"
|
||||||
|
COM_COMPONENTBUILDER_JCB_ENHANCES_PRODUCTIVITY="JCB Enhances Productivity"
|
||||||
|
COM_COMPONENTBUILDER_JCB_FOSTERS_A_STRONG_COMMUNITY="JCB Fosters a Strong Community"
|
||||||
|
COM_COMPONENTBUILDER_JCB_HELPS_GROW_BUSINESSES="JCB Helps Grow Businesses"
|
||||||
|
COM_COMPONENTBUILDER_JCB_HELPS_PHP_THRIVE="JCB Helps PHP Thrive"
|
||||||
|
COM_COMPONENTBUILDER_JCB_IMPROVES_PHPS_REPUTATION="JCB Improves PHP's Reputation"
|
||||||
|
COM_COMPONENTBUILDER_JCB_IMPROVES_PHP_DEVELOPMENT="JCB Improves PHP Development"
|
||||||
|
COM_COMPONENTBUILDER_JCB_IMPROVES_USER_EXPERIENCE="JCB Improves User Experience"
|
||||||
|
COM_COMPONENTBUILDER_JCB_IMPROVES_WORKFLOW="JCB Improves Workflow"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INCREASES_DEVELOPMENT_SPEED="JCB Increases Development Speed"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INCREASES_REVENUE="JCB Increases Revenue"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INCREASES_USER_SATISFACTION="JCB Increases User Satisfaction"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INVESTS_IN_PHPS_SUCCESS="JCB Invests in PHP's Success"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INVEST_IN_CHANGE="JCB: Invest in Change"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INVEST_IN_IMPACT="JCB: Invest in Impact"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INVEST_IN_PROGRESS="JCB: Invest in Progress"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INVEST_IN_PROGRESS_TODAY="JCB: Invest in Progress Today"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INVEST_IN_SUCCESS="JCB: Invest in Success"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INVEST_IN_THE_COMMUNITY="JCB: Invest in the Community"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INVEST_IN_THE_FUTURE="JCB: Invest in the Future"
|
||||||
|
COM_COMPONENTBUILDER_JCB_INVEST_IN_YOUR_FUTURE="JCB: Invest in Your Future"
|
||||||
|
COM_COMPONENTBUILDER_JCB_IS_NOT_YET_FULLY_READY_FOR_JOOMLA_FOUR_BUT_WITH_YOUR_HELP_WE_CAN_MAKE_THE_TRANSITION_FASTER_SHOW_YOUR_SUPPORT_BY_MAKING_A_DONATION_TODAY_AND_HELP_US_BRING_JCB_TO_THE_NEXT_LEVELBR_BR_BYOUR_COMPONENT_WILL_STILL_ONLY_BE_COMPILED_FOR_JOOMLA_THREEB="JCB is not yet fully ready for Joomla 4, but with your help, we can make the transition faster. Show your support by making a donation today and help us bring JCB to the next level.<br /><br /><b>Your component will still only be compiled for Joomla 3</b>"
|
||||||
|
COM_COMPONENTBUILDER_JCB_LOWERS_DEVELOPMENT_STRESS="JCB Lowers Development Stress"
|
||||||
|
COM_COMPONENTBUILDER_JCB_NEEDS_YOU="JCB Needs You"
|
||||||
|
COM_COMPONENTBUILDER_JCB_OFFERS_A_STRONGER_SOLUTION="JCB Offers a Stronger Solution"
|
||||||
|
COM_COMPONENTBUILDER_JCB_OFFERS_MORE_FEATURES="JCB Offers More Features"
|
||||||
COM_COMPONENTBUILDER_JCB_PACKAGE_IMPORT="JCB Package Import"
|
COM_COMPONENTBUILDER_JCB_PACKAGE_IMPORT="JCB Package Import"
|
||||||
COM_COMPONENTBUILDER_JCB_PACKAGE_INFO_PATH_DOES_NOT_WORK_WE_ADVICE_YOU_BNOT_TO_CONTINUEB_WITH_THE_IMPORT_OF_THE_SELECTED_PACKAGE="JCB Package info path does not work, we advice you <b>not to continue</b> with the import of the selected package!"
|
COM_COMPONENTBUILDER_JCB_PACKAGE_INFO_PATH_DOES_NOT_WORK_WE_ADVICE_YOU_BNOT_TO_CONTINUEB_WITH_THE_IMPORT_OF_THE_SELECTED_PACKAGE="JCB Package info path does not work, we advice you <b>not to continue</b> with the import of the selected package!"
|
||||||
|
COM_COMPONENTBUILDER_JCB_PROMOTES_EFFICIENCY="JCB Promotes Efficiency"
|
||||||
|
COM_COMPONENTBUILDER_JCB_PROMOTES_GOODWILL="JCB Promotes Goodwill"
|
||||||
|
COM_COMPONENTBUILDER_JCB_PROVIDES_A_BETTER_EXPERIENCE="JCB Provides a Better Experience"
|
||||||
COM_COMPONENTBUILDER_JCB_PRO_BOARD="JCB Pro board"
|
COM_COMPONENTBUILDER_JCB_PRO_BOARD="JCB Pro board"
|
||||||
COM_COMPONENTBUILDER_JCB_PRO_NOTICE_BOARD="JCB Pro Notice Board"
|
COM_COMPONENTBUILDER_JCB_PRO_NOTICE_BOARD="JCB Pro Notice Board"
|
||||||
|
COM_COMPONENTBUILDER_JCB_REDUCES_DEVELOPMENT_COSTS="JCB Reduces Development Costs"
|
||||||
|
COM_COMPONENTBUILDER_JCB_SAVES_TIME="JCB Saves Time"
|
||||||
|
COM_COMPONENTBUILDER_JCB_STREAMLINES_DEVELOPMENT="JCB Streamlines Development"
|
||||||
|
COM_COMPONENTBUILDER_JCB_SUPPORTS_A_THRIVING_ECOSYSTEM="JCB Supports a Thriving Ecosystem"
|
||||||
|
COM_COMPONENTBUILDER_JCB_SUPPORTS_A_WORTHY_CAUSE="JCB Supports a Worthy Cause"
|
||||||
|
COM_COMPONENTBUILDER_JCB_SUPPORTS_OPENSOURCE="JCB Supports Open-Source"
|
||||||
|
COM_COMPONENTBUILDER_JCB_SUPPORTS_PHP_INNOVATION="JCB Supports PHP Innovation"
|
||||||
|
COM_COMPONENTBUILDER_JCB_SUPPORTS_THE_PHP_COMMUNITY="JCB Supports the PHP Community"
|
||||||
|
COM_COMPONENTBUILDER_JCB_YOUR_CONTRIBUTION_MATTERS="JCB: Your Contribution Matters"
|
||||||
|
COM_COMPONENTBUILDER_JCB_YOUR_DONATION_MATTERS="JCB: Your Donation Matters"
|
||||||
|
COM_COMPONENTBUILDER_JCB_YOUR_SUPPORT_COUNTS="JCB: Your Support Counts"
|
||||||
|
COM_COMPONENTBUILDER_JCB_YOUR_SUPPORT_IS_KEY="JCB: Your Support is Key"
|
||||||
|
COM_COMPONENTBUILDER_JCB_YOUR_SUPPORT_MATTERS="JCB: Your Support Matters"
|
||||||
|
COM_COMPONENTBUILDER_JCB_YOUR_SUPPORT_MATTERS_MOST="JCB: Your Support Matters Most"
|
||||||
COM_COMPONENTBUILDER_JOIN_FIELDS="Join Fields"
|
COM_COMPONENTBUILDER_JOIN_FIELDS="Join Fields"
|
||||||
|
COM_COMPONENTBUILDER_JOIN_JCBS_COMMUNITY="Join JCB's Community"
|
||||||
|
COM_COMPONENTBUILDER_JOIN_JCBS_JOURNEY="Join JCB's Journey"
|
||||||
|
COM_COMPONENTBUILDER_JOIN_JCBS_MISSION="Join JCB's Mission"
|
||||||
|
COM_COMPONENTBUILDER_JOIN_JCBS_SUCCESS="Join JCB's Success"
|
||||||
|
COM_COMPONENTBUILDER_JOIN_JCBS_VISION="Join JCB's Vision"
|
||||||
COM_COMPONENTBUILDER_JOIN_TYPE="Join Type"
|
COM_COMPONENTBUILDER_JOIN_TYPE="Join Type"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT="Joomla Component"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT="Joomla Component"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS="Joomla Components"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENTS="Joomla Components"
|
||||||
@ -5808,6 +5882,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMPSQL_LABEL="MySQL"
|
|||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_DESCRIPTION="To build the component fields and back-end views dynamically using a mySQL table file."
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_DESCRIPTION="To build the component fields and back-end views dynamically using a mySQL table file."
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_LABEL="Build Backend-views Dynamically"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDCOMP_LABEL="Build Backend-views Dynamically"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDER_BACKUP_KEY="Joomla Component Builder - Backup Key"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDER_BACKUP_KEY="Joomla Component Builder - Backup Key"
|
||||||
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDER_JCB_IS_A_CRUCIAL_TOOL_FOR_PHP_PROGRAMMERS_WHO_USE_JOOMLA_TO_EARN_A_LIVING_BY_MAKING_A_BFINANCIAL_DONATIONB_YOU_CAN_SUPPORT_THE_GROWTH_AND_CONTINUITY_OF_THIS_VITAL_RESOURCE_AND_ENSURE_ITS_RELEVANCE_FOR_YEARS_TO_COME_YOUR_CONTRIBUTION_NO_MATTER_HOW_BIG_OR_SMALL_WILL_BE_DEEPLY_APPRECIATED_BY_THE_PROJECTS_TEAM_AND_THE_WIDER_COMMUNITY="Joomla Component Builder (JCB) is a crucial tool for PHP programmers who use Joomla to earn a living. By making a <b>financial donation</b>, you can support the growth and continuity of this vital resource and ensure its relevance for years to come. Your contribution, no matter how big or small, will be deeply appreciated by the project's team and the wider community."
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLEAR_TMP_BUTTON_ACCESS="Joomla Component Clear tmp Button Access"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLEAR_TMP_BUTTON_ACCESS="Joomla Component Clear tmp Button Access"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLEAR_TMP_BUTTON_ACCESS_DESC="Allows the users in this group to access the clear tmp button."
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLEAR_TMP_BUTTON_ACCESS_DESC="Allows the users in this group to access the clear tmp button."
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS="Joomla Component Clone Button Access"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CLONE_BUTTON_ACCESS="Joomla Component Clone Button Access"
|
||||||
@ -6153,6 +6228,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_WHMCS_URL_MESSAGE="Error! Please add websi
|
|||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES="Yes"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_YES="Yes"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ZIP="ZIP"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_ZIP="ZIP"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_FIELDS="Joomla fields"
|
COM_COMPONENTBUILDER_JOOMLA_FIELDS="Joomla fields"
|
||||||
|
COM_COMPONENTBUILDER_JOOMLA_FOUR="Joomla 4"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_MODULE="Joomla Module"
|
COM_COMPONENTBUILDER_JOOMLA_MODULE="Joomla Module"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_MODULES="Joomla Modules"
|
COM_COMPONENTBUILDER_JOOMLA_MODULES="Joomla Modules"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_MODULES_ACCESS="Joomla Modules Access"
|
COM_COMPONENTBUILDER_JOOMLA_MODULES_ACCESS="Joomla Modules Access"
|
||||||
@ -7094,6 +7170,8 @@ COM_COMPONENTBUILDER_JOOMLA_PLUGIN_VERSION_DESC="A count of the number of times
|
|||||||
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_VERSION_LABEL="Version"
|
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_VERSION_LABEL="Version"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES="Yes"
|
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_YES="Yes"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ZIP="ZIP"
|
COM_COMPONENTBUILDER_JOOMLA_PLUGIN_ZIP="ZIP"
|
||||||
|
COM_COMPONENTBUILDER_JOOMLA_THREE="Joomla 3"
|
||||||
|
COM_COMPONENTBUILDER_JOOMLA_VERSION="Joomla Version"
|
||||||
COM_COMPONENTBUILDER_JUST_GET_ALL_SNIPPETS="Just Get All Snippets"
|
COM_COMPONENTBUILDER_JUST_GET_ALL_SNIPPETS="Just Get All Snippets"
|
||||||
COM_COMPONENTBUILDER_KEEP_HISTORY="Keep History"
|
COM_COMPONENTBUILDER_KEEP_HISTORY="Keep History"
|
||||||
COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS="- Keep Original Access -"
|
COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS="- Keep Original Access -"
|
||||||
@ -7764,6 +7842,8 @@ COM_COMPONENTBUILDER_LOCAL="Local"
|
|||||||
COM_COMPONENTBUILDER_LOCAL_GET="Local (get)"
|
COM_COMPONENTBUILDER_LOCAL_GET="Local (get)"
|
||||||
COM_COMPONENTBUILDER_LOCAL_SNIPPET="Local snippet"
|
COM_COMPONENTBUILDER_LOCAL_SNIPPET="Local snippet"
|
||||||
COM_COMPONENTBUILDER_MAIN_MENU="Main Menu"
|
COM_COMPONENTBUILDER_MAIN_MENU="Main Menu"
|
||||||
|
COM_COMPONENTBUILDER_MAKE_A_DIFFERENCE_WITH_JCB="Make a Difference with JCB"
|
||||||
|
COM_COMPONENTBUILDER_MANUAL="Manual"
|
||||||
COM_COMPONENTBUILDER_MATCH_BEHAVIOUR="Match Behaviour"
|
COM_COMPONENTBUILDER_MATCH_BEHAVIOUR="Match Behaviour"
|
||||||
COM_COMPONENTBUILDER_MATCH_CASE="Match Case"
|
COM_COMPONENTBUILDER_MATCH_CASE="Match Case"
|
||||||
COM_COMPONENTBUILDER_MATCH_FIELD="Match Field"
|
COM_COMPONENTBUILDER_MATCH_FIELD="Match Field"
|
||||||
@ -8069,7 +8149,7 @@ COM_COMPONENTBUILDER_POWER_LICENSING="Licensing"
|
|||||||
COM_COMPONENTBUILDER_POWER_LICENSING_TEMPLATE_HINT="/**
|
COM_COMPONENTBUILDER_POWER_LICENSING_TEMPLATE_HINT="/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 3rd September, 2015
|
* @created 4th September, 2015
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||||
@ -8221,6 +8301,7 @@ COM_COMPONENTBUILDER_SELECT_AN_OPTION="Select an option"
|
|||||||
COM_COMPONENTBUILDER_SELECT_A_PROPERTY="Select a property"
|
COM_COMPONENTBUILDER_SELECT_A_PROPERTY="Select a property"
|
||||||
COM_COMPONENTBUILDER_SELECT_A_SITE_VIEW="Select a site view"
|
COM_COMPONENTBUILDER_SELECT_A_SITE_VIEW="Select a site view"
|
||||||
COM_COMPONENTBUILDER_SELECT_A_SNIPPET="select a snippet"
|
COM_COMPONENTBUILDER_SELECT_A_SNIPPET="select a snippet"
|
||||||
|
COM_COMPONENTBUILDER_SELECT_BUILD_DATE="Select Build Date"
|
||||||
COM_COMPONENTBUILDER_SELECT_COMPONENT="Select Component"
|
COM_COMPONENTBUILDER_SELECT_COMPONENT="Select Component"
|
||||||
COM_COMPONENTBUILDER_SELECT_EXTENSION="Select Extension"
|
COM_COMPONENTBUILDER_SELECT_EXTENSION="Select Extension"
|
||||||
COM_COMPONENTBUILDER_SELECT_THE_COMPONENT_TO_COMPILE="Select the component to compile"
|
COM_COMPONENTBUILDER_SELECT_THE_COMPONENT_TO_COMPILE="Select the component to compile"
|
||||||
@ -8379,6 +8460,7 @@ COM_COMPONENTBUILDER_SHOULD_THIS_FIELD_BE_ESCAPED_IN_THE_LIST_VIEW="Should this
|
|||||||
COM_COMPONENTBUILDER_SHOULD_WE_BE_SHOWING_MORE_ELABORATE_INFORMATION_DURING_IMPORT="Should we be showing more elaborate information during import."
|
COM_COMPONENTBUILDER_SHOULD_WE_BE_SHOWING_MORE_ELABORATE_INFORMATION_DURING_IMPORT="Should we be showing more elaborate information during import."
|
||||||
COM_COMPONENTBUILDER_SHOULD_WE_FORCE_THE_UPDATE_OF_ALL_LOCAL_DATA_EVEN_IF_IT_IS_NEWER_THEN_THE_DATA_BEING_IMPORTED="Should we force the update of all local data, even if it is newer then the data being imported."
|
COM_COMPONENTBUILDER_SHOULD_WE_FORCE_THE_UPDATE_OF_ALL_LOCAL_DATA_EVEN_IF_IT_IS_NEWER_THEN_THE_DATA_BEING_IMPORTED="Should we force the update of all local data, even if it is newer then the data being imported."
|
||||||
COM_COMPONENTBUILDER_SHOULD_WE_MERGE_THE_COMPONENTS_WITH_SIMILAR_LOCAL_COMPONENTS_MERGING_THE_COMPONENTS_USE_TO_BE_THE_DEFAULT_BEHAVIOUR_BUT_NOW_YOU_CAN_IMPORT_THE_COMPONENTS_AND_FORCE_IT_NOT_TO_MERGE_THE_FOLLOWING_AREAS_VALIDATION_RULE_FIELDTYPE_SNIPPET_LANGUAGE_LANGUAGE_TRANSLATION_JOOMLA_PLUGIN_GROUP_CLASS_EXTENDS_CLASS_PROPERTY_CLASS_METHOD_BMUST_AND_WILL_STILLB_MERGE_EVEN_OF_YOUR_SELECTION_IS_BNOB_BECAUSE_OF_THE_SINGULAR_NATURE_OF_THOSE_AREAS="Should we merge the component/s with similar local component/s. Merging the component/s use to be the default behaviour, but now you can import the component/s and force it not to merge. The following areas (validation_rule, fieldtype, snippet, language, language_translation, joomla_plugin_group, class_extends, class_property, class_method) <b>must and will still</b> merge even of your selection is <b>No</b>, because of the singular nature of those areas."
|
COM_COMPONENTBUILDER_SHOULD_WE_MERGE_THE_COMPONENTS_WITH_SIMILAR_LOCAL_COMPONENTS_MERGING_THE_COMPONENTS_USE_TO_BE_THE_DEFAULT_BEHAVIOUR_BUT_NOW_YOU_CAN_IMPORT_THE_COMPONENTS_AND_FORCE_IT_NOT_TO_MERGE_THE_FOLLOWING_AREAS_VALIDATION_RULE_FIELDTYPE_SNIPPET_LANGUAGE_LANGUAGE_TRANSLATION_JOOMLA_PLUGIN_GROUP_CLASS_EXTENDS_CLASS_PROPERTY_CLASS_METHOD_BMUST_AND_WILL_STILLB_MERGE_EVEN_OF_YOUR_SELECTION_IS_BNOB_BECAUSE_OF_THE_SINGULAR_NATURE_OF_THOSE_AREAS="Should we merge the component/s with similar local component/s. Merging the component/s use to be the default behaviour, but now you can import the component/s and force it not to merge. The following areas (validation_rule, fieldtype, snippet, language, language_translation, joomla_plugin_group, class_extends, class_property, class_method) <b>must and will still</b> merge even of your selection is <b>No</b>, because of the singular nature of those areas."
|
||||||
|
COM_COMPONENTBUILDER_SHOW_ADVANCED_OPTIONS="Show Advanced Options"
|
||||||
COM_COMPONENTBUILDER_SHOW_IN_ALL_LIST_VIEWS="Show in All List Views"
|
COM_COMPONENTBUILDER_SHOW_IN_ALL_LIST_VIEWS="Show in All List Views"
|
||||||
COM_COMPONENTBUILDER_SHOW_ONLY="Show Only"
|
COM_COMPONENTBUILDER_SHOW_ONLY="Show Only"
|
||||||
COM_COMPONENTBUILDER_SHOW_TOGGLE="Show Toggle"
|
COM_COMPONENTBUILDER_SHOW_TOGGLE="Show Toggle"
|
||||||
@ -9042,6 +9124,8 @@ COM_COMPONENTBUILDER_SUBMENU_TEMPLATES="Templates"
|
|||||||
COM_COMPONENTBUILDER_SUBMENU_VALIDATION_RULES="Validation Rules"
|
COM_COMPONENTBUILDER_SUBMENU_VALIDATION_RULES="Validation Rules"
|
||||||
COM_COMPONENTBUILDER_SUCCESS_THE_SNIPPET_WAS_SAVED="Success! The snippet was saved."
|
COM_COMPONENTBUILDER_SUCCESS_THE_SNIPPET_WAS_SAVED="Success! The snippet was saved."
|
||||||
COM_COMPONENTBUILDER_SUCCESS_THE_SNIPPET_WAS_SAVED_BUT_THE_MODIFIED_DATE_COULD_NOT_BE_ADJUSTED_BR_BR_BTHIS_MEANS_THE_SNIPPETS_WILL_CONTINUE_TO_APPEAR_OUT_OF_DATEB="Success! The snippet was saved. But the modified date could not be adjusted. <br /><br /><b>This means the snippets will continue to appear out of date.</b>"
|
COM_COMPONENTBUILDER_SUCCESS_THE_SNIPPET_WAS_SAVED_BUT_THE_MODIFIED_DATE_COULD_NOT_BE_ADJUSTED_BR_BR_BTHIS_MEANS_THE_SNIPPETS_WILL_CONTINUE_TO_APPEAR_OUT_OF_DATEB="Success! The snippet was saved. But the modified date could not be adjusted. <br /><br /><b>This means the snippets will continue to appear out of date.</b>"
|
||||||
|
COM_COMPONENTBUILDER_SUPPORT_JCB_TODAY="Support JCB Today"
|
||||||
|
COM_COMPONENTBUILDER_SUPPORT_JOOMLA_COMPONENT_BUILDER_JCB_WITH_A_BFINANCIAL_DONATIONB_TO_SHOW_GRATITUDE_FOR_THE_TIME_AND_EFFORT_SAVED_IN_YOUR_DEVELOPMENT_PROCESS_YOUR_CONTRIBUTION_NO_MATTER_THE_SIZE_WILL_BE_APPRECIATED_BY_THE_PROJECTS_TEAM_AND_THE_WIDER_COMMUNITY_HELP_ENSURE_THE_GROWTH_AND_RELEVANCE_OF_THIS_ESSENTIAL_TOOL="Support Joomla Component Builder (JCB) with a <b>financial donation</b> to show gratitude for the time and effort saved in your development process. Your contribution, no matter the size, will be appreciated by the project's team and the wider community. Help ensure the growth and relevance of this essential tool."
|
||||||
COM_COMPONENTBUILDER_SZDEQZDMVSMHBTRWFIFTYTSQFLVVXJTMTHREEJTWOIXM="%szdEQzdmVsMHBtRW50T%sQFlvVXJTM3J2IXM="
|
COM_COMPONENTBUILDER_SZDEQZDMVSMHBTRWFIFTYTSQFLVVXJTMTHREEJTWOIXM="%szdEQzdmVsMHBtRW50T%sQFlvVXJTM3J2IXM="
|
||||||
COM_COMPONENTBUILDER_SZIP_COULD_NOT_BE_INSTALLED="%s.zip could not be installed!"
|
COM_COMPONENTBUILDER_SZIP_COULD_NOT_BE_INSTALLED="%s.zip could not be installed!"
|
||||||
COM_COMPONENTBUILDER_SZIP_WAS_REMOVED_THE_FROM_TMP_FOLDER_DURING_INSTALLATION="%s.zip was removed the from tmp folder during installation!"
|
COM_COMPONENTBUILDER_SZIP_WAS_REMOVED_THE_FROM_TMP_FOLDER_DURING_INSTALLATION="%s.zip was removed the from tmp folder during installation!"
|
||||||
@ -9198,6 +9282,7 @@ COM_COMPONENTBUILDER_THE_BNONE_DBB_OPTION_WILL_REMOVE_THIS_FIELD_FROM_BEING_SAVE
|
|||||||
COM_COMPONENTBUILDER_THE_BONLY_IN_ADMIN_LIST_VIEWB_OPTION_WILL_ONLY_ADD_THIS_FIELD_TO_THE_ADMIN_LIST_VIEW_NOT_TO_ANY_LINKED_VIEWS="The <b>Only in Admin List View</b> option will only Add this field to the admin list view, not to any linked views."
|
COM_COMPONENTBUILDER_THE_BONLY_IN_ADMIN_LIST_VIEWB_OPTION_WILL_ONLY_ADD_THIS_FIELD_TO_THE_ADMIN_LIST_VIEW_NOT_TO_ANY_LINKED_VIEWS="The <b>Only in Admin List View</b> option will only Add this field to the admin list view, not to any linked views."
|
||||||
COM_COMPONENTBUILDER_THE_BONLY_IN_LINKED_LIST_VIEWSB_OPTION_WILL_ONLY_ADD_THIS_FIELD_TO_THE_LINKED_LIST_VIEW_IF_THIS_VIEW_GETS_LINKED_TO_OTHER_VIEW_NOT_TO_THIS_ADMIN_LIST_VIEW="The <b>Only in Linked List Views</b> option will only Add this field to the linked list view, if this view gets linked to other view, not to this admin list view."
|
COM_COMPONENTBUILDER_THE_BONLY_IN_LINKED_LIST_VIEWSB_OPTION_WILL_ONLY_ADD_THIS_FIELD_TO_THE_LINKED_LIST_VIEW_IF_THIS_VIEW_GETS_LINKED_TO_OTHER_VIEW_NOT_TO_THIS_ADMIN_LIST_VIEW="The <b>Only in Linked List Views</b> option will only Add this field to the linked list view, if this view gets linked to other view, not to this admin list view."
|
||||||
COM_COMPONENTBUILDER_THE_BPHPSECLIBNETSFTPB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESVDM_IOVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>phpseclib\NET\SFTP</b> library\class is not available! This library\class should have been added to your <b>libraries/vdm_io/vendor</b> folder. Please contact your system administrator for more info"
|
COM_COMPONENTBUILDER_THE_BPHPSECLIBNETSFTPB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESVDM_IOVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>phpseclib\NET\SFTP</b> library\class is not available! This library\class should have been added to your <b>libraries/vdm_io/vendor</b> folder. Please contact your system administrator for more info"
|
||||||
|
COM_COMPONENTBUILDER_THE_BSB_BSB_IS_NOT_AVAILABLE_IN_YOUR_COMPONENT_PLEASE_INSURE_TO_ONLY_USED_S_FOR_A_DYNAMIC_DASHBOARD_THAT_ARE_STILL_LINKED_TO_YOUR_COMPONENT="The <b>%s</b> (<b>%s</b>) is not available in your component! Please insure to only used %s, for a dynamic dashboard, that are still linked to your component."
|
||||||
COM_COMPONENTBUILDER_THE_BSB_CUT_SEQUENCE_FAILED_ON_THE_RETURNED_EXTERNAL_CODESTRING_AS_MORE_LINES_HAS_TO_BE_CUT_THEN_WAS_FOUND_IN_THE_CODESTRING_WE_HAVE_COMPLETELY_REMOVED_THE_CODE_PLEASE_CHECK_THIS_CODESTRING="The <b>%s</b> cut sequence failed on the returned external code/string as more lines has to be cut then was found in the code/string. We have completely removed the code. Please check this code/string!"
|
COM_COMPONENTBUILDER_THE_BSB_CUT_SEQUENCE_FAILED_ON_THE_RETURNED_EXTERNAL_CODESTRING_AS_MORE_LINES_HAS_TO_BE_CUT_THEN_WAS_FOUND_IN_THE_CODESTRING_WE_HAVE_COMPLETELY_REMOVED_THE_CODE_PLEASE_CHECK_THIS_CODESTRING="The <b>%s</b> cut sequence failed on the returned external code/string as more lines has to be cut then was found in the code/string. We have completely removed the code. Please check this code/string!"
|
||||||
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_PATH_ON_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> path on <b>%s</b> server."
|
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_PATH_ON_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> path on <b>%s</b> server."
|
||||||
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> server."
|
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> server."
|
||||||
@ -9205,11 +9290,13 @@ COM_COMPONENTBUILDER_THE_BSB_IS_NOT_A_VALID_URLPATH="The <b>%s</b> is not a vali
|
|||||||
COM_COMPONENTBUILDER_THE_BSB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESPHPSECLIBVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>%s</b> library\class is not available! This library\class should have been added to your <b>libraries/phpseclib/vendor</b> folder. Please contact your system administrator for more info!"
|
COM_COMPONENTBUILDER_THE_BSB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESPHPSECLIBVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>%s</b> library\class is not available! This library\class should have been added to your <b>libraries/phpseclib/vendor</b> folder. Please contact your system administrator for more info!"
|
||||||
COM_COMPONENTBUILDER_THE_BSB_LIBRARY_CAN_NOT_BE_DELETED_OR_THINGS_WILL_BREAK="The <b>%s</b> library can not be deleted, or things will break."
|
COM_COMPONENTBUILDER_THE_BSB_LIBRARY_CAN_NOT_BE_DELETED_OR_THINGS_WILL_BREAK="The <b>%s</b> library can not be deleted, or things will break."
|
||||||
COM_COMPONENTBUILDER_THE_BSB_RETURNED_AN_INVALID_STRING="The <b>%s</b> returned an invalid string!"
|
COM_COMPONENTBUILDER_THE_BSB_RETURNED_AN_INVALID_STRING="The <b>%s</b> returned an invalid string!"
|
||||||
|
COM_COMPONENTBUILDER_THE_BSB_VALUE_FOR_THE_DYNAMIC_DASHBOARD_IS_INVALID="The <b>%s</b> value for the dynamic dashboard is invalid."
|
||||||
COM_COMPONENTBUILDER_THE_BSHOW_IN_ALL_LIST_VIEWSB_OPTION_WILL_ADD_THIS_FIELD_TO_ALL_LIST_VIEWS_ADMIN_AMP_LINKED="The <b>Show in All List Views</b> option will Add this field to all list views, admin & linked."
|
COM_COMPONENTBUILDER_THE_BSHOW_IN_ALL_LIST_VIEWSB_OPTION_WILL_ADD_THIS_FIELD_TO_ALL_LIST_VIEWS_ADMIN_AMP_LINKED="The <b>Show in All List Views</b> option will Add this field to all list views, admin & linked."
|
||||||
COM_COMPONENTBUILDER_THE_BSINGLE_FILTERB_SELECTION_OPTION_ALLOWS_THE_USER_TO_SELECT_JUST_ONE_VALUE_IN_THIS_FILTERFIELD="The <b>single filter</b> selection option allows the user to select just one value in this filter/field."
|
COM_COMPONENTBUILDER_THE_BSINGLE_FILTERB_SELECTION_OPTION_ALLOWS_THE_USER_TO_SELECT_JUST_ONE_VALUE_IN_THIS_FILTERFIELD="The <b>single filter</b> selection option allows the user to select just one value in this filter/field."
|
||||||
COM_COMPONENTBUILDER_THE_CODESTRING_FROM_BSB_HAS_BEEN_ADDED_FOR_THE_BFIRST_TIMEB_PLEASE_IINVESTIGATEI_TO_ENSURE_THE_CORRECT_CODESTRING_WAS_USED_BSHOULD_YOU_NOT_KNOW_ABOUT_THIS_NEW_EXTERNAL_CODESTRING_BEING_ADDED_THEN_THIS_IS_A_SERIOUS_DANGER_AND_REQUIRES_IMMEDIATE_ATTENTIONB_DO_NOT_IGNORE_THIS_WARNING_AS_IT_WILL_ONLY_SHOW_BONCEB="The code/string from <b>%s</b> has been added for the <b>first time</b>. Please <i>investigate</i> to ensure the correct code/string was used! <b>Should you not know about this NEW external code/string being added, then this is a serious danger! and requires immediate attention!</b> Do not ignore this warning as it will only show <b>once</b>."
|
COM_COMPONENTBUILDER_THE_CODESTRING_FROM_BSB_HAS_BEEN_ADDED_FOR_THE_BFIRST_TIMEB_PLEASE_IINVESTIGATEI_TO_ENSURE_THE_CORRECT_CODESTRING_WAS_USED_BSHOULD_YOU_NOT_KNOW_ABOUT_THIS_NEW_EXTERNAL_CODESTRING_BEING_ADDED_THEN_THIS_IS_A_SERIOUS_DANGER_AND_REQUIRES_IMMEDIATE_ATTENTIONB_DO_NOT_IGNORE_THIS_WARNING_AS_IT_WILL_ONLY_SHOW_BONCEB="The code/string from <b>%s</b> has been added for the <b>first time</b>. Please <i>investigate</i> to ensure the correct code/string was used! <b>Should you not know about this NEW external code/string being added, then this is a serious danger! and requires immediate attention!</b> Do not ignore this warning as it will only show <b>once</b>."
|
||||||
COM_COMPONENTBUILDER_THE_CODESTRING_FROM_BSB_HAS_BEEN_BCHANGEDB_SINCE_THE_LAST_COMPILATION_PLEASE_INVESTIGATE_TO_ENSURE_THE_CHANGES_ARE_SAFE_BSHOULD_YOU_NOT_EXPECT_THIS_CHANGE_TO_THE_EXTERNAL_CODESTRING_BEING_ADDED_THEN_THIS_IS_A_SERIOUS_ISSUE_AND_REQUIRES_IMMEDIATE_ATTENTIONB_DO_NOT_IGNORE_THIS_WARNING_AS_IT_WILL_ONLY_SHOW_BONCEB="The code/string from <b>%s</b> has been <b>changed</b> since the last compilation. Please investigate to ensure the changes are safe! <b>Should you not expect this change to the external code/string being added, then this is a serious issue! and requires immediate attention!</b> Do not ignore this warning as it will only show <b>once</b>."
|
COM_COMPONENTBUILDER_THE_CODESTRING_FROM_BSB_HAS_BEEN_BCHANGEDB_SINCE_THE_LAST_COMPILATION_PLEASE_INVESTIGATE_TO_ENSURE_THE_CHANGES_ARE_SAFE_BSHOULD_YOU_NOT_EXPECT_THIS_CHANGE_TO_THE_EXTERNAL_CODESTRING_BEING_ADDED_THEN_THIS_IS_A_SERIOUS_ISSUE_AND_REQUIRES_IMMEDIATE_ATTENTIONB_DO_NOT_IGNORE_THIS_WARNING_AS_IT_WILL_ONLY_SHOW_BONCEB="The code/string from <b>%s</b> has been <b>changed</b> since the last compilation. Please investigate to ensure the changes are safe! <b>Should you not expect this change to the external code/string being added, then this is a serious issue! and requires immediate attention!</b> Do not ignore this warning as it will only show <b>once</b>."
|
||||||
COM_COMPONENTBUILDER_THE_COMPONENT="The Component"
|
COM_COMPONENTBUILDER_THE_COMPONENT="The Component"
|
||||||
|
COM_COMPONENTBUILDER_THE_COMPONENTS_LAST_MODIFIED_DATE_WILL_BE_USED="The component's last modified date will be used."
|
||||||
COM_COMPONENTBUILDER_THE_COMPONENT_ADMIN_VIEWS="The component admin views"
|
COM_COMPONENTBUILDER_THE_COMPONENT_ADMIN_VIEWS="The component admin views"
|
||||||
COM_COMPONENTBUILDER_THE_COMPONENT_CONFIG="The component config"
|
COM_COMPONENTBUILDER_THE_COMPONENT_CONFIG="The component config"
|
||||||
COM_COMPONENTBUILDER_THE_COMPONENT_CUSTOM_ADMIN_MENUS="The component custom admin menus"
|
COM_COMPONENTBUILDER_THE_COMPONENT_CUSTOM_ADMIN_MENUS="The component custom admin menus"
|
||||||
@ -9223,6 +9310,9 @@ COM_COMPONENTBUILDER_THE_COMPONENT_PLUGINS="The component plugins"
|
|||||||
COM_COMPONENTBUILDER_THE_COMPONENT_SITE_VIEWS="The component site views"
|
COM_COMPONENTBUILDER_THE_COMPONENT_SITE_VIEWS="The component site views"
|
||||||
COM_COMPONENTBUILDER_THE_COMPONENT_UPDATES="The component updates"
|
COM_COMPONENTBUILDER_THE_COMPONENT_UPDATES="The component updates"
|
||||||
COM_COMPONENTBUILDER_THE_COMPONENT_WITH_ALL_LINKED_ADMIN_VIEWS_FIELDS_LINKED_TO_ADMIN_VIEWS_CUSTOM_ADMIN_VIEWS_SITE_VIEWS_TEMPLATES_AND_LAYOUTS_WERE_CLONED_SUCCESSFUL="The Component with all linked admin views, fields linked to admin views, custom admin views, site views, templates and layouts were cloned successful!"
|
COM_COMPONENTBUILDER_THE_COMPONENT_WITH_ALL_LINKED_ADMIN_VIEWS_FIELDS_LINKED_TO_ADMIN_VIEWS_CUSTOM_ADMIN_VIEWS_SITE_VIEWS_TEMPLATES_AND_LAYOUTS_WERE_CLONED_SUCCESSFUL="The Component with all linked admin views, fields linked to admin views, custom admin views, site views, templates and layouts were cloned successful!"
|
||||||
|
COM_COMPONENTBUILDER_THE_CONTINUED_SUPPORT_OF_INDIVIDUALS_LIKE_YOU_HAS_ALLOWED_JOOMLA_COMPONENT_BUILDER_JCB_TO_THRIVE_FOR_SEVEN_YEARS_SINCE_GOING_PUBLIC_YOUR_CONTRIBUTIONS_HAVE_BEEN_CRUCIAL_IN_ENSURING_THE_GROWTH_AND_RELEVANCE_OF_THIS_VITAL_TOOL_FOR_PHP_PROGRAMMERS_THANK_YOU_FOR_YOUR_SUPPORT_AND_FOR_BEING_A_PART_OF_JCBS_JOURNEY="The continued support of individuals like you has allowed Joomla Component Builder (JCB) to thrive for seven years since going public. Your contributions have been crucial in ensuring the growth and relevance of this vital tool for PHP programmers. Thank you for your support and for being a part of JCB's journey."
|
||||||
|
COM_COMPONENTBUILDER_THE_FILE_PATH_BSB_DOES_NOT_EXIST_AND_WAS_NOT_ADDED="The file path: <b>%s</b> does not exist, and was not added!"
|
||||||
|
COM_COMPONENTBUILDER_THE_FOLDER_PATH_BSB_DOES_NOT_EXIST_AND_WAS_NOT_ADDED="The folder path: <b>%s</b> does not exist, and was not added!"
|
||||||
COM_COMPONENTBUILDER_THE_FTP_CONNECTION_FOR_BSB_COULD_NOT_BE_MADE_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP connection for <b>%s</b> could not be made. Please check your signature details!"
|
COM_COMPONENTBUILDER_THE_FTP_CONNECTION_FOR_BSB_COULD_NOT_BE_MADE_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP connection for <b>%s</b> could not be made. Please check your signature details!"
|
||||||
COM_COMPONENTBUILDER_THE_FTP_SIGNATURE_FOR_BSB_WAS_NOT_WELL_FORMED_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP signature for <b>%s</b> was not well formed, please check your signature details!"
|
COM_COMPONENTBUILDER_THE_FTP_SIGNATURE_FOR_BSB_WAS_NOT_WELL_FORMED_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP signature for <b>%s</b> was not well formed, please check your signature details!"
|
||||||
COM_COMPONENTBUILDER_THE_KEY_OF_THIS_PACKAGE="The key of this package."
|
COM_COMPONENTBUILDER_THE_KEY_OF_THIS_PACKAGE="The key of this package."
|
||||||
@ -9274,6 +9364,7 @@ COM_COMPONENTBUILDER_TRASHED_ITEMS="Trashed items"
|
|||||||
COM_COMPONENTBUILDER_TRASH_AREA="Trash Area"
|
COM_COMPONENTBUILDER_TRASH_AREA="Trash Area"
|
||||||
COM_COMPONENTBUILDER_TUTORIAL_ON_FORKING_JCB_SNIPPETS_BSB="Tutorial on forking JCB snippets: <b>%s</b>"
|
COM_COMPONENTBUILDER_TUTORIAL_ON_FORKING_JCB_SNIPPETS_BSB="Tutorial on forking JCB snippets: <b>%s</b>"
|
||||||
COM_COMPONENTBUILDER_TUTORIAL_ON_MAKING_A_PULL_REQUEST_BSB="Tutorial on making a pull request: <b>%s</b>"
|
COM_COMPONENTBUILDER_TUTORIAL_ON_MAKING_A_PULL_REQUEST_BSB="Tutorial on making a pull request: <b>%s</b>"
|
||||||
|
COM_COMPONENTBUILDER_TWO_SPACES="2 Spaces"
|
||||||
COM_COMPONENTBUILDER_TYPE="Type"
|
COM_COMPONENTBUILDER_TYPE="Type"
|
||||||
COM_COMPONENTBUILDER_TYPE_ADMIN_CUSTOM_TABS="Admin Custom Tabs"
|
COM_COMPONENTBUILDER_TYPE_ADMIN_CUSTOM_TABS="Admin Custom Tabs"
|
||||||
COM_COMPONENTBUILDER_TYPE_ADMIN_FIELDS="Admin Fields"
|
COM_COMPONENTBUILDER_TYPE_ADMIN_FIELDS="Admin Fields"
|
||||||
@ -9444,20 +9535,29 @@ COM_COMPONENTBUILDER_WEBSITE="Website"
|
|||||||
COM_COMPONENTBUILDER_WEBSITE_OF_S="Website of %s"
|
COM_COMPONENTBUILDER_WEBSITE_OF_S="Website of %s"
|
||||||
COM_COMPONENTBUILDER_WEBSITE_S="Website: %s"
|
COM_COMPONENTBUILDER_WEBSITE_S="Website: %s"
|
||||||
COM_COMPONENTBUILDER_WE_DID_NOT_CHECK_THE_SNIPPET_IT_SELF_TO_SEE_IF_IT_CHANGED_WE_ONLY_WORK_ON_DATES="We did not check the snippet it self, to see if it changed. We only work on dates."
|
COM_COMPONENTBUILDER_WE_DID_NOT_CHECK_THE_SNIPPET_IT_SELF_TO_SEE_IF_IT_CHANGED_WE_ONLY_WORK_ON_DATES="We did not check the snippet it self, to see if it changed. We only work on dates."
|
||||||
|
COM_COMPONENTBUILDER_WE_EXTEND_OUR_GRATITUDE_TO_ALL_THOSE_WHO_SUPPORT_JOOMLA_COMPONENT_BUILDER_JCB_WHETHER_AS_A_HOBBY_OR_AS_A_PART_OF_THEIR_BUSINESS_YOUR_CONTRIBUTIONS_WHETHER_FINANCIAL_OR_IN_THE_FORM_OF_ACTIVE_INVOLVEMENT_HAVE_HAD_A_SIGNIFICANT_IMPACT_ON_ENSURING_THE_GROWTH_AND_RELEVANCE_OF_THIS_VITAL_TOOL_FOR_PHP_PROGRAMMERS_WE_HIGHLY_VALUE_THE_DEDICATION_OF_HOBBYISTS_AND_THE_COMMITMENT_OF_COMPANIES_WHO_SUPPORT_JCB_AS_THEY_HAVE_ALLOWED_THE_PROJECT_TO_CONTINUE_ITS_DEVELOPMENT_AND_MAINTENANCE_PROVIDING_VALUABLE_RESOURCES_FOR_THE_COMMUNITY_WE_ARE_GRATEFUL_FOR_YOUR_CONTRIBUTIONS_NO_MATTER_HOW_SMALL_AND_THANK_YOU_FOR_BEING_A_PART_OF_THE_POSITIVE_IMPACT_THAT_JCB_HAS_ON_THE_PHP_PROGRAMMING_COMMUNITY="We extend our gratitude to all those who support Joomla Component Builder (JCB), whether as a hobby or as a part of their business. Your contributions, whether financial or in the form of active involvement, have had a significant impact on ensuring the growth and relevance of this vital tool for PHP programmers. We highly value the dedication of hobbyists and the commitment of companies who support JCB, as they have allowed the project to continue its development and maintenance, providing valuable resources for the community. We are grateful for your contributions, no matter how small, and thank you for being a part of the positive impact that JCB has on the PHP programming community."
|
||||||
|
COM_COMPONENTBUILDER_WE_EXTEND_OUR_HEARTFELT_APPRECIATION_TO_THOSE_WHO_HAVE_SUPPORTED_THE_JOOMLA_COMPONENT_BUILDER_JCB_PROJECT_OVER_THE_YEARS_YOUR_CONTRIBUTIONS_NO_MATTER_HOW_BIG_OR_SMALL_HAVE_BEEN_INSTRUMENTAL_IN_ENSURING_ITS_GROWTH_AND_RELEVANCE_AS_A_VITAL_TOOL_FOR_PHP_PROGRAMMERS_SEVEN_YEARS_AFTER_GOING_PUBLIC_JCB_IS_STILL_HERE_TODAY_BECAUSE_OF_THE_SUPPORT_OF_INDIVIDUALS_LIKE_YOU_WHO_BELIEVE_IN_THE_IMPORTANCE_OF_THIS_OPENSOURCE_PROJECT_YOUR_GENEROSITY_HAS_ALLOWED_THE_PROJECT_TO_CONTINUE_ITS_DEVELOPMENT_AND_MAINTENANCE_PROVIDING_VALUABLE_RESOURCES_FOR_THE_COMMUNITY_THANK_YOU_FOR_YOUR_UNWAVERING_SUPPORT_AND_FOR_BEING_A_PART_OF_JCBS_JOURNEY="We extend our heartfelt appreciation to those who have supported the Joomla Component Builder (JCB) project over the years. Your contributions, no matter how big or small, have been instrumental in ensuring its growth and relevance as a vital tool for PHP programmers. Seven years after going public, JCB is still here today because of the support of individuals like you who believe in the importance of this open-source project. Your generosity has allowed the project to continue its development and maintenance, providing valuable resources for the community. Thank you for your unwavering support and for being a part of JCB's journey."
|
||||||
|
COM_COMPONENTBUILDER_WE_EXTEND_OUR_SINCERE_APPRECIATION_TO_THE_COMPANIES_WHO_USE_JOOMLA_COMPONENT_BUILDER_JCB_AND_SUPPORT_THE_PROJECT_YOUR_CONTRIBUTIONS_WHETHER_FINANCIAL_OR_IN_THE_FORM_OF_ACTIVE_INVOLVEMENT_HAVE_BEEN_INSTRUMENTAL_IN_ENSURING_THE_GROWTH_AND_RELEVANCE_OF_THIS_VITAL_TOOL_FOR_PHP_PROGRAMMERS_YOUR_SUPPORT_HAS_ALLOWED_JCB_TO_CONTINUE_ITS_DEVELOPMENT_AND_MAINTENANCE_PROVIDING_VALUABLE_RESOURCES_FOR_THE_COMMUNITY_THANK_YOU_FOR_YOUR_UNWAVERING_COMMITMENT_TO_THE_PROJECT_AND_FOR_BEING_A_PART_OF_JCBS_JOURNEY="We extend our sincere appreciation to the companies who use Joomla Component Builder (JCB) and support the project. Your contributions, whether financial or in the form of active involvement, have been instrumental in ensuring the growth and relevance of this vital tool for PHP programmers. Your support has allowed JCB to continue its development and maintenance, providing valuable resources for the community. Thank you for your unwavering commitment to the project and for being a part of JCB's journey."
|
||||||
COM_COMPONENTBUILDER_WE_FAILED_TO_MOVE_BSB="We failed to move <b>%s</b>!"
|
COM_COMPONENTBUILDER_WE_FAILED_TO_MOVE_BSB="We failed to move <b>%s</b>!"
|
||||||
COM_COMPONENTBUILDER_WE_FOUND_DYNAMIC_CODE_BALL_IN_ONE_LINEB_AND_IGNORED_IT_PLEASE_REVIEW_S_FOR_MORE_DETAILS="We found dynamic code <b>all in one line</b>, and ignored it! Please review (%s) for more details!"
|
COM_COMPONENTBUILDER_WE_FOUND_DYNAMIC_CODE_BALL_IN_ONE_LINEB_AND_IGNORED_IT_PLEASE_REVIEW_S_FOR_MORE_DETAILS="We found dynamic code <b>all in one line</b>, and ignored it! Please review (%s) for more details!"
|
||||||
COM_COMPONENTBUILDER_WE_FOUND_SOME_INSTANCES_IN_S="We found some instances in %s"
|
COM_COMPONENTBUILDER_WE_FOUND_SOME_INSTANCES_IN_S="We found some instances in %s"
|
||||||
COM_COMPONENTBUILDER_WE_SUCCESSFULLY_MOVED_BSB="We successfully moved <b>%s</b>!"
|
COM_COMPONENTBUILDER_WE_SUCCESSFULLY_MOVED_BSB="We successfully moved <b>%s</b>!"
|
||||||
|
COM_COMPONENTBUILDER_WHAT_VERSION_OF_JOOMLA_WOULD_YOU_LIKE_TO_TARGET="What version of Joomla would you like to target."
|
||||||
|
COM_COMPONENTBUILDER_WHICH_TYPE_OF_INDENTATION_WOULD_YOU_LIKE_TO_USE_PLEASE_NOTE_THAT_THIS_DOES_NOT_YET_IMPACT_THE_STATIC_TEMPLATES="Which type of indentation would you like to use? Please note that this does not yet impact the static templates."
|
||||||
COM_COMPONENTBUILDER_WHILE_WE_DOWNLOAD_ALL_TWENTY_SIX_COMPILER_GIF_ANIMATIONS_RANDOMLY_USED_IN_THE_COMPILER_GUI_DURING_COMPILATION="While we download all 26 compiler GIF animations randomly used in the compiler GUI during compilation"
|
COM_COMPONENTBUILDER_WHILE_WE_DOWNLOAD_ALL_TWENTY_SIX_COMPILER_GIF_ANIMATIONS_RANDOMLY_USED_IN_THE_COMPILER_GUI_DURING_COMPILATION="While we download all 26 compiler GIF animations randomly used in the compiler GUI during compilation"
|
||||||
COM_COMPONENTBUILDER_WHOLE_WORD="Whole Word"
|
COM_COMPONENTBUILDER_WHOLE_WORD="Whole Word"
|
||||||
COM_COMPONENTBUILDER_WIKI="Wiki"
|
COM_COMPONENTBUILDER_WIKI="Wiki"
|
||||||
COM_COMPONENTBUILDER_WITH="with"
|
COM_COMPONENTBUILDER_WITH="with"
|
||||||
|
COM_COMPONENTBUILDER_WITHOUT_SUFFICIENT_SUPPORT_THE_FUTURE_OF_JOOMLA_COMPONENT_BUILDER_JCB_IS_IN_JEOPARDY_AS_A_VITAL_TOOL_FOR_PHP_PROGRAMMERS_IT_IS_CRUCIAL_TO_ENSURE_ITS_CONTINUED_DEVELOPMENT_AND_MAINTENANCE_BY_MAKING_A_BFINANCIAL_CONTRIBUTIONB_NO_MATTER_HOW_SMALL_YOU_ARE_HELPING_TO_SAFEGUARD_THE_FUTURE_OF_THIS_OPENSOURCE_PROJECT_NEGLECTING_TO_SUPPORT_JCB_COULD_RESULT_IN_ITS_DECLINE_AND_LOSS_AS_A_RESOURCE_FOR_THE_COMMUNITY="Without sufficient support, the future of Joomla Component Builder (JCB) is in jeopardy. As a vital tool for PHP programmers, it is crucial to ensure its continued development and maintenance. By making a <b>financial contribution</b>, no matter how small, you are helping to safeguard the future of this open-source project. Neglecting to support JCB could result in its decline and loss as a resource for the community."
|
||||||
COM_COMPONENTBUILDER_WOULD_YOU_LIKE_TO_DO_A_REVERSE_SEARCH="Would you like to do a reverse search?"
|
COM_COMPONENTBUILDER_WOULD_YOU_LIKE_TO_DO_A_REVERSE_SEARCH="Would you like to do a reverse search?"
|
||||||
|
COM_COMPONENTBUILDER_WOULD_YOU_LIKE_TO_OVERRIDE_THE_BUILD_DATE="Would you like to override the build date."
|
||||||
COM_COMPONENTBUILDER_WOULD_YOU_LIKE_TO_REPEAT_THE_SAME_SEARCH="Would you like to repeat the same search?"
|
COM_COMPONENTBUILDER_WOULD_YOU_LIKE_TO_REPEAT_THE_SAME_SEARCH="Would you like to repeat the same search?"
|
||||||
|
COM_COMPONENTBUILDER_WOULD_YOU_LIKE_TO_SEE_THE_ADVANCED_COMPILER_OPTIONS="Would you like to see the advanced compiler options?"
|
||||||
COM_COMPONENTBUILDER_YES="Yes"
|
COM_COMPONENTBUILDER_YES="Yes"
|
||||||
COM_COMPONENTBUILDER_YES_UPDATE_ALL="Yes! Update ALL"
|
COM_COMPONENTBUILDER_YES_UPDATE_ALL="Yes! Update ALL"
|
||||||
COM_COMPONENTBUILDER_YOUR_ARE_ABOUT_TO_UPDATE_BALLB_VALUES_THAT_CAN_BE_FOUND_IN_THE_DATABASE="Your are about to update <b>ALL</b> values that can be found in the database."
|
COM_COMPONENTBUILDER_YOUR_ARE_ABOUT_TO_UPDATE_BALLB_VALUES_THAT_CAN_BE_FOUND_IN_THE_DATABASE="Your are about to update <b>ALL</b> values that can be found in the database."
|
||||||
COM_COMPONENTBUILDER_YOUR_ARE_ABOUT_TO_UPDATE_ROW="Your are about to update row"
|
COM_COMPONENTBUILDER_YOUR_ARE_ABOUT_TO_UPDATE_ROW="Your are about to update row"
|
||||||
|
COM_COMPONENTBUILDER_YOUR_COMPONENT_WILL_BE_COMPILED_TO_WORK_IN_JOOMLA_THREE="Your component will be compiled to work in Joomla 3"
|
||||||
COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_ONE_HUNDRED_AND_TWENTY_EIGHT_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEY="Your data is encrypted with a AES 128 bit encryption using the above 32 character key."
|
COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_ONE_HUNDRED_AND_TWENTY_EIGHT_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEY="Your data is encrypted with a AES 128 bit encryption using the above 32 character key."
|
||||||
COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_ONE_HUNDRED_AND_TWENTY_EIGHT_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEY_WITHOUT_THIS_KEY_IT_WILL_TAKE_THE_CURRENT_TECHNOLOGY_WITH_A_BRUTE_FORCE_ATTACK_METHOD_MORE_THEN_A_HREFHTTPRANDOMIZECOMHOWLONGTOHACKPASS_TARGET_BLANK_TITLEHOW_LONG_TO_HACK_PASSSEVEN_HUNDRED_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZEROA_YEARS_TO_CRACK_THEORETICALLY_UNLESS_THEY_HAVE_THIS_KEY_ABOVE_SO_DO_KEEP_IT_SAFE="Your data is encrypted with a AES 128 bit encryption using the above 32 character key. Without this key it will take the current technology with a brute force attack method more then <a href="http://random-ize.com/how-long-to-hack-pass/" target="_blank" title="How long to hack pass">700 000 000 000 000 000 000 000 000 000 000</a> years to crack theoretically. Unless they have this key above, so do keep it safe."
|
COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_ONE_HUNDRED_AND_TWENTY_EIGHT_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEY_WITHOUT_THIS_KEY_IT_WILL_TAKE_THE_CURRENT_TECHNOLOGY_WITH_A_BRUTE_FORCE_ATTACK_METHOD_MORE_THEN_A_HREFHTTPRANDOMIZECOMHOWLONGTOHACKPASS_TARGET_BLANK_TITLEHOW_LONG_TO_HACK_PASSSEVEN_HUNDRED_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZERO_ZEROA_YEARS_TO_CRACK_THEORETICALLY_UNLESS_THEY_HAVE_THIS_KEY_ABOVE_SO_DO_KEEP_IT_SAFE="Your data is encrypted with a AES 128 bit encryption using the above 32 character key. Without this key it will take the current technology with a brute force attack method more then <a href="http://random-ize.com/how-long-to-hack-pass/" target="_blank" title="How long to hack pass">700 000 000 000 000 000 000 000 000 000 000</a> years to crack theoretically. Unless they have this key above, so do keep it safe."
|
||||||
COM_COMPONENTBUILDER_YOU_ARE_CURRENTLY_VIEWING_THE_TRASHED_ITEMS="You are currently viewing the trashed items."
|
COM_COMPONENTBUILDER_YOU_ARE_CURRENTLY_VIEWING_THE_TRASHED_ITEMS="You are currently viewing the trashed items."
|
||||||
|
116
admin/layouts/jcbsupportmessage.php
Normal file
116
admin/layouts/jcbsupportmessage.php
Normal file
@ -0,0 +1,116 @@
|
|||||||
|
<?php
|
||||||
|
/**
|
||||||
|
* @package Joomla.Component.Builder
|
||||||
|
*
|
||||||
|
* @created 30th April, 2015
|
||||||
|
* @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
|
||||||
|
*/
|
||||||
|
|
||||||
|
// No direct access to this file
|
||||||
|
defined('JPATH_BASE') or die('Restricted access');
|
||||||
|
|
||||||
|
// Different support requests/appreciation
|
||||||
|
$support = [
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JOOMLA_COMPONENT_BUILDER_JCB_IS_A_CRUCIAL_TOOL_FOR_PHP_PROGRAMMERS_WHO_USE_JOOMLA_TO_EARN_A_LIVING_BY_MAKING_A_BFINANCIAL_DONATIONB_YOU_CAN_SUPPORT_THE_GROWTH_AND_CONTINUITY_OF_THIS_VITAL_RESOURCE_AND_ENSURE_ITS_RELEVANCE_FOR_YEARS_TO_COME_YOUR_CONTRIBUTION_NO_MATTER_HOW_BIG_OR_SMALL_WILL_BE_DEEPLY_APPRECIATED_BY_THE_PROJECTS_TEAM_AND_THE_WIDER_COMMUNITY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_THE_CONTINUED_SUPPORT_OF_INDIVIDUALS_LIKE_YOU_HAS_ALLOWED_JOOMLA_COMPONENT_BUILDER_JCB_TO_THRIVE_FOR_SEVEN_YEARS_SINCE_GOING_PUBLIC_YOUR_CONTRIBUTIONS_HAVE_BEEN_CRUCIAL_IN_ENSURING_THE_GROWTH_AND_RELEVANCE_OF_THIS_VITAL_TOOL_FOR_PHP_PROGRAMMERS_THANK_YOU_FOR_YOUR_SUPPORT_AND_FOR_BEING_A_PART_OF_JCBS_JOURNEY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_SUPPORT_JOOMLA_COMPONENT_BUILDER_JCB_WITH_A_BFINANCIAL_DONATIONB_TO_SHOW_GRATITUDE_FOR_THE_TIME_AND_EFFORT_SAVED_IN_YOUR_DEVELOPMENT_PROCESS_YOUR_CONTRIBUTION_NO_MATTER_THE_SIZE_WILL_BE_APPRECIATED_BY_THE_PROJECTS_TEAM_AND_THE_WIDER_COMMUNITY_HELP_ENSURE_THE_GROWTH_AND_RELEVANCE_OF_THIS_ESSENTIAL_TOOL"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_INVEST_IN_THE_FUTURE_OF_JOOMLA_COMPONENT_BUILDER_JCB_BY_MAKING_A_BFINANCIAL_DONATIONB_SUPPORT_THE_NECESSARY_DEVELOPMENT_AND_MAINTENANCE_OF_THIS_OPENSOURCE_PROJECT_ENSURING_ITS_CONTINUED_GROWTH_AND_RELEVANCE_FOR_THE_COMMUNITY_YOUR_CONTRIBUTION_WILL_HELP_SECURE_THE_FUTURE_OF_THIS_VITAL_TOOL_FOR_PHP_PROGRAMMERS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_INVEST_IN_THE_FUTURE_OF_JOOMLA_COMPONENT_BUILDER_JCB_BY_MAKING_A_BFINANCIAL_CONTRIBUTIONB_NO_MATTER_HOW_SMALL_THE_CONTINUAL_SUPPORT_OF_ALL_THOSE_USING_THE_TOOL_WILL_BE_MORE_THAN_ENOUGH_TO_ENSURE_ITS_CONTINUED_GROWTH_AND_RELEVANCE_BY_INVESTING_IN_THIS_OPENSOURCE_PROJECT_YOU_ARE_SECURING_ITS_FUTURE_AS_A_VITAL_TOOL_FOR_PHP_PROGRAMMERS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_WE_EXTEND_OUR_GRATITUDE_TO_ALL_THOSE_WHO_SUPPORT_JOOMLA_COMPONENT_BUILDER_JCB_WHETHER_AS_A_HOBBY_OR_AS_A_PART_OF_THEIR_BUSINESS_YOUR_CONTRIBUTIONS_WHETHER_FINANCIAL_OR_IN_THE_FORM_OF_ACTIVE_INVOLVEMENT_HAVE_HAD_A_SIGNIFICANT_IMPACT_ON_ENSURING_THE_GROWTH_AND_RELEVANCE_OF_THIS_VITAL_TOOL_FOR_PHP_PROGRAMMERS_WE_HIGHLY_VALUE_THE_DEDICATION_OF_HOBBYISTS_AND_THE_COMMITMENT_OF_COMPANIES_WHO_SUPPORT_JCB_AS_THEY_HAVE_ALLOWED_THE_PROJECT_TO_CONTINUE_ITS_DEVELOPMENT_AND_MAINTENANCE_PROVIDING_VALUABLE_RESOURCES_FOR_THE_COMMUNITY_WE_ARE_GRATEFUL_FOR_YOUR_CONTRIBUTIONS_NO_MATTER_HOW_SMALL_AND_THANK_YOU_FOR_BEING_A_PART_OF_THE_POSITIVE_IMPACT_THAT_JCB_HAS_ON_THE_PHP_PROGRAMMING_COMMUNITY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_WITHOUT_SUFFICIENT_SUPPORT_THE_FUTURE_OF_JOOMLA_COMPONENT_BUILDER_JCB_IS_IN_JEOPARDY_AS_A_VITAL_TOOL_FOR_PHP_PROGRAMMERS_IT_IS_CRUCIAL_TO_ENSURE_ITS_CONTINUED_DEVELOPMENT_AND_MAINTENANCE_BY_MAKING_A_BFINANCIAL_CONTRIBUTIONB_NO_MATTER_HOW_SMALL_YOU_ARE_HELPING_TO_SAFEGUARD_THE_FUTURE_OF_THIS_OPENSOURCE_PROJECT_NEGLECTING_TO_SUPPORT_JCB_COULD_RESULT_IN_ITS_DECLINE_AND_LOSS_AS_A_RESOURCE_FOR_THE_COMMUNITY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_WE_EXTEND_OUR_HEARTFELT_APPRECIATION_TO_THOSE_WHO_HAVE_SUPPORTED_THE_JOOMLA_COMPONENT_BUILDER_JCB_PROJECT_OVER_THE_YEARS_YOUR_CONTRIBUTIONS_NO_MATTER_HOW_BIG_OR_SMALL_HAVE_BEEN_INSTRUMENTAL_IN_ENSURING_ITS_GROWTH_AND_RELEVANCE_AS_A_VITAL_TOOL_FOR_PHP_PROGRAMMERS_SEVEN_YEARS_AFTER_GOING_PUBLIC_JCB_IS_STILL_HERE_TODAY_BECAUSE_OF_THE_SUPPORT_OF_INDIVIDUALS_LIKE_YOU_WHO_BELIEVE_IN_THE_IMPORTANCE_OF_THIS_OPENSOURCE_PROJECT_YOUR_GENEROSITY_HAS_ALLOWED_THE_PROJECT_TO_CONTINUE_ITS_DEVELOPMENT_AND_MAINTENANCE_PROVIDING_VALUABLE_RESOURCES_FOR_THE_COMMUNITY_THANK_YOU_FOR_YOUR_UNWAVERING_SUPPORT_AND_FOR_BEING_A_PART_OF_JCBS_JOURNEY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_WE_EXTEND_OUR_SINCERE_APPRECIATION_TO_THE_COMPANIES_WHO_USE_JOOMLA_COMPONENT_BUILDER_JCB_AND_SUPPORT_THE_PROJECT_YOUR_CONTRIBUTIONS_WHETHER_FINANCIAL_OR_IN_THE_FORM_OF_ACTIVE_INVOLVEMENT_HAVE_BEEN_INSTRUMENTAL_IN_ENSURING_THE_GROWTH_AND_RELEVANCE_OF_THIS_VITAL_TOOL_FOR_PHP_PROGRAMMERS_YOUR_SUPPORT_HAS_ALLOWED_JCB_TO_CONTINUE_ITS_DEVELOPMENT_AND_MAINTENANCE_PROVIDING_VALUABLE_RESOURCES_FOR_THE_COMMUNITY_THANK_YOU_FOR_YOUR_UNWAVERING_COMMITMENT_TO_THE_PROJECT_AND_FOR_BEING_A_PART_OF_JCBS_JOURNEY")
|
||||||
|
];
|
||||||
|
|
||||||
|
// build the support message
|
||||||
|
$support_message = $support[random_int(0, 8)];
|
||||||
|
|
||||||
|
// the button titles
|
||||||
|
$titles = [
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_ENABLES_PHP_DEVELOPMENT"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_SUPPORTS_OPENSOURCE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_SAVES_TIME"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_IMPROVES_WORKFLOW"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_EMPOWERS_PHP_DEVELOPERS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_STREAMLINES_DEVELOPMENT"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_PROMOTES_EFFICIENCY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_ENHANCES_PRODUCTIVITY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INCREASES_REVENUE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_REDUCES_DEVELOPMENT_COSTS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_SUPPORTS_THE_PHP_COMMUNITY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_IMPROVES_PHP_DEVELOPMENT"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_HELPS_GROW_BUSINESSES"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_SUPPORTS_PHP_INNOVATION"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_CONTRIBUTES_TO_OPENSOURCE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_PROVIDES_A_BETTER_EXPERIENCE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_OFFERS_MORE_FEATURES"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INCREASES_DEVELOPMENT_SPEED"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_IMPROVES_USER_EXPERIENCE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INCREASES_USER_SATISFACTION"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_LOWERS_DEVELOPMENT_STRESS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_PROMOTES_GOODWILL"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_OFFERS_A_STRONGER_SOLUTION"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_SUPPORTS_A_WORTHY_CAUSE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_BUILDS_A_BETTER_FUTURE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_FOSTERS_A_STRONG_COMMUNITY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_IMPROVES_PHPS_REPUTATION"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_SUPPORTS_A_THRIVING_ECOSYSTEM"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_HELPS_PHP_THRIVE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INVESTS_IN_PHPS_SUCCESS")
|
||||||
|
];
|
||||||
|
|
||||||
|
// build the support button
|
||||||
|
$support_titles = $titles[random_int(0, 29)];
|
||||||
|
|
||||||
|
// the button names
|
||||||
|
$button_names = [
|
||||||
|
JText::_("COM_COMPONENTBUILDER_DONATE_TO_JCB"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_SUPPORT_JCB_TODAY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_CONTRIBUTE_TO_JCB"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_INVEST_IN_JCB"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_GIVE_TO_JCB"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JOIN_JCBS_MISSION"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_HELP_JCB_GROW"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_BE_A_PART_OF_JCB"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_NEEDS_YOU"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_BECOME_A_CONTRIBUTOR"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_EMPOWER_JCB"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INVEST_IN_IMPACT"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JOIN_JCBS_COMMUNITY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_MAKE_A_DIFFERENCE_WITH_JCB"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_YOUR_SUPPORT_MATTERS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INVEST_IN_THE_FUTURE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JOIN_JCBS_JOURNEY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_YOUR_SUPPORT_COUNTS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_EMPOWER_THE_FUTURE_WITH_JCB"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_YOUR_CONTRIBUTION_MATTERS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INVEST_IN_PROGRESS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JOIN_JCBS_VISION"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_ELEVATE_JCB_TODAY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INVEST_IN_CHANGE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_YOUR_DONATION_MATTERS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_BE_THE_CHANGE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JOIN_JCBS_SUCCESS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INVEST_IN_SUCCESS"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_YOUR_SUPPORT_IS_KEY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INVEST_IN_THE_COMMUNITY"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_YOUR_SUPPORT_MATTERS_MOST"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INVEST_IN_YOUR_FUTURE"),
|
||||||
|
JText::_("COM_COMPONENTBUILDER_JCB_INVEST_IN_PROGRESS_TODAY")
|
||||||
|
];
|
||||||
|
|
||||||
|
// build the support button
|
||||||
|
$support_button = $button_names[random_int(0, 32)];
|
||||||
|
|
||||||
|
?>
|
||||||
|
<?php echo $support_message; ?>
|
||||||
|
<br /><br />
|
||||||
|
<img src="https://opencollective.com/joomla-component-builder/tiers/badge.svg" />
|
||||||
|
<br /><br />
|
||||||
|
<a class="btn btn-mini btn-success" href="https://opencollective.com/joomla-component-builder/donate?interval=month&amount=20" title="<?php echo $support_titles; ?>" trage="_blank">
|
||||||
|
<?php echo $support_button; ?>
|
||||||
|
</a>
|
||||||
|
<br />
|
@ -14,8 +14,8 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
use Joomla\CMS\MVC\Model\ListModel;
|
use Joomla\CMS\MVC\Model\ListModel;
|
||||||
use Joomla\Utilities\ArrayHelper;
|
use Joomla\Utilities\ArrayHelper;
|
||||||
use Joomla\Registry\Registry;
|
|
||||||
use VDM\Gitea\Gitea;
|
use VDM\Gitea\Gitea;
|
||||||
|
use Joomla\Registry\Registry;
|
||||||
use VDM\Joomla\Componentbuilder\Search\Factory as SearchFactory;
|
use VDM\Joomla\Componentbuilder\Search\Factory as SearchFactory;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,8 +14,8 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
use Joomla\CMS\MVC\Model\ListModel;
|
use Joomla\CMS\MVC\Model\ListModel;
|
||||||
use Joomla\Utilities\ArrayHelper;
|
use Joomla\Utilities\ArrayHelper;
|
||||||
use Joomla\Registry\Registry;
|
|
||||||
use VDM\Gitea\Gitea;
|
use VDM\Gitea\Gitea;
|
||||||
|
use Joomla\Registry\Registry;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Componentbuilder List Model
|
* Componentbuilder List Model
|
||||||
|
@ -139,13 +139,8 @@ jQuery('<div id="compiling"></div>')
|
|||||||
<div id="compilerForm">
|
<div id="compilerForm">
|
||||||
<div>
|
<div>
|
||||||
<span class="notice" style="display:none; color:red;"><?php echo JText::_('COM_COMPONENTBUILDER_YOU_MUST_SELECT_A_COMPONENT'); ?></span><br />
|
<span class="notice" style="display:none; color:red;"><?php echo JText::_('COM_COMPONENTBUILDER_YOU_MUST_SELECT_A_COMPONENT'); ?></span><br />
|
||||||
<?php if ($this->Form): ?>
|
<?php if ($this->form): ?>
|
||||||
<?php foreach ($this->Form as $field): ?>
|
<?php echo $this->form->renderFieldset('builder'); ?>
|
||||||
<div class="control-group">
|
|
||||||
<div class="control-label"><?php echo $field->label; ?></div>
|
|
||||||
<div class="controls"><?php echo $field->input; ?></div>
|
|
||||||
</div>
|
|
||||||
<?php endforeach; ?>
|
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
@ -158,6 +153,7 @@ jQuery('<div id="compiling"></div>')
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="span7">
|
<div class="span7">
|
||||||
|
<div id="advance-details"><?php echo $this->form->renderFieldset('advanced'); ?></div>
|
||||||
<div id="component-details"><?php echo $selectNotice; ?></div>
|
<div id="component-details"><?php echo $selectNotice; ?></div>
|
||||||
<?php echo JLayoutHelper::render('jcbnoticeboardtabs', array('id' => 'noticeboard' , 'active' => $noticeboardOptions[array_rand($noticeboardOptions)])); ?>
|
<?php echo JLayoutHelper::render('jcbnoticeboardtabs', array('id' => 'noticeboard' , 'active' => $noticeboardOptions[array_rand($noticeboardOptions)])); ?>
|
||||||
</div>
|
</div>
|
||||||
|
@ -14,6 +14,7 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
use Joomla\CMS\MVC\View\HtmlView;
|
use Joomla\CMS\MVC\View\HtmlView;
|
||||||
use Joomla\CMS\Filesystem\File;
|
use Joomla\CMS\Filesystem\File;
|
||||||
|
use Joomla\CMS\Form\Form;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Componentbuilder Html View class for the Compiler
|
* Componentbuilder Html View class for the Compiler
|
||||||
@ -47,7 +48,7 @@ class ComponentbuilderViewCompiler extends HtmlView
|
|||||||
$this->Components = $this->get('Components');
|
$this->Components = $this->get('Components');
|
||||||
|
|
||||||
// get the needed form fields
|
// get the needed form fields
|
||||||
$this->Form = $this->getDynamicForm();
|
$this->form = $this->getDynamicForm();
|
||||||
|
|
||||||
// set the compiler artwork from global settings
|
// set the compiler artwork from global settings
|
||||||
$this->builder_gif_size = $this->params->get('builder_gif_size', '480-272');
|
$this->builder_gif_size = $this->params->get('builder_gif_size', '480-272');
|
||||||
@ -106,119 +107,378 @@ class ComponentbuilderViewCompiler extends HtmlView
|
|||||||
/**
|
/**
|
||||||
* Get the dynamic build form fields needed on the page
|
* Get the dynamic build form fields needed on the page
|
||||||
*
|
*
|
||||||
* @return array|null The array of form fields
|
* @return Form|null The form fields
|
||||||
*
|
*
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function getDynamicForm(): ?array
|
public function getDynamicForm(): ?Form
|
||||||
{
|
{
|
||||||
if(ComponentbuilderHelper::checkArray($this->Components))
|
if(ComponentbuilderHelper::checkArray($this->Components))
|
||||||
{
|
{
|
||||||
// start the form
|
// start the form
|
||||||
$form = array();
|
$form = new Form('Builder');
|
||||||
|
|
||||||
|
$form->load('<form
|
||||||
|
addrulepath="/administrator/components/com_componentbuilder/models/rules"
|
||||||
|
addfieldpath="/administrator/components/com_componentbuilder/models/fields">
|
||||||
|
<fieldset name="builder"></fieldset>
|
||||||
|
<fieldset name="advanced"></fieldset>
|
||||||
|
</form>');
|
||||||
|
|
||||||
// sales attributes
|
// sales attributes
|
||||||
$attributes = array(
|
$attributes = [
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'name' => 'backup',
|
'name' => 'backup',
|
||||||
'label' => 'COM_COMPONENTBUILDER_ADD_TO_BACKUP_FOLDER_AMP_SALES_SERVER_SMALLIF_SETSMALL',
|
'label' => 'COM_COMPONENTBUILDER_ADD_TO_BACKUP_FOLDER_AMP_SALES_SERVER_SMALLIF_SETSMALL',
|
||||||
'class' => 'btn-group btn-group-yesno',
|
'class' => 'btn-group btn-group-yesno',
|
||||||
'description' => 'COM_COMPONENTBUILDER_SHOULD_THE_ZIPPED_PACKAGE_OF_THE_COMPONENT_BE_MOVED_TO_THE_LOCAL_BACKUP_AND_REMOTE_SALES_SERVER_THIS_IS_ONLY_APPLICABLE_IF_THIS_COMPONENT_HAS_THOSE_VALUES_SET',
|
'description' => 'COM_COMPONENTBUILDER_SHOULD_THE_ZIPPED_PACKAGE_OF_THE_COMPONENT_BE_MOVED_TO_THE_LOCAL_BACKUP_AND_REMOTE_SALES_SERVER_THIS_IS_ONLY_APPLICABLE_IF_THIS_COMPONENT_HAS_THOSE_VALUES_SET',
|
||||||
'default' => '0');
|
'default' => '0'];
|
||||||
// set the sales options
|
// set the sales options
|
||||||
$options = array(
|
$options = [
|
||||||
'1' => 'COM_COMPONENTBUILDER_YES',
|
'1' => 'COM_COMPONENTBUILDER_YES',
|
||||||
'0' => 'COM_COMPONENTBUILDER_NO');
|
'0' => 'COM_COMPONENTBUILDER_NO'];
|
||||||
|
|
||||||
// add to form
|
// add to form
|
||||||
$form[] = ComponentbuilderHelper::getFieldObject($attributes, 0, $options);
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'builder');
|
||||||
|
}
|
||||||
|
|
||||||
// repository attributes
|
// repository attributes
|
||||||
$attributes = array(
|
$attributes = [
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'name' => 'repository',
|
'name' => 'repository',
|
||||||
'label' => 'COM_COMPONENTBUILDER_ADD_TO_REPOSITORY_FOLDER',
|
'label' => 'COM_COMPONENTBUILDER_ADD_TO_REPOSITORY_FOLDER',
|
||||||
'class' => 'btn-group btn-group-yesno',
|
'class' => 'btn-group btn-group-yesno',
|
||||||
'description' => 'COM_COMPONENTBUILDER_SHOULD_THE_COMPONENT_BE_MOVED_TO_YOUR_LOCAL_REPOSITORY_FOLDER',
|
'description' => 'COM_COMPONENTBUILDER_SHOULD_THE_COMPONENT_BE_MOVED_TO_YOUR_LOCAL_REPOSITORY_FOLDER',
|
||||||
'default' => '1');
|
'default' => '1'];
|
||||||
// start the repository options
|
// start the repository options
|
||||||
$options = array(
|
$options = [
|
||||||
'1' => 'COM_COMPONENTBUILDER_YES',
|
'1' => 'COM_COMPONENTBUILDER_YES',
|
||||||
'0' => 'COM_COMPONENTBUILDER_NO');
|
'0' => 'COM_COMPONENTBUILDER_NO'];
|
||||||
|
|
||||||
// add to form
|
// add to form
|
||||||
$form[] = ComponentbuilderHelper::getFieldObject($attributes, 1, $options);
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'builder');
|
||||||
|
}
|
||||||
|
|
||||||
// placeholders attributes
|
// placeholders attributes
|
||||||
$attributes = array(
|
$attributes = [
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'name' => 'add_placeholders',
|
'name' => 'add_placeholders',
|
||||||
'label' => 'COM_COMPONENTBUILDER_ADD_CUSTOM_CODE_PLACEHOLDERS',
|
'label' => 'COM_COMPONENTBUILDER_ADD_CUSTOM_CODE_PLACEHOLDERS',
|
||||||
'class' => 'btn-group btn-group-yesno',
|
'class' => 'btn-group btn-group-yesno',
|
||||||
'description' => 'COM_COMPONENTBUILDER_SHOULD_JCB_INSERT_THE_CUSTOM_CODE_PLACEHOLDERS_THIS_IS_ONLY_APPLICABLE_IF_THIS_COMPONENT_HAS_CUSTOM_CODE',
|
'description' => 'COM_COMPONENTBUILDER_SHOULD_JCB_INSERT_THE_CUSTOM_CODE_PLACEHOLDERS_THIS_IS_ONLY_APPLICABLE_IF_THIS_COMPONENT_HAS_CUSTOM_CODE',
|
||||||
'default' => '2');
|
'default' => '2'];
|
||||||
// start the placeholders options
|
// start the placeholders options
|
||||||
$options = array(
|
$options = [
|
||||||
'2' => 'COM_COMPONENTBUILDER_GLOBAL',
|
'2' => 'COM_COMPONENTBUILDER_GLOBAL',
|
||||||
'1' => 'COM_COMPONENTBUILDER_YES',
|
'1' => 'COM_COMPONENTBUILDER_YES',
|
||||||
'0' => 'COM_COMPONENTBUILDER_NO');
|
'0' => 'COM_COMPONENTBUILDER_NO'];
|
||||||
|
|
||||||
// add to form
|
// add to form
|
||||||
$form[] = ComponentbuilderHelper::getFieldObject($attributes, 2, $options);
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'builder');
|
||||||
|
}
|
||||||
|
|
||||||
// debuglinenr attributes
|
// debuglinenr attributes
|
||||||
$attributes = array(
|
$attributes = [
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'name' => 'debug_line_nr',
|
'name' => 'debug_line_nr',
|
||||||
'label' => 'COM_COMPONENTBUILDER_DEBUG_LINE_NUMBERS',
|
'label' => 'COM_COMPONENTBUILDER_DEBUG_LINE_NUMBERS',
|
||||||
'class' => 'btn-group btn-group-yesno',
|
'class' => 'btn-group btn-group-yesno',
|
||||||
'description' => 'COM_COMPONENTBUILDER_ADD_CORRESPONDING_LINE_NUMBERS_TO_THE_DYNAMIC_COMMENTS_SO_TO_SEE_WHERE_IN_THE_COMPILER_THE_LINES_OF_CODE_WAS_BUILD_THIS_WILL_HELP_IF_YOU_NEED_TO_GET_MORE_TECHNICAL_WITH_AN_ISSUE_ON_GITHUB_OR_EVEN_FOR_YOUR_OWN_DEBUGGING',
|
'description' => 'COM_COMPONENTBUILDER_ADD_CORRESPONDING_LINE_NUMBERS_TO_THE_DYNAMIC_COMMENTS_SO_TO_SEE_WHERE_IN_THE_COMPILER_THE_LINES_OF_CODE_WAS_BUILD_THIS_WILL_HELP_IF_YOU_NEED_TO_GET_MORE_TECHNICAL_WITH_AN_ISSUE_ON_GITHUB_OR_EVEN_FOR_YOUR_OWN_DEBUGGING',
|
||||||
'default' => '2');
|
'default' => '2'];
|
||||||
$options = array(
|
$options = [
|
||||||
'2' => 'COM_COMPONENTBUILDER_GLOBAL',
|
'2' => 'COM_COMPONENTBUILDER_GLOBAL',
|
||||||
'1' => 'COM_COMPONENTBUILDER_YES',
|
'1' => 'COM_COMPONENTBUILDER_YES',
|
||||||
'0' => 'COM_COMPONENTBUILDER_NO');
|
'0' => 'COM_COMPONENTBUILDER_NO'];
|
||||||
|
|
||||||
// add to form
|
// add to form
|
||||||
$form[] = ComponentbuilderHelper::getFieldObject($attributes, 2, $options);
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'builder');
|
||||||
|
}
|
||||||
|
|
||||||
// minify attributes
|
// minify attributes
|
||||||
$attributes = array(
|
$attributes = [
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'name' => 'minify',
|
'name' => 'minify',
|
||||||
'label' => 'COM_COMPONENTBUILDER_MINIFY_JAVASCRIPT',
|
'label' => 'COM_COMPONENTBUILDER_MINIFY_JAVASCRIPT',
|
||||||
'class' => 'btn-group btn-group-yesno',
|
'class' => 'btn-group btn-group-yesno',
|
||||||
'description' => 'COM_COMPONENTBUILDER_SHOULD_THE_JAVASCRIPT_BE_MINIFIED_IN_THE_COMPONENT',
|
'description' => 'COM_COMPONENTBUILDER_SHOULD_THE_JAVASCRIPT_BE_MINIFIED_IN_THE_COMPONENT',
|
||||||
'default' => '2');
|
'default' => '2'];
|
||||||
$options = array(
|
$options = [
|
||||||
'2' => 'COM_COMPONENTBUILDER_GLOBAL',
|
'2' => 'COM_COMPONENTBUILDER_GLOBAL',
|
||||||
'1' => 'COM_COMPONENTBUILDER_YES',
|
'1' => 'COM_COMPONENTBUILDER_YES',
|
||||||
'0' => 'COM_COMPONENTBUILDER_NO');
|
'0' => 'COM_COMPONENTBUILDER_NO'];
|
||||||
|
|
||||||
// add to form
|
// add to form
|
||||||
$form[] = ComponentbuilderHelper::getFieldObject($attributes, 2, $options);
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'builder');
|
||||||
|
}
|
||||||
|
|
||||||
// powers attributes
|
// powers attributes
|
||||||
$attributes = array(
|
$attributes = [
|
||||||
'type' => 'radio',
|
'type' => 'radio',
|
||||||
'name' => 'powers',
|
'name' => 'powers',
|
||||||
'label' => 'COM_COMPONENTBUILDER_ADD_POWERS',
|
'label' => 'COM_COMPONENTBUILDER_ADD_POWERS',
|
||||||
'class' => 'btn-group btn-group-yesno',
|
'class' => 'btn-group btn-group-yesno',
|
||||||
'description' => 'COM_COMPONENTBUILDER_SHOULD_JCB_ADD_ANY_POWERS_THAT_ARE_CONNECTED_TO_THIS_COMPONENT_THIS_MAY_BE_HELPFUL_IF_YOU_ARE_LOADING_POWERS_VIA_ANOTHER_COMPONENT_AND_WOULD_LIKE_TO_AVOID_ADDING_IT_TO_BOTH_JUST_REMEMBER_THAT_IN_THIS_CASE_YOU_NEED_TO_LOAD_THE_POWERS_VIA_A_PLUGIN',
|
'description' => 'COM_COMPONENTBUILDER_SHOULD_JCB_ADD_ANY_POWERS_THAT_ARE_CONNECTED_TO_THIS_COMPONENT_THIS_MAY_BE_HELPFUL_IF_YOU_ARE_LOADING_POWERS_VIA_ANOTHER_COMPONENT_AND_WOULD_LIKE_TO_AVOID_ADDING_IT_TO_BOTH_JUST_REMEMBER_THAT_IN_THIS_CASE_YOU_NEED_TO_LOAD_THE_POWERS_VIA_A_PLUGIN',
|
||||||
'default' => '2');
|
'default' => '2'];
|
||||||
$options = array(
|
$options = [
|
||||||
'2' => 'COM_COMPONENTBUILDER_GLOBAL',
|
'2' => 'COM_COMPONENTBUILDER_GLOBAL',
|
||||||
'1' => 'COM_COMPONENTBUILDER_YES',
|
'1' => 'COM_COMPONENTBUILDER_YES',
|
||||||
'0' => 'COM_COMPONENTBUILDER_NO');
|
'0' => 'COM_COMPONENTBUILDER_NO'];
|
||||||
|
|
||||||
// add to form
|
// add to form
|
||||||
$form[] = ComponentbuilderHelper::getFieldObject($attributes, 2, $options);
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'builder');
|
||||||
|
}
|
||||||
|
|
||||||
// component attributes
|
// component attributes
|
||||||
$attributes = array(
|
$attributes = [
|
||||||
'type' => 'list',
|
'type' => 'list',
|
||||||
'name' => 'component_id',
|
'name' => 'component_id',
|
||||||
'label' => 'COM_COMPONENTBUILDER_COMPONENTS',
|
'label' => 'COM_COMPONENTBUILDER_COMPONENTS',
|
||||||
'class' => 'list_class',
|
'class' => 'list_class',
|
||||||
'description' => 'COM_COMPONENTBUILDER_SELECT_THE_COMPONENT_TO_COMPILE',
|
'description' => 'COM_COMPONENTBUILDER_SELECT_THE_COMPONENT_TO_COMPILE',
|
||||||
'required' => 'true');
|
'required' => 'true'];
|
||||||
// start the component options
|
// start the component options
|
||||||
$options = array();
|
$options = [];
|
||||||
$options[''] = 'COM_COMPONENTBUILDER__SELECT_COMPONENT_';
|
$options[''] = 'COM_COMPONENTBUILDER__SELECT_COMPONENT_';
|
||||||
// load component options from array
|
// load component options from array
|
||||||
foreach($this->Components as $component)
|
foreach($this->Components as $component)
|
||||||
{
|
{
|
||||||
$options[(int) $component->id] = $this->escape($component->name);
|
$options[(int) $component->id] = $this->escape($component->name);
|
||||||
}
|
}
|
||||||
|
|
||||||
// add to form
|
// add to form
|
||||||
$form[] = ComponentbuilderHelper::getFieldObject($attributes, '', $options);
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'builder');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Advanced Options
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'radio',
|
||||||
|
'name' => 'show_advanced_options',
|
||||||
|
'label' => 'COM_COMPONENTBUILDER_SHOW_ADVANCED_OPTIONS',
|
||||||
|
'class' => 'btn-group btn-group-yesno',
|
||||||
|
'description' => 'COM_COMPONENTBUILDER_WOULD_YOU_LIKE_TO_SEE_THE_ADVANCED_COMPILER_OPTIONS',
|
||||||
|
'default' => '0'];
|
||||||
|
// start the advanced options switch
|
||||||
|
$options = [
|
||||||
|
'1' => 'COM_COMPONENTBUILDER_YES',
|
||||||
|
'0' => 'COM_COMPONENTBUILDER_NO'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'builder');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Advanced Options note attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'note',
|
||||||
|
'name' => 'show_advanced_options_note',
|
||||||
|
'label' => "COM_COMPONENTBUILDER_ADVANCED_OPTIONS",
|
||||||
|
'heading' => 'h3',
|
||||||
|
'showon' => 'show_advanced_options:1'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Joomla Versions attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'radio',
|
||||||
|
'name' => 'joomla_version_donations',
|
||||||
|
'label' => 'COM_COMPONENTBUILDER_JOOMLA_VERSION',
|
||||||
|
'class' => 'btn-group btn-group-yesno',
|
||||||
|
'description' => 'COM_COMPONENTBUILDER_WHAT_VERSION_OF_JOOMLA_WOULD_YOU_LIKE_TO_TARGET',
|
||||||
|
'default' => '3',
|
||||||
|
'showon' => 'show_advanced_options:1'];
|
||||||
|
// start the joomla versions options
|
||||||
|
$options = [
|
||||||
|
'3' => 'COM_COMPONENTBUILDER_JOOMLA_THREE',
|
||||||
|
'4' => 'COM_COMPONENTBUILDER_JOOMLA_FOUR'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Joomla Version 3 attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'note',
|
||||||
|
'name' => 'joomla_version_note_three',
|
||||||
|
'description' => 'COM_COMPONENTBUILDER_YOUR_COMPONENT_WILL_BE_COMPILED_TO_WORK_IN_JOOMLA_THREE',
|
||||||
|
'class' => 'alert alert-success',
|
||||||
|
'showon' => 'show_advanced_options:1[AND]joomla_version_donations:3'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Joomla Version 4 attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'note',
|
||||||
|
'name' => 'joomla_version_note_four',
|
||||||
|
'description' => 'COM_COMPONENTBUILDER_JCB_IS_NOT_YET_FULLY_READY_FOR_JOOMLA_FOUR_BUT_WITH_YOUR_HELP_WE_CAN_MAKE_THE_TRANSITION_FASTER_SHOW_YOUR_SUPPORT_BY_MAKING_A_DONATION_TODAY_AND_HELP_US_BRING_JCB_TO_THE_NEXT_LEVELBR_BR_BYOUR_COMPONENT_WILL_STILL_ONLY_BE_COMPILED_FOR_JOOMLA_THREEB',
|
||||||
|
'class' => 'alert alert-info',
|
||||||
|
'showon' => 'show_advanced_options:1[AND]joomla_version_donations:4'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Indentation attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'radio',
|
||||||
|
'name' => 'indentation_value',
|
||||||
|
'label' => 'COM_COMPONENTBUILDER_INDENTATION_OPTIONS',
|
||||||
|
'class' => 'btn-group btn-group-yesno',
|
||||||
|
'description' => 'COM_COMPONENTBUILDER_WHICH_TYPE_OF_INDENTATION_WOULD_YOU_LIKE_TO_USE_PLEASE_NOTE_THAT_THIS_DOES_NOT_YET_IMPACT_THE_STATIC_TEMPLATES',
|
||||||
|
'default' => '1',
|
||||||
|
'showon' => 'show_advanced_options:1'];
|
||||||
|
|
||||||
|
// start the indentation options
|
||||||
|
$options = [
|
||||||
|
'1' => 'COM_COMPONENTBUILDER_TAB',
|
||||||
|
'2' => 'COM_COMPONENTBUILDER_TWO_SPACES',
|
||||||
|
'4' => 'COM_COMPONENTBUILDER_FOUR_SPACES'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build date attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'radio',
|
||||||
|
'name' => 'add_build_date',
|
||||||
|
'label' => 'COM_COMPONENTBUILDER_BUILD_DATE',
|
||||||
|
'class' => 'btn-group btn-group-yesno',
|
||||||
|
'description' => 'COM_COMPONENTBUILDER_WOULD_YOU_LIKE_TO_OVERRIDE_THE_BUILD_DATE',
|
||||||
|
'default' => '1',
|
||||||
|
'showon' => 'show_advanced_options:1'];
|
||||||
|
// start the build date options
|
||||||
|
$options = [
|
||||||
|
'1' => 'COM_COMPONENTBUILDER_DEFAULT',
|
||||||
|
'2' => 'COM_COMPONENTBUILDER_MANUAL',
|
||||||
|
'3' => 'COM_COMPONENTBUILDER_COMPONENT'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes, $options);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build date note attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'note',
|
||||||
|
'name' => 'add_build_date_note_two',
|
||||||
|
'description' => 'COM_COMPONENTBUILDER_ALLOWS_YOU_TO_OVERRIDE_THE_BUILD_DATE_BY_SELECTING_A_DATE_MANUALLY_FROM_THE_CALENDER',
|
||||||
|
'class' => 'alert alert-info',
|
||||||
|
'showon' => 'show_advanced_options:1[AND]add_build_date:2'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build date note attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'note',
|
||||||
|
'name' => 'add_build_date_note_three',
|
||||||
|
'description' => "COM_COMPONENTBUILDER_THE_COMPONENTS_LAST_MODIFIED_DATE_WILL_BE_USED",
|
||||||
|
'class' => 'alert alert-info',
|
||||||
|
'showon' => 'show_advanced_options:1[AND]add_build_date:3'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build date calendar attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'calendar',
|
||||||
|
'name' => 'build_date',
|
||||||
|
'label' => 'COM_COMPONENTBUILDER_SELECT_BUILD_DATE',
|
||||||
|
'format' => '%Y-%m-%d',
|
||||||
|
'filter' => 'user_utc',
|
||||||
|
'default' => 'now',
|
||||||
|
'size' => '22',
|
||||||
|
'showon' => 'show_advanced_options:1[AND]add_build_date:2'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build date note attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'note',
|
||||||
|
'name' => 'donations_note',
|
||||||
|
'label' => "COM_COMPONENTBUILDER_DONATIONS",
|
||||||
|
'description' => $this->getSupportMessage(),
|
||||||
|
'class' => 'alert alert-success',
|
||||||
|
'heading' => 'h1',
|
||||||
|
'showon' => 'show_advanced_options:1'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
|
// Build date note line attributes
|
||||||
|
$attributes = [
|
||||||
|
'type' => 'note',
|
||||||
|
'name' => 'donations_note_line',
|
||||||
|
'description' => '<hr />',
|
||||||
|
'showon' => 'show_advanced_options:1'];
|
||||||
|
|
||||||
|
// add to form
|
||||||
|
$xml = ComponentbuilderHelper::getFieldXML($attributes);
|
||||||
|
if ($xml instanceof SimpleXMLElement)
|
||||||
|
{
|
||||||
|
$form->setField($xml, null, true, 'advanced');
|
||||||
|
}
|
||||||
|
|
||||||
// return the form array
|
// return the form array
|
||||||
return $form;
|
return $form;
|
||||||
@ -226,6 +486,18 @@ class ComponentbuilderViewCompiler extends HtmlView
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the dynamic support request/gratitude message
|
||||||
|
*
|
||||||
|
* @return string The support message
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function getSupportMessage(): string
|
||||||
|
{
|
||||||
|
return JLayoutHelper::render('jcbsupportmessage', []);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,8 +14,8 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
|
|
||||||
use Joomla\CMS\MVC\View\HtmlView;
|
use Joomla\CMS\MVC\View\HtmlView;
|
||||||
use Joomla\CMS\Filesystem\File;
|
use Joomla\CMS\Filesystem\File;
|
||||||
use Joomla\CMS\Form\Form;
|
|
||||||
use VDM\Joomla\Componentbuilder\Search\Factory as SearchFactory;
|
use VDM\Joomla\Componentbuilder\Search\Factory as SearchFactory;
|
||||||
|
use Joomla\CMS\Form\Form;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Componentbuilder Html View class for the Search
|
* Componentbuilder Html View class for the Search
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="4" method="upgrade">
|
<extension type="component" version="4" method="upgrade">
|
||||||
<name>COM_COMPONENTBUILDER</name>
|
<name>COM_COMPONENTBUILDER</name>
|
||||||
<creationDate>6th February, 2023</creationDate>
|
<creationDate>12th February, 2023</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>joomla@vdm.io</authorEmail>
|
<authorEmail>joomla@vdm.io</authorEmail>
|
||||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||||
<version>3.1.13</version>
|
<version>3.1.17</version>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
<h1>Component Builder (v.3.1.13)</h1>
|
<h1>Component Builder (v.3.1.17)</h1>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
|
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
|
||||||
|
|
||||||
|
@ -1112,12 +1112,13 @@
|
|||||||
<update>
|
<update>
|
||||||
<name>Component Builder</name>
|
<name>Component Builder</name>
|
||||||
<description>Builds Complex Joomla Components</description>
|
<description>Builds Complex Joomla Components</description>
|
||||||
<element>com_componentbuilder</element>
|
<element>pkg_component_builder</element>
|
||||||
<type>component</type>
|
<type>package</type>
|
||||||
<version>3.1.13</version>
|
<client>site</client>
|
||||||
|
<version>3.1.17</version>
|
||||||
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
||||||
<downloads>
|
<downloads>
|
||||||
<downloadurl type="full" format="zip">http://domain.com/demo.zip</downloadurl>
|
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.1.17.zip</downloadurl>
|
||||||
</downloads>
|
</downloads>
|
||||||
<tags>
|
<tags>
|
||||||
<tag>stable</tag>
|
<tag>stable</tag>
|
||||||
|
@ -0,0 +1,213 @@
|
|||||||
|
<?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\Component;
|
||||||
|
|
||||||
|
|
||||||
|
use Joomla\CMS\Factory;
|
||||||
|
use Joomla\CMS\Language\Text;
|
||||||
|
use Joomla\CMS\Application\CMSApplication;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as Compiler;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Registry;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Component;
|
||||||
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component Dynamic Dashboard
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
class Dashboard
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The compiler registry
|
||||||
|
*
|
||||||
|
* @var Registry
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Registry $registry;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component
|
||||||
|
*
|
||||||
|
* @var Component
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Component $component;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Application object.
|
||||||
|
*
|
||||||
|
* @var CMSApplication
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected CMSApplication $app;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param Registry|null $registry The compiler registry object.
|
||||||
|
* @param Component|null $component The component class.
|
||||||
|
* @param CMSApplication|null $app The app object.
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function __construct(?Registry $registry = null, ?Component $component = null,
|
||||||
|
?CMSApplication $app = null)
|
||||||
|
{
|
||||||
|
$this->registry = $registry ?: Compiler::_('Registry');
|
||||||
|
$this->component = $component ?: Compiler::_('Component');
|
||||||
|
$this->app = $app ?: Factory::getApplication();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the Dynamic Dashboard
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function set()
|
||||||
|
{
|
||||||
|
// only add the dynamic dashboard if all checks out
|
||||||
|
if ($this->component->get('dashboard_type', 0) == 2
|
||||||
|
&& ($dashboard_ = $this->component->get('dashboard')) !== null
|
||||||
|
&& StringHelper::check($dashboard_)
|
||||||
|
&& strpos((string) $dashboard_, '_') !== false)
|
||||||
|
{
|
||||||
|
// set the default view
|
||||||
|
$getter = explode('_', (string) $dashboard_);
|
||||||
|
if (count((array) $getter) == 2 && is_numeric($getter[1]))
|
||||||
|
{
|
||||||
|
// the pointers
|
||||||
|
$t = StringHelper::safe($getter[0], 'U');
|
||||||
|
$id = (int) $getter[1];
|
||||||
|
|
||||||
|
// the dynamic stuff
|
||||||
|
$targets = array('A' => 'admin_views',
|
||||||
|
'C' => 'custom_admin_views');
|
||||||
|
$names = array('A' => 'admin view',
|
||||||
|
'C' => 'custom admin view');
|
||||||
|
$types = array('A' => 'adminview', 'C' => 'customadminview');
|
||||||
|
$keys = array('A' => 'name_list', 'C' => 'code');
|
||||||
|
|
||||||
|
// check the target values
|
||||||
|
if (isset($targets[$t]) && $id > 0)
|
||||||
|
{
|
||||||
|
// set the type name
|
||||||
|
$type_names = StringHelper::safe(
|
||||||
|
$targets[$t], 'w'
|
||||||
|
);
|
||||||
|
// set the dynamic dash
|
||||||
|
if (($target_ = $this->component->get($targets[$t])) !== null
|
||||||
|
&& ArrayHelper::check($target_))
|
||||||
|
{
|
||||||
|
// search the target views
|
||||||
|
$dashboard = (array) array_filter(
|
||||||
|
$target_,
|
||||||
|
function ($view) use ($id, $t, $types) {
|
||||||
|
if (isset($view[$types[$t]])
|
||||||
|
&& $id == $view[$types[$t]])
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
);
|
||||||
|
|
||||||
|
// set dashboard
|
||||||
|
if (ArrayHelper::check($dashboard))
|
||||||
|
{
|
||||||
|
$dashboard = array_values($dashboard)[0];
|
||||||
|
}
|
||||||
|
|
||||||
|
// check if view was found (this should be true)
|
||||||
|
if (isset($dashboard['settings'])
|
||||||
|
&& isset($dashboard['settings']->{$keys[$t]}))
|
||||||
|
{
|
||||||
|
$this->registry->set('build.dashboard',
|
||||||
|
StringHelper::safe(
|
||||||
|
$dashboard['settings']->{$keys[$t]}
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$this->registry->set('build.dashboard.type',
|
||||||
|
$targets[$t]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// set massage that something is wrong
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEDASHBOARD_ERRORHTHREE'),
|
||||||
|
'Error'
|
||||||
|
);
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::sprintf('COM_COMPONENTBUILDER_THE_BSB_BSB_IS_NOT_AVAILABLE_IN_YOUR_COMPONENT_PLEASE_INSURE_TO_ONLY_USED_S_FOR_A_DYNAMIC_DASHBOARD_THAT_ARE_STILL_LINKED_TO_YOUR_COMPONENT',
|
||||||
|
$names[$t], $dashboard_,
|
||||||
|
$type_names
|
||||||
|
), 'Error'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// set massage that something is wrong
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEDASHBOARD_ERRORHTHREE'), 'Error'
|
||||||
|
);
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::sprintf('COM_COMPONENTBUILDER_THE_BSB_BSB_IS_NOT_AVAILABLE_IN_YOUR_COMPONENT_PLEASE_INSURE_TO_ONLY_USED_S_FOR_A_DYNAMIC_DASHBOARD_THAT_ARE_STILL_LINKED_TO_YOUR_COMPONENT',
|
||||||
|
$names[$t], $dashboard_,
|
||||||
|
$type_names
|
||||||
|
), 'Error'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// the target value is wrong
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEDASHBOARD_ERRORHTHREE'), 'Error'
|
||||||
|
);
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::sprintf('COM_COMPONENTBUILDER_THE_BSB_VALUE_FOR_THE_DYNAMIC_DASHBOARD_IS_INVALID',
|
||||||
|
$dashboard_
|
||||||
|
), 'Error'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// the target value is wrong
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEDASHBOARD_ERRORHTHREE'), 'Error'
|
||||||
|
);
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::sprintf('COM_COMPONENTBUILDER_THE_BSB_VALUE_FOR_THE_DYNAMIC_DASHBOARD_IS_INVALID',
|
||||||
|
$dashboard_
|
||||||
|
), 'Error'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// if default was changed to dynamic dashboard the remove default tab and methods
|
||||||
|
if ($this->registry->get('build.dashboard'))
|
||||||
|
{
|
||||||
|
// dynamic dashboard is used
|
||||||
|
$this->component->remove('dashboard_tab');
|
||||||
|
$this->component->remove('php_dashboard_methods');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -482,6 +482,21 @@ class Data
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// build the build date
|
||||||
|
if ($this->config->get('add_build_date', 1) == 3)
|
||||||
|
{
|
||||||
|
if (empty($this->component->modified) ||
|
||||||
|
$this->component->modified == '0000-00-00' ||
|
||||||
|
$this->component->modified == '0000-00-00 00:00:00')
|
||||||
|
{
|
||||||
|
$this->config->set('build_date', $this->component->created);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->config->set('build_date', $this->component->modified);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// build update SQL
|
// build update SQL
|
||||||
$this->history->set($component);
|
$this->history->set($component);
|
||||||
|
|
||||||
|
@ -0,0 +1,756 @@
|
|||||||
|
<?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\Component;
|
||||||
|
|
||||||
|
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as Compiler;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Config;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Registry;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Interfaces\EventInterface;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Placeholder;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Component;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Paths;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Dynamicpath;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Pathfix;
|
||||||
|
use VDM\Joomla\Utilities\FileHelper;
|
||||||
|
use VDM\Joomla\Utilities\JsonHelper;
|
||||||
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component (Joomla Version) Settings
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
class Settings
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The standard folders
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected array $standardFolders = [
|
||||||
|
'site',
|
||||||
|
'admin',
|
||||||
|
'media'
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The standard root files
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected array $standardRootFiles = [
|
||||||
|
'access.xml',
|
||||||
|
'config.xml',
|
||||||
|
'controller.php',
|
||||||
|
'index.html',
|
||||||
|
'README.txt'
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Joomla Version Data
|
||||||
|
*
|
||||||
|
* @var object|null
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected ?object $data = null;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Config
|
||||||
|
*
|
||||||
|
* @var Config
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Config $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The compiler registry
|
||||||
|
*
|
||||||
|
* @var Registry
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Registry $registry;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Event
|
||||||
|
*
|
||||||
|
* @var EventInterface
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected EventInterface $event;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Placeholder
|
||||||
|
*
|
||||||
|
* @var Placeholder
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Placeholder $placeholder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component
|
||||||
|
*
|
||||||
|
* @var Component
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Component $component;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Utilities Paths
|
||||||
|
*
|
||||||
|
* @var Paths
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Paths $paths;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component Dynamic Path
|
||||||
|
*
|
||||||
|
* @var Dynamicpath
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Dynamicpath $dynamicpath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component Pathfix
|
||||||
|
*
|
||||||
|
* @var Pathfix
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Pathfix $pathfix;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param Config|null $config The compiler config object.
|
||||||
|
* @param Registry|null $registry The compiler registry object.
|
||||||
|
* @param EventInterface|null $event The compiler event api object.
|
||||||
|
* @param Placeholder|null $placeholder The compiler placeholder object.
|
||||||
|
* @param Component|null $component The component class.
|
||||||
|
* @param Paths|null $paths The compiler paths object.
|
||||||
|
* @param Dynamicpath|null $dynamicpath The compiler dynamic path object.
|
||||||
|
* @param Pathfix|null $pathfix The compiler path fixing object.
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function __construct(?Config $config = null, ?Registry $registry = null,
|
||||||
|
?EventInterface $event = null, ?Placeholder $placeholder = null,
|
||||||
|
?Component $component = null, ?Paths $paths = null,
|
||||||
|
?Dynamicpath $dynamicpath = null, ?Pathfix $pathfix = null)
|
||||||
|
{
|
||||||
|
$this->config = $config ?: Compiler::_('Config');
|
||||||
|
$this->registry = $registry ?: Compiler::_('Registry');
|
||||||
|
$this->event = $event ?: Compiler::_('Event');
|
||||||
|
$this->placeholder = $placeholder ?: Compiler::_('Placeholder');
|
||||||
|
$this->component = $component ?: Compiler::_('Component');
|
||||||
|
$this->paths = $paths ?: Compiler::_('Utilities.Paths');
|
||||||
|
$this->dynamicpath = $dynamicpath ?: Compiler::_('Utilities.Dynamicpath');
|
||||||
|
$this->pathfix = $pathfix ?: Compiler::_('Utilities.Pathfix');
|
||||||
|
|
||||||
|
// add component endpoint file to stander list of root files
|
||||||
|
$this->standardRootFiles[] = $this->component->get('name_code') . '.php';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if data set is loaded
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function exists(): bool
|
||||||
|
{
|
||||||
|
if (!$this->isSet())
|
||||||
|
{
|
||||||
|
// load the data
|
||||||
|
$this->data = $this->get();
|
||||||
|
|
||||||
|
if (!$this->isSet())
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Joomla - Folder Structure to Create
|
||||||
|
*
|
||||||
|
* @return object The version related structure
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function structure(): object
|
||||||
|
{
|
||||||
|
return $this->data->create;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Joomla - Move Multiple Structure
|
||||||
|
*
|
||||||
|
* @return object The version related multiple structure
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function multiple(): object
|
||||||
|
{
|
||||||
|
return $this->data->move->dynamic;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get Joomla - Move Single Structure
|
||||||
|
*
|
||||||
|
* @return object The version related single structure
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function single(): object
|
||||||
|
{
|
||||||
|
return $this->data->move->static;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if Folder is a Standard Folder
|
||||||
|
*
|
||||||
|
* @param string $folder The folder name
|
||||||
|
*
|
||||||
|
* @return bool true if the folder exists
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function standardFolder(string $folder): bool
|
||||||
|
{
|
||||||
|
return in_array($folder, $this->standardFolders);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if File is a Standard Root File
|
||||||
|
*
|
||||||
|
* @param string $file The file name
|
||||||
|
*
|
||||||
|
* @return bool true if the file exists
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function standardRootFile(string $file): bool
|
||||||
|
{
|
||||||
|
return in_array($file, $this->standardRootFiles);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if Data is Set
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function isSet(): bool
|
||||||
|
{
|
||||||
|
return is_object($this->data) &&
|
||||||
|
isset($this->data->create) &&
|
||||||
|
isset($this->data->move) &&
|
||||||
|
isset($this->data->move->static) &&
|
||||||
|
isset($this->data->move->dynamic);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get the Joomla Version Data
|
||||||
|
*
|
||||||
|
* @return object|null The version data
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function get(): ?object
|
||||||
|
{
|
||||||
|
// override option
|
||||||
|
$customSettings = $this->paths->template_path . '/settings_' .
|
||||||
|
$this->config->component_code_name . '.json';
|
||||||
|
|
||||||
|
// get the data
|
||||||
|
$version_data = $this->readJsonFile($customSettings);
|
||||||
|
|
||||||
|
if (is_null($version_data) || !$this->isValidData($version_data))
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->loadExtraFolders();
|
||||||
|
$this->loadExtraFiles();
|
||||||
|
|
||||||
|
$this->addFolders($version_data);
|
||||||
|
$this->addFiles($version_data);
|
||||||
|
|
||||||
|
// for plugin event TODO change event api signatures
|
||||||
|
$component_context = $this->config->component_context;
|
||||||
|
|
||||||
|
// Trigger Event: jcb_ce_onAfterSetJoomlaVersionData
|
||||||
|
$this->event->trigger(
|
||||||
|
'jcb_ce_onAfterSetJoomlaVersionData',
|
||||||
|
array(&$component_context, &$version_data)
|
||||||
|
);
|
||||||
|
|
||||||
|
return $version_data;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Read the Json file data
|
||||||
|
*
|
||||||
|
* @param string $filePath
|
||||||
|
*
|
||||||
|
* @return object|null The version data
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function readJsonFile(string $filePath): ?object
|
||||||
|
{
|
||||||
|
if (FileHelper::exists($filePath))
|
||||||
|
{
|
||||||
|
$jsonContent = FileHelper::getContent($filePath);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$jsonContent = FileHelper::getContent($this->paths->template_path . '/settings.json');
|
||||||
|
}
|
||||||
|
|
||||||
|
if (JsonHelper::check($jsonContent))
|
||||||
|
{
|
||||||
|
return json_decode((string) $jsonContent);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if this is valid data
|
||||||
|
*
|
||||||
|
* @param object $versionData
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function isValidData(object $versionData): bool
|
||||||
|
{
|
||||||
|
return isset($versionData->create) &&
|
||||||
|
isset($versionData->move) &&
|
||||||
|
isset($versionData->move->static) &&
|
||||||
|
isset($versionData->move->dynamic);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Extra/Dynamic folders
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function loadExtraFolders()
|
||||||
|
{
|
||||||
|
if ($this->component->isArray('folders') ||
|
||||||
|
$this->config->get('add_eximport', false) ||
|
||||||
|
$this->config->get('uikit', 0) ||
|
||||||
|
$this->config->get('footable', false))
|
||||||
|
{
|
||||||
|
$this->addImportViewFolder();
|
||||||
|
$this->addPhpSpreadsheetFolder();
|
||||||
|
$this->addUikitFolder();
|
||||||
|
$this->addFooTableFolder();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Import and Export Folder
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function addImportViewFolder()
|
||||||
|
{
|
||||||
|
if ($this->config->get('add_eximport', false))
|
||||||
|
{
|
||||||
|
$this->component->appendArray('folders', [
|
||||||
|
'folder' => 'importViews',
|
||||||
|
'path' => 'admin/views/import',
|
||||||
|
'rename' => 1
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Php Spreadsheet Folder
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function addPhpSpreadsheetFolder()
|
||||||
|
{
|
||||||
|
// move the phpspreadsheet Folder (TODO we must move this to a library package)
|
||||||
|
if ($this->config->get('add_eximport', false))
|
||||||
|
{
|
||||||
|
$this->component->appendArray('folders', [
|
||||||
|
'folderpath' => 'JPATH_LIBRARIES/phpspreadsheet/vendor',
|
||||||
|
'path' => '/libraries/phpspreadsheet/',
|
||||||
|
'rename' => 0
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Uikit Folders
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function addUikitFolder()
|
||||||
|
{
|
||||||
|
$uikit = $this->config->get('uikit', 0);
|
||||||
|
if (2 == $uikit || 1 == $uikit)
|
||||||
|
{
|
||||||
|
// move the UIKIT Folder into place
|
||||||
|
$this->component->appendArray('folders', [
|
||||||
|
'folder' => 'uikit-v2',
|
||||||
|
'path' => 'media',
|
||||||
|
'rename' => 0
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
if (2 == $uikit || 3 == $uikit)
|
||||||
|
{
|
||||||
|
// move the UIKIT-3 Folder into place
|
||||||
|
$this->component->appendArray('folders', [
|
||||||
|
'folder' => 'uikit-v3',
|
||||||
|
'path' => 'media',
|
||||||
|
'rename' => 0
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Foo Table Folder
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function addFooTableFolder()
|
||||||
|
{
|
||||||
|
if (!$this->config->get('footable', false))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
$footable_version = $this->config->get('footable_version', 2);
|
||||||
|
|
||||||
|
if (2 == $footable_version)
|
||||||
|
{
|
||||||
|
// move the footable folder into place
|
||||||
|
$this->component->appendArray('folders', [
|
||||||
|
'folder' => 'footable-v2',
|
||||||
|
'path' => 'media',
|
||||||
|
'rename' => 0
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
elseif (3 == $footable_version)
|
||||||
|
{
|
||||||
|
// move the footable folder into place
|
||||||
|
$this->component->appendArray('folders', [
|
||||||
|
'folder' => 'footable-v3',
|
||||||
|
'path' => 'media',
|
||||||
|
'rename' => 0
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Extra/Dynamic files
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function loadExtraFiles()
|
||||||
|
{
|
||||||
|
if ($this->component->isArray('files') ||
|
||||||
|
$this->config->get('google_chart', false))
|
||||||
|
{
|
||||||
|
$this->addGoogleChartFiles();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Google Chart Files
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function addGoogleChartFiles()
|
||||||
|
{
|
||||||
|
if ($this->config->get('google_chart', false))
|
||||||
|
{
|
||||||
|
// move the google chart files
|
||||||
|
$this->component->appendArray('files', [
|
||||||
|
'file' => 'google.jsapi.js',
|
||||||
|
'path' => 'media/js',
|
||||||
|
'rename' => 0
|
||||||
|
]);
|
||||||
|
$this->component->appendArray('files', [
|
||||||
|
'file' => 'chartbuilder.php',
|
||||||
|
'path' => 'admin/helpers',
|
||||||
|
'rename' => 0
|
||||||
|
]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Folders
|
||||||
|
*
|
||||||
|
* @param object $versionData
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function addFolders(object &$versionData)
|
||||||
|
{
|
||||||
|
if (!$this->component->isArray('folders'))
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pointer tracker
|
||||||
|
$pointer_tracker = 'h';
|
||||||
|
foreach ($this->component->get('folders') as $custom)
|
||||||
|
{
|
||||||
|
// check type of target type
|
||||||
|
$_target_type = 'c0mp0n3nt';
|
||||||
|
if (isset($custom['target_type']))
|
||||||
|
{
|
||||||
|
$_target_type = $custom['target_type'];
|
||||||
|
}
|
||||||
|
|
||||||
|
// for good practice
|
||||||
|
$this->pathfix->set(
|
||||||
|
$custom, ['path', 'folder', 'folderpath']
|
||||||
|
);
|
||||||
|
|
||||||
|
// fix custom path
|
||||||
|
if (isset($custom['path'])
|
||||||
|
&& StringHelper::check($custom['path']))
|
||||||
|
{
|
||||||
|
$custom['path'] = trim((string) $custom['path'], '/');
|
||||||
|
}
|
||||||
|
|
||||||
|
// by default custom path is true
|
||||||
|
$customPath = 'custom';
|
||||||
|
|
||||||
|
// set full path if this is a full path folder
|
||||||
|
if (!isset($custom['folder']) && isset($custom['folderpath']))
|
||||||
|
{
|
||||||
|
// update the dynamic path
|
||||||
|
$custom['folderpath'] = $this->dynamicpath->update(
|
||||||
|
$custom['folderpath']
|
||||||
|
);
|
||||||
|
|
||||||
|
// set the folder path with / if does not have a drive/windows full path
|
||||||
|
$custom['folder'] = (preg_match(
|
||||||
|
'/^[a-z]:/i', $custom['folderpath']
|
||||||
|
)) ? trim($custom['folderpath'], '/')
|
||||||
|
: '/' . trim($custom['folderpath'], '/');
|
||||||
|
|
||||||
|
// remove the file path
|
||||||
|
unset($custom['folderpath']);
|
||||||
|
|
||||||
|
// triget fullpath
|
||||||
|
$customPath = 'full';
|
||||||
|
}
|
||||||
|
|
||||||
|
// make sure we use the correct name
|
||||||
|
$pathArray = (array) explode('/', (string) $custom['path']);
|
||||||
|
$lastFolder = end($pathArray);
|
||||||
|
|
||||||
|
// only rename folder if last has folder name
|
||||||
|
if (isset($custom['rename']) && $custom['rename'] == 1)
|
||||||
|
{
|
||||||
|
$custom['path'] = str_replace(
|
||||||
|
'/' . $lastFolder, '', (string) $custom['path']
|
||||||
|
);
|
||||||
|
$rename = 'new';
|
||||||
|
$newname = $lastFolder;
|
||||||
|
}
|
||||||
|
elseif ('full' === $customPath)
|
||||||
|
{
|
||||||
|
// make sure we use the correct name
|
||||||
|
$folderArray = (array) explode('/', (string) $custom['folder']);
|
||||||
|
$lastFolder = end($folderArray);
|
||||||
|
$rename = 'new';
|
||||||
|
$newname = $lastFolder;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$rename = false;
|
||||||
|
$newname = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
// insure we have no duplicates
|
||||||
|
$key_pointer = StringHelper::safe(
|
||||||
|
$custom['folder']
|
||||||
|
) . '_f' . $pointer_tracker;
|
||||||
|
|
||||||
|
$pointer_tracker++;
|
||||||
|
|
||||||
|
// fix custom path
|
||||||
|
$custom['path'] = ltrim((string) $custom['path'], '/');
|
||||||
|
|
||||||
|
// set new folder to object
|
||||||
|
$versionData->move->static->{$key_pointer} = new \stdClass();
|
||||||
|
$versionData->move->static->{$key_pointer}->naam = str_replace('//', '/', (string) $custom['folder']);
|
||||||
|
$versionData->move->static->{$key_pointer}->path = $_target_type . '/' . $custom['path'];
|
||||||
|
$versionData->move->static->{$key_pointer}->rename = $rename;
|
||||||
|
$versionData->move->static->{$key_pointer}->newName = $newname;
|
||||||
|
$versionData->move->static->{$key_pointer}->type = 'folder';
|
||||||
|
$versionData->move->static->{$key_pointer}->custom = $customPath;
|
||||||
|
|
||||||
|
// set the target if type and id is found
|
||||||
|
if (isset($custom['target_id']) && isset($custom['target_type']))
|
||||||
|
{
|
||||||
|
$versionData->move->static->{$key_pointer}->_target = [
|
||||||
|
'key' => $custom['target_id'] . '_' . $custom['target_type'],
|
||||||
|
'type' => $custom['target_type']
|
||||||
|
];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->component->remove('folders');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add Files
|
||||||
|
*
|
||||||
|
* @param object $versionData
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function addFiles(object &$versionData)
|
||||||
|
{
|
||||||
|
if (!$this->component->isArray('files')) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
// pointer tracker
|
||||||
|
$pointer_tracker = 'h';
|
||||||
|
foreach ($this->component->get('files') as $custom)
|
||||||
|
{
|
||||||
|
// check type of target type
|
||||||
|
$_target_type = 'c0mp0n3nt';
|
||||||
|
if (isset($custom['target_type']))
|
||||||
|
{
|
||||||
|
$_target_type = $custom['target_type'];
|
||||||
|
}
|
||||||
|
|
||||||
|
// for good practice
|
||||||
|
$this->pathfix->set(
|
||||||
|
$custom, ['path', 'file', 'filepath']
|
||||||
|
);
|
||||||
|
|
||||||
|
// by default custom path is true
|
||||||
|
$customPath = 'custom';
|
||||||
|
|
||||||
|
// set full path if this is a full path file
|
||||||
|
if (!isset($custom['file']) && isset($custom['filepath']))
|
||||||
|
{
|
||||||
|
// update the dynamic path
|
||||||
|
$custom['filepath'] = $this->dynamicpath->update(
|
||||||
|
$custom['filepath']
|
||||||
|
);
|
||||||
|
|
||||||
|
// set the file path with / if does not have a drive/windows full path
|
||||||
|
$custom['file'] = (preg_match('/^[a-z]:/i', $custom['filepath']))
|
||||||
|
? trim($custom['filepath'], '/') : '/' . trim($custom['filepath'], '/');
|
||||||
|
|
||||||
|
// remove the file path
|
||||||
|
unset($custom['filepath']);
|
||||||
|
|
||||||
|
// triget fullpath
|
||||||
|
$customPath = 'full';
|
||||||
|
}
|
||||||
|
|
||||||
|
// make sure we have not duplicates
|
||||||
|
$key_pointer = StringHelper::safe(
|
||||||
|
$custom['file']
|
||||||
|
) . '_g' . $pointer_tracker;
|
||||||
|
|
||||||
|
$pointer_tracker++;
|
||||||
|
|
||||||
|
// set new file to object
|
||||||
|
$versionData->move->static->{$key_pointer} = new \stdClass();
|
||||||
|
$versionData->move->static->{$key_pointer}->naam = str_replace('//', '/', (string) $custom['file']);
|
||||||
|
|
||||||
|
// update the dynamic component name placholders in file names
|
||||||
|
$custom['path'] = $this->placeholder->update_(
|
||||||
|
$custom['path']
|
||||||
|
);
|
||||||
|
|
||||||
|
// get the path info
|
||||||
|
$pathInfo = pathinfo((string) $custom['path']);
|
||||||
|
if (isset($pathInfo['extension']) && $pathInfo['extension'])
|
||||||
|
{
|
||||||
|
$pathInfo['dirname'] = trim($pathInfo['dirname'], '/');
|
||||||
|
|
||||||
|
// set the info
|
||||||
|
$versionData->move->static->{$key_pointer}->path = $_target_type . '/' . $pathInfo['dirname'];
|
||||||
|
$versionData->move->static->{$key_pointer}->rename = 'new';
|
||||||
|
$versionData->move->static->{$key_pointer}->newName = $pathInfo['basename'];
|
||||||
|
}
|
||||||
|
elseif ('full' === $customPath)
|
||||||
|
{
|
||||||
|
// fix custom path
|
||||||
|
$custom['path'] = ltrim((string) $custom['path'], '/');
|
||||||
|
|
||||||
|
// get file array
|
||||||
|
$fileArray = (array) explode('/', (string) $custom['file']);
|
||||||
|
|
||||||
|
// set the info
|
||||||
|
$versionData->move->static->{$key_pointer}->path = $_target_type . '/' . $custom['path'];
|
||||||
|
$versionData->move->static->{$key_pointer}->rename = 'new';
|
||||||
|
$versionData->move->static->{$key_pointer}->newName = end($fileArray);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// fix custom path
|
||||||
|
$custom['path'] = ltrim((string) $custom['path'], '/');
|
||||||
|
|
||||||
|
// set the info
|
||||||
|
$versionData->move->static->{$key_pointer}->path = $_target_type . '/' . $custom['path'];
|
||||||
|
$versionData->move->static->{$key_pointer}->rename = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$versionData->move->static->{$key_pointer}->type = 'file';
|
||||||
|
$versionData->move->static->{$key_pointer}->custom = $customPath;
|
||||||
|
|
||||||
|
// set the target if type and id is found
|
||||||
|
if (isset($custom['target_id'])
|
||||||
|
&& isset($custom['target_type']))
|
||||||
|
{
|
||||||
|
$versionData->move->static->{$key_pointer}->_target = [
|
||||||
|
'key' => $custom['target_id'] . '_' . $custom['target_type'],
|
||||||
|
'type' => $custom['target_type']
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
// check if file should be updated
|
||||||
|
if (!isset($custom['notnew']) || $custom['notnew'] == 0
|
||||||
|
|| $custom['notnew'] != 1)
|
||||||
|
{
|
||||||
|
$this->registry->appendArray('files.not.new', $key_pointer);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// update the file content
|
||||||
|
$this->registry->set('update.file.content.' . $key_pointer, true);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->component->remove('files');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,118 @@
|
|||||||
|
<?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\Component;
|
||||||
|
|
||||||
|
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as Compiler;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Component\Settings;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Paths;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Folder;
|
||||||
|
use VDM\Joomla\Utilities\ObjectHelper;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build/Create Component Structure
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
class Structure
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Compiler Component Joomla Version Settings
|
||||||
|
*
|
||||||
|
* @var Settings
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Settings $settings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Paths
|
||||||
|
*
|
||||||
|
* @var Paths
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Paths $paths;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Utilities Folder
|
||||||
|
*
|
||||||
|
* @var Folder
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Folder $folder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* @param Settings|null $settings The compiler component joomla version settings object.
|
||||||
|
* @param Paths|null $paths The compiler paths object.
|
||||||
|
* @param Folder|null $folder The compiler folder object.
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function __construct(?Settings $settings = null, ?Paths $paths = null, ?Folder $folder = null)
|
||||||
|
{
|
||||||
|
$this->settings = $settings ?: Compiler::_('Component.Settings');
|
||||||
|
$this->paths = $paths ?: Compiler::_('Utilities.Paths');
|
||||||
|
$this->folder = $folder ?: Compiler::_('Utilities.Folder');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build the Component Structure
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function build(): bool
|
||||||
|
{
|
||||||
|
if ($this->settings->exists())
|
||||||
|
{
|
||||||
|
// setup the main component path
|
||||||
|
$this->folder->create($this->paths->component_path);
|
||||||
|
|
||||||
|
// build the version structure
|
||||||
|
$this->folders(
|
||||||
|
$this->settings->structure(),
|
||||||
|
$this->paths->component_path
|
||||||
|
);
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create the folder and subfolders
|
||||||
|
*
|
||||||
|
* @param object $folders The object[] of folders
|
||||||
|
* @param string $path The path
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function folders(object $folders, string $path)
|
||||||
|
{
|
||||||
|
foreach ($folders as $folder => $sub_folders)
|
||||||
|
{
|
||||||
|
$new_path = $path . '/' . $folder;
|
||||||
|
$this->folder->create($new_path);
|
||||||
|
|
||||||
|
if (ObjectHelper::check($sub_folders))
|
||||||
|
{
|
||||||
|
$this->folders($sub_folders, $new_path);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,355 @@
|
|||||||
|
<?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\Component;
|
||||||
|
|
||||||
|
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as Compiler;
|
||||||
|
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\Model\Createdate;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Model\Modifieddate;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Structure;
|
||||||
|
use VDM\Joomla\Utilities\ObjectHelper;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Placefix;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Multiple Files and Folders Builder Class
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
class Structuremultiple
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Compiler Config
|
||||||
|
*
|
||||||
|
* @var Config
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Config $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The compiler registry
|
||||||
|
*
|
||||||
|
* @var Registry
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Registry $registry;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component Joomla Version Settings
|
||||||
|
*
|
||||||
|
* @var Settings
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Settings $settings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component
|
||||||
|
*
|
||||||
|
* @var Component
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Component $component;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Model Createdate
|
||||||
|
*
|
||||||
|
* @var Createdate
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Createdate $createdate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Model Modifieddate
|
||||||
|
*
|
||||||
|
* @var Modifieddate
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Modifieddate $modifieddate;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Utility to Build Structure
|
||||||
|
*
|
||||||
|
* @var Structure
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Structure $structure;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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 Createdate|null $createdate The compiler model to get create date class.
|
||||||
|
* @param Modifieddate|null $modifieddate The compiler model to get modified date class.
|
||||||
|
* @param Structure|null $structure The compiler structure to build dynamic folder and files class.
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function __construct(?Config $config = null, ?Registry $registry = null,
|
||||||
|
?Settings $settings = null, ?Component $component = null,
|
||||||
|
?Createdate $createdate = null, ?Modifieddate $modifieddate = null,
|
||||||
|
?Structure $structure = null)
|
||||||
|
{
|
||||||
|
$this->config = $config ?: Compiler::_('Config');
|
||||||
|
$this->registry = $registry ?: Compiler::_('Registry');
|
||||||
|
$this->settings = $settings ?: Compiler::_('Component.Settings');
|
||||||
|
$this->component = $component ?: Compiler::_('Component');
|
||||||
|
$this->createdate = $createdate ?: Compiler::_('Model.Createdate');
|
||||||
|
$this->modifieddate = $modifieddate ?: Compiler::_('Model.Modifieddate');
|
||||||
|
$this->structure = $structure ?: Compiler::_('Utilities.Structure');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build the Multiple Files & Folders
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function build(): bool
|
||||||
|
{
|
||||||
|
$success = false;
|
||||||
|
|
||||||
|
if ($this->settings->exists())
|
||||||
|
{
|
||||||
|
$success = $this->admin();
|
||||||
|
$success = $this->site() || $success;
|
||||||
|
$success = $this->custom() || $success;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $success;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build the Dynamic Admin Files & Folders
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function admin(): bool
|
||||||
|
{
|
||||||
|
if (!$this->component->isArray('admin_views'))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
// check if we have a dynamic dashboard
|
||||||
|
if (!$this->registry->get('build.dashboard'))
|
||||||
|
{
|
||||||
|
// setup the default dashboard
|
||||||
|
$target = ['admin' => $this->component->get('name_code')];
|
||||||
|
$this->structure->build($target, 'dashboard');
|
||||||
|
}
|
||||||
|
|
||||||
|
$config = [];
|
||||||
|
$checkin = false;
|
||||||
|
|
||||||
|
foreach ($this->component->get('admin_views') as $view)
|
||||||
|
{
|
||||||
|
if (!$this->isValidAdminView($view, $config))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->buildAdminView($view, $config);
|
||||||
|
|
||||||
|
// quick set of checkin once
|
||||||
|
if (!$checkin && isset($view['checkin']) && $view['checkin'] == 1)
|
||||||
|
{
|
||||||
|
// switch to add checking to config
|
||||||
|
$checkin = true;
|
||||||
|
$this->config->set('add_checkin', $checkin);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build the Dynamic Site Files & Folders
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function site(): bool
|
||||||
|
{
|
||||||
|
if (!$this->component->isArray('site_views'))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$config = [];
|
||||||
|
|
||||||
|
foreach ($this->component->get('site_views') as $view)
|
||||||
|
{
|
||||||
|
if (!$this->isValidView($view, $config))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->buildView($view, $config, 'site');
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build the Dynamic Custom Admin Files & Folders
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function custom(): bool
|
||||||
|
{
|
||||||
|
if (!$this->component->isArray('custom_admin_views'))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$config = [];
|
||||||
|
|
||||||
|
foreach ($this->component->get('custom_admin_views') as $view)
|
||||||
|
{
|
||||||
|
if (!$this->isValidView($view, $config))
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->buildView($view, $config, 'custom_admin');
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if the view is a valid view
|
||||||
|
*
|
||||||
|
* @param array $view
|
||||||
|
* @param array $config
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function isValidAdminView(array $view, array &$config): bool
|
||||||
|
{
|
||||||
|
if (!isset($view['settings']) || !ObjectHelper::check($view['settings'])
|
||||||
|
|| ((!isset($view['settings']->name_list) || $view['settings']->name_list == 'null')
|
||||||
|
&& (!isset($view['settings']->name_single) || $view['settings']->name_single == 'null')))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$created = $this->createdate->get($view);
|
||||||
|
$modified = $this->modifieddate->get($view);
|
||||||
|
|
||||||
|
$config = [
|
||||||
|
Placefix::_h('CREATIONDATE') => $created,
|
||||||
|
Placefix::_h('BUILDDATE') => $modified,
|
||||||
|
Placefix::_h('VERSION') => $view['settings']->version
|
||||||
|
];
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if the view is a valid view
|
||||||
|
*
|
||||||
|
* @param array $view
|
||||||
|
* @param array $config
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function isValidView(array $view, array &$config): bool
|
||||||
|
{
|
||||||
|
if (!isset($view['settings']) || !ObjectHelper::check($view['settings'])
|
||||||
|
|| !isset($view['settings']->main_get)
|
||||||
|
|| !ObjectHelper::check($view['settings']->main_get)
|
||||||
|
|| !isset($view['settings']->main_get->gettype)
|
||||||
|
|| ($view['settings']->main_get->gettype != 1 && $view['settings']->main_get->gettype != 2))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
$created = $this->createdate->get($view);
|
||||||
|
$modified = $this->modifieddate->get($view);
|
||||||
|
|
||||||
|
$config = [
|
||||||
|
Placefix::_h('CREATIONDATE') => $created,
|
||||||
|
Placefix::_h('BUILDDATE') => $modified,
|
||||||
|
Placefix::_h('VERSION') => $view['settings']->version
|
||||||
|
];
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build the admin view
|
||||||
|
*
|
||||||
|
* @param array $view
|
||||||
|
* @param array $config
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function buildAdminView(array $view, array $config)
|
||||||
|
{
|
||||||
|
// build the admin edit view
|
||||||
|
if ($view['settings']->name_single != 'null')
|
||||||
|
{
|
||||||
|
$target = ['admin' => $view['settings']->name_single];
|
||||||
|
$this->structure->build($target, 'single', false, $config);
|
||||||
|
|
||||||
|
// build the site edit view (of this admin view)
|
||||||
|
if (isset($view['edit_create_site_view'])
|
||||||
|
&& is_numeric($view['edit_create_site_view'])
|
||||||
|
&& $view['edit_create_site_view'] > 0)
|
||||||
|
{
|
||||||
|
// setup the front site edit-view files
|
||||||
|
$target = ['site' => $view['settings']->name_single];
|
||||||
|
$this->structure->build($target, 'edit', false, $config);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// build the list view
|
||||||
|
if ($view['settings']->name_list != 'null')
|
||||||
|
{
|
||||||
|
$target = ['admin' => $view['settings']->name_list];
|
||||||
|
$this->structure->build($target, 'list', false, $config);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build the custom view
|
||||||
|
*
|
||||||
|
* @param array $view
|
||||||
|
* @param array $config
|
||||||
|
* @param string $type
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function buildView(array $view, array $config, string $type)
|
||||||
|
{
|
||||||
|
$target = [$type => $view['settings']->code];
|
||||||
|
$view_type = ($view['settings']->main_get->gettype == 1) ? 'single' : 'list';
|
||||||
|
|
||||||
|
$this->structure->build($target, $view_type, false, $config);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,609 @@
|
|||||||
|
<?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\Component;
|
||||||
|
|
||||||
|
|
||||||
|
use Joomla\CMS\Factory;
|
||||||
|
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;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Counter;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Paths;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Files;
|
||||||
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Single Files and Folders Builder Class
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
class Structuresingle
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The new name
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected string $newName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Current Full Path
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected string $currentFullPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Package Full Path
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected string $packageFullPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ZIP Full Path
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected string $zipFullPath;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Config
|
||||||
|
*
|
||||||
|
* @var Config
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Config $config;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* The compiler registry
|
||||||
|
*
|
||||||
|
* @var Registry
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Registry $registry;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component Joomla Version Settings
|
||||||
|
*
|
||||||
|
* @var Settings
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Settings $settings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component
|
||||||
|
*
|
||||||
|
* @var Component
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Component $component;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Content
|
||||||
|
*
|
||||||
|
* @var Content
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Content $content;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Counter
|
||||||
|
*
|
||||||
|
* @var Counter
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Counter $counter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Paths
|
||||||
|
*
|
||||||
|
* @var Paths
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Paths $paths;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Utilities Files
|
||||||
|
*
|
||||||
|
* @var Files
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Files $files;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Application object.
|
||||||
|
*
|
||||||
|
* @var CMSApplication
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected CMSApplication $app;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 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.
|
||||||
|
*
|
||||||
|
* @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)
|
||||||
|
{
|
||||||
|
$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->app = $app ?: Factory::getApplication();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build the Single Files & Folders
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function build(): bool
|
||||||
|
{
|
||||||
|
if ($this->settings->exists())
|
||||||
|
{
|
||||||
|
// TODO needs more looking at this must be dynamic actually
|
||||||
|
$this->registry->appendArray('files.not.new', 'LICENSE.txt');
|
||||||
|
|
||||||
|
// do license check
|
||||||
|
$LICENSE = $this->doLicenseCheck();
|
||||||
|
|
||||||
|
// do README check
|
||||||
|
$README = $this->doReadmeCheck();
|
||||||
|
|
||||||
|
// start moving
|
||||||
|
foreach ($this->settings->single() as $target => $details)
|
||||||
|
{
|
||||||
|
// if not gnu/gpl license dont add the LICENSE.txt file
|
||||||
|
if ($details->naam === 'LICENSE.txt' && !$LICENSE)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// if not needed do not add
|
||||||
|
if (($details->naam === 'README.md' || $details->naam === 'README.txt')
|
||||||
|
&& !$README)
|
||||||
|
{
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
// set new name
|
||||||
|
$this->setNewName($details);
|
||||||
|
|
||||||
|
// set all paths
|
||||||
|
$this->setPaths($details);
|
||||||
|
|
||||||
|
// check if the path exists
|
||||||
|
if ($this->pathExist($details))
|
||||||
|
{
|
||||||
|
// set the target
|
||||||
|
$this->setTarget($target, $details);
|
||||||
|
}
|
||||||
|
|
||||||
|
// set dynamic target as needed
|
||||||
|
$this->setDynamicTarget($details);
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if license must be added
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function doLicenseCheck(): bool
|
||||||
|
{
|
||||||
|
$licenseChecker = strtolower((string) $this->component->get('license', ''));
|
||||||
|
|
||||||
|
if (strpos($licenseChecker, 'gnu') !== false
|
||||||
|
&& strpos(
|
||||||
|
$licenseChecker, '2'
|
||||||
|
) !== false
|
||||||
|
&& (strpos($licenseChecker, 'gpl') !== false
|
||||||
|
|| strpos(
|
||||||
|
$licenseChecker, 'General public license'
|
||||||
|
) !== false))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if readme must be added
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function doReadmeCheck(): bool
|
||||||
|
{
|
||||||
|
if ($this->component->get('addreadme', false))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the new name
|
||||||
|
*
|
||||||
|
* @param object $details
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setNewName(object $details)
|
||||||
|
{
|
||||||
|
// do the file renaming
|
||||||
|
if (isset($details->rename) && $details->rename)
|
||||||
|
{
|
||||||
|
if ($details->rename === 'new')
|
||||||
|
{
|
||||||
|
$this->newName = $details->newName;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->newName = str_replace(
|
||||||
|
$details->rename,
|
||||||
|
$this->config->component_code_name,
|
||||||
|
(string) $details->naam
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->newName = $details->naam;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set all needed paths
|
||||||
|
*
|
||||||
|
* @param object $details
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setPaths(object $details)
|
||||||
|
{
|
||||||
|
// check if we have a target value
|
||||||
|
if (isset($details->_target))
|
||||||
|
{
|
||||||
|
// set destination path
|
||||||
|
$zipPath = str_replace(
|
||||||
|
$details->_target['type'] . '/', '', (string) $details->path
|
||||||
|
);
|
||||||
|
$path = str_replace(
|
||||||
|
$details->_target['type'] . '/',
|
||||||
|
$this->registry->get('dynamic_paths.' . $details->_target['key'], '') . '/',
|
||||||
|
(string) $details->path
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// set destination path
|
||||||
|
$zipPath = str_replace('c0mp0n3nt/', '', (string) $details->path);
|
||||||
|
$path = str_replace(
|
||||||
|
'c0mp0n3nt/', $this->paths->component_path . '/', (string) $details->path
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
// set the template folder path
|
||||||
|
$templatePath = (isset($details->custom) && $details->custom)
|
||||||
|
? (($details->custom !== 'full') ? $this->paths->template_path_custom
|
||||||
|
. '/' : '') : $this->paths->template_path . '/';
|
||||||
|
|
||||||
|
// set the final paths
|
||||||
|
$currentFullPath = (preg_match('/^[a-z]:/i', (string) $details->naam)) ? $details->naam
|
||||||
|
: $templatePath . '/' . $details->naam;
|
||||||
|
|
||||||
|
$this->currentFullPath = str_replace('//', '/', (string) $currentFullPath);
|
||||||
|
|
||||||
|
$this->packageFullPath = str_replace('//', '/', $path . '/' . $this->newName);
|
||||||
|
|
||||||
|
$this->zipFullPath = str_replace(
|
||||||
|
'//', '/', $zipPath . '/' . $this->newName
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if path exists
|
||||||
|
*
|
||||||
|
* @param object $details
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function pathExist(object $details): bool
|
||||||
|
{
|
||||||
|
// check if this has a type
|
||||||
|
if (!isset($details->type))
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
// take action based on type
|
||||||
|
elseif ($details->type === 'file' && !File::exists($this->currentFullPath))
|
||||||
|
{
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEFILE_PATH_ERRORHTHREE'), 'Error'
|
||||||
|
);
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::sprintf('COM_COMPONENTBUILDER_THE_FILE_PATH_BSB_DOES_NOT_EXIST_AND_WAS_NOT_ADDED',
|
||||||
|
$this->currentFullPath
|
||||||
|
), 'Error'
|
||||||
|
);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
elseif ($details->type === 'folder' && !Folder::exists($this->currentFullPath))
|
||||||
|
{
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEFOLDER_PATH_ERRORHTHREE'),
|
||||||
|
'Error'
|
||||||
|
);
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::sprintf('COM_COMPONENTBUILDER_THE_FOLDER_PATH_BSB_DOES_NOT_EXIST_AND_WAS_NOT_ADDED',
|
||||||
|
$this->currentFullPath
|
||||||
|
), 'Error'
|
||||||
|
);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the target based on target type
|
||||||
|
*
|
||||||
|
* @param string $target
|
||||||
|
* @param object $details
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setTarget(string $target, object $details)
|
||||||
|
{
|
||||||
|
// take action based on type
|
||||||
|
if ($details->type === 'file')
|
||||||
|
{
|
||||||
|
// move the file
|
||||||
|
$this->moveFile();
|
||||||
|
|
||||||
|
// register the file
|
||||||
|
$this->registerFile($target, $details);
|
||||||
|
}
|
||||||
|
elseif ($details->type === 'folder')
|
||||||
|
{
|
||||||
|
// move the folder to its place
|
||||||
|
Folder::copy(
|
||||||
|
$this->currentFullPath, $this->packageFullPath, '', true
|
||||||
|
);
|
||||||
|
|
||||||
|
// count the folder created
|
||||||
|
$this->counter->folder++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Move/Copy the file into place
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function moveFile()
|
||||||
|
{
|
||||||
|
// get base name && get the path only
|
||||||
|
$packageFullPath0nly = str_replace(
|
||||||
|
basename($this->packageFullPath), '', $this->packageFullPath
|
||||||
|
);
|
||||||
|
|
||||||
|
// check if path exist, if not creat it
|
||||||
|
if (!Folder::exists($packageFullPath0nly))
|
||||||
|
{
|
||||||
|
Folder::create($packageFullPath0nly);
|
||||||
|
}
|
||||||
|
|
||||||
|
// move the file to its place
|
||||||
|
File::copy($this->currentFullPath, $this->packageFullPath);
|
||||||
|
|
||||||
|
// count the file created
|
||||||
|
$this->counter->file++;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Register the file
|
||||||
|
*
|
||||||
|
* @param string $target
|
||||||
|
* @param object $details
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function registerFile(string $target, object $details)
|
||||||
|
{
|
||||||
|
// store the new files
|
||||||
|
if (!in_array($target, $this->registry->get('files.not.new', [])))
|
||||||
|
{
|
||||||
|
if (isset($details->_target))
|
||||||
|
{
|
||||||
|
$this->files->appendArray($details->_target['key'],
|
||||||
|
[
|
||||||
|
'path' => $this->packageFullPath,
|
||||||
|
'name' => $this->newName,
|
||||||
|
'zip' => $this->zipFullPath
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->files->appendArray('static',
|
||||||
|
[
|
||||||
|
'path' => $this->packageFullPath,
|
||||||
|
'name' => $this->newName,
|
||||||
|
'zip' => $this->zipFullPath
|
||||||
|
]
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// ensure we update this file if needed
|
||||||
|
if ($this->registry->exists('update.file.content.' . $target))
|
||||||
|
{
|
||||||
|
// remove the pointer
|
||||||
|
$this->registry->remove('update.file.content.' . $target);
|
||||||
|
|
||||||
|
// set the full path
|
||||||
|
$this->registry->set('update.file.content.' . $this->packageFullPath, $this->packageFullPath);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set Dynamic Target
|
||||||
|
*
|
||||||
|
* @param object $details
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setDynamicTarget(object $details)
|
||||||
|
{
|
||||||
|
// only add if no target found since those belong to plugins and modules
|
||||||
|
if (!isset($details->_target))
|
||||||
|
{
|
||||||
|
// check if we should add the dynamic folder moving script to the installer script
|
||||||
|
$checker = array_values((array) explode('/', $this->zipFullPath));
|
||||||
|
|
||||||
|
// TODO <-- this may not be the best way, will keep an eye on this.
|
||||||
|
// We basicly only want to check if a folder is added that is not in the stdFolders array
|
||||||
|
if (isset($checker[0])
|
||||||
|
&& StringHelper::check($checker[0])
|
||||||
|
&& !$this->settings->standardFolder($checker[0]))
|
||||||
|
{
|
||||||
|
// activate dynamic folders
|
||||||
|
$this->setDynamicFolders();
|
||||||
|
}
|
||||||
|
elseif (count((array) $checker) == 2
|
||||||
|
&& StringHelper::check($checker[0]))
|
||||||
|
{
|
||||||
|
$add_to_extra = false;
|
||||||
|
|
||||||
|
// set the target
|
||||||
|
$eNAME = 'FILES';
|
||||||
|
$ename = 'filename';
|
||||||
|
|
||||||
|
// this should not happen and must have been caught by the above if statment
|
||||||
|
if ($details->type === 'folder')
|
||||||
|
{
|
||||||
|
// only folders outside the standard folder are added
|
||||||
|
$eNAME = 'FOLDERS';
|
||||||
|
$ename = 'folder';
|
||||||
|
$add_to_extra = true;
|
||||||
|
}
|
||||||
|
// if this is a file, it can only be added to the admin/site/media folders
|
||||||
|
// all other folders are moved as a whole so their files do not need to be declared
|
||||||
|
elseif ($this->settings->standardFolder($checker[0])
|
||||||
|
&& !$this->settings->standardRootFile($checker[1]))
|
||||||
|
{
|
||||||
|
$add_to_extra = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
// add if valid folder/file
|
||||||
|
if ($add_to_extra)
|
||||||
|
{
|
||||||
|
// set the tab
|
||||||
|
$eTab = Indent::_(2);
|
||||||
|
if ('admin' === $checker[0])
|
||||||
|
{
|
||||||
|
$eTab = Indent::_(3);
|
||||||
|
}
|
||||||
|
|
||||||
|
// set the xml file
|
||||||
|
$key_ = 'EXSTRA_'
|
||||||
|
. StringHelper::safe(
|
||||||
|
$checker[0], 'U'
|
||||||
|
) . '_' . $eNAME;
|
||||||
|
$this->content->add($key_,
|
||||||
|
PHP_EOL . $eTab . "<" . $ename . ">"
|
||||||
|
. $checker[1] . "</" . $ename . ">");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add the dynamic folders
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setDynamicFolders()
|
||||||
|
{
|
||||||
|
// check if we should add the dynamic folder moving script to the installer script
|
||||||
|
if (!$this->registry->get('set_move_folders_install_script'))
|
||||||
|
{
|
||||||
|
// add the setDynamicF0ld3rs() method to the install scipt.php file
|
||||||
|
$this->registry->set('set_move_folders_install_script', true);
|
||||||
|
|
||||||
|
// set message that this was done (will still add a tutorial link later)
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEDYNAMIC_FOLDERS_WERE_DETECTEDHTHREE'),
|
||||||
|
'Notice'
|
||||||
|
);
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::sprintf('COM_COMPONENTBUILDER_A_METHOD_SETDYNAMICFZEROLDTHREERS_WAS_ADDED_TO_THE_INSTALL_BSCRIPTPHPB_OF_THIS_PACKAGE_TO_INSURE_THAT_THE_FOLDERS_ARE_COPIED_INTO_THE_CORRECT_PLACE_WHEN_THIS_COMPONENT_IS_INSTALLED'),
|
||||||
|
'Notice'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -101,6 +101,17 @@ class Config extends BaseConfig
|
|||||||
return false; // default is false
|
return false; // default is false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get add checkin
|
||||||
|
*
|
||||||
|
* @return bool add checkin switch
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function getAddcheckin(): bool
|
||||||
|
{
|
||||||
|
return false; // default is false
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get posted component id
|
* get posted component id
|
||||||
*
|
*
|
||||||
@ -169,7 +180,7 @@ class Config extends BaseConfig
|
|||||||
*/
|
*/
|
||||||
protected function getJoomlaversion(): int
|
protected function getJoomlaversion(): int
|
||||||
{
|
{
|
||||||
return $this->input->post->get('joomla_version', 3, 'INT');
|
return 3; // $this->input->post->get('joomla_version', 3, 'INT');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -208,6 +219,17 @@ class Config extends BaseConfig
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get show advanced options switch
|
||||||
|
*
|
||||||
|
* @return bool show advanced options
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function getShowadvancedoptions(): bool
|
||||||
|
{
|
||||||
|
return (bool) $this->input->post->get('show_advanced_options', 0, 'INT');
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get indentation value
|
* get indentation value
|
||||||
*
|
*
|
||||||
@ -216,7 +238,60 @@ class Config extends BaseConfig
|
|||||||
*/
|
*/
|
||||||
protected function getIndentationvalue(): string
|
protected function getIndentationvalue(): string
|
||||||
{
|
{
|
||||||
return "\t"; // TODO add to GUI as an Global Option?
|
// if advanced options is active
|
||||||
|
if ($this->show_advanced_options)
|
||||||
|
{
|
||||||
|
$indentation_value = $this->input->post->get('indentation_value', 1, 'INT');
|
||||||
|
|
||||||
|
switch($indentation_value)
|
||||||
|
{
|
||||||
|
case 2:
|
||||||
|
// two spaces
|
||||||
|
return " ";
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
// four spaces
|
||||||
|
return " ";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return "\t";
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get add build date switch
|
||||||
|
*
|
||||||
|
* @return int add build date options
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function getAddbuilddate(): int
|
||||||
|
{
|
||||||
|
// if advanced options is active
|
||||||
|
if ($this->show_advanced_options)
|
||||||
|
{
|
||||||
|
// 1=default 2=manual 3=component
|
||||||
|
return $this->input->post->get('add_build_date', 1, 'INT');
|
||||||
|
}
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get build date
|
||||||
|
*
|
||||||
|
* @return string build date
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function getBuilddate(): string
|
||||||
|
{
|
||||||
|
// if advanced options is active and manual date selected
|
||||||
|
if ($this->show_advanced_options && $this->add_build_date == 2)
|
||||||
|
{
|
||||||
|
return $this->input->post->get('build_date', 'now', 'STRING');
|
||||||
|
}
|
||||||
|
|
||||||
|
return "now";
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -25,8 +25,8 @@ use VDM\Joomla\Componentbuilder\Compiler\Customcode\Gui;
|
|||||||
use VDM\Joomla\Componentbuilder\Compiler\Customcode\Extractor\Paths;
|
use VDM\Joomla\Componentbuilder\Compiler\Customcode\Extractor\Paths;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Placeholder\Reverse;
|
use VDM\Joomla\Componentbuilder\Compiler\Placeholder\Reverse;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Component\Placeholder;
|
use VDM\Joomla\Componentbuilder\Compiler\Component\Placeholder;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Pathfix;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Placefix;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Placefix;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Path;
|
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Interfaces\Customcode\ExtractorInterface;
|
use VDM\Joomla\Componentbuilder\Compiler\Interfaces\Customcode\ExtractorInterface;
|
||||||
|
|
||||||
|
|
||||||
@ -179,6 +179,14 @@ class Extractor implements ExtractorInterface
|
|||||||
**/
|
**/
|
||||||
protected Placeholder $componentPlaceholder;
|
protected Placeholder $componentPlaceholder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Component Pathfix
|
||||||
|
*
|
||||||
|
* @var Pathfix
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Pathfix $pathfix;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Current User Object
|
* Current User Object
|
||||||
*
|
*
|
||||||
@ -211,6 +219,7 @@ class Extractor implements ExtractorInterface
|
|||||||
* @param Paths|null $paths The compiler customcode extractor paths object.
|
* @param Paths|null $paths The compiler customcode extractor paths object.
|
||||||
* @param Reverse|null $reverse The compiler placeholder reverse object.
|
* @param Reverse|null $reverse The compiler placeholder reverse object.
|
||||||
* @param Placeholder|null $placeholder The compiler component placeholder object.
|
* @param Placeholder|null $placeholder The compiler component placeholder object.
|
||||||
|
* @param Pathfix|null $pathfix The compiler path fixing object.
|
||||||
* @param User|null $user The current User object.
|
* @param User|null $user The current User object.
|
||||||
* @param \JDatabaseDriver|null $db The Database Driver object.
|
* @param \JDatabaseDriver|null $db The Database Driver object.
|
||||||
* @param CMSApplication|null $app The CMS Application object.
|
* @param CMSApplication|null $app The CMS Application object.
|
||||||
@ -219,7 +228,7 @@ class Extractor implements ExtractorInterface
|
|||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function __construct(?Config $config = null, ?Gui $gui = null, ?Paths $paths = null,
|
public function __construct(?Config $config = null, ?Gui $gui = null, ?Paths $paths = null,
|
||||||
?Reverse $reverse = null, ?Placeholder $placeholder = null,
|
?Reverse $reverse = null, ?Placeholder $placeholder = null, ?Pathfix $pathfix = null,
|
||||||
?User $user = null, ?\JDatabaseDriver $db = null, ?CMSApplication $app = null)
|
?User $user = null, ?\JDatabaseDriver $db = null, ?CMSApplication $app = null)
|
||||||
{
|
{
|
||||||
$this->config = $config ?: Compiler::_('Config');
|
$this->config = $config ?: Compiler::_('Config');
|
||||||
@ -227,6 +236,7 @@ class Extractor implements ExtractorInterface
|
|||||||
$this->paths = $paths ?: Compiler::_('Customcode.Extractor.Paths');
|
$this->paths = $paths ?: Compiler::_('Customcode.Extractor.Paths');
|
||||||
$this->reverse = $reverse ?: Compiler::_('Placeholder.Reverse');
|
$this->reverse = $reverse ?: Compiler::_('Placeholder.Reverse');
|
||||||
$this->componentPlaceholder = $placeholder ?: Compiler::_('Component.Placeholder');
|
$this->componentPlaceholder = $placeholder ?: Compiler::_('Component.Placeholder');
|
||||||
|
$this->pathfix = $pathfix ?: Compiler::_('Utilities.Pathfix');
|
||||||
$this->user = $user ?: Factory::getUser();
|
$this->user = $user ?: Factory::getUser();
|
||||||
$this->db = $db ?: Factory::getDbo();
|
$this->db = $db ?: Factory::getDbo();
|
||||||
$this->app = $app ?: Factory::getApplication();
|
$this->app = $app ?: Factory::getApplication();
|
||||||
@ -581,7 +591,7 @@ class Extractor implements ExtractorInterface
|
|||||||
);
|
);
|
||||||
|
|
||||||
// for good practice
|
// for good practice
|
||||||
Path::fix($path);
|
$this->pathfix->set($path);
|
||||||
|
|
||||||
// all new records we can do a bulk insert
|
// all new records we can do a bulk insert
|
||||||
if ($i === 1 || !$id)
|
if ($i === 1 || !$id)
|
||||||
|
@ -33,11 +33,11 @@ use VDM\Joomla\Utilities\FileHelper;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Joomla Module Builder Class
|
* Joomla Module Structure Builder Class
|
||||||
*
|
*
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
class Builder
|
class Structure
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Compiler Joomla Module Data Class
|
* Compiler Joomla Module Data Class
|
||||||
@ -159,7 +159,7 @@ class Builder
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function build()
|
||||||
{
|
{
|
||||||
if ($this->module->exists())
|
if ($this->module->exists())
|
||||||
{
|
{
|
@ -37,7 +37,7 @@ use VDM\Joomla\Utilities\FileHelper;
|
|||||||
*
|
*
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
class Builder
|
class Structure
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Compiler Joomla Plugin Data Class
|
* Compiler Joomla Plugin Data Class
|
||||||
@ -159,7 +159,7 @@ class Builder
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function build()
|
||||||
{
|
{
|
||||||
if ($this->plugin->exists())
|
if ($this->plugin->exists())
|
||||||
{
|
{
|
@ -31,11 +31,11 @@ use VDM\Joomla\Utilities\FileHelper;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Library Builder Class
|
* Library Structure Builder Class
|
||||||
*
|
*
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
class Builder
|
class Structure
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Compiler Config
|
* Compiler Config
|
||||||
@ -147,7 +147,7 @@ class Builder
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function build()
|
||||||
{
|
{
|
||||||
if (($libraries_ = $this->registry->get('builder.libraries')) !== null)
|
if (($libraries_ = $this->registry->get('builder.libraries')) !== null)
|
||||||
{
|
{
|
@ -0,0 +1,52 @@
|
|||||||
|
<?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\Model;
|
||||||
|
|
||||||
|
|
||||||
|
use Joomla\CMS\Factory;
|
||||||
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model - Get Create Date
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
class Createdate
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Get the create date of an item
|
||||||
|
*
|
||||||
|
* @param mixed $item The item data
|
||||||
|
*
|
||||||
|
* @return string The create data
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function get(&$item): string
|
||||||
|
{
|
||||||
|
if (isset($item['settings']->created)
|
||||||
|
&& StringHelper::check($item['settings']->created))
|
||||||
|
{
|
||||||
|
// first set the main date
|
||||||
|
$date = strtotime((string) $item['settings']->created);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// first set the main date
|
||||||
|
$date = strtotime("now");
|
||||||
|
}
|
||||||
|
|
||||||
|
return Factory::getDate($date)->format('jS F, Y');
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,155 @@
|
|||||||
|
<?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\Model;
|
||||||
|
|
||||||
|
|
||||||
|
use Joomla\CMS\Factory;
|
||||||
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
|
use VDM\Joomla\Utilities\ObjectHelper;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Model - Get Modified Date
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
class Modifieddate
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The array of last modified dates
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected array $last = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the last modified date of an item
|
||||||
|
*
|
||||||
|
* @param array $item The item data
|
||||||
|
*
|
||||||
|
* @return string The modified date
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function get(array $item): string
|
||||||
|
{
|
||||||
|
$key = $this->getKey($item);
|
||||||
|
|
||||||
|
if (!isset($this->last[$key]))
|
||||||
|
{
|
||||||
|
$date = max($this->getDate($item), $this->getModified($item));
|
||||||
|
|
||||||
|
$this->last[$key] = Factory::getDate($date)->format(
|
||||||
|
'jS F, Y'
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->last[$key];
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the last modified date of an item
|
||||||
|
*
|
||||||
|
* @param array $item The item data
|
||||||
|
*
|
||||||
|
* @return int The modified date as int
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function getDate(array $item): int
|
||||||
|
{
|
||||||
|
if (isset($item['settings']) && isset($item['settings']->modified)
|
||||||
|
&& StringHelper::check($item['settings']->modified)
|
||||||
|
&& '0000-00-00 00:00:00' !== $item['settings']->modified)
|
||||||
|
{
|
||||||
|
return strtotime((string) $item['settings']->modified);
|
||||||
|
}
|
||||||
|
|
||||||
|
return strtotime("now");
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the last modified date of an item's sub items
|
||||||
|
*
|
||||||
|
* @param array $item The item data
|
||||||
|
*
|
||||||
|
* @return int The modified date as int
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function getModified(array $item): int
|
||||||
|
{
|
||||||
|
$date = 0;
|
||||||
|
|
||||||
|
// if not settings is found
|
||||||
|
if (!isset($item['settings']) || !ObjectHelper::check($item['settings']))
|
||||||
|
{
|
||||||
|
return $date;
|
||||||
|
}
|
||||||
|
|
||||||
|
// check if we have fields
|
||||||
|
if (isset($item['settings']->fields) && ArrayHelper::check($item['settings']->fields))
|
||||||
|
{
|
||||||
|
foreach ($item['settings']->fields as $field)
|
||||||
|
{
|
||||||
|
if (isset($field['settings'])
|
||||||
|
&& ObjectHelper::check($field['settings'])
|
||||||
|
&& isset($field['settings']->modified)
|
||||||
|
&& StringHelper::check($field['settings']->modified)
|
||||||
|
&& '0000-00-00 00:00:00' !== $field['settings']->modified)
|
||||||
|
{
|
||||||
|
$modified = strtotime((string) $field['settings']->modified);
|
||||||
|
$date = max($date, $modified);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// check if we have a main dynamic get
|
||||||
|
elseif (isset($item['settings']->main_get)
|
||||||
|
&& ObjectHelper::check($item['settings']->main_get)
|
||||||
|
&& isset($item['settings']->main_get->modified)
|
||||||
|
&& StringHelper::check($item['settings']->main_get->modified)
|
||||||
|
&& '0000-00-00 00:00:00' !== $item['settings']->main_get->modified)
|
||||||
|
{
|
||||||
|
$modified = strtotime((string) $item['settings']->main_get->modified);
|
||||||
|
$date = max($date, $modified);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $date;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the key for an item
|
||||||
|
*
|
||||||
|
* @param array $item The item data
|
||||||
|
*
|
||||||
|
* @return string The key
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected function getKey(array $item): string
|
||||||
|
{
|
||||||
|
if (isset($item['adminview']))
|
||||||
|
{
|
||||||
|
return $item['adminview'] . 'admin';
|
||||||
|
}
|
||||||
|
elseif (isset($item['siteview']))
|
||||||
|
{
|
||||||
|
return $item['siteview'] . 'site';
|
||||||
|
}
|
||||||
|
elseif (isset($item['customadminview']))
|
||||||
|
{
|
||||||
|
return $item['customadminview'] . 'customadmin';
|
||||||
|
}
|
||||||
|
|
||||||
|
return 'error';
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -60,13 +60,13 @@ class Updatesql
|
|||||||
* @param mixed $old The old values
|
* @param mixed $old The old values
|
||||||
* @param mixed $new The new values
|
* @param mixed $new The new values
|
||||||
* @param string $type The type of values
|
* @param string $type The type of values
|
||||||
* @param int|null $key The id/key where values changed
|
* @param mixed $key The id/key where values changed
|
||||||
* @param array|null $ignore The ids to ignore
|
* @param array|null $ignore The ids to ignore
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function set($old, $new, string $type, ?int $key = null, ?array $ignore = null)
|
public function set($old, $new, string $type, $key = null, ?array $ignore = null)
|
||||||
{
|
{
|
||||||
// check if there were new items added
|
// check if there were new items added
|
||||||
if (ArrayHelper::check($new) && ArrayHelper::check($old))
|
if (ArrayHelper::check($new) && ArrayHelper::check($old))
|
||||||
@ -206,12 +206,12 @@ class Updatesql
|
|||||||
*
|
*
|
||||||
* @param string $type The type of values
|
* @param string $type The type of values
|
||||||
* @param int $item The item id to add
|
* @param int $item The item id to add
|
||||||
* @param int|null $key The id/key where values changed
|
* @param mixed $key The id/key where values changed
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function add(string $type, int $item, ?int $key = null)
|
protected function add(string $type, int $item, $key = null)
|
||||||
{
|
{
|
||||||
// add key if found
|
// add key if found
|
||||||
if ($key)
|
if ($key)
|
||||||
|
@ -134,6 +134,7 @@ class Power implements PowerInterface
|
|||||||
* @param \JDatabaseDriver|null $db The Database Driver object.
|
* @param \JDatabaseDriver|null $db The Database Driver object.
|
||||||
* @param CMSApplication|null $app The CMS Application object.
|
* @param CMSApplication|null $app The CMS Application object.
|
||||||
*
|
*
|
||||||
|
* @throws \Exception
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function __construct(?Config $config = null, ?Placeholder $placeholder = null,
|
public function __construct(?Config $config = null, ?Placeholder $placeholder = null,
|
||||||
@ -170,20 +171,20 @@ class Power implements PowerInterface
|
|||||||
/**
|
/**
|
||||||
* Get a power
|
* Get a power
|
||||||
*
|
*
|
||||||
* @param string $guid The global unique id of the power
|
* @param string $guid The global unique id of the power
|
||||||
* @param int $build Force build switch (to override global switch)
|
* @param int $build Force build switch (to override global switch)
|
||||||
*
|
*
|
||||||
* @return mixed
|
* @return object|null
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function get(string $guid, int $build = 0)
|
public function get(string $guid, int $build = 0): ?object
|
||||||
{
|
{
|
||||||
if (($this->config->get('add_power', true) || $build == 1) && $this->set($guid))
|
if (($this->config->get('add_power', true) || $build == 1) && $this->set($guid))
|
||||||
{
|
{
|
||||||
return $this->active[$guid];
|
return $this->active[$guid];
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -194,29 +195,19 @@ class Power implements PowerInterface
|
|||||||
* @return bool true on successful setting of a power
|
* @return bool true on successful setting of a power
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function set(string $guid): bool
|
private function set(string $guid): bool
|
||||||
{
|
{
|
||||||
// check if we have been here before
|
// check if we have been here before
|
||||||
if (isset($this->state[$guid]))
|
if ($this->isPowerSet($guid))
|
||||||
{
|
{
|
||||||
return $this->state[$guid];
|
return $this->state[$guid];
|
||||||
}
|
}
|
||||||
elseif (GuidHelper::valid($guid))
|
elseif ($this->isGuidValid($guid))
|
||||||
{
|
{
|
||||||
// Create a new query object.
|
// get the power data
|
||||||
$query = $this->db->getQuery(true);
|
$this->active[$guid] = $this->getPowerData($guid);
|
||||||
|
|
||||||
// select all values
|
if (is_object($this->active[$guid]))
|
||||||
$query->select('a.*');
|
|
||||||
|
|
||||||
// from this table
|
|
||||||
$query->from('#__componentbuilder_power AS a');
|
|
||||||
$query->where($this->db->quoteName('a.guid') . ' = ' . $this->db->quote($guid));
|
|
||||||
|
|
||||||
$this->db->setQuery($query);
|
|
||||||
$this->db->execute();
|
|
||||||
|
|
||||||
if ($this->db->getNumRows())
|
|
||||||
{
|
{
|
||||||
// make sure that in recursion we
|
// make sure that in recursion we
|
||||||
// don't try to load this power again
|
// don't try to load this power again
|
||||||
@ -224,9 +215,6 @@ class Power implements PowerInterface
|
|||||||
// all powers linked to it
|
// all powers linked to it
|
||||||
$this->state[$guid] = true;
|
$this->state[$guid] = true;
|
||||||
|
|
||||||
// get the power data
|
|
||||||
$this->active[$guid] = $this->db->loadObject();
|
|
||||||
|
|
||||||
// make sure to add any language strings found to all language files
|
// make sure to add any language strings found to all language files
|
||||||
// since we can't know where this is used at this point
|
// since we can't know where this is used at this point
|
||||||
$tmp_lang_target = $this->config->lang_target;
|
$tmp_lang_target = $this->config->lang_target;
|
||||||
@ -284,54 +272,17 @@ class Power implements PowerInterface
|
|||||||
$this->setExtend($guid, $use);
|
$this->setExtend($guid, $use);
|
||||||
|
|
||||||
// set GUI mapper
|
// set GUI mapper
|
||||||
$guiMapper = array('table' => 'power', 'id' => (int) $this->active[$guid]->id, 'type' => 'php');
|
$guiMapper = [
|
||||||
|
'table' => 'power',
|
||||||
|
'id' => (int) $this->active[$guid]->id,
|
||||||
|
'type' => 'php'
|
||||||
|
];
|
||||||
|
|
||||||
// add the licensing template
|
// add the licensing template
|
||||||
if ($this->active[$guid]->add_licensing_template == 2 &&
|
$this->setLicensingTemplate($guid, $guiMapper);
|
||||||
StringHelper::check($this->active[$guid]->licensing_template))
|
|
||||||
{
|
|
||||||
// set GUI mapper field
|
|
||||||
$guiMapper['field'] = 'licensing_template';
|
|
||||||
// base64 Decode code
|
|
||||||
$this->active[$guid]->licensing_template = $this->gui->set(
|
|
||||||
$this->placeholder->update_(
|
|
||||||
$this->customcode->update(
|
|
||||||
base64_decode(
|
|
||||||
(string) $this->active[$guid]->licensing_template
|
|
||||||
)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
$guiMapper
|
|
||||||
);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->active[$guid]->add_licensing_template = 1;
|
|
||||||
$this->active[$guid]->licensing_template = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// add the header script
|
// add the header script
|
||||||
if ($this->active[$guid]->add_head == 1)
|
$this->setHeader($guid, $guiMapper);
|
||||||
{
|
|
||||||
// set GUI mapper field
|
|
||||||
$guiMapper['field'] = 'head';
|
|
||||||
|
|
||||||
// base64 Decode code
|
|
||||||
$this->active[$guid]->head = $this->gui->set(
|
|
||||||
$this->placeholder->update_(
|
|
||||||
$this->customcode->update(
|
|
||||||
base64_decode(
|
|
||||||
(string) $this->active[$guid]->head
|
|
||||||
)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
$guiMapper
|
|
||||||
) . PHP_EOL;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$this->active[$guid]->head = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
// set composer
|
// set composer
|
||||||
$this->setComposer($guid);
|
$this->setComposer($guid);
|
||||||
@ -342,22 +293,7 @@ class Power implements PowerInterface
|
|||||||
) : '';
|
) : '';
|
||||||
|
|
||||||
// add the main code if set
|
// add the main code if set
|
||||||
if (StringHelper::check($this->active[$guid]->main_class_code))
|
$this->setMainClassCode($guid, $guiMapper);
|
||||||
{
|
|
||||||
// set GUI mapper field
|
|
||||||
$guiMapper['field'] = 'main_class_code';
|
|
||||||
// base64 Decode code
|
|
||||||
$this->active[$guid]->main_class_code = $this->gui->set(
|
|
||||||
$this->placeholder->update_(
|
|
||||||
$this->customcode->update(
|
|
||||||
base64_decode(
|
|
||||||
(string) $this->active[$guid]->main_class_code
|
|
||||||
)
|
|
||||||
)
|
|
||||||
),
|
|
||||||
$guiMapper
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
// load the use classes
|
// load the use classes
|
||||||
$this->setUseAs($guid, $use, $as);
|
$this->setUseAs($guid, $use, $as);
|
||||||
@ -372,7 +308,7 @@ class Power implements PowerInterface
|
|||||||
// we failed to get the power,
|
// we failed to get the power,
|
||||||
// so we raise an error message
|
// so we raise an error message
|
||||||
// only if guid is valid
|
// only if guid is valid
|
||||||
if (GuidHelper::valid($guid))
|
if ($this->isGuidValid($guid))
|
||||||
{
|
{
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('COM_COMPONENTBUILDER_PPOWER_BGUIDSB_NOT_FOUNDP', $guid),
|
Text::sprintf('COM_COMPONENTBUILDER_PPOWER_BGUIDSB_NOT_FOUNDP', $guid),
|
||||||
@ -386,6 +322,58 @@ class Power implements PowerInterface
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if the power is already set
|
||||||
|
*
|
||||||
|
* @param string $guid The global unique id of the power
|
||||||
|
*
|
||||||
|
* @return bool true if the power is already set
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function isPowerSet(string $guid): bool
|
||||||
|
{
|
||||||
|
return isset($this->state[$guid]);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Validate the GUID
|
||||||
|
*
|
||||||
|
* @param string $guid The global unique id of the power
|
||||||
|
*
|
||||||
|
* @return bool true if the GUID is valid
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function isGuidValid(string $guid): bool
|
||||||
|
{
|
||||||
|
return GuidHelper::valid($guid);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the power data from the database
|
||||||
|
*
|
||||||
|
* @param string $guid The global unique id of the power
|
||||||
|
*
|
||||||
|
* @return object|null The power data
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function getPowerData(string $guid): ?object
|
||||||
|
{
|
||||||
|
$query = $this->db->getQuery(true);
|
||||||
|
$query->select('a.*');
|
||||||
|
$query->from('#__componentbuilder_power AS a');
|
||||||
|
$query->where($this->db->quoteName('a.guid') . ' = ' . $this->db->quote($guid));
|
||||||
|
|
||||||
|
$this->db->setQuery($query);
|
||||||
|
$this->db->execute();
|
||||||
|
|
||||||
|
if ($this->db->getNumRows())
|
||||||
|
{
|
||||||
|
return $this->db->loadObject();
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the namespace for this power
|
* Set the namespace for this power
|
||||||
*
|
*
|
||||||
@ -394,7 +382,7 @@ class Power implements PowerInterface
|
|||||||
* @return bool
|
* @return bool
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function setNamespace(string $guid): bool
|
private function setNamespace(string $guid): bool
|
||||||
{
|
{
|
||||||
// set namespace
|
// set namespace
|
||||||
$this->active[$guid]->namespace = $this->placeholder->update_(
|
$this->active[$guid]->namespace = $this->placeholder->update_(
|
||||||
@ -534,7 +522,7 @@ class Power implements PowerInterface
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function setUseSelection(string $guid, array &$use, array &$as)
|
private function setUseSelection(string $guid, array &$use, array &$as)
|
||||||
{
|
{
|
||||||
// check if we have use selection
|
// check if we have use selection
|
||||||
$this->active[$guid]->use_selection = (isset($this->active[$guid]->use_selection)
|
$this->active[$guid]->use_selection = (isset($this->active[$guid]->use_selection)
|
||||||
@ -565,7 +553,7 @@ class Power implements PowerInterface
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function setLoadSelection(string $guid)
|
private function setLoadSelection(string $guid)
|
||||||
{
|
{
|
||||||
// check if we have load selection
|
// check if we have load selection
|
||||||
$this->active[$guid]->load_selection = (isset($this->active[$guid]->load_selection)
|
$this->active[$guid]->load_selection = (isset($this->active[$guid]->load_selection)
|
||||||
@ -592,12 +580,11 @@ class Power implements PowerInterface
|
|||||||
* Set Composer Linked Use and Access Point
|
* Set Composer Linked Use and Access Point
|
||||||
*
|
*
|
||||||
* @param string $guid The global unique id of the power
|
* @param string $guid The global unique id of the power
|
||||||
* @param array $use The use array
|
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function setComposer(string $guid)
|
private function setComposer(string $guid)
|
||||||
{
|
{
|
||||||
// does this have composer powers
|
// does this have composer powers
|
||||||
$_composer = (isset($this->active[$guid]->composer)
|
$_composer = (isset($this->active[$guid]->composer)
|
||||||
@ -665,7 +652,7 @@ class Power implements PowerInterface
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function setImplements(string $guid, array &$use)
|
private function setImplements(string $guid, array &$use)
|
||||||
{
|
{
|
||||||
// see if we have implements
|
// see if we have implements
|
||||||
$this->active[$guid]->implement_names = [];
|
$this->active[$guid]->implement_names = [];
|
||||||
@ -714,7 +701,7 @@ class Power implements PowerInterface
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function setExtend(string $guid, array &$use)
|
private function setExtend(string $guid, array &$use)
|
||||||
{
|
{
|
||||||
// does this extend something
|
// does this extend something
|
||||||
$this->active[$guid]->extends_name = null;
|
$this->active[$guid]->extends_name = null;
|
||||||
@ -748,11 +735,12 @@ class Power implements PowerInterface
|
|||||||
*
|
*
|
||||||
* @param string $guid The global unique id of the power
|
* @param string $guid The global unique id of the power
|
||||||
* @param array $use The use array
|
* @param array $use The use array
|
||||||
|
* @param array $as The use as array
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function setUseAs($guid, $use, $as)
|
private function setUseAs(string $guid, array $use, array $as)
|
||||||
{
|
{
|
||||||
// now add all the extra use statements
|
// now add all the extra use statements
|
||||||
if (ArrayHelper::check($use))
|
if (ArrayHelper::check($use))
|
||||||
@ -784,12 +772,12 @@ class Power implements PowerInterface
|
|||||||
* Get Clean Namespace without use or ; as part of the name space
|
* Get Clean Namespace without use or ; as part of the name space
|
||||||
*
|
*
|
||||||
* @param string $namespace The actual name space
|
* @param string $namespace The actual name space
|
||||||
* @input bool $removeNumbers The switch to remove numers
|
* @param bool $removeNumbers The switch to remove numbers
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function getCleanNamespace(string $namespace, bool $removeNumbers = true): string
|
private function getCleanNamespace(string $namespace, bool $removeNumbers = true): string
|
||||||
{
|
{
|
||||||
// trim possible (use) or (;) or (starting or ending \) added to the namespace
|
// trim possible (use) or (;) or (starting or ending \) added to the namespace
|
||||||
return NamespaceHelper::safe(str_replace(['use ', ';'], '', $namespace), $removeNumbers);
|
return NamespaceHelper::safe(str_replace(['use ', ';'], '', $namespace), $removeNumbers);
|
||||||
@ -804,7 +792,7 @@ class Power implements PowerInterface
|
|||||||
* @return string
|
* @return string
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function getUseNamespace(string $namespace, string $as = 'default'): string
|
private function getUseNamespace(string $namespace, string $as = 'default'): string
|
||||||
{
|
{
|
||||||
// check if it has an AS option
|
// check if it has an AS option
|
||||||
if ($as !== 'default')
|
if ($as !== 'default')
|
||||||
@ -823,7 +811,7 @@ class Power implements PowerInterface
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function addToHeader(string $guid, string $string)
|
private function addToHeader(string $guid, string $string)
|
||||||
{
|
{
|
||||||
// check if it is already added manually
|
// check if it is already added manually
|
||||||
if (isset($this->active[$guid]->head) &&
|
if (isset($this->active[$guid]->head) &&
|
||||||
@ -832,6 +820,106 @@ class Power implements PowerInterface
|
|||||||
$this->active[$guid]->head .= $string . PHP_EOL;
|
$this->active[$guid]->head .= $string . PHP_EOL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the power licensing template
|
||||||
|
*
|
||||||
|
* @param string $guid The global unique id of the power
|
||||||
|
* @param array $guiMapper The gui mapper array
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setLicensingTemplate(string $guid, array $guiMapper): void
|
||||||
|
{
|
||||||
|
if ($this->active[$guid]->add_licensing_template == 2 &&
|
||||||
|
StringHelper::check($this->active[$guid]->licensing_template))
|
||||||
|
{
|
||||||
|
// set GUI mapper field
|
||||||
|
$guiMapper['field'] = 'licensing_template';
|
||||||
|
|
||||||
|
// base64 Decode code
|
||||||
|
$this->active[$guid]->licensing_template = $this->gui->set(
|
||||||
|
$this->placeholder->update_(
|
||||||
|
$this->customcode->update(
|
||||||
|
base64_decode(
|
||||||
|
(string) $this->active[$guid]->licensing_template
|
||||||
|
)
|
||||||
|
)
|
||||||
|
),
|
||||||
|
$guiMapper
|
||||||
|
);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->active[$guid]->add_licensing_template = 1;
|
||||||
|
$this->active[$guid]->licensing_template = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the power header script
|
||||||
|
*
|
||||||
|
* @param string $guid The global unique id of the power
|
||||||
|
* @param array $guiMapper The gui mapper array
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setHeader(string $guid, array $guiMapper): void
|
||||||
|
{
|
||||||
|
if ($this->active[$guid]->add_head == 1)
|
||||||
|
{
|
||||||
|
// set GUI mapper field
|
||||||
|
$guiMapper['field'] = 'head';
|
||||||
|
|
||||||
|
// base64 Decode code
|
||||||
|
$this->active[$guid]->head = $this->gui->set(
|
||||||
|
$this->placeholder->update_(
|
||||||
|
$this->customcode->update(
|
||||||
|
base64_decode(
|
||||||
|
(string) $this->active[$guid]->head
|
||||||
|
)
|
||||||
|
)
|
||||||
|
),
|
||||||
|
$guiMapper
|
||||||
|
) . PHP_EOL;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$this->active[$guid]->head = '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the power main class code
|
||||||
|
*
|
||||||
|
* @param string $guid The global unique id of the power
|
||||||
|
* @param array $guiMapper The gui mapper array
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setMainClassCode(string $guid, array $guiMapper): void
|
||||||
|
{
|
||||||
|
if (StringHelper::check($this->active[$guid]->main_class_code))
|
||||||
|
{
|
||||||
|
// set GUI mapper field
|
||||||
|
$guiMapper['field'] = 'main_class_code';
|
||||||
|
|
||||||
|
// base64 Decode code
|
||||||
|
$this->active[$guid]->main_class_code = $this->gui->set(
|
||||||
|
$this->placeholder->update_(
|
||||||
|
$this->customcode->update(
|
||||||
|
base64_decode(
|
||||||
|
(string) $this->active[$guid]->main_class_code
|
||||||
|
)
|
||||||
|
)
|
||||||
|
),
|
||||||
|
$guiMapper
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,6 +52,14 @@ class Autoloader
|
|||||||
**/
|
**/
|
||||||
protected Content $content;
|
protected Content $content;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Helper Class Autoloader
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected string $helper = '';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor.
|
* Constructor.
|
||||||
*
|
*
|
||||||
@ -81,57 +89,205 @@ class Autoloader
|
|||||||
*/
|
*/
|
||||||
public function set()
|
public function set()
|
||||||
{
|
{
|
||||||
if (($size = ArrayHelper::check($this->power->namespace)) > 0)
|
if (ArrayHelper::check($this->power->namespace))
|
||||||
{
|
{
|
||||||
// set if we should load the autoloader on the site area
|
/************************* IMPORTANT SORT NOTICE ***********************************************
|
||||||
$loadSite = (!$this->config->remove_site_folder || !$this->config->remove_site_edit_folder);
|
* make sure the name space values are sorted from the longest string to the shortest
|
||||||
|
* so that the search do not mistakenly match a shorter namespace before a longer one
|
||||||
|
* that has the same short namespace for example:
|
||||||
|
* NameSpace\SubName\Sub <- will always match first
|
||||||
|
* NameSpace\SubName\SubSubName
|
||||||
|
* Should the shorter namespace be listed [first] it will match both of these:
|
||||||
|
* NameSpace\SubName\Sub\ClassName
|
||||||
|
* ^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
* NameSpace\SubName\SubSubName\ClassName
|
||||||
|
* ^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
***********************************************************************************************/
|
||||||
|
uksort($this->power->namespace, fn($a, $b) => strlen((string) $b) - strlen((string) $a));
|
||||||
|
|
||||||
// check if we are using a plugin
|
// check if we are using a plugin
|
||||||
$use_plugin = $this->content->exist('PLUGIN_POWER_AUTOLOADER');
|
if ($this->loadPluginAutoloader())
|
||||||
|
|
||||||
// build the methods
|
|
||||||
$autoload_not_site_method = [];
|
|
||||||
$autoload_method = [];
|
|
||||||
|
|
||||||
// add only if we are not using a plugin
|
|
||||||
$tab_space = 2;
|
|
||||||
if (!$use_plugin)
|
|
||||||
{
|
{
|
||||||
$autoload_not_site_method[] = PHP_EOL . PHP_EOL;
|
$this->content->set('PLUGIN_POWER_AUTOLOADER', $this->getPluginAutoloader());
|
||||||
$tab_space = 0;
|
|
||||||
}
|
|
||||||
elseif (!$loadSite)
|
|
||||||
{
|
|
||||||
// we add code to prevent this plugin from triggering on the site area
|
|
||||||
$autoload_not_site_method[] = PHP_EOL . Indent::_(2) . '//'
|
|
||||||
. Line::_(__Line__, __Class__) . ' do not run the autoloader in the site area';
|
|
||||||
$autoload_not_site_method[] = Indent::_(2) . 'if ($this->app->isClient(\'site\'))';
|
|
||||||
$autoload_not_site_method[] = Indent::_(2) . '{';
|
|
||||||
$autoload_not_site_method[] = Indent::_(3) . 'return;';
|
|
||||||
$autoload_not_site_method[] = Indent::_(2) . '}' . PHP_EOL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// load to the helper class
|
||||||
|
if ($this->loadHelperAutoloader())
|
||||||
|
{
|
||||||
|
// load to admin helper class
|
||||||
|
$this->content->add('ADMIN_POWER_HELPER', $this->getHelperAutoloader());
|
||||||
|
|
||||||
|
// load to site helper class if needed
|
||||||
|
if ($this->loadSiteAutoloader())
|
||||||
|
{
|
||||||
|
$this->content->add('SITE_POWER_HELPER', $this->getHelperAutoloader());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// to add to custom files
|
||||||
|
$this->content->add('CUSTOM_POWER_AUTOLOADER', $this->getHelperAutoloader());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should we load the plugin autoloader
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function loadPluginAutoloader(): bool
|
||||||
|
{
|
||||||
|
return $this->content->exist('PLUGIN_POWER_AUTOLOADER');
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should we load the helper class autoloader
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function loadHelperAutoloader(): bool
|
||||||
|
{
|
||||||
|
// for now we load it if the plugin is not loaded
|
||||||
|
// but we may want to add a switch that
|
||||||
|
// controls this behaviour.
|
||||||
|
return !$this->loadPluginAutoloader();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Should we load the autoloader in site area
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function loadSiteAutoloader(): bool
|
||||||
|
{
|
||||||
|
return (!$this->config->remove_site_folder || !$this->config->remove_site_edit_folder);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get helper autoloader code
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function getPluginAutoloader(): string
|
||||||
|
{
|
||||||
|
// load the code
|
||||||
|
$code = [];
|
||||||
|
|
||||||
|
// if we should not load in the site are
|
||||||
|
if (($script = $this->getBLockSiteLoading()) !== null)
|
||||||
|
{
|
||||||
|
$code[] = $script;
|
||||||
|
}
|
||||||
|
|
||||||
|
// add the composer stuff here
|
||||||
|
if (($script = $this->getComposer(2)) !== null)
|
||||||
|
{
|
||||||
|
$code[] = $script;
|
||||||
|
}
|
||||||
|
|
||||||
|
// get the helper autoloader
|
||||||
|
if (($script = $this->getAutoloader(2)) !== null)
|
||||||
|
{
|
||||||
|
$code[] = $script;
|
||||||
|
}
|
||||||
|
|
||||||
|
// if we have any
|
||||||
|
if (!empty($code))
|
||||||
|
{
|
||||||
|
return PHP_EOL . PHP_EOL . implode(PHP_EOL . PHP_EOL, $code);
|
||||||
|
}
|
||||||
|
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get helper autoloader code
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function getHelperAutoloader(): string
|
||||||
|
{
|
||||||
|
// check if it was already build
|
||||||
|
if (!empty($this->helper))
|
||||||
|
{
|
||||||
|
return $this->helper;
|
||||||
|
}
|
||||||
|
|
||||||
|
// load the code
|
||||||
|
$code = [];
|
||||||
|
|
||||||
|
// add the composer stuff here
|
||||||
|
if (($script = $this->getComposer(0)) !== null)
|
||||||
|
{
|
||||||
|
$code[] = $script;
|
||||||
|
}
|
||||||
|
|
||||||
|
// get the helper autoloader
|
||||||
|
if (($script = $this->getAutoloader(0)) !== null)
|
||||||
|
{
|
||||||
|
$code[] = $script;
|
||||||
|
}
|
||||||
|
|
||||||
|
// if we have any
|
||||||
|
if (!empty($code))
|
||||||
|
{
|
||||||
|
$this->helper = PHP_EOL . PHP_EOL . implode(PHP_EOL . PHP_EOL, $code);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->helper;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get code that will block the plugin from loading
|
||||||
|
* the autoloader in the site area
|
||||||
|
*
|
||||||
|
* @return string|null
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function getBLockSiteLoading(): ?string
|
||||||
|
{
|
||||||
|
// if we should not load in the site are
|
||||||
|
if (!$this->loadSiteAutoloader())
|
||||||
|
{
|
||||||
|
// we add code to prevent this plugin from triggering on the site area
|
||||||
|
$not_site = [];
|
||||||
|
$not_site[] = Indent::_(2) . '//'
|
||||||
|
. Line::_(__Line__, __Class__) . ' do not run the autoloader in the site area';
|
||||||
|
$not_site[] = Indent::_(2) . 'if ($this->app->isClient(\'site\'))';
|
||||||
|
$not_site[] = Indent::_(2) . '{';
|
||||||
|
$not_site[] = Indent::_(3) . 'return;';
|
||||||
|
$not_site[] = Indent::_(2) . '}';
|
||||||
|
|
||||||
|
return implode(PHP_EOL, $not_site);
|
||||||
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get autoloader code
|
||||||
|
*
|
||||||
|
* @param int $tabSpace The dynamic tab spacer
|
||||||
|
*
|
||||||
|
* @return string|null
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function getAutoloader(int $tabSpace): ?string
|
||||||
|
{
|
||||||
|
if (($size = ArrayHelper::check($this->power->namespace)) > 0)
|
||||||
|
{
|
||||||
// we start building the spl_autoload_register function call
|
// we start building the spl_autoload_register function call
|
||||||
$autoload_method[] = Indent::_($tab_space) . '//'
|
$autoload_method = [];
|
||||||
|
$autoload_method[] = Indent::_($tabSpace) . '//'
|
||||||
. Line::_(__Line__, __Class__) . ' register this component namespace';
|
. Line::_(__Line__, __Class__) . ' register this component namespace';
|
||||||
$autoload_method[] = Indent::_($tab_space) . 'spl_autoload_register(function ($class) {';
|
$autoload_method[] = Indent::_($tabSpace) . 'spl_autoload_register(function ($class) {';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '//'
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '//'
|
||||||
. Line::_(__Line__, __Class__) . ' project-specific base directories and namespace prefix';
|
. Line::_(__Line__, __Class__) . ' project-specific base directories and namespace prefix';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '$search = [';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '$search = [';
|
||||||
|
|
||||||
// ==== IMPORTANT NOTICE =====
|
|
||||||
// make sure the name space values are sorted from the longest string to the shortest
|
|
||||||
// so that the search do not mistakenly match a shorter namespace before a longer one
|
|
||||||
// that has the same short namespace for example:
|
|
||||||
// NameSpace\SubName\Sub <- will always match first
|
|
||||||
// NameSpace\SubName\SubSubName
|
|
||||||
// Should the shorter namespace be listed [first] it will match both of these:
|
|
||||||
// NameSpace\SubName\Sub\ClassName
|
|
||||||
// ^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
// NameSpace\SubName\SubSubName\ClassName
|
|
||||||
// ^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
uksort($this->power->namespace, fn($a, $b) => strlen((string) $b) - strlen((string) $a));
|
|
||||||
|
|
||||||
// counter to manage the comma in the actual array
|
// counter to manage the comma in the actual array
|
||||||
$counter = 1;
|
$counter = 1;
|
||||||
@ -140,137 +296,118 @@ class Autoloader
|
|||||||
// don't add the ending comma on last value
|
// don't add the ending comma on last value
|
||||||
if ($size == $counter)
|
if ($size == $counter)
|
||||||
{
|
{
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(2) . "'" . $this->config->get('jcb_powers_path', 'libraries/jcb_powers') . "/$base_dir' => '" . implode('\\\\', $prefix) . "'";
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(2) . "'" . $this->config->get('jcb_powers_path', 'libraries/jcb_powers') . "/$base_dir' => '" . implode('\\\\', $prefix) . "'";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(2) . "'" . $this->config->get('jcb_powers_path', 'libraries/jcb_powers') . "/$base_dir' => '" . implode('\\\\', $prefix) . "',";
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(2) . "'" . $this->config->get('jcb_powers_path', 'libraries/jcb_powers') . "/$base_dir' => '" . implode('\\\\', $prefix) . "',";
|
||||||
}
|
}
|
||||||
$counter++;
|
$counter++;
|
||||||
}
|
}
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '];';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '];';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '// Start the search and load if found';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '// Start the search and load if found';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '$found = false;';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '$found = false;';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '$found_base_dir = "";';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '$found_base_dir = "";';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '$found_len = 0;';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '$found_len = 0;';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . 'foreach ($search as $base_dir => $prefix)';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . 'foreach ($search as $base_dir => $prefix)';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '{';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '{';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(2) . '//'
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(2) . '//'
|
||||||
. Line::_(__Line__, __Class__) . ' does the class use the namespace prefix?';
|
. Line::_(__Line__, __Class__) . ' does the class use the namespace prefix?';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(2) . '$len = strlen($prefix);';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(2) . '$len = strlen($prefix);';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(2) . 'if (strncmp($prefix, $class, $len) === 0)';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(2) . 'if (strncmp($prefix, $class, $len) === 0)';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(2) . '{';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(2) . '{';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(3) . '//'
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(3) . '//'
|
||||||
. Line::_(__Line__, __Class__) . ' we have a match so load the values';
|
. Line::_(__Line__, __Class__) . ' we have a match so load the values';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(3) . '$found = true;';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(3) . '$found = true;';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(3) . '$found_base_dir = $base_dir;';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(3) . '$found_base_dir = $base_dir;';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(3) . '$found_len = $len;';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(3) . '$found_len = $len;';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(3) . '//'
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(3) . '//'
|
||||||
. Line::_(__Line__, __Class__) . ' done here';
|
. Line::_(__Line__, __Class__) . ' done here';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(3) . 'break;';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(3) . 'break;';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(2) . '}';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(2) . '}';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '}';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '}';
|
||||||
|
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '//'
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '//'
|
||||||
. Line::_(__Line__, __Class__) . ' check if we found a match';
|
. Line::_(__Line__, __Class__) . ' check if we found a match';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . 'if (!$found)';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . 'if (!$found)';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '{';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '{';
|
||||||
|
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(2) . '//'
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(2) . '//'
|
||||||
. Line::_(__Line__, __Class__) . ' not found so move to the next registered autoloader';
|
. Line::_(__Line__, __Class__) . ' not found so move to the next registered autoloader';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(2) . 'return;';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(2) . 'return;';
|
||||||
|
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '}';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '}';
|
||||||
|
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '//'
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '//'
|
||||||
. Line::_(__Line__, __Class__) . ' get the relative class name';
|
. Line::_(__Line__, __Class__) . ' get the relative class name';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '$relative_class = substr($class, $found_len);';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '$relative_class = substr($class, $found_len);';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '//'
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '//'
|
||||||
. Line::_(__Line__, __Class__) . ' replace the namespace prefix with the base directory, replace namespace';
|
. Line::_(__Line__, __Class__) . ' replace the namespace prefix with the base directory, replace namespace';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '// separators with directory separators in the relative class name, append';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '// separators with directory separators in the relative class name, append';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '// with .php';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '// with .php';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . "\$file = JPATH_ROOT . '/' . \$found_base_dir . '/src' . str_replace('\\\\', '/', \$relative_class) . '.php';";
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . "\$file = JPATH_ROOT . '/' . \$found_base_dir . '/src' . str_replace('\\\\', '/', \$relative_class) . '.php';";
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '//'
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '//'
|
||||||
. Line::_(__Line__, __Class__) . ' if the file exists, require it';
|
. Line::_(__Line__, __Class__) . ' if the file exists, require it';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . 'if (file_exists($file))';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . 'if (file_exists($file))';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '{';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '{';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(2) . 'require $file;';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(2) . 'require $file;';
|
||||||
$autoload_method[] = Indent::_($tab_space) . Indent::_(1) . '}';
|
$autoload_method[] = Indent::_($tabSpace) . Indent::_(1) . '}';
|
||||||
$autoload_method[] = Indent::_($tab_space) . '});';
|
$autoload_method[] = Indent::_($tabSpace) . '});';
|
||||||
|
|
||||||
// add the composer stuff here
|
return implode(PHP_EOL, $autoload_method);
|
||||||
$autoload_composer = '';
|
|
||||||
if (ArrayHelper::check($this->power->composer))
|
|
||||||
{
|
|
||||||
$autoload_composer = $this->getComposer($tab_space);
|
|
||||||
}
|
|
||||||
|
|
||||||
// create the method string
|
|
||||||
$autoloader = $autoload_composer . implode(PHP_EOL, $autoload_not_site_method) . implode(PHP_EOL, $autoload_method);
|
|
||||||
|
|
||||||
// check if we are using a plugin
|
|
||||||
if ($use_plugin)
|
|
||||||
{
|
|
||||||
$this->content->set('PLUGIN_POWER_AUTOLOADER', PHP_EOL . $autoloader);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// load to events placeholders
|
|
||||||
$this->content->add('ADMIN_POWER_HELPER', $autoloader);
|
|
||||||
// load to site if needed
|
|
||||||
if ($loadSite)
|
|
||||||
{
|
|
||||||
$this->content->add('SITE_POWER_HELPER', $autoloader);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// to add to custom files
|
|
||||||
$this->content->add('CUSTOM_POWER_AUTOLOADER', PHP_EOL . implode(PHP_EOL, $autoload_method));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the composer autoloader routine
|
* Get the composer autoloader routine
|
||||||
*
|
*
|
||||||
* @param string $tabSpace The dynamic tab spacer
|
* @param int $tabSpace The dynamic tab spacer
|
||||||
*
|
*
|
||||||
* @return string
|
* @return string|null
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function getComposer(string $tabSpace): string
|
private function getComposer(int $tabSpace): ?string
|
||||||
{
|
{
|
||||||
// load the composer routine
|
if (ArrayHelper::check($this->power->composer))
|
||||||
$composer_routine = [];
|
|
||||||
|
|
||||||
// counter to manage the comma in the actual array
|
|
||||||
$add_once = [];
|
|
||||||
foreach ($this->power->composer as $access_point)
|
|
||||||
{
|
{
|
||||||
// don't add the ending comma on last value
|
// load the composer routine
|
||||||
if (empty($add_once[$access_point]))
|
$composer_routine = [];
|
||||||
|
|
||||||
|
// counter to manage the comma in the actual array
|
||||||
|
$add_once = [];
|
||||||
|
foreach ($this->power->composer as $access_point)
|
||||||
{
|
{
|
||||||
$composer_routine[] = Indent::_($tabSpace) . "\$composer_autoloader = JPATH_LIBRARIES . '/$access_point';";
|
// don't add the ending comma on last value
|
||||||
$composer_routine[] = Indent::_($tabSpace) . 'if (file_exists($composer_autoloader))';
|
if (empty($add_once[$access_point]))
|
||||||
$composer_routine[] = Indent::_($tabSpace) . "{";
|
{
|
||||||
$composer_routine[] = Indent::_($tabSpace) . Indent::_(1) . 'require_once $composer_autoloader;';
|
$composer_routine[] = Indent::_($tabSpace) . "\$composer_autoloader = JPATH_LIBRARIES . '/$access_point';";
|
||||||
$composer_routine[] = Indent::_($tabSpace) . "}";
|
$composer_routine[] = Indent::_($tabSpace) . 'if (file_exists($composer_autoloader))';
|
||||||
|
$composer_routine[] = Indent::_($tabSpace) . "{";
|
||||||
|
$composer_routine[] = Indent::_($tabSpace) . Indent::_(1) . 'require_once $composer_autoloader;';
|
||||||
|
$composer_routine[] = Indent::_($tabSpace) . "}";
|
||||||
|
|
||||||
$add_once[$access_point] = true;
|
$add_once[$access_point] = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// this is just about the [autoloader or autoloaders] in the comment ;)
|
||||||
|
if (count($add_once) == 1)
|
||||||
|
{
|
||||||
|
array_unshift($composer_routine, Indent::_($tabSpace) . '//'
|
||||||
|
. Line::_(__Line__, __Class__) . ' add the autoloader for the composer classes');
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
array_unshift($composer_routine, Indent::_($tabSpace) . '//'
|
||||||
|
. Line::_(__Line__, __Class__) . ' add the autoloaders for the composer classes');
|
||||||
|
}
|
||||||
|
|
||||||
|
return implode(PHP_EOL, $composer_routine);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (count($add_once) == 1)
|
return null;
|
||||||
{
|
|
||||||
array_unshift($composer_routine, PHP_EOL . PHP_EOL . Indent::_($tabSpace) . '//'
|
|
||||||
. Line::_(__Line__, __Class__) . ' add the autoloader for the composer classes');
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
array_unshift($composer_routine, PHP_EOL . PHP_EOL . Indent::_($tabSpace) . '//'
|
|
||||||
. Line::_(__Line__, __Class__) . ' add the autoloaders for the composer classes');
|
|
||||||
}
|
|
||||||
|
|
||||||
return implode(PHP_EOL, $composer_routine);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -32,11 +32,11 @@ use VDM\Joomla\Componentbuilder\Compiler\Utilities\Placefix;
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Power Builder Class
|
* Power Structure Builder Class
|
||||||
*
|
*
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
class Builder
|
class Structure
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* we track the creation of htaccess files
|
* we track the creation of htaccess files
|
||||||
@ -166,7 +166,7 @@ class Builder
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function run()
|
public function build()
|
||||||
{
|
{
|
||||||
if (ArrayHelper::check($this->power->active))
|
if (ArrayHelper::check($this->power->active))
|
||||||
{
|
{
|
||||||
@ -315,7 +315,7 @@ class Builder
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
protected function setDynamicFolders()
|
private function setDynamicFolders()
|
||||||
{
|
{
|
||||||
// check if we should add the dynamic folder moving script to the installer script
|
// check if we should add the dynamic folder moving script to the installer script
|
||||||
if (!$this->registry->get('set_move_folders_install_script'))
|
if (!$this->registry->get('set_move_folders_install_script'))
|
@ -16,6 +16,7 @@ use Joomla\DI\Container;
|
|||||||
use Joomla\DI\ServiceProviderInterface;
|
use Joomla\DI\ServiceProviderInterface;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Config;
|
use VDM\Joomla\Componentbuilder\Compiler\Config;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Registry;
|
use VDM\Joomla\Componentbuilder\Compiler\Registry;
|
||||||
|
use VDM\Joomla\Componentbuilder\Table;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -40,6 +41,9 @@ class Compiler implements ServiceProviderInterface
|
|||||||
|
|
||||||
$container->alias(Registry::class, 'Registry')
|
$container->alias(Registry::class, 'Registry')
|
||||||
->share('Registry', [$this, 'getRegistry'], true);
|
->share('Registry', [$this, 'getRegistry'], true);
|
||||||
|
|
||||||
|
$container->alias(Table::class, 'Table')
|
||||||
|
->share('Table', [$this, 'getTable'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -67,6 +71,20 @@ class Compiler implements ServiceProviderInterface
|
|||||||
{
|
{
|
||||||
return new Registry();
|
return new Registry();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Table
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Table
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getTable(Container $container): Table
|
||||||
|
{
|
||||||
|
return new Table();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,9 +14,14 @@ namespace VDM\Joomla\Componentbuilder\Compiler\Service;
|
|||||||
|
|
||||||
use Joomla\DI\Container;
|
use Joomla\DI\Container;
|
||||||
use Joomla\DI\ServiceProviderInterface;
|
use Joomla\DI\ServiceProviderInterface;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Component as ComponentObject;
|
use VDM\Joomla\Componentbuilder\Compiler\Component as CompilerComponent;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Component\Placeholder as ComponentPlaceholder;
|
use VDM\Joomla\Componentbuilder\Compiler\Component\Settings;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Component\Data as ComponentData;
|
use VDM\Joomla\Componentbuilder\Compiler\Component\Dashboard;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Component\Placeholder;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Component\Data;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Component\Structure;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Component\Structuresingle;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Component\Structuremultiple;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -36,14 +41,29 @@ class Component implements ServiceProviderInterface
|
|||||||
*/
|
*/
|
||||||
public function register(Container $container)
|
public function register(Container $container)
|
||||||
{
|
{
|
||||||
$container->alias(ComponentObject::class, 'Component')
|
$container->alias(CompilerComponent::class, 'Component')
|
||||||
->share('Component', [$this, 'getComponent'], true);
|
->share('Component', [$this, 'getComponent'], true);
|
||||||
|
|
||||||
$container->alias(ComponentPlaceholder::class, 'Component.Placeholder')
|
$container->alias(Settings::class, 'Component.Settings')
|
||||||
->share('Component.Placeholder', [$this, 'getComponentPlaceholder'], true);
|
->share('Component.Settings', [$this, 'getSettings'], true);
|
||||||
|
|
||||||
$container->alias(ComponentData::class, 'Component.Data')
|
$container->alias(Dashboard::class, 'Component.Dashboard')
|
||||||
->share('Component.Data', [$this, 'getComponentData'], true);
|
->share('Component.Dashboard', [$this, 'getDashboard'], true);
|
||||||
|
|
||||||
|
$container->alias(Placeholder::class, 'Component.Placeholder')
|
||||||
|
->share('Component.Placeholder', [$this, 'getPlaceholder'], true);
|
||||||
|
|
||||||
|
$container->alias(Data::class, 'Component.Data')
|
||||||
|
->share('Component.Data', [$this, 'getData'], true);
|
||||||
|
|
||||||
|
$container->alias(Structure::class, 'Component.Structure')
|
||||||
|
->share('Component.Structure', [$this, 'getStructure'], true);
|
||||||
|
|
||||||
|
$container->alias(Structuresingle::class, 'Component.Structure.Single')
|
||||||
|
->share('Component.Structure.Single', [$this, 'getStructuresingle'], true);
|
||||||
|
|
||||||
|
$container->alias(Structuremultiple::class, 'Component.Structure.Multiple')
|
||||||
|
->share('Component.Structure.Multiple', [$this, 'getStructuremultiple'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -51,27 +71,65 @@ class Component implements ServiceProviderInterface
|
|||||||
*
|
*
|
||||||
* @param Container $container The DI container.
|
* @param Container $container The DI container.
|
||||||
*
|
*
|
||||||
* @return ComponentObject
|
* @return CompilerComponent
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function getComponent(Container $container): ComponentObject
|
public function getComponent(Container $container): CompilerComponent
|
||||||
{
|
{
|
||||||
return new ComponentObject(
|
return new CompilerComponent(
|
||||||
$container->get('Component.Data')
|
$container->get('Component.Data')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Compiler Component (version) Settings
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Settings
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getSettings(Container $container): Settings
|
||||||
|
{
|
||||||
|
return new Settings(
|
||||||
|
$container->get('Config'),
|
||||||
|
$container->get('Registry'),
|
||||||
|
$container->get('Event'),
|
||||||
|
$container->get('Placeholder'),
|
||||||
|
$container->get('Component'),
|
||||||
|
$container->get('Utilities.Paths'),
|
||||||
|
$container->get('Utilities.Dynamicpath'),
|
||||||
|
$container->get('Utilities.Pathfix')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Compiler Component Dynamic Dashboard
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Dashboard
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getDashboard(Container $container): Dashboard
|
||||||
|
{
|
||||||
|
return new Dashboard(
|
||||||
|
$container->get('Registry'),
|
||||||
|
$container->get('Component')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Component Placeholders
|
* Get the Component Placeholders
|
||||||
*
|
*
|
||||||
* @param Container $container The DI container.
|
* @param Container $container The DI container.
|
||||||
*
|
*
|
||||||
* @return ComponentPlaceholder
|
* @return Placeholder
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function getComponentPlaceholder(Container $container): ComponentPlaceholder
|
public function getPlaceholder(Container $container): Placeholder
|
||||||
{
|
{
|
||||||
return new ComponentPlaceholder(
|
return new Placeholder(
|
||||||
$container->get('Config')
|
$container->get('Config')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -81,12 +139,12 @@ class Component implements ServiceProviderInterface
|
|||||||
*
|
*
|
||||||
* @param Container $container The DI container.
|
* @param Container $container The DI container.
|
||||||
*
|
*
|
||||||
* @return ComponentData
|
* @return Data
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function getComponentData(Container $container): ComponentData
|
public function getData(Container $container): Data
|
||||||
{
|
{
|
||||||
return new ComponentData(
|
return new Data(
|
||||||
$container->get('Config'),
|
$container->get('Config'),
|
||||||
$container->get('Event'),
|
$container->get('Event'),
|
||||||
$container->get('Placeholder'),
|
$container->get('Placeholder'),
|
||||||
@ -107,6 +165,67 @@ class Component implements ServiceProviderInterface
|
|||||||
$container->get('Model.Joomlamodules'),
|
$container->get('Model.Joomlamodules'),
|
||||||
$container->get('Model.Joomlaplugins')
|
$container->get('Model.Joomlaplugins')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Compiler Structure
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Structure
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getStructure(Container $container): Structure
|
||||||
|
{
|
||||||
|
return new Structure(
|
||||||
|
$container->get('Component.Settings'),
|
||||||
|
$container->get('Utilities.Paths'),
|
||||||
|
$container->get('Utilities.Folder')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Compiler Structure Single
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Structuresingle
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getStructuresingle(Container $container): Structuresingle
|
||||||
|
{
|
||||||
|
return new Structuresingle(
|
||||||
|
$container->get('Config'),
|
||||||
|
$container->get('Registry'),
|
||||||
|
$container->get('Component.Settings'),
|
||||||
|
$container->get('Component'),
|
||||||
|
$container->get('Content'),
|
||||||
|
$container->get('Utilities.Counter'),
|
||||||
|
$container->get('Utilities.Paths'),
|
||||||
|
$container->get('Utilities.Files')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Compiler Structure Multiple
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Structuremultiple
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getStructuremultiple(Container $container): Structuremultiple
|
||||||
|
{
|
||||||
|
return new Structuremultiple(
|
||||||
|
$container->get('Config'),
|
||||||
|
$container->get('Registry'),
|
||||||
|
$container->get('Component.Settings'),
|
||||||
|
$container->get('Component'),
|
||||||
|
$container->get('Model.Createdate'),
|
||||||
|
$container->get('Model.Modifieddate'),
|
||||||
|
$container->get('Utilities.Structure')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -199,7 +199,8 @@ class Customcode implements ServiceProviderInterface
|
|||||||
$container->get('Customcode.Gui'),
|
$container->get('Customcode.Gui'),
|
||||||
$container->get('Customcode.Extractor.Paths'),
|
$container->get('Customcode.Extractor.Paths'),
|
||||||
$container->get('Placeholder.Reverse'),
|
$container->get('Placeholder.Reverse'),
|
||||||
$container->get('Component.Placeholder')
|
$container->get('Component.Placeholder'),
|
||||||
|
$container->get('Utilities.Pathfix')
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -14,8 +14,8 @@ namespace VDM\Joomla\Componentbuilder\Compiler\Service;
|
|||||||
|
|
||||||
use Joomla\DI\Container;
|
use Joomla\DI\Container;
|
||||||
use Joomla\DI\ServiceProviderInterface;
|
use Joomla\DI\ServiceProviderInterface;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Joomlamodule\Data as JoomlaModuleData;
|
use VDM\Joomla\Componentbuilder\Compiler\Joomlamodule\Data;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Joomlamodule\Builder as JoomlaModuleBuilder;
|
use VDM\Joomla\Componentbuilder\Compiler\Joomlamodule\Structure;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -35,11 +35,11 @@ class Joomlamodule implements ServiceProviderInterface
|
|||||||
*/
|
*/
|
||||||
public function register(Container $container)
|
public function register(Container $container)
|
||||||
{
|
{
|
||||||
$container->alias(JoomlaModuleData::class, 'Joomlamodule.Data')
|
$container->alias(Data::class, 'Joomlamodule.Data')
|
||||||
->share('Joomlamodule.Data', [$this, 'getJoomlaModuleData'], true);
|
->share('Joomlamodule.Data', [$this, 'getData'], true);
|
||||||
|
|
||||||
$container->alias(JoomlaModuleBuilder::class, 'Joomlamodule.Builder')
|
$container->alias(Structure::class, 'Joomlamodule.Structure')
|
||||||
->share('Joomlamodule.Builder', [$this, 'getJoomlaModuleBuilder'], true);
|
->share('Joomlamodule.Structure', [$this, 'getStructure'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -47,12 +47,12 @@ class Joomlamodule implements ServiceProviderInterface
|
|||||||
*
|
*
|
||||||
* @param Container $container The DI container.
|
* @param Container $container The DI container.
|
||||||
*
|
*
|
||||||
* @return JoomlaModuleData
|
* @return Data
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function getJoomlaModuleData(Container $container): JoomlaModuleData
|
public function getData(Container $container): Data
|
||||||
{
|
{
|
||||||
return new JoomlaModuleData(
|
return new Data(
|
||||||
$container->get('Config'),
|
$container->get('Config'),
|
||||||
$container->get('Customcode'),
|
$container->get('Customcode'),
|
||||||
$container->get('Customcode.Gui'),
|
$container->get('Customcode.Gui'),
|
||||||
@ -67,16 +67,16 @@ class Joomlamodule implements ServiceProviderInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Joomla Module Builder
|
* Get the Joomla Module Structure Builder
|
||||||
*
|
*
|
||||||
* @param Container $container The DI container.
|
* @param Container $container The DI container.
|
||||||
*
|
*
|
||||||
* @return JoomlaModuleBuilder
|
* @return Structure
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function getJoomlaModuleBuilder(Container $container): JoomlaModuleBuilder
|
public function getStructure(Container $container): Structure
|
||||||
{
|
{
|
||||||
return new JoomlaModuleBuilder(
|
return new Structure(
|
||||||
$container->get('Joomlamodule.Data'),
|
$container->get('Joomlamodule.Data'),
|
||||||
$container->get('Component'),
|
$container->get('Component'),
|
||||||
$container->get('Config'),
|
$container->get('Config'),
|
||||||
|
@ -14,8 +14,8 @@ namespace VDM\Joomla\Componentbuilder\Compiler\Service;
|
|||||||
|
|
||||||
use Joomla\DI\Container;
|
use Joomla\DI\Container;
|
||||||
use Joomla\DI\ServiceProviderInterface;
|
use Joomla\DI\ServiceProviderInterface;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Joomlaplugin\Data as JoomlaPluginData;
|
use VDM\Joomla\Componentbuilder\Compiler\Joomlaplugin\Data;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Joomlaplugin\Builder as JoomlaPluginBuilder;
|
use VDM\Joomla\Componentbuilder\Compiler\Joomlaplugin\Structure;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -35,11 +35,11 @@ class Joomlaplugin implements ServiceProviderInterface
|
|||||||
*/
|
*/
|
||||||
public function register(Container $container)
|
public function register(Container $container)
|
||||||
{
|
{
|
||||||
$container->alias(JoomlaPluginData::class, 'Joomlaplugin.Data')
|
$container->alias(Data::class, 'Joomlaplugin.Data')
|
||||||
->share('Joomlaplugin.Data', [$this, 'getJoomlaPluginData'], true);
|
->share('Joomlaplugin.Data', [$this, 'getData'], true);
|
||||||
|
|
||||||
$container->alias(JoomlaPluginBuilder::class, 'Joomlaplugin.Builder')
|
$container->alias(Structure::class, 'Joomlaplugin.Structure')
|
||||||
->share('Joomlaplugin.Builder', [$this, 'getJoomlaPluginBuilder'], true);
|
->share('Joomlaplugin.Structure', [$this, 'getStructure'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -47,12 +47,12 @@ class Joomlaplugin implements ServiceProviderInterface
|
|||||||
*
|
*
|
||||||
* @param Container $container The DI container.
|
* @param Container $container The DI container.
|
||||||
*
|
*
|
||||||
* @return JoomlaPluginData
|
* @return Data
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function getJoomlaPluginData(Container $container): JoomlaPluginData
|
public function getData(Container $container): Data
|
||||||
{
|
{
|
||||||
return new JoomlaPluginData(
|
return new Data(
|
||||||
$container->get('Config'),
|
$container->get('Config'),
|
||||||
$container->get('Customcode'),
|
$container->get('Customcode'),
|
||||||
$container->get('Customcode.Gui'),
|
$container->get('Customcode.Gui'),
|
||||||
@ -65,16 +65,16 @@ class Joomlaplugin implements ServiceProviderInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Joomla Plugin Builder
|
* Get the Joomla Plugin Structure Builder
|
||||||
*
|
*
|
||||||
* @param Container $container The DI container.
|
* @param Container $container The DI container.
|
||||||
*
|
*
|
||||||
* @return JoomlaPluginBuilder
|
* @return Structure
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function getJoomlaPluginBuilder(Container $container): JoomlaPluginBuilder
|
public function getStructure(Container $container): Structure
|
||||||
{
|
{
|
||||||
return new JoomlaPluginBuilder(
|
return new Structure(
|
||||||
$container->get('Joomlaplugin.Data'),
|
$container->get('Joomlaplugin.Data'),
|
||||||
$container->get('Component'),
|
$container->get('Component'),
|
||||||
$container->get('Config'),
|
$container->get('Config'),
|
||||||
|
@ -15,7 +15,7 @@ namespace VDM\Joomla\Componentbuilder\Compiler\Service;
|
|||||||
use Joomla\DI\Container;
|
use Joomla\DI\Container;
|
||||||
use Joomla\DI\ServiceProviderInterface;
|
use Joomla\DI\ServiceProviderInterface;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Library\Data;
|
use VDM\Joomla\Componentbuilder\Compiler\Library\Data;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Library\Builder;
|
use VDM\Joomla\Componentbuilder\Compiler\Library\Structure;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -38,8 +38,8 @@ class Library implements ServiceProviderInterface
|
|||||||
$container->alias(Data::class, 'Library.Data')
|
$container->alias(Data::class, 'Library.Data')
|
||||||
->share('Library.Data', [$this, 'getData'], true);
|
->share('Library.Data', [$this, 'getData'], true);
|
||||||
|
|
||||||
$container->alias(Builder::class, 'Library.Builder')
|
$container->alias(Structure::class, 'Library.Structure')
|
||||||
->share('Library.Builder', [$this, 'getBuilder'], true);
|
->share('Library.Structure', [$this, 'getStructure'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -63,16 +63,16 @@ class Library implements ServiceProviderInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Compiler Library Builder
|
* Get the Compiler Library Structure Builder
|
||||||
*
|
*
|
||||||
* @param Container $container The DI container.
|
* @param Container $container The DI container.
|
||||||
*
|
*
|
||||||
* @return Builder
|
* @return Structure
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function getBuilder(Container $container): Builder
|
public function getStructure(Container $container): Structure
|
||||||
{
|
{
|
||||||
return new Builder(
|
return new Structure(
|
||||||
$container->get('Config'),
|
$container->get('Config'),
|
||||||
$container->get('Registry'),
|
$container->get('Registry'),
|
||||||
$container->get('Event'),
|
$container->get('Event'),
|
||||||
|
@ -50,6 +50,8 @@ use VDM\Joomla\Componentbuilder\Compiler\Model\Sqltweaking;
|
|||||||
use VDM\Joomla\Componentbuilder\Compiler\Model\Sqldump;
|
use VDM\Joomla\Componentbuilder\Compiler\Model\Sqldump;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Model\Whmcs;
|
use VDM\Joomla\Componentbuilder\Compiler\Model\Whmcs;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Model\Filesfolders;
|
use VDM\Joomla\Componentbuilder\Compiler\Model\Filesfolders;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Model\Modifieddate;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Model\Createdate;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -174,6 +176,12 @@ class Model implements ServiceProviderInterface
|
|||||||
$container->alias(Filesfolders::class, 'Model.Filesfolders')
|
$container->alias(Filesfolders::class, 'Model.Filesfolders')
|
||||||
->share('Model.Filesfolders', [$this, 'getModelFilesfolders'], true);
|
->share('Model.Filesfolders', [$this, 'getModelFilesfolders'], true);
|
||||||
|
|
||||||
|
$container->alias(Modifieddate::class, 'Model.Modifieddate')
|
||||||
|
->share('Model.Modifieddate', [$this, 'getModifieddate'], true);
|
||||||
|
|
||||||
|
$container->alias(Createdate::class, 'Model.Createdate')
|
||||||
|
->share('Model.Createdate', [$this, 'getCreatedate'], true);
|
||||||
|
|
||||||
$container->alias(ServerLoad::class, 'Model.Server.Load')
|
$container->alias(ServerLoad::class, 'Model.Server.Load')
|
||||||
->share('Model.Server.Load', [$this, 'getServerLoad'], true);
|
->share('Model.Server.Load', [$this, 'getServerLoad'], true);
|
||||||
}
|
}
|
||||||
@ -724,6 +732,32 @@ class Model implements ServiceProviderInterface
|
|||||||
return new Whmcs();
|
return new Whmcs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the modified date Model
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Modifieddate
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getModifieddate(Container $container): Modifieddate
|
||||||
|
{
|
||||||
|
return new Modifieddate();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the create date Model
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Createdate
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getCreatedate(Container $container): Createdate
|
||||||
|
{
|
||||||
|
return new Createdate();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the files folders Model
|
* Get the files folders Model
|
||||||
*
|
*
|
||||||
|
@ -17,7 +17,7 @@ use Joomla\DI\ServiceProviderInterface;
|
|||||||
use VDM\Joomla\Componentbuilder\Compiler\Power as Powers;
|
use VDM\Joomla\Componentbuilder\Compiler\Power as Powers;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Infusion;
|
use VDM\Joomla\Componentbuilder\Compiler\Power\Infusion;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Autoloader;
|
use VDM\Joomla\Componentbuilder\Compiler\Power\Autoloader;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Builder;
|
use VDM\Joomla\Componentbuilder\Compiler\Power\Structure;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -46,8 +46,8 @@ class Power implements ServiceProviderInterface
|
|||||||
$container->alias(Infusion::class, 'Power.Infusion')
|
$container->alias(Infusion::class, 'Power.Infusion')
|
||||||
->share('Power.Infusion', [$this, 'getInfusion'], true);
|
->share('Power.Infusion', [$this, 'getInfusion'], true);
|
||||||
|
|
||||||
$container->alias(Builder::class, 'Power.Builder')
|
$container->alias(Structure::class, 'Power.Structure')
|
||||||
->share('Power.Builder', [$this, 'getBuilder'], true);
|
->share('Power.Structure', [$this, 'getStructure'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -106,16 +106,16 @@ class Power implements ServiceProviderInterface
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the Compiler Power Builder
|
* Get the Compiler Power Structure Builder
|
||||||
*
|
*
|
||||||
* @param Container $container The DI container.
|
* @param Container $container The DI container.
|
||||||
*
|
*
|
||||||
* @return Builder
|
* @return Structure
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function getBuilder(Container $container): Builder
|
public function getStructure(Container $container): Structure
|
||||||
{
|
{
|
||||||
return new Builder(
|
return new Structure(
|
||||||
$container->get('Power'),
|
$container->get('Power'),
|
||||||
$container->get('Config'),
|
$container->get('Config'),
|
||||||
$container->get('Registry'),
|
$container->get('Registry'),
|
||||||
|
@ -20,6 +20,10 @@ use VDM\Joomla\Componentbuilder\Compiler\Utilities\File;
|
|||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Paths;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Paths;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Counter;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Counter;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Files;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Files;
|
||||||
|
use VDM\Joomla\Componentbuilder\Utilities\Constantpaths;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Dynamicpath;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Pathfix;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Structure;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -53,6 +57,18 @@ class Utilities implements ServiceProviderInterface
|
|||||||
|
|
||||||
$container->alias(Files::class, 'Utilities.Files')
|
$container->alias(Files::class, 'Utilities.Files')
|
||||||
->share('Utilities.Files', [$this, 'getFiles'], true);
|
->share('Utilities.Files', [$this, 'getFiles'], true);
|
||||||
|
|
||||||
|
$container->alias(Constantpaths::class, 'Utilities.Constantpaths')
|
||||||
|
->share('Utilities.Constantpaths', [$this, 'getConstantpaths'], true);
|
||||||
|
|
||||||
|
$container->alias(Dynamicpath::class, 'Utilities.Dynamicpath')
|
||||||
|
->share('Utilities.Dynamicpath', [$this, 'getDynamicpath'], true);
|
||||||
|
|
||||||
|
$container->alias(Pathfix::class, 'Utilities.Pathfix')
|
||||||
|
->share('Utilities.Pathfix', [$this, 'getPathfix'], true);
|
||||||
|
|
||||||
|
$container->alias(Structure::class, 'Utilities.Structure')
|
||||||
|
->share('Utilities.Structure', [$this, 'getStructure'], true);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -129,6 +145,67 @@ class Utilities implements ServiceProviderInterface
|
|||||||
{
|
{
|
||||||
return new Files();
|
return new Files();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Constant Paths
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Constantpaths
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getConstantpaths(Container $container): Constantpaths
|
||||||
|
{
|
||||||
|
return new Constantpaths();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Compiler Dynamic Path
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Dynamicpath
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getDynamicpath(Container $container): Dynamicpath
|
||||||
|
{
|
||||||
|
return new Dynamicpath(
|
||||||
|
$container->get('Placeholder'),
|
||||||
|
$container->get('Utilities.Constantpaths')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Compiler Path Fixer
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Pathfix
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getPathfix(Container $container): Pathfix
|
||||||
|
{
|
||||||
|
return new Pathfix();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the Compiler Structure Dynamic Builder
|
||||||
|
*
|
||||||
|
* @param Container $container The DI container.
|
||||||
|
*
|
||||||
|
* @return Structure
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function getStructure(Container $container): Structure
|
||||||
|
{
|
||||||
|
return new Structure(
|
||||||
|
$container->get('Component.Settings'),
|
||||||
|
$container->get('Utilities.Paths'),
|
||||||
|
$container->get('Utilities.Counter'),
|
||||||
|
$container->get('Utilities.File'),
|
||||||
|
$container->get('Utilities.Files')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,78 @@
|
|||||||
|
<?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\Utilities;
|
||||||
|
|
||||||
|
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as Compiler;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Placeholder;
|
||||||
|
use VDM\Joomla\Componentbuilder\Utilities\Constantpaths;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Utilities Dynamic Path
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
class Dynamicpath
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Compiler Placeholder
|
||||||
|
*
|
||||||
|
* @var Placeholder
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected Placeholder $placeholder;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constant Paths
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected array $paths;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param Placeholder|null $placeholder The Compiler Placeholder object.
|
||||||
|
* @param Constantpaths|null $paths The Constant Paths object.
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function __construct(?Placeholder $placeholder = null, ?Constantpaths $paths = null)
|
||||||
|
{
|
||||||
|
$this->placeholder = $placeholder ?: Compiler::_('Placeholder');
|
||||||
|
$paths = $paths ?: Compiler::_('Utilities.Constantpaths');
|
||||||
|
|
||||||
|
// load the constant paths
|
||||||
|
$this->paths = $paths->get();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Update path with dynamic value
|
||||||
|
*
|
||||||
|
* @param string $path The path to update
|
||||||
|
*
|
||||||
|
* @return string The updated path
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function update(string $path): string
|
||||||
|
{
|
||||||
|
return $this->placeholder->update_(
|
||||||
|
$this->placeholder->update(
|
||||||
|
$path, $this->paths
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -21,7 +21,7 @@ use VDM\Joomla\Utilities\StringHelper;
|
|||||||
*
|
*
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
abstract class Path
|
class Pathfix
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* Fix the path to work in the JCB script <-- (main issue here)
|
* Fix the path to work in the JCB script <-- (main issue here)
|
||||||
@ -37,7 +37,7 @@ abstract class Path
|
|||||||
* @return void
|
* @return void
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public static function fix(&$values, $targets = [])
|
public function set(&$values, array $targets = [])
|
||||||
{
|
{
|
||||||
// if multiple to gets searched and fixed
|
// if multiple to gets searched and fixed
|
||||||
if (ArrayHelper::check($values) && ArrayHelper::check($targets))
|
if (ArrayHelper::check($values) && ArrayHelper::check($targets))
|
||||||
@ -46,7 +46,7 @@ abstract class Path
|
|||||||
{
|
{
|
||||||
if (isset($values[$target]))
|
if (isset($values[$target]))
|
||||||
{
|
{
|
||||||
self::fix($values[$target], $targets);
|
$this->set($values[$target], $targets);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -56,43 +56,22 @@ class Paths extends MapperSingle implements Mappersingleinterface
|
|||||||
$this->component = $component ?: Compiler::_('Component');
|
$this->component = $component ?: Compiler::_('Component');
|
||||||
|
|
||||||
// set the template path
|
// set the template path
|
||||||
$this->set('template_path',
|
$this->setTemplatePath();
|
||||||
$this->config->get('compiler_path', JPATH_COMPONENT_ADMINISTRATOR . '/compiler') . '/joomla_'
|
|
||||||
. $this->config->joomla_versions[$this->config->joomla_version]['folder_key']
|
|
||||||
);
|
|
||||||
|
|
||||||
// set component sales name
|
// set component sales name
|
||||||
$this->set('component_sales_name',
|
$this->setComponentSalesName();
|
||||||
'com_' . $this->component->get('sales_name') . '__J'
|
|
||||||
. $this->config->joomla_version
|
|
||||||
);
|
|
||||||
|
|
||||||
// set component backup name
|
// set component backup name
|
||||||
$this->set('component_backup_name',
|
$this->setComponentBackupName();
|
||||||
'com_' . $this->component->get('sales_name') . '_v' . str_replace(
|
|
||||||
'.', '_', (string) $this->component->get('component_version')
|
|
||||||
) . '__J' . $this->config->joomla_version
|
|
||||||
);
|
|
||||||
|
|
||||||
// set component folder name
|
// set component folder name
|
||||||
$this->set('component_folder_name',
|
$this->setComponentFolderName();
|
||||||
'com_' . $this->component->get('name_code') . '_v' . str_replace(
|
|
||||||
'.', '_', (string) $this->component->get('component_version')
|
|
||||||
) . '__J' . $this->config->joomla_version
|
|
||||||
);
|
|
||||||
|
|
||||||
// set component path
|
// set component path
|
||||||
$this->set('component_path',
|
$this->setComponentPath();
|
||||||
$this->config->get('compiler_path', JPATH_COMPONENT_ADMINISTRATOR . '/compiler') . '/'
|
|
||||||
. $this->get('component_folder_name')
|
|
||||||
);
|
|
||||||
|
|
||||||
// set the template path for custom TODO: just use custom_folder_path in config
|
// set the template path for custom
|
||||||
$this->set('template_path_custom',
|
$this->setTemplatePathCustom();
|
||||||
$this->config->get(
|
|
||||||
'custom_folder_path', JPATH_COMPONENT_ADMINISTRATOR . '/custom'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -127,6 +106,99 @@ class Paths extends MapperSingle implements Mappersingleinterface
|
|||||||
{
|
{
|
||||||
return $key;
|
return $key;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the template path
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setTemplatePath(): void
|
||||||
|
{
|
||||||
|
$this->set('template_path',
|
||||||
|
$this->config->get('compiler_path', JPATH_COMPONENT_ADMINISTRATOR . '/compiler') . '/joomla_'
|
||||||
|
. $this->config->joomla_versions[$this->config->joomla_version]['folder_key']
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set component sales name
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setComponentSalesName(): void
|
||||||
|
{
|
||||||
|
$this->set('component_sales_name',
|
||||||
|
'com_' . $this->component->get('sales_name') . '__J'
|
||||||
|
. $this->config->joomla_version
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set component backup name
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setComponentBackupName(): void
|
||||||
|
{
|
||||||
|
$this->set('component_backup_name',
|
||||||
|
'com_' . $this->component->get('sales_name') . '_v' . str_replace(
|
||||||
|
'.', '_', (string) $this->component->get('component_version')
|
||||||
|
) . '__J' . $this->config->joomla_version
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set component folder name
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setComponentFolderName(): void
|
||||||
|
{
|
||||||
|
$this->set('component_folder_name',
|
||||||
|
'com_' . $this->component->get('name_code') . '_v' . str_replace(
|
||||||
|
'.', '_', (string) $this->component->get('component_version')
|
||||||
|
) . '__J' . $this->config->joomla_version
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set component path
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setComponentPath(): void
|
||||||
|
{
|
||||||
|
$this->set('component_path',
|
||||||
|
$this->config->get('compiler_path', JPATH_COMPONENT_ADMINISTRATOR . '/compiler') . '/'
|
||||||
|
. $this->get('component_folder_name')
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the template path for custom TODO: just use custom_folder_path in config
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function setTemplatePathCustom(): void
|
||||||
|
{
|
||||||
|
$this->set('template_path_custom',
|
||||||
|
$this->config->get(
|
||||||
|
'custom_folder_path', JPATH_COMPONENT_ADMINISTRATOR . '/custom'
|
||||||
|
)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,313 @@
|
|||||||
|
<?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\Utilities;
|
||||||
|
|
||||||
|
|
||||||
|
use Joomla\CMS\Factory;
|
||||||
|
use Joomla\CMS\Application\CMSApplication;
|
||||||
|
use Joomla\CMS\Language\Text;
|
||||||
|
use Joomla\CMS\Filesystem\File as JoomlaFile;
|
||||||
|
use Joomla\CMS\Filesystem\Folder;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as Compiler;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Component\Settings;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Paths;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Counter;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\File;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Files;
|
||||||
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Utilities To Build Structure
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
class Structure
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Compiler Component Joomla Version Settings
|
||||||
|
*
|
||||||
|
* @var Settings
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Settings $settings;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Utilities Paths
|
||||||
|
*
|
||||||
|
* @var Paths
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Paths $paths;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Counter
|
||||||
|
*
|
||||||
|
* @var Counter
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Counter $counter;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Utilities File
|
||||||
|
*
|
||||||
|
* @var File
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected File $file;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Compiler Utilities Files
|
||||||
|
*
|
||||||
|
* @var Files
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected Files $files;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Database object to query local DB
|
||||||
|
*
|
||||||
|
* @var CMSApplication
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
protected CMSApplication $app;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor.
|
||||||
|
*
|
||||||
|
* @param Settings|null $settings The compiler component joomla version settings object.
|
||||||
|
* @param Paths|null $paths The compiler paths object.
|
||||||
|
* @param Counter|null $counter The compiler counter object.
|
||||||
|
* @param File|null $file The compiler file object.
|
||||||
|
* @param Files|null $files The compiler files object.
|
||||||
|
* @param CMSApplication|null $app The CMS Application object.
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
* @throws \Exception
|
||||||
|
*/
|
||||||
|
public function __construct(?Settings $settings = null, ?Paths $paths = null,
|
||||||
|
?Counter $counter = null, ?File $file = null, ?Files $files = null,
|
||||||
|
?CMSApplication $app = null)
|
||||||
|
{
|
||||||
|
$this->settings = $settings ?: Compiler::_('Component.Settings');
|
||||||
|
$this->paths = $paths ?: Compiler::_('Utilities.Paths');
|
||||||
|
$this->counter = $counter ?: Compiler::_('Utilities.Counter');
|
||||||
|
$this->file = $file ?: Compiler::_('Utilities.File');
|
||||||
|
$this->files = $files ?: Compiler::_('Utilities.Files');
|
||||||
|
$this->app = $app ?: Factory::getApplication();
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Build Structural Needed Files & Folders
|
||||||
|
*
|
||||||
|
* @param array $target The main target and name
|
||||||
|
* @param string $type The type in the target
|
||||||
|
* @param string|null $fileName The custom file name
|
||||||
|
* @param array|null $config To add more data to the files info
|
||||||
|
*
|
||||||
|
* @return bool true on success
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function build(array $target, string $type,
|
||||||
|
?string $fileName = null, ?array $config = null): bool
|
||||||
|
{
|
||||||
|
// did we build the files (any number)
|
||||||
|
$build_status = false;
|
||||||
|
|
||||||
|
// check that we have the target values
|
||||||
|
if (ArrayHelper::check($target))
|
||||||
|
{
|
||||||
|
// search the target
|
||||||
|
foreach ($target as $main => $name)
|
||||||
|
{
|
||||||
|
// make sure it is lower case
|
||||||
|
$name = StringHelper::safe($name);
|
||||||
|
|
||||||
|
// setup the files
|
||||||
|
foreach ($this->settings->multiple()->{$main} as $item => $details)
|
||||||
|
{
|
||||||
|
if ($details->type === $type)
|
||||||
|
{
|
||||||
|
$file_details = $this->getFileDetails(
|
||||||
|
$details,
|
||||||
|
(string) $item,
|
||||||
|
$name,
|
||||||
|
$fileName,
|
||||||
|
$config
|
||||||
|
);
|
||||||
|
|
||||||
|
if (is_array($file_details))
|
||||||
|
{
|
||||||
|
// store the new files
|
||||||
|
$this->files->appendArray('dynamic.' . $file_details['view'],
|
||||||
|
$file_details);
|
||||||
|
|
||||||
|
// we have build at least one
|
||||||
|
$build_status = true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return $build_status;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the details
|
||||||
|
*
|
||||||
|
* @param object $details The item details
|
||||||
|
* @param string $item The item name
|
||||||
|
* @param string $name The given name
|
||||||
|
* @param string|null $fileName The custom file name
|
||||||
|
* @param array|null $config To add more data to the files info
|
||||||
|
*
|
||||||
|
* @return array|null The details
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function getFileDetails(object $details, string $item,
|
||||||
|
string $name, ?string $fileName = null, ?array $config = null): ?array
|
||||||
|
{
|
||||||
|
$zip_path = '';
|
||||||
|
if (($path = $this->getPath($details, $zip_path, $name)) === null)
|
||||||
|
{
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
// setup the folder
|
||||||
|
if (!Folder::exists($path))
|
||||||
|
{
|
||||||
|
Folder::create($path);
|
||||||
|
$this->file->html($zip_path);
|
||||||
|
|
||||||
|
// count the folder created
|
||||||
|
$this->counter->folder++;
|
||||||
|
}
|
||||||
|
|
||||||
|
$new_name = $this->getNewName($details, $item, $name, $fileName);
|
||||||
|
|
||||||
|
if (!JoomlaFile::exists($path . '/' . $new_name))
|
||||||
|
{
|
||||||
|
// move the file to its place
|
||||||
|
JoomlaFile::copy(
|
||||||
|
$this->paths->template_path . '/' . $item,
|
||||||
|
$path . '/' . $new_name
|
||||||
|
);
|
||||||
|
|
||||||
|
// count the file created
|
||||||
|
$this->counter->file++;
|
||||||
|
}
|
||||||
|
|
||||||
|
// we can't have dots in a view name
|
||||||
|
if (strpos($name, '.') !== false)
|
||||||
|
{
|
||||||
|
$name = preg_replace('/[\.]+/', '_', (string) $name);
|
||||||
|
}
|
||||||
|
|
||||||
|
// setup array for new file
|
||||||
|
$file = [
|
||||||
|
'path' => $path . '/' . $new_name,
|
||||||
|
'name' => $new_name,
|
||||||
|
'view' => $name,
|
||||||
|
'zip' => $zip_path . '/' . $new_name
|
||||||
|
];
|
||||||
|
|
||||||
|
if (ArrayHelper::check($config))
|
||||||
|
{
|
||||||
|
$file['config'] = $config;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $file;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the path
|
||||||
|
*
|
||||||
|
* @param object $details The item details
|
||||||
|
* @param string $zipPath The zip path
|
||||||
|
* @param string $name The name
|
||||||
|
*
|
||||||
|
* @return string|null The path
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function getPath(object $details, string &$zipPath, string $name): ?string
|
||||||
|
{
|
||||||
|
// set destination path
|
||||||
|
if (strpos((string) $details->path, 'VIEW') !== false)
|
||||||
|
{
|
||||||
|
$path = str_replace('VIEW', $name, (string) $details->path);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$path = $details->path;
|
||||||
|
}
|
||||||
|
|
||||||
|
// make sure we have component to replace
|
||||||
|
if (strpos((string) $path, 'c0mp0n3nt') !== false)
|
||||||
|
{
|
||||||
|
$zipPath = str_replace('c0mp0n3nt/', '', (string) $path);
|
||||||
|
|
||||||
|
return str_replace(
|
||||||
|
'c0mp0n3nt/', $this->paths->component_path . '/', (string) $path
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->app->enqueueMessage(
|
||||||
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREECZEROMPZERONTHREENT_ISSUE_FOUNDHTHREEPTHE_PATH_S_COULD_NOT_BE_USEDP',
|
||||||
|
$path
|
||||||
|
), 'Error'
|
||||||
|
);
|
||||||
|
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get the new name
|
||||||
|
*
|
||||||
|
* @param object $details The item details
|
||||||
|
* @param string $item The item name
|
||||||
|
* @param string $name The name
|
||||||
|
* @param string|null $fileName The custom file name
|
||||||
|
*
|
||||||
|
* @return string The new name
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
private function getNewName(object $details, string $item,
|
||||||
|
string &$name, ?string $fileName = null): string
|
||||||
|
{
|
||||||
|
// do the file need renaming
|
||||||
|
if ($details->rename)
|
||||||
|
{
|
||||||
|
if (!empty($fileName))
|
||||||
|
{
|
||||||
|
$name = $name . '_' . $fileName;
|
||||||
|
|
||||||
|
return str_replace(
|
||||||
|
$details->rename, $fileName, $item
|
||||||
|
);
|
||||||
|
}
|
||||||
|
elseif ($details->rename === 'new')
|
||||||
|
{
|
||||||
|
return $details->newName;
|
||||||
|
}
|
||||||
|
|
||||||
|
return str_replace(
|
||||||
|
$details->rename, $name, $item
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
|
return $item;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -142,6 +142,24 @@ class Server
|
|||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Move File to Server (Legacy Signature)
|
||||||
|
*
|
||||||
|
* @param string $localPath The local path to the file
|
||||||
|
* @param string $fileName The actual file name
|
||||||
|
* @param int $serverID The server local id to use
|
||||||
|
* @param int $protocol The server protocol to use
|
||||||
|
* @param string $permission The permission validation area
|
||||||
|
*
|
||||||
|
* @return bool true on success
|
||||||
|
* @since 3.2.0
|
||||||
|
* @deprecated 4.0
|
||||||
|
*/
|
||||||
|
public function legacyMove($localPath, $fileName, $serverID, $protocol = null, $permission = 'core.export'): bool
|
||||||
|
{
|
||||||
|
return $this->move($serverID, $localPath, $fileName, $protocol, $permission);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,10 +28,10 @@ class Ftp implements Serverinterface
|
|||||||
/**
|
/**
|
||||||
* The client object
|
* The client object
|
||||||
*
|
*
|
||||||
* @var FtpClient
|
* @var FtpClient|null
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
**/
|
**/
|
||||||
protected FtpClient $client;
|
protected ?FtpClient $client = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The server details
|
* The server details
|
||||||
@ -82,11 +82,17 @@ class Ftp implements Serverinterface
|
|||||||
* @return bool
|
* @return bool
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
**/
|
**/
|
||||||
protected function connected(): bool
|
private function connected(): bool
|
||||||
{
|
{
|
||||||
// check if we have a connection
|
// check if we have a connection
|
||||||
return ($this->client instanceof FtpClient && $this->client->isConnected()) ||
|
if ($this->client instanceof FtpClient && $this->client->isConnected())
|
||||||
($this->client = $this->getClient()) !== null;
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->client = $this->getClient();
|
||||||
|
|
||||||
|
return $this->client instanceof FtpClient;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -95,7 +101,7 @@ class Ftp implements Serverinterface
|
|||||||
* @return FtpClient|null
|
* @return FtpClient|null
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
**/
|
**/
|
||||||
protected function getClient(): ?FtpClient
|
private function getClient(): ?FtpClient
|
||||||
{
|
{
|
||||||
// make sure we have a string and it is not default or empty
|
// make sure we have a string and it is not default or empty
|
||||||
if (StringHelper::check($this->details->signature))
|
if (StringHelper::check($this->details->signature))
|
||||||
|
@ -61,10 +61,10 @@ class Load
|
|||||||
* @param int $id The item ID
|
* @param int $id The item ID
|
||||||
* @param string $field The table field
|
* @param string $field The table field
|
||||||
*
|
*
|
||||||
* @return object|null
|
* @return mixed|null
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
public function value(int $id, string $field): ?object
|
public function value(int $id, string $field)
|
||||||
{
|
{
|
||||||
if ($id > 0 && ($value = $this->db->value(
|
if ($id > 0 && ($value = $this->db->value(
|
||||||
$this->setDatabaseFields([$field]), ['a' => 'server'], ['a.id' => $id]
|
$this->setDatabaseFields([$field]), ['a' => 'server'], ['a.id' => $id]
|
||||||
|
@ -16,6 +16,8 @@ use Joomla\Registry\Registry;
|
|||||||
use VDM\Joomla\Componentbuilder\Compiler\Factory;
|
use VDM\Joomla\Componentbuilder\Compiler\Factory;
|
||||||
use VDM\Joomla\Componentbuilder\Crypt;
|
use VDM\Joomla\Componentbuilder\Crypt;
|
||||||
use VDM\Joomla\Componentbuilder\Table;
|
use VDM\Joomla\Componentbuilder\Table;
|
||||||
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
|
use VDM\Joomla\Utilities\JsonHelper;
|
||||||
use VDM\Joomla\Componentbuilder\Interfaces\ModelInterface;
|
use VDM\Joomla\Componentbuilder\Interfaces\ModelInterface;
|
||||||
use VDM\Joomla\Componentbuilder\Abstraction\Model;
|
use VDM\Joomla\Componentbuilder\Abstraction\Model;
|
||||||
|
|
||||||
|
@ -37,10 +37,10 @@ class Sftp implements Serverinterface
|
|||||||
/**
|
/**
|
||||||
* The client object
|
* The client object
|
||||||
*
|
*
|
||||||
* @var SftpClient
|
* @var SftpClient|null
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
**/
|
**/
|
||||||
protected SftpClient $client;
|
protected ?SftpClient $client = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The server details
|
* The server details
|
||||||
@ -107,13 +107,32 @@ class Sftp implements Serverinterface
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Make sure we are connected
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
* @since 3.2.0
|
||||||
|
**/
|
||||||
|
private function connected(): bool
|
||||||
|
{
|
||||||
|
// check if we have a connection
|
||||||
|
if ($this->client instanceof SftpClient && ($this->client->isConnected() || $this->client->ping()))
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
$this->client = $this->getClient();
|
||||||
|
|
||||||
|
return $this->client instanceof SftpClient;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the SftpClient object
|
* get the SftpClient object
|
||||||
*
|
*
|
||||||
* @return SftpClient|null
|
* @return SftpClient|null
|
||||||
* @since 3.2.0
|
* @since 3.2.0
|
||||||
**/
|
**/
|
||||||
protected function getClient(): ?SftpClient
|
private function getClient(): ?SftpClient
|
||||||
{
|
{
|
||||||
// make sure we have a host value set
|
// make sure we have a host value set
|
||||||
if (isset($this->details->host) && StringHelper::check($this->details->host) &&
|
if (isset($this->details->host) && StringHelper::check($this->details->host) &&
|
||||||
@ -167,19 +186,6 @@ class Sftp implements Serverinterface
|
|||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Make sure we are connected
|
|
||||||
*
|
|
||||||
* @return bool
|
|
||||||
* @since 3.2.0
|
|
||||||
**/
|
|
||||||
protected function connected(): bool
|
|
||||||
{
|
|
||||||
// check if we have a connection
|
|
||||||
return ($this->client instanceof SftpClient && ($this->client->isConnected() || $this->client->ping())) ||
|
|
||||||
($this->client = $this->getClient()) !== null;
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -0,0 +1,93 @@
|
|||||||
|
<?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\Utilities;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Utilities Constant Paths
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
class Constantpaths
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* The array of constant paths
|
||||||
|
*
|
||||||
|
* JPATH_SITE is meant to represent the root path of the JSite application,
|
||||||
|
* just as JPATH_ADMINISTRATOR is mean to represent the root path of the JAdministrator application.
|
||||||
|
*
|
||||||
|
* JPATH_BASE is the root path for the current requested application.... so if you are in the administrator application:
|
||||||
|
*
|
||||||
|
* JPATH_BASE == JPATH_ADMINISTRATOR
|
||||||
|
*
|
||||||
|
* If you are in the site application:
|
||||||
|
*
|
||||||
|
* JPATH_BASE == JPATH_SITE
|
||||||
|
*
|
||||||
|
* If you are in the installation application:
|
||||||
|
*
|
||||||
|
* JPATH_BASE == JPATH_INSTALLATION.
|
||||||
|
*
|
||||||
|
* JPATH_ROOT is the root path for the Joomla install and does not depend upon any application.
|
||||||
|
*
|
||||||
|
* @var array
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
protected array $paths = [
|
||||||
|
// The path to the administrator folder.
|
||||||
|
'JPATH_ADMINISTRATOR' => JPATH_ADMINISTRATOR,
|
||||||
|
// The path to the installed Joomla! site, or JPATH_ROOT/administrator if executed from the backend.
|
||||||
|
'JPATH_BASE' => JPATH_BASE,
|
||||||
|
// The path to the cache folder.
|
||||||
|
'JPATH_CACHE' => JPATH_CACHE,
|
||||||
|
// The path to the administration folder of the current component being executed.
|
||||||
|
'JPATH_COMPONENT_ADMINISTRATOR' => JPATH_COMPONENT_ADMINISTRATOR,
|
||||||
|
// The path to the site folder of the current component being executed.
|
||||||
|
'JPATH_COMPONENT_SITE' => JPATH_COMPONENT_SITE,
|
||||||
|
// The path to the current component being executed.
|
||||||
|
'JPATH_COMPONENT' => JPATH_COMPONENT,
|
||||||
|
// The path to folder containing the configuration.php file.
|
||||||
|
'JPATH_CONFIGURATION' => JPATH_CONFIGURATION,
|
||||||
|
// The path to the installation folder.
|
||||||
|
'JPATH_INSTALLATION' => JPATH_INSTALLATION,
|
||||||
|
// The path to the libraries folder.
|
||||||
|
'JPATH_LIBRARIES' => JPATH_LIBRARIES,
|
||||||
|
// The path to the plugins folder.
|
||||||
|
'JPATH_PLUGINS' => JPATH_PLUGINS,
|
||||||
|
// The path to the installed Joomla! site.
|
||||||
|
'JPATH_ROOT' => JPATH_ROOT,
|
||||||
|
// The path to the installed Joomla! site.
|
||||||
|
'JPATH_SITE' => JPATH_SITE,
|
||||||
|
// The path to the templates folder.
|
||||||
|
'JPATH_THEMES' => JPATH_THEMES
|
||||||
|
];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* get array of constant paths or just one constant path
|
||||||
|
*
|
||||||
|
* @param string|null $path The path to get
|
||||||
|
*
|
||||||
|
* @return array|string|null
|
||||||
|
* @since 3.2.0
|
||||||
|
*/
|
||||||
|
public function get(?string $path = null)
|
||||||
|
{
|
||||||
|
if (is_null($path))
|
||||||
|
{
|
||||||
|
return $this->paths;
|
||||||
|
}
|
||||||
|
|
||||||
|
return $this->paths[$path] ?? null;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1 @@
|
|||||||
|
<html><body bgcolor="#FFFFFF"></body></html>
|
@ -9422,7 +9422,7 @@ class com_componentbuilderInstallerScript
|
|||||||
echo '<a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
echo '<a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
||||||
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
<img src="components/com_componentbuilder/assets/images/vdm-component.jpg"/>
|
||||||
</a>
|
</a>
|
||||||
<h3>Upgrade to Version 3.1.13 Was Successful! Let us know if anything is not working as expected.</h3>';
|
<h3>Upgrade to Version 3.1.17 Was Successful! Let us know if anything is not working as expected.</h3>';
|
||||||
|
|
||||||
// Set db if not set already.
|
// Set db if not set already.
|
||||||
if (!isset($db))
|
if (!isset($db))
|
||||||
|
@ -70,10 +70,10 @@ use Joomla\CMS\Language\Language;
|
|||||||
use Joomla\Registry\Registry;
|
use Joomla\Registry\Registry;
|
||||||
use Joomla\String\StringHelper;
|
use Joomla\String\StringHelper;
|
||||||
use Joomla\Utilities\ArrayHelper;
|
use Joomla\Utilities\ArrayHelper;
|
||||||
|
use VDM\Joomla\Utilities;
|
||||||
use Joomla\Archive\Archive;
|
use Joomla\Archive\Archive;
|
||||||
use Joomla\CMS\Filesystem\Folder;
|
use Joomla\CMS\Filesystem\Folder;
|
||||||
use Joomla\CMS\Filesystem\Path;
|
use Joomla\CMS\Filesystem\Path;
|
||||||
use VDM\Joomla\Utilities;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Componentbuilder component helper
|
* Componentbuilder component helper
|
||||||
|
@ -44,11 +44,15 @@ COM_COMPONENTBUILDER_GREAT_THIS_PLACEHOLDER_WILL_WORK="Great, this placeholder w
|
|||||||
COM_COMPONENTBUILDER_HFOUR_CLASSNAVHEADERCOPYRIGHTHFOURPSP="<h4 class="nav-header">Copyright</h4><p>%s</p>"
|
COM_COMPONENTBUILDER_HFOUR_CLASSNAVHEADERCOPYRIGHTHFOURPSP="<h4 class="nav-header">Copyright</h4><p>%s</p>"
|
||||||
COM_COMPONENTBUILDER_HFOUR_CLASSNAVHEADERLICENSEHFOURPSP="<h4 class="nav-header">License</h4><p>%s</p>"
|
COM_COMPONENTBUILDER_HFOUR_CLASSNAVHEADERLICENSEHFOURPSP="<h4 class="nav-header">License</h4><p>%s</p>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREECUSTOM_CODES_WARNINGHTHREE="<hr /><h3>Custom Codes Warning</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREECUSTOM_CODES_WARNINGHTHREE="<hr /><h3>Custom Codes Warning</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREECZEROMPZERONTHREENT_ISSUE_FOUNDHTHREEPTHE_PATH_S_COULD_NOT_BE_USEDP="<hr /><h3>c0mp0n3nt issue found</h3><p>The path (%s) could not be used.</p>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEDASHBOARD_ERRORHTHREE="<hr /><h3>Dashboard Error</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEDYNAMIC_FOLDERS_WERE_DETECTEDHTHREE="<hr /><h3>Dynamic folder(s) were detected.</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREEDYNAMIC_FOLDERS_WERE_DETECTEDHTHREE="<hr /><h3>Dynamic folder(s) were detected.</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_ERRORHTHREE="<hr /><h3>External Code Error</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_ERRORHTHREE="<hr /><h3>External Code Error</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_NOTICEHTHREE="<hr /><h3>External Code Notice</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_NOTICEHTHREE="<hr /><h3>External Code Notice</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_WARNINGHTHREE="<hr /><h3>External Code Warning</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_WARNINGHTHREE="<hr /><h3>External Code Warning</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEFIELD_NOTICEHTHREE="<hr /><h3>Field Notice</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREEFIELD_NOTICEHTHREE="<hr /><h3>Field Notice</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEFILE_PATH_ERRORHTHREE="<hr /><h3>File Path Error</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEFOLDER_PATH_ERRORHTHREE="<hr /><h3>Folder Path Error</h3>"
|
||||||
COM_COMPONENTBUILDER_HTHREES_NAMESPACE_ERROR_SHTHREEPYOU_MUST_ATLEAST_HAVE_TWO_SECTIONS_IN_YOUR_NAMESPACE_YOU_JUST_HAVE_ONE_S_THIS_IS_AN_UNACCEPTABLE_ACTION_PLEASE_SEE_A_HREFS_PSRFOURA_FOR_MORE_INFOPPTHIS_S_WAS_THEREFORE_REMOVED_A_HREFSCLICK_HEREA_TO_FIX_THIS_ISSUEP="<h3>%s namespace error (%s)</h3><p>You must at-least have two sections in your namespace, you just have one (%s). This is an unacceptable action, please see <a href=%s >psr-4</a> for more info.</p><p>This %s was therefore removed, <a href=%s>click here</a> to fix this issue.</p>"
|
COM_COMPONENTBUILDER_HTHREES_NAMESPACE_ERROR_SHTHREEPYOU_MUST_ATLEAST_HAVE_TWO_SECTIONS_IN_YOUR_NAMESPACE_YOU_JUST_HAVE_ONE_S_THIS_IS_AN_UNACCEPTABLE_ACTION_PLEASE_SEE_A_HREFS_PSRFOURA_FOR_MORE_INFOPPTHIS_S_WAS_THEREFORE_REMOVED_A_HREFSCLICK_HEREA_TO_FIX_THIS_ISSUEP="<h3>%s namespace error (%s)</h3><p>You must at-least have two sections in your namespace, you just have one (%s). This is an unacceptable action, please see <a href=%s >psr-4</a> for more info.</p><p>This %s was therefore removed, <a href=%s>click here</a> to fix this issue.</p>"
|
||||||
COM_COMPONENTBUILDER_HTHREES_NAMESPACE_ERROR_SHTHREEPYOU_MUST_ATLEAST_HAVE_TWO_SECTIONS_IN_YOUR_NAMESPACE_YOU_JUST_HAVE_ONE_THIS_IS_AN_UNACCEPTABLE_ACTION_PLEASE_SEE_A_HREFS_PSRFOURA_FOR_MORE_INFOPPTHIS_S_WAS_THEREFORE_REMOVED_A_HREFSCLICK_HEREA_TO_FIX_THIS_ISSUEP="<h3>%s namespace error (%s)</h3><p>You must at-least have two sections in your namespace, you just have one. This is an unacceptable action, please see <a href=%s >psr-4</a> for more info.</p><p>This %s was therefore removed, <a href=%s>click here</a> to fix this issue.</p>"
|
COM_COMPONENTBUILDER_HTHREES_NAMESPACE_ERROR_SHTHREEPYOU_MUST_ATLEAST_HAVE_TWO_SECTIONS_IN_YOUR_NAMESPACE_YOU_JUST_HAVE_ONE_THIS_IS_AN_UNACCEPTABLE_ACTION_PLEASE_SEE_A_HREFS_PSRFOURA_FOR_MORE_INFOPPTHIS_S_WAS_THEREFORE_REMOVED_A_HREFSCLICK_HEREA_TO_FIX_THIS_ISSUEP="<h3>%s namespace error (%s)</h3><p>You must at-least have two sections in your namespace, you just have one. This is an unacceptable action, please see <a href=%s >psr-4</a> for more info.</p><p>This %s was therefore removed, <a href=%s>click here</a> to fix this issue.</p>"
|
||||||
COM_COMPONENTBUILDER_HTWOCURL_NOT_FOUNDHTWOPPLEASE_SETUP_CURL_ON_YOUR_SYSTEM_OR_BCOMPONENTBUILDERB_WILL_NOT_FUNCTION_CORRECTLYP="<h2>Curl Not Found!</h2><p>Please setup curl on your system, or <b>componentbuilder</b> will not function correctly!</p>"
|
COM_COMPONENTBUILDER_HTWOCURL_NOT_FOUNDHTWOPPLEASE_SETUP_CURL_ON_YOUR_SYSTEM_OR_BCOMPONENTBUILDERB_WILL_NOT_FUNCTION_CORRECTLYP="<h2>Curl Not Found!</h2><p>Please setup curl on your system, or <b>componentbuilder</b> will not function correctly!</p>"
|
||||||
@ -91,14 +95,18 @@ COM_COMPONENTBUILDER_S_WE_DETECTED_BNEW_EXTERNALCODEB_BUT_YOU_DO_NOT_HAVE_PERMIS
|
|||||||
COM_COMPONENTBUILDER_THAT_MEANS_ANYONE_WHO_HAS_THIS_PACKAGE_CAN_INSTALL_IT_INTO_JCB_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_BSETTINGSB_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_BEXPORT_KEYB="That means anyone who has this package can install it into JCB. To add an export key simply open the component, go to the tab called <b>settings</b>, bottom right there is a field called <b>Export Key</b>."
|
COM_COMPONENTBUILDER_THAT_MEANS_ANYONE_WHO_HAS_THIS_PACKAGE_CAN_INSTALL_IT_INTO_JCB_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_BSETTINGSB_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_BEXPORT_KEYB="That means anyone who has this package can install it into JCB. To add an export key simply open the component, go to the tab called <b>settings</b>, bottom right there is a field called <b>Export Key</b>."
|
||||||
COM_COMPONENTBUILDER_THAT_MEANS_ANYONE_WHO_HAS_THIS_PACKAGE_CAN_INSTALL_IT_INTO_JCB_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_SETTINGS_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_EXPORT_KEY="That means anyone who has this package can install it into JCB. To add an export key simply open the component, go to the tab called settings, bottom right there is a field called Export Key."
|
COM_COMPONENTBUILDER_THAT_MEANS_ANYONE_WHO_HAS_THIS_PACKAGE_CAN_INSTALL_IT_INTO_JCB_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_SETTINGS_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_EXPORT_KEY="That means anyone who has this package can install it into JCB. To add an export key simply open the component, go to the tab called settings, bottom right there is a field called Export Key."
|
||||||
COM_COMPONENTBUILDER_THE_BPHPSECLIBNETSFTPB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESVDM_IOVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>phpseclib\NET\SFTP</b> library\class is not available! This library\class should have been added to your <b>libraries/vdm_io/vendor</b> folder. Please contact your system administrator for more info"
|
COM_COMPONENTBUILDER_THE_BPHPSECLIBNETSFTPB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESVDM_IOVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>phpseclib\NET\SFTP</b> library\class is not available! This library\class should have been added to your <b>libraries/vdm_io/vendor</b> folder. Please contact your system administrator for more info"
|
||||||
|
COM_COMPONENTBUILDER_THE_BSB_BSB_IS_NOT_AVAILABLE_IN_YOUR_COMPONENT_PLEASE_INSURE_TO_ONLY_USED_S_FOR_A_DYNAMIC_DASHBOARD_THAT_ARE_STILL_LINKED_TO_YOUR_COMPONENT="The <b>%s</b> (<b>%s</b>) is not available in your component! Please insure to only used %s, for a dynamic dashboard, that are still linked to your component."
|
||||||
COM_COMPONENTBUILDER_THE_BSB_CUT_SEQUENCE_FAILED_ON_THE_RETURNED_EXTERNAL_CODESTRING_AS_MORE_LINES_HAS_TO_BE_CUT_THEN_WAS_FOUND_IN_THE_CODESTRING_WE_HAVE_COMPLETELY_REMOVED_THE_CODE_PLEASE_CHECK_THIS_CODESTRING="The <b>%s</b> cut sequence failed on the returned external code/string as more lines has to be cut then was found in the code/string. We have completely removed the code. Please check this code/string!"
|
COM_COMPONENTBUILDER_THE_BSB_CUT_SEQUENCE_FAILED_ON_THE_RETURNED_EXTERNAL_CODESTRING_AS_MORE_LINES_HAS_TO_BE_CUT_THEN_WAS_FOUND_IN_THE_CODESTRING_WE_HAVE_COMPLETELY_REMOVED_THE_CODE_PLEASE_CHECK_THIS_CODESTRING="The <b>%s</b> cut sequence failed on the returned external code/string as more lines has to be cut then was found in the code/string. We have completely removed the code. Please check this code/string!"
|
||||||
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_PATH_ON_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> path on <b>%s</b> server."
|
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_PATH_ON_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> path on <b>%s</b> server."
|
||||||
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> server."
|
COM_COMPONENTBUILDER_THE_BSB_FILE_COULD_NOT_BE_MOVED_TO_BSB_SERVER="The <b>%s</b> file could not be moved to <b>%s</b> server."
|
||||||
COM_COMPONENTBUILDER_THE_BSB_IS_NOT_A_VALID_URLPATH="The <b>%s</b> is not a valid url/path!"
|
COM_COMPONENTBUILDER_THE_BSB_IS_NOT_A_VALID_URLPATH="The <b>%s</b> is not a valid url/path!"
|
||||||
COM_COMPONENTBUILDER_THE_BSB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESPHPSECLIBVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>%s</b> library\class is not available! This library\class should have been added to your <b>libraries/phpseclib/vendor</b> folder. Please contact your system administrator for more info!"
|
COM_COMPONENTBUILDER_THE_BSB_LIBRARYCLASS_IS_NOT_AVAILABLE_THIS_LIBRARYCLASS_SHOULD_HAVE_BEEN_ADDED_TO_YOUR_BLIBRARIESPHPSECLIBVENDORB_FOLDER_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="The <b>%s</b> library\class is not available! This library\class should have been added to your <b>libraries/phpseclib/vendor</b> folder. Please contact your system administrator for more info!"
|
||||||
COM_COMPONENTBUILDER_THE_BSB_RETURNED_AN_INVALID_STRING="The <b>%s</b> returned an invalid string!"
|
COM_COMPONENTBUILDER_THE_BSB_RETURNED_AN_INVALID_STRING="The <b>%s</b> returned an invalid string!"
|
||||||
|
COM_COMPONENTBUILDER_THE_BSB_VALUE_FOR_THE_DYNAMIC_DASHBOARD_IS_INVALID="The <b>%s</b> value for the dynamic dashboard is invalid."
|
||||||
COM_COMPONENTBUILDER_THE_CODESTRING_FROM_BSB_HAS_BEEN_ADDED_FOR_THE_BFIRST_TIMEB_PLEASE_IINVESTIGATEI_TO_ENSURE_THE_CORRECT_CODESTRING_WAS_USED_BSHOULD_YOU_NOT_KNOW_ABOUT_THIS_NEW_EXTERNAL_CODESTRING_BEING_ADDED_THEN_THIS_IS_A_SERIOUS_DANGER_AND_REQUIRES_IMMEDIATE_ATTENTIONB_DO_NOT_IGNORE_THIS_WARNING_AS_IT_WILL_ONLY_SHOW_BONCEB="The code/string from <b>%s</b> has been added for the <b>first time</b>. Please <i>investigate</i> to ensure the correct code/string was used! <b>Should you not know about this NEW external code/string being added, then this is a serious danger! and requires immediate attention!</b> Do not ignore this warning as it will only show <b>once</b>."
|
COM_COMPONENTBUILDER_THE_CODESTRING_FROM_BSB_HAS_BEEN_ADDED_FOR_THE_BFIRST_TIMEB_PLEASE_IINVESTIGATEI_TO_ENSURE_THE_CORRECT_CODESTRING_WAS_USED_BSHOULD_YOU_NOT_KNOW_ABOUT_THIS_NEW_EXTERNAL_CODESTRING_BEING_ADDED_THEN_THIS_IS_A_SERIOUS_DANGER_AND_REQUIRES_IMMEDIATE_ATTENTIONB_DO_NOT_IGNORE_THIS_WARNING_AS_IT_WILL_ONLY_SHOW_BONCEB="The code/string from <b>%s</b> has been added for the <b>first time</b>. Please <i>investigate</i> to ensure the correct code/string was used! <b>Should you not know about this NEW external code/string being added, then this is a serious danger! and requires immediate attention!</b> Do not ignore this warning as it will only show <b>once</b>."
|
||||||
COM_COMPONENTBUILDER_THE_CODESTRING_FROM_BSB_HAS_BEEN_BCHANGEDB_SINCE_THE_LAST_COMPILATION_PLEASE_INVESTIGATE_TO_ENSURE_THE_CHANGES_ARE_SAFE_BSHOULD_YOU_NOT_EXPECT_THIS_CHANGE_TO_THE_EXTERNAL_CODESTRING_BEING_ADDED_THEN_THIS_IS_A_SERIOUS_ISSUE_AND_REQUIRES_IMMEDIATE_ATTENTIONB_DO_NOT_IGNORE_THIS_WARNING_AS_IT_WILL_ONLY_SHOW_BONCEB="The code/string from <b>%s</b> has been <b>changed</b> since the last compilation. Please investigate to ensure the changes are safe! <b>Should you not expect this change to the external code/string being added, then this is a serious issue! and requires immediate attention!</b> Do not ignore this warning as it will only show <b>once</b>."
|
COM_COMPONENTBUILDER_THE_CODESTRING_FROM_BSB_HAS_BEEN_BCHANGEDB_SINCE_THE_LAST_COMPILATION_PLEASE_INVESTIGATE_TO_ENSURE_THE_CHANGES_ARE_SAFE_BSHOULD_YOU_NOT_EXPECT_THIS_CHANGE_TO_THE_EXTERNAL_CODESTRING_BEING_ADDED_THEN_THIS_IS_A_SERIOUS_ISSUE_AND_REQUIRES_IMMEDIATE_ATTENTIONB_DO_NOT_IGNORE_THIS_WARNING_AS_IT_WILL_ONLY_SHOW_BONCEB="The code/string from <b>%s</b> has been <b>changed</b> since the last compilation. Please investigate to ensure the changes are safe! <b>Should you not expect this change to the external code/string being added, then this is a serious issue! and requires immediate attention!</b> Do not ignore this warning as it will only show <b>once</b>."
|
||||||
|
COM_COMPONENTBUILDER_THE_FILE_PATH_BSB_DOES_NOT_EXIST_AND_WAS_NOT_ADDED="The file path: <b>%s</b> does not exist, and was not added!"
|
||||||
|
COM_COMPONENTBUILDER_THE_FOLDER_PATH_BSB_DOES_NOT_EXIST_AND_WAS_NOT_ADDED="The folder path: <b>%s</b> does not exist, and was not added!"
|
||||||
COM_COMPONENTBUILDER_THE_FTP_CONNECTION_FOR_BSB_COULD_NOT_BE_MADE_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP connection for <b>%s</b> could not be made. Please check your signature details!"
|
COM_COMPONENTBUILDER_THE_FTP_CONNECTION_FOR_BSB_COULD_NOT_BE_MADE_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP connection for <b>%s</b> could not be made. Please check your signature details!"
|
||||||
COM_COMPONENTBUILDER_THE_FTP_SIGNATURE_FOR_BSB_WAS_NOT_WELL_FORMED_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP signature for <b>%s</b> was not well formed, please check your signature details!"
|
COM_COMPONENTBUILDER_THE_FTP_SIGNATURE_FOR_BSB_WAS_NOT_WELL_FORMED_PLEASE_CHECK_YOUR_SIGNATURE_DETAILS="The FTP signature for <b>%s</b> was not well formed, please check your signature details!"
|
||||||
COM_COMPONENTBUILDER_THE_LOGIN_TO_BSB_HAS_FAILED_PLEASE_CHECK_THAT_YOUR_DETAILS_ARE_CORRECT="The login to <b>%s</b> has failed, please check that your details are correct!"
|
COM_COMPONENTBUILDER_THE_LOGIN_TO_BSB_HAS_FAILED_PLEASE_CHECK_THAT_YOUR_DETAILS_ARE_CORRECT="The login to <b>%s</b> has failed, please check that your details are correct!"
|
||||||
|
Loading…
Reference in New Issue
Block a user