forked from joomla/Component-Builder
Stable release of v3.2.0-beta3
Move the old helper compiler files to powers. Move the old helper extrusion files to powers.
This commit is contained in:
parent
dce71f1d35
commit
0b0568299c
@ -1,3 +1,8 @@
|
|||||||
|
# v3.2.0-beta3
|
||||||
|
|
||||||
|
- Move the old helper compiler files to powers
|
||||||
|
- Move the old helper extrusion files to powers
|
||||||
|
|
||||||
# v3.2.0-beta1
|
# v3.2.0-beta1
|
||||||
|
|
||||||
- Move beta to main repo
|
- Move beta to main repo
|
||||||
|
10
README.md
10
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.2.0-beta2) 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.2.0-beta3) 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)
|
||||||
|
|
||||||
@ -144,13 +144,13 @@ 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*: 4th March, 2024
|
+ *Last Build*: 6th March, 2024
|
||||||
+ *Version*: 3.2.0-beta2
|
+ *Version*: 3.2.0-beta3
|
||||||
+ *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*: **694682**
|
+ *Line count*: **729192**
|
||||||
+ *Field count*: **2077**
|
+ *Field count*: **2077**
|
||||||
+ *File count*: **5122**
|
+ *File count*: **5132**
|
||||||
+ *Folder count*: **455**
|
+ *Folder count*: **455**
|
||||||
|
|
||||||
> 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).
|
||||||
|
@ -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.2.0-beta2) 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.2.0-beta3) 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)
|
||||||
|
|
||||||
@ -144,13 +144,13 @@ 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*: 4th March, 2024
|
+ *Last Build*: 6th March, 2024
|
||||||
+ *Version*: 3.2.0-beta2
|
+ *Version*: 3.2.0-beta3
|
||||||
+ *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*: **694682**
|
+ *Line count*: **729192**
|
||||||
+ *Field count*: **2077**
|
+ *Field count*: **2077**
|
||||||
+ *File count*: **5122**
|
+ *File count*: **5132**
|
||||||
+ *Folder count*: **455**
|
+ *Folder count*: **455**
|
||||||
|
|
||||||
> 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).
|
||||||
|
@ -85,7 +85,7 @@ Html::_('script', 'components/com_componentbuilder/assets/js/admin.js', ['versio
|
|||||||
|
|
||||||
// require helper files
|
// require helper files
|
||||||
JLoader::register('ComponentbuilderHelper', __DIR__ . '/helpers/componentbuilder.php');
|
JLoader::register('ComponentbuilderHelper', __DIR__ . '/helpers/componentbuilder.php');
|
||||||
JLoader::register('ComponentbuilderEmail', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/componentbuilderemail.php');
|
\JLoader::register('ComponentbuilderEmail', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/componentbuilderemail.php');
|
||||||
JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');
|
JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');
|
||||||
|
|
||||||
// Trigger the Global Admin Event
|
// Trigger the Global Admin Event
|
||||||
|
@ -123,7 +123,7 @@ class ComponentbuilderControllerAdmin_views extends AdminController
|
|||||||
public function runExpansion()
|
public function runExpansion()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
|
@ -97,8 +97,6 @@ class ComponentbuilderControllerCompiler extends AdminController
|
|||||||
// currently only those with admin access can compile a component
|
// currently only those with admin access can compile a component
|
||||||
if($user->authorise('core.manage', 'com_componentbuilder'))
|
if($user->authorise('core.manage', 'com_componentbuilder'))
|
||||||
{
|
{
|
||||||
// include component compiler
|
|
||||||
require_once JPATH_ADMINISTRATOR.'/components/com_componentbuilder/helpers/compiler.php';
|
|
||||||
$model = $this->getModel('compiler');
|
$model = $this->getModel('compiler');
|
||||||
if ($model->builder())
|
if ($model->builder())
|
||||||
{
|
{
|
||||||
@ -530,7 +528,7 @@ class ComponentbuilderControllerCompiler extends AdminController
|
|||||||
public function runExpansion()
|
public function runExpansion()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
@ -570,7 +568,7 @@ class ComponentbuilderControllerCompiler extends AdminController
|
|||||||
public function clearTmp()
|
public function clearTmp()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
@ -611,7 +609,7 @@ class ComponentbuilderControllerCompiler extends AdminController
|
|||||||
public function runTranslator()
|
public function runTranslator()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
|
@ -123,7 +123,7 @@ class ComponentbuilderControllerCustom_codes extends AdminController
|
|||||||
public function runExpansion()
|
public function runExpansion()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
|
@ -123,7 +123,7 @@ class ComponentbuilderControllerDynamic_gets extends AdminController
|
|||||||
public function runExpansion()
|
public function runExpansion()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
|
@ -123,7 +123,7 @@ class ComponentbuilderControllerFields extends AdminController
|
|||||||
public function runExpansion()
|
public function runExpansion()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
|
@ -124,7 +124,7 @@ class ComponentbuilderControllerJoomla_components extends AdminController
|
|||||||
public function runExpansion()
|
public function runExpansion()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
@ -164,7 +164,7 @@ class ComponentbuilderControllerJoomla_components extends AdminController
|
|||||||
public function clearTmp()
|
public function clearTmp()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
|
@ -58,7 +58,7 @@ class ComponentbuilderControllerJoomla_plugins extends AdminController
|
|||||||
public function runExpansion()
|
public function runExpansion()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
|
@ -59,7 +59,7 @@ class ComponentbuilderControllerPowers extends AdminController
|
|||||||
public function runExpansion()
|
public function runExpansion()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
|
@ -123,7 +123,7 @@ class ComponentbuilderControllerValidation_rules extends AdminController
|
|||||||
public function runExpansion()
|
public function runExpansion()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
Session::checkToken() or \jexit(Text::_('JINVALID_TOKEN'));
|
||||||
// check if user has the right
|
// check if user has the right
|
||||||
$user = Factory::getUser();
|
$user = Factory::getUser();
|
||||||
// set page redirect
|
// set page redirect
|
||||||
|
@ -1123,15 +1123,6 @@ abstract class ComponentbuilderHelper
|
|||||||
jimport('joomla.application');
|
jimport('joomla.application');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The dynamic builder of views, tables and fields
|
|
||||||
**/
|
|
||||||
public static function dynamicBuilder(&$data, $type)
|
|
||||||
{
|
|
||||||
self::autoLoader('extrusion');
|
|
||||||
$extruder = new Extrusion($data);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert repeatable field to subform
|
* Convert repeatable field to subform
|
||||||
*
|
*
|
||||||
|
@ -1,204 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
|
||||||
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
|
||||||
| |
|
|
||||||
|_|
|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 2.6.x
|
|
||||||
@created 30th April, 2015
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage indenter.php
|
|
||||||
@author Llewellyn van der Merwe <http://joomlacomponentbuilder.com>
|
|
||||||
@github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @link https://github.com/gajus/dindent for the canonical source repository
|
|
||||||
* @license https://github.com/gajus/dindent/blob/master/LICENSE BSD 3-Clause
|
|
||||||
*/
|
|
||||||
class Indenter {
|
|
||||||
private
|
|
||||||
$log = array(),
|
|
||||||
$options = array(
|
|
||||||
'indentation_character' => ' '
|
|
||||||
),
|
|
||||||
$inline_elements = array('b', 'big', 'i', 'small', 'tt', 'abbr', 'acronym', 'cite', 'code', 'dfn', 'em', 'kbd', 'strong', 'samp', 'var', 'a', 'bdo', 'br', 'img', 'span', 'sub', 'sup'),
|
|
||||||
$temporary_replacements_script = array(),
|
|
||||||
$temporary_replacements_inline = array();
|
|
||||||
|
|
||||||
const ELEMENT_TYPE_BLOCK = 0;
|
|
||||||
const ELEMENT_TYPE_INLINE = 1;
|
|
||||||
|
|
||||||
const MATCH_INDENT_NO = 0;
|
|
||||||
const MATCH_INDENT_DECREASE = 1;
|
|
||||||
const MATCH_INDENT_INCREASE = 2;
|
|
||||||
const MATCH_DISCARD = 3;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param array $options
|
|
||||||
*/
|
|
||||||
public function __construct (array $options = array()) {
|
|
||||||
foreach ($options as $name => $value) {
|
|
||||||
if (!array_key_exists($name, $this->options)) {
|
|
||||||
throw new Exception\InvalidArgumentException('Unrecognized option.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->options[$name] = $value;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $element_name Element name, e.g. "b".
|
|
||||||
* @param ELEMENT_TYPE_BLOCK|ELEMENT_TYPE_INLINE $type
|
|
||||||
* @return null
|
|
||||||
*/
|
|
||||||
public function setElementType ($element_name, $type) {
|
|
||||||
if ($type === static::ELEMENT_TYPE_BLOCK) {
|
|
||||||
$this->inline_elements = array_diff($this->inline_elements, array($element_name));
|
|
||||||
} else if ($type === static::ELEMENT_TYPE_INLINE) {
|
|
||||||
$this->inline_elements[] = $element_name;
|
|
||||||
} else {
|
|
||||||
throw new Exception\InvalidArgumentException('Unrecognized element type.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->inline_elements = array_unique($this->inline_elements);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param string $input HTML input.
|
|
||||||
* @return string Indented HTML.
|
|
||||||
*/
|
|
||||||
public function indent ($input) {
|
|
||||||
$this->log = array();
|
|
||||||
|
|
||||||
// Dindent does not indent <script> body. Instead, it temporary removes it from the code, indents the input, and restores the script body.
|
|
||||||
if (preg_match_all('/<script\b[^>]*>([\s\S]*?)<\/script>/mi', $input, $matches)) {
|
|
||||||
$this->temporary_replacements_script = $matches[0];
|
|
||||||
foreach ($matches[0] as $i => $match) {
|
|
||||||
$input = str_replace($match, '<script>' . ($i + 1) . '</script>', $input);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Removing double whitespaces to make the source code easier to read.
|
|
||||||
// With exception of <pre>/ CSS white-space changing the default behaviour, double whitespace is meaningless in HTML output.
|
|
||||||
// This reason alone is sufficient not to use Dindent in production.
|
|
||||||
$input = str_replace("\t", '', $input);
|
|
||||||
$input = preg_replace('/\s{2,}/', ' ', $input);
|
|
||||||
|
|
||||||
// Remove inline elements and replace them with text entities.
|
|
||||||
if (preg_match_all('/<(' . implode('|', $this->inline_elements) . ')[^>]*>(?:[^<]*)<\/\1>/', $input, $matches)) {
|
|
||||||
$this->temporary_replacements_inline = $matches[0];
|
|
||||||
foreach ($matches[0] as $i => $match) {
|
|
||||||
$input = str_replace($match, 'ᐃ' . ($i + 1) . 'ᐃ', $input);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
$subject = $input;
|
|
||||||
|
|
||||||
$output = '';
|
|
||||||
|
|
||||||
$next_line_indentation_level = 0;
|
|
||||||
|
|
||||||
do {
|
|
||||||
$indentation_level = $next_line_indentation_level;
|
|
||||||
|
|
||||||
$patterns = array(
|
|
||||||
// block tag
|
|
||||||
'/^(<([a-z]+)(?:[^>]*)>(?:[^<]*)<\/(?:\2)>)/' => static::MATCH_INDENT_NO,
|
|
||||||
// DOCTYPE
|
|
||||||
'/^<!([^>]*)>/' => static::MATCH_INDENT_NO,
|
|
||||||
// tag with implied closing
|
|
||||||
'/^<(input|link|meta|base|br|img|hr)([^>]*)>/' => static::MATCH_INDENT_NO,
|
|
||||||
// opening tag
|
|
||||||
'/^<[^\/]([^>]*)>/' => static::MATCH_INDENT_INCREASE,
|
|
||||||
// closing tag
|
|
||||||
'/^<\/([^>]*)>/' => static::MATCH_INDENT_DECREASE,
|
|
||||||
// self-closing tag
|
|
||||||
'/^<(.+)\/>/' => static::MATCH_INDENT_DECREASE,
|
|
||||||
// whitespace
|
|
||||||
'/^(\s+)/' => static::MATCH_DISCARD,
|
|
||||||
// text node
|
|
||||||
'/([^<]+)/' => static::MATCH_INDENT_NO
|
|
||||||
);
|
|
||||||
$rules = array('NO', 'DECREASE', 'INCREASE', 'DISCARD');
|
|
||||||
|
|
||||||
foreach ($patterns as $pattern => $rule) {
|
|
||||||
if ($match = preg_match($pattern, $subject, $matches)) {
|
|
||||||
$this->log[] = array(
|
|
||||||
'rule' => $rules[$rule],
|
|
||||||
'pattern' => $pattern,
|
|
||||||
'subject' => $subject,
|
|
||||||
'match' => $matches[0]
|
|
||||||
);
|
|
||||||
|
|
||||||
$subject = mb_substr($subject, mb_strlen($matches[0]));
|
|
||||||
|
|
||||||
if ($rule === static::MATCH_DISCARD) {
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($rule === static::MATCH_INDENT_NO) {
|
|
||||||
|
|
||||||
} else if ($rule === static::MATCH_INDENT_DECREASE) {
|
|
||||||
$next_line_indentation_level--;
|
|
||||||
$indentation_level--;
|
|
||||||
} else {
|
|
||||||
$next_line_indentation_level++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($indentation_level < 0) {
|
|
||||||
$indentation_level = 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
$output .= str_repeat($this->options['indentation_character'], $indentation_level) . $matches[0] . "\n";
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
} while ($match);
|
|
||||||
|
|
||||||
$interpreted_input = '';
|
|
||||||
foreach ($this->log as $e) {
|
|
||||||
$interpreted_input .= $e['match'];
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($interpreted_input !== $input) {
|
|
||||||
throw new Exception\RuntimeException('Did not reproduce the exact input.');
|
|
||||||
}
|
|
||||||
|
|
||||||
$output = preg_replace('/(<(\w+)[^>]*>)\s*(<\/\2>)/', '\\1\\3', $output);
|
|
||||||
|
|
||||||
foreach ($this->temporary_replacements_script as $i => $original) {
|
|
||||||
$output = str_replace('<script>' . ($i + 1) . '</script>', $original, $output);
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach ($this->temporary_replacements_inline as $i => $original) {
|
|
||||||
$output = str_replace('ᐃ' . ($i + 1) . 'ᐃ', $original, $output);
|
|
||||||
}
|
|
||||||
|
|
||||||
return trim($output);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Debugging utility. Get log for the last indent operation.
|
|
||||||
*
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getLog () {
|
|
||||||
return $this->log;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1292,6 +1292,7 @@ COM_COMPONENTBUILDER_ALL_FOUND_INSTANCES_IN_S_WHERE_REPLACED="All found instance
|
|||||||
COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATER="All is good, please check again later"
|
COM_COMPONENTBUILDER_ALL_IS_GOOD_PLEASE_CHECK_AGAIN_LATER="All is good, please check again later"
|
||||||
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."
|
||||||
COM_COMPONENTBUILDER_ALL_OF_THESE_PACKAGES_ARE_A_FULLY_DEVELOPEDMAPPED_COMPONENTS_FOR_JCB_THEY_CAN_BE_SEEN_AS_DEMO_CONTENT_OR_BASE_IMAGES_FROM_WHICH_TO_START_YOUR_PROJECTBR_ALWAYS_MAKE_SURE_YOU_ARE_ON_THE_LATEST_VERSION_OF_JCB_BEFORE_IMPORTING_ANY_OF_THESE_PACKAGES_SHOULD_ANY_OF_THEM_FAIL_TO_IMPORT_A_S_PLEASE_LET_US_KNOWA="All of these packages are a fully developed/mapped components for JCB. They can be seen as demo content, or base images from which to start your project.<br />Always make sure you are on the latest version of JCB before importing any of these packages, should any of them fail to import <a %s >please let us know</a>."
|
COM_COMPONENTBUILDER_ALL_OF_THESE_PACKAGES_ARE_A_FULLY_DEVELOPEDMAPPED_COMPONENTS_FOR_JCB_THEY_CAN_BE_SEEN_AS_DEMO_CONTENT_OR_BASE_IMAGES_FROM_WHICH_TO_START_YOUR_PROJECTBR_ALWAYS_MAKE_SURE_YOU_ARE_ON_THE_LATEST_VERSION_OF_JCB_BEFORE_IMPORTING_ANY_OF_THESE_PACKAGES_SHOULD_ANY_OF_THEM_FAIL_TO_IMPORT_A_S_PLEASE_LET_US_KNOWA="All of these packages are a fully developed/mapped components for JCB. They can be seen as demo content, or base images from which to start your project.<br />Always make sure you are on the latest version of JCB before importing any of these packages, should any of them fail to import <a %s >please let us know</a>."
|
||||||
|
COM_COMPONENTBUILDER_ALL_THE_FIELDS_AND_VIEWS_FROM_YOUR_SQL_DUMP_HAS_BEEN_CREATED_AND_LINKED_TO_THIS_COMPONENT="All the fields and views from your sql dump has been created and linked to this component."
|
||||||
COM_COMPONENTBUILDER_ALL_THE_LANGUAGES_FOUND_IN_JOOMLA_WERE_SUCCESSFULLY_IMPORTED="All the languages found in Joomla were successfully imported."
|
COM_COMPONENTBUILDER_ALL_THE_LANGUAGES_FOUND_IN_JOOMLA_WERE_SUCCESSFULLY_IMPORTED="All the languages found in Joomla were successfully imported."
|
||||||
COM_COMPONENTBUILDER_ALL_UNSAVED_WORK_ON_THIS_PAGE_WILL_BE_LOST_ARE_YOU_SURE_YOU_WANT_TO_CONTINUE="All unsaved work on this page will be lost, are you sure you want to continue?"
|
COM_COMPONENTBUILDER_ALL_UNSAVED_WORK_ON_THIS_PAGE_WILL_BE_LOST_ARE_YOU_SURE_YOU_WANT_TO_CONTINUE="All unsaved work on this page will be lost, are you sure you want to continue?"
|
||||||
COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER="Already selected, try another."
|
COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER="Already selected, try another."
|
||||||
@ -1648,6 +1649,7 @@ COM_COMPONENTBUILDER_CLONE="Clone"
|
|||||||
COM_COMPONENTBUILDER_CLONE_FAILED="Clone failed!"
|
COM_COMPONENTBUILDER_CLONE_FAILED="Clone failed!"
|
||||||
COM_COMPONENTBUILDER_CLOSE_NEW="Close & New"
|
COM_COMPONENTBUILDER_CLOSE_NEW="Close & New"
|
||||||
COM_COMPONENTBUILDER_CODE="Code"
|
COM_COMPONENTBUILDER_CODE="Code"
|
||||||
|
COM_COMPONENTBUILDER_CODESTRINGS="code/strings"
|
||||||
COM_COMPONENTBUILDER_COMMUNITY_PACKAGES="Community Packages"
|
COM_COMPONENTBUILDER_COMMUNITY_PACKAGES="Community Packages"
|
||||||
COM_COMPONENTBUILDER_COMPANY="Company"
|
COM_COMPONENTBUILDER_COMPANY="Company"
|
||||||
COM_COMPONENTBUILDER_COMPANY_NAME="Company Name"
|
COM_COMPONENTBUILDER_COMPANY_NAME="Company Name"
|
||||||
@ -3667,6 +3669,7 @@ COM_COMPONENTBUILDER_CONTRIBUTORS="Contributors"
|
|||||||
COM_COMPONENTBUILDER_COPYRIGHT="Copyright"
|
COM_COMPONENTBUILDER_COPYRIGHT="Copyright"
|
||||||
COM_COMPONENTBUILDER_COPYRIGHT_S="Copyright: %s"
|
COM_COMPONENTBUILDER_COPYRIGHT_S="Copyright: %s"
|
||||||
COM_COMPONENTBUILDER_COULD_NOT_CLEAR_THE_TMP_FOLDER="Could not clear the tmp folder!"
|
COM_COMPONENTBUILDER_COULD_NOT_CLEAR_THE_TMP_FOLDER="Could not clear the tmp folder!"
|
||||||
|
COM_COMPONENTBUILDER_COULD_NOT_FIND_THE_DATA_NEEDED_TO_CONTINUE="Could not find the data needed to continue."
|
||||||
COM_COMPONENTBUILDER_COULD_NOT_INSTALL_COMPONENT="Could not install component!"
|
COM_COMPONENTBUILDER_COULD_NOT_INSTALL_COMPONENT="Could not install component!"
|
||||||
COM_COMPONENTBUILDER_COULD_NOT_INSTALL_EXTENSIONS="Could not install extensions!"
|
COM_COMPONENTBUILDER_COULD_NOT_INSTALL_EXTENSIONS="Could not install extensions!"
|
||||||
COM_COMPONENTBUILDER_COULD_NOT_INSTALL_MODULE="Could not install module!"
|
COM_COMPONENTBUILDER_COULD_NOT_INSTALL_MODULE="Could not install module!"
|
||||||
@ -5403,7 +5406,11 @@ COM_COMPONENTBUILDER_HI="Hi"
|
|||||||
COM_COMPONENTBUILDER_HIDE_ONLY="Hide Only"
|
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_HTHREEASSETS_TABLE_NOTICEHTHREE="<hr /><h3>Assets Table Notice</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEASSETS_TABLE_WARNINGHTHREE="<hr /><h3>Assets Table Warning</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREECONDITIONAL_SCRIPT_WARNINGHTHREE="<hr /><h3>Conditional Script Warning</h3>"
|
||||||
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_HTHREECUSTOM_CODE_WARNINGHTHREE="<hr /><h3>Custom Code 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_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_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>"
|
||||||
@ -5411,9 +5418,15 @@ COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_ERRORHTHREE="<hr /><h3>External Code
|
|||||||
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_HTHREEFIELD_WARNINGHTHREE="<hr /><h3>Field Warning</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEFILE_PATH_ERRORHTHREE="<hr /><h3>File Path Error</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_HR_HTHREEFOLDER_PATH_ERRORHTHREE="<hr /><h3>Folder Path Error</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREELANGUAGE_NOTICEHTHREE="<hr /><h3>Language Notice</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREELANGUAGE_WARNINGHTHREE="<hr /><h3>Language Warning</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEMULTI_FILTER_ERRORHTHREE="<hr /><h3>Multi Filter Error</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE="<hr /><h3>%s Warning</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREETIDY_ERRORHTHREE="<hr /><h3>Tidy Error</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREETIDY_ERRORHTHREE="<hr /><h3>Tidy Error</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEWHMCS_ERRORHTHREE="<hr /><h3>WHMCS 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>"
|
||||||
@ -7528,6 +7541,7 @@ COM_COMPONENTBUILDER_NO_COMPONENTS_FOUND="No Components Found"
|
|||||||
COM_COMPONENTBUILDER_NO_COMPONENTS_WERE_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN="No components were selected, please make a selection and try again!"
|
COM_COMPONENTBUILDER_NO_COMPONENTS_WERE_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN="No components were selected, please make a selection and try again!"
|
||||||
COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE="No component details found, so it is not safe to continue!"
|
COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE="No component details found, so it is not safe to continue!"
|
||||||
COM_COMPONENTBUILDER_NO_COMPONENT_WAS_SELECTED_PLEASE_MAKE_A_SELECTION_OF_ONE_COMPONENT_AND_TRY_AGAIN="No component was selected, please make a selection of one component and try again!"
|
COM_COMPONENTBUILDER_NO_COMPONENT_WAS_SELECTED_PLEASE_MAKE_A_SELECTION_OF_ONE_COMPONENT_AND_TRY_AGAIN="No component was selected, please make a selection of one component and try again!"
|
||||||
|
COM_COMPONENTBUILDER_NO_CREATE_TABLE_WERE_FOUND_PLEASE_CHECK_YOUR_SQL="No "CREATE TABLE.." were found, please check your sql."
|
||||||
COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_FOR_S="No cronjob path found for (%s)"
|
COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_FOR_S="No cronjob path found for (%s)"
|
||||||
COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_SINCE_INCORRECT_TYPE_REQUESTED="No cronjob path found since incorrect type requested."
|
COM_COMPONENTBUILDER_NO_CRONJOB_PATH_FOUND_SINCE_INCORRECT_TYPE_REQUESTED="No cronjob path found since incorrect type requested."
|
||||||
COM_COMPONENTBUILDER_NO_DESCRIPTION_FOUND="No description found."
|
COM_COMPONENTBUILDER_NO_DESCRIPTION_FOUND="No description found."
|
||||||
@ -7665,6 +7679,7 @@ COM_COMPONENTBUILDER_PLEASE_FIRST_MAKE_A_SELECTION_FROM_THE_LIST="Please first m
|
|||||||
COM_COMPONENTBUILDER_PLEASE_NOTE_THAT_THIS_PACKAGE_BHAS_NOB_CHECKSUM_VALIDATION="Please note that this package <b>has no</b> checksum validation!"
|
COM_COMPONENTBUILDER_PLEASE_NOTE_THAT_THIS_PACKAGE_BHAS_NOB_CHECKSUM_VALIDATION="Please note that this package <b>has no</b> checksum validation!"
|
||||||
COM_COMPONENTBUILDER_PLEASE_SELECT_A_COMPONENT_THAT_YOU_WOULD_LIKE_TO_COMPILE="Please select a component that you would like to compile."
|
COM_COMPONENTBUILDER_PLEASE_SELECT_A_COMPONENT_THAT_YOU_WOULD_LIKE_TO_COMPILE="Please select a component that you would like to compile."
|
||||||
COM_COMPONENTBUILDER_PLEASE_TRY_AGAIN_LATER="Please try again later"
|
COM_COMPONENTBUILDER_PLEASE_TRY_AGAIN_LATER="Please try again later"
|
||||||
|
COM_COMPONENTBUILDER_PLEASE_TRY_AGAIN_THIS_ERROR_USUALY_HAPPENS_IF_IT_IS_A_NEW_COMPONENT_BEACUES_WE_NEED_A_COMPONENT_ID_TO_DO_THIS_BUILD_WITH_YOUR_SQL_DUMP="Please try again, this error usualy happens if it is a new component, beacues we need a component ID to do this build with your sql dump."
|
||||||
COM_COMPONENTBUILDER_PLEASE_WAIT="Please wait!"
|
COM_COMPONENTBUILDER_PLEASE_WAIT="Please wait!"
|
||||||
COM_COMPONENTBUILDER_PLEASE_WAIT_LOADING="Please wait, loading"
|
COM_COMPONENTBUILDER_PLEASE_WAIT_LOADING="Please wait, loading"
|
||||||
COM_COMPONENTBUILDER_PLUGIN="Plugin"
|
COM_COMPONENTBUILDER_PLUGIN="Plugin"
|
||||||
@ -7873,6 +7888,7 @@ COM_COMPONENTBUILDER_REQUIRES_THE_VALUE_TO_BE_A_TELEPHONE_NUMBER_COMPLYING_WITH_
|
|||||||
COM_COMPONENTBUILDER_REQUIRES_THE_VALUE_TO_BE_THE_SAME_AS_THAT_HELD_IN_THE_FIELD_NAMED_QUOTFIELDQUOT_EGS="Requires the value to be the same as that held in the field named "field", eg:%s"
|
COM_COMPONENTBUILDER_REQUIRES_THE_VALUE_TO_BE_THE_SAME_AS_THAT_HELD_IN_THE_FIELD_NAMED_QUOTFIELDQUOT_EGS="Requires the value to be the same as that held in the field named "field", eg:%s"
|
||||||
COM_COMPONENTBUILDER_RESET="Reset"
|
COM_COMPONENTBUILDER_RESET="Reset"
|
||||||
COM_COMPONENTBUILDER_RESET_FAILED="Reset Failed!"
|
COM_COMPONENTBUILDER_RESET_FAILED="Reset Failed!"
|
||||||
|
COM_COMPONENTBUILDER_REVERTED_THE_B_ASSETSB_TABLE_RULES_COLUMN_BACK_TO_ITS_DEFAULT_SIZE_OF_VARCHARFIVE_THOUSAND_ONE_HUNDRED_AND_TWENTY="Reverted the <b>#__assets</b> table rules column back to its default size of varchar(5120)"
|
||||||
COM_COMPONENTBUILDER_REVERT_ALL_AHEAD_SNIPPETS="Revert All Ahead Snippets"
|
COM_COMPONENTBUILDER_REVERT_ALL_AHEAD_SNIPPETS="Revert All Ahead Snippets"
|
||||||
COM_COMPONENTBUILDER_RIGHT_IN_TAB="Right in Tab"
|
COM_COMPONENTBUILDER_RIGHT_IN_TAB="Right in Tab"
|
||||||
COM_COMPONENTBUILDER_RIGHT_OF_TABS="Right of Tabs"
|
COM_COMPONENTBUILDER_RIGHT_OF_TABS="Right of Tabs"
|
||||||
@ -9147,6 +9163,12 @@ 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_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_COMPONENT_TO_THE_GIT_REPOSITORY="We where was unable to transfer the component to the git repository:"
|
||||||
|
COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_COMPONENT_ZIP_FILE_TO_THE_BACKUP_FOLDER="We where was unable to transfer the component ZIP file to the backup folder:"
|
||||||
|
COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_MODULE_TO_THE_GIT_REPOSITORY="We where was unable to transfer the (%s) module to the git repository:"
|
||||||
|
COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_MODULE_ZIP_FILE_TO_THE_BACKUP_FOLDER="We where was unable to transfer the (%s) module zip file to the backup folder:"
|
||||||
|
COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_PLUGIN_TO_THE_GIT_REPOSITORY="We where was unable to transfer the (%s) plugin to the git repository:"
|
||||||
|
COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_PLUGIN_ZIP_FILE_TO_THE_BACKUP_FOLDER="We where was unable to transfer the (%s) plugin zip file to the backup folder:"
|
||||||
COM_COMPONENTBUILDER_WHAT_VERSION_OF_JOOMLA_WOULD_YOU_LIKE_TO_TARGET="What version of Joomla would you like to target."
|
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_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"
|
||||||
|
@ -3347,7 +3347,7 @@ class ComponentbuilderModelAjax extends ListModel
|
|||||||
protected function buildFieldTextarea($name, $desc, $default, $rows)
|
protected function buildFieldTextarea($name, $desc, $default, $rows)
|
||||||
{
|
{
|
||||||
// get the textarea
|
// get the textarea
|
||||||
$textarea = JFormHelper::loadFieldType('textarea', true);
|
$textarea = \JFormHelper::loadFieldType('textarea', true);
|
||||||
// start building the name field XML
|
// start building the name field XML
|
||||||
$textareaXML = new \SimpleXMLElement('<field/>');
|
$textareaXML = new \SimpleXMLElement('<field/>');
|
||||||
// textarea attributes
|
// textarea attributes
|
||||||
@ -3373,7 +3373,7 @@ class ComponentbuilderModelAjax extends ListModel
|
|||||||
protected function buildFieldOptionsSubform($values, $nameListOptions = null, $name = 'properties', $label = 'COM_COMPONENTBUILDER_PROPERTIESBR_SMALLHERE_YOU_CAN_SET_THE_PROPERTIES_FOR_THIS_FIELDSMALL')
|
protected function buildFieldOptionsSubform($values, $nameListOptions = null, $name = 'properties', $label = 'COM_COMPONENTBUILDER_PROPERTIESBR_SMALLHERE_YOU_CAN_SET_THE_PROPERTIES_FOR_THIS_FIELDSMALL')
|
||||||
{
|
{
|
||||||
// get the subform
|
// get the subform
|
||||||
$subform = JFormHelper::loadFieldType('subform', true);
|
$subform = \JFormHelper::loadFieldType('subform', true);
|
||||||
// start building the subform field XML
|
// start building the subform field XML
|
||||||
$subformXML = new \SimpleXMLElement('<field/>');
|
$subformXML = new \SimpleXMLElement('<field/>');
|
||||||
// subform attributes
|
// subform attributes
|
||||||
|
@ -18,6 +18,7 @@ use Joomla\CMS\Component\ComponentHelper;
|
|||||||
use Joomla\CMS\MVC\Model\ListModel;
|
use Joomla\CMS\MVC\Model\ListModel;
|
||||||
use Joomla\CMS\Plugin\PluginHelper;
|
use Joomla\CMS\Plugin\PluginHelper;
|
||||||
use Joomla\Utilities\ArrayHelper;
|
use Joomla\Utilities\ArrayHelper;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Helper\Compiler;
|
||||||
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
|
||||||
use VDM\Joomla\Utilities\JsonHelper;
|
use VDM\Joomla\Utilities\JsonHelper;
|
||||||
|
|
||||||
|
@ -15,10 +15,9 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||||
jimport('joomla.form.helper');
|
|
||||||
JFormHelper::loadFieldClass('checkboxes');
|
|
||||||
JFormHelper::loadFieldClass('checkboxes');
|
|
||||||
use VDM\Joomla\Utilities\Component\Helper;
|
use VDM\Joomla\Utilities\Component\Helper;
|
||||||
|
jimport('joomla.form.helper');
|
||||||
|
\JFormHelper::loadFieldClass('checkboxes');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Superpowerpaths Form Field class for the Componentbuilder component
|
* Superpowerpaths Form Field class for the Componentbuilder component
|
||||||
@ -63,7 +62,7 @@ class JFormFieldSuperpowerpaths extends JFormFieldCheckboxes
|
|||||||
// must have one / in the path
|
// must have one / in the path
|
||||||
if (strpos($default, '/') !== false)
|
if (strpos($default, '/') !== false)
|
||||||
{
|
{
|
||||||
$tmp = new stdClass;
|
$tmp = new \stdClass;
|
||||||
$tmp->text = $tmp->value = trim($default);
|
$tmp->text = $tmp->value = trim($default);
|
||||||
$tmp->checked = false;
|
$tmp->checked = false;
|
||||||
$options[$tmp->value] = $tmp;
|
$options[$tmp->value] = $tmp;
|
||||||
@ -81,7 +80,7 @@ class JFormFieldSuperpowerpaths extends JFormFieldCheckboxes
|
|||||||
if (isset($value->owner) && strlen($value->owner) > 1 &&
|
if (isset($value->owner) && strlen($value->owner) > 1 &&
|
||||||
isset($value->repo) && strlen($value->repo) > 1)
|
isset($value->repo) && strlen($value->repo) > 1)
|
||||||
{
|
{
|
||||||
$tmp = new stdClass;
|
$tmp = new \stdClass;
|
||||||
$tmp->text = $tmp->value = trim($value->owner) . '/' . trim($value->repo);
|
$tmp->text = $tmp->value = trim($value->owner) . '/' . trim($value->repo);
|
||||||
$tmp->checked = false;
|
$tmp->checked = false;
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ use VDM\Joomla\Utilities\GuidHelper;
|
|||||||
use VDM\Joomla\FOF\Encrypt\AES;
|
use VDM\Joomla\FOF\Encrypt\AES;
|
||||||
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
|
||||||
use VDM\Joomla\Utilities\GetHelper;
|
use VDM\Joomla\Utilities\GetHelper;
|
||||||
|
use VDM\Joomla\Componentbuilder\Extrusion\Helper\Extrusion;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Componentbuilder Joomla_component Admin Model
|
* Componentbuilder Joomla_component Admin Model
|
||||||
@ -1569,7 +1570,7 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
|||||||
// we check if component should be build from sql file
|
// we check if component should be build from sql file
|
||||||
if (isset($data['buildcomp']) && 1 == $data['buildcomp'])
|
if (isset($data['buildcomp']) && 1 == $data['buildcomp'])
|
||||||
{
|
{
|
||||||
ComponentbuilderHelper::dynamicBuilder($data, 1);
|
$extruder__ = new Extrusion($data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the Params Items to data
|
// Set the Params Items to data
|
||||||
|
1
admin/sql/updates/mysql/3.2.03.sql
Normal file
1
admin/sql/updates/mysql/3.2.03.sql
Normal file
@ -0,0 +1 @@
|
|||||||
|
|
@ -262,8 +262,8 @@ class ComponentbuilderViewJoomla_plugin extends HtmlView
|
|||||||
$this->document->addScriptDeclaration("var expire = ". (int) $expire.";");
|
$this->document->addScriptDeclaration("var expire = ". (int) $expire.";");
|
||||||
$this->document->addScriptDeclaration("selectionArray = {'property':{},'method':{}};");
|
$this->document->addScriptDeclaration("selectionArray = {'property':{},'method':{}};");
|
||||||
// add a few field options via PHP
|
// add a few field options via PHP
|
||||||
JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
|
\JFormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
|
||||||
$tmp_ = JFormHelper::loadFieldType('joomlaplugingroups')->options;
|
$tmp_ = \JFormHelper::loadFieldType('joomlaplugingroups')->options;
|
||||||
if (ArrayHelper::check($tmp_))
|
if (ArrayHelper::check($tmp_))
|
||||||
{
|
{
|
||||||
$_tmp = array();
|
$_tmp = array();
|
||||||
@ -274,7 +274,7 @@ class ComponentbuilderViewJoomla_plugin extends HtmlView
|
|||||||
// Set the values to JavaScript
|
// Set the values to JavaScript
|
||||||
$this->document->addScriptDeclaration("selectionArray['joomla_plugin_group'] = ". json_encode($_tmp) . ";");
|
$this->document->addScriptDeclaration("selectionArray['joomla_plugin_group'] = ". json_encode($_tmp) . ";");
|
||||||
}
|
}
|
||||||
$tmp_ = JFormHelper::loadFieldType('pluginsclassproperties')->options;
|
$tmp_ = \JFormHelper::loadFieldType('pluginsclassproperties')->options;
|
||||||
if (ArrayHelper::check($tmp_))
|
if (ArrayHelper::check($tmp_))
|
||||||
{
|
{
|
||||||
$_tmp = array();
|
$_tmp = array();
|
||||||
@ -285,7 +285,7 @@ class ComponentbuilderViewJoomla_plugin extends HtmlView
|
|||||||
// Set the values to JavaScript
|
// Set the values to JavaScript
|
||||||
$this->document->addScriptDeclaration("selectionArray['property'] = ". json_encode($_tmp) . ";");
|
$this->document->addScriptDeclaration("selectionArray['property'] = ". json_encode($_tmp) . ";");
|
||||||
}
|
}
|
||||||
$tmp_ = JFormHelper::loadFieldType('pluginsclassmethods')->options;
|
$tmp_ = \JFormHelper::loadFieldType('pluginsclassmethods')->options;
|
||||||
if (ArrayHelper::check($tmp_))
|
if (ArrayHelper::check($tmp_))
|
||||||
{
|
{
|
||||||
$_tmp = array();
|
$_tmp = array();
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="3.10" method="upgrade">
|
<extension type="component" version="3.10" method="upgrade">
|
||||||
<name>COM_COMPONENTBUILDER</name>
|
<name>COM_COMPONENTBUILDER</name>
|
||||||
<creationDate>4th March, 2024</creationDate>
|
<creationDate>6th March, 2024</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.2.0-beta2</version>
|
<version>3.2.0-beta3</version>
|
||||||
<description><![CDATA[
|
<description><![CDATA[
|
||||||
<h1>Component Builder (v.3.2.0-beta2)</h1>
|
<h1>Component Builder (v.3.2.0-beta3)</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.
|
||||||
|
|
||||||
|
@ -1559,4 +1559,22 @@
|
|||||||
<maintainerurl>https://dev.vdm.io</maintainerurl>
|
<maintainerurl>https://dev.vdm.io</maintainerurl>
|
||||||
<targetplatform name="joomla" version="3.*"/>
|
<targetplatform name="joomla" version="3.*"/>
|
||||||
</update>
|
</update>
|
||||||
|
<update>
|
||||||
|
<name>Component Builder</name>
|
||||||
|
<description>Builds Complex Joomla Components</description>
|
||||||
|
<element>pkg_component_builder</element>
|
||||||
|
<type>package</type>
|
||||||
|
<client>site</client>
|
||||||
|
<version>3.2.03</version>
|
||||||
|
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
||||||
|
<downloads>
|
||||||
|
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.0-beta3.zip</downloadurl>
|
||||||
|
</downloads>
|
||||||
|
<tags>
|
||||||
|
<tag>beta</tag>
|
||||||
|
</tags>
|
||||||
|
<maintainer>Llewellyn van der Merwe</maintainer>
|
||||||
|
<maintainerurl>https://dev.vdm.io</maintainerurl>
|
||||||
|
<targetplatform name="joomla" version="3.*"/>
|
||||||
|
</update>
|
||||||
</updates>
|
</updates>
|
@ -2,21 +2,21 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 30th April, 2015
|
* @created 4th September, 2022
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// No direct access to this file
|
namespace VDM\Joomla\Componentbuilder\Compiler\Helper;
|
||||||
defined('_JEXEC') or die('Restricted access');
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
use Joomla\CMS\Filesystem\File;
|
use Joomla\CMS\Filesystem\File;
|
||||||
use Joomla\CMS\Filesystem\Folder;
|
use Joomla\CMS\Filesystem\Folder;
|
||||||
|
// use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper; (for Joomla 4 and above)
|
||||||
use VDM\Joomla\Utilities\StringHelper;
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
use VDM\Joomla\Utilities\ArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
use VDM\Joomla\Utilities\ObjectHelper;
|
use VDM\Joomla\Utilities\ObjectHelper;
|
||||||
@ -25,19 +25,16 @@ use VDM\Joomla\Utilities\GetHelper;
|
|||||||
use VDM\Joomla\Utilities\MathHelper;
|
use VDM\Joomla\Utilities\MathHelper;
|
||||||
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\Helper\Infusion;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Line;
|
|
||||||
|
|
||||||
// Use the component builder autoloader
|
|
||||||
ComponentbuilderHelper::autoLoader();
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compiler class
|
* Compiler class
|
||||||
|
*
|
||||||
* @deprecated 3.3
|
* @deprecated 3.3
|
||||||
*/
|
*/
|
||||||
class Compiler extends Infusion
|
class Compiler extends Infusion
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Temp path
|
* The Temp path
|
||||||
*
|
*
|
||||||
@ -172,7 +169,7 @@ class Compiler extends Infusion
|
|||||||
if (CFactory::_('Compiler.Builder.Language.Messages')->isArray('exclude'))
|
if (CFactory::_('Compiler.Builder.Language.Messages')->isArray('exclude'))
|
||||||
{
|
{
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Language Warning</h3>'), 'Warning'
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREELANGUAGE_WARNINGHTHREE'), 'Warning'
|
||||||
);
|
);
|
||||||
foreach (CFactory::_('Compiler.Builder.Language.Messages')->get('exclude') as $tag => $targets)
|
foreach (CFactory::_('Compiler.Builder.Language.Messages')->get('exclude') as $tag => $targets)
|
||||||
{
|
{
|
||||||
@ -190,7 +187,7 @@ class Compiler extends Infusion
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Language Notice</h3>'), 'Notice'
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREELANGUAGE_NOTICEHTHREE'), 'Notice'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -214,7 +211,7 @@ class Compiler extends Infusion
|
|||||||
if (CFactory::_('Compiler.Builder.Language.Messages')->isArray('include'))
|
if (CFactory::_('Compiler.Builder.Language.Messages')->isArray('include'))
|
||||||
{
|
{
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Language Notice</h3>'), 'Notice'
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREELANGUAGE_NOTICEHTHREE'), 'Notice'
|
||||||
);
|
);
|
||||||
foreach (CFactory::_('Compiler.Builder.Language.Messages')->get('include') as $tag => $targets)
|
foreach (CFactory::_('Compiler.Builder.Language.Messages')->get('include') as $tag => $targets)
|
||||||
{
|
{
|
||||||
@ -246,7 +243,7 @@ class Compiler extends Infusion
|
|||||||
if ($add_assets_table_fix)
|
if ($add_assets_table_fix)
|
||||||
{
|
{
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Assets Table Notice</h3>'), 'Notice'
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEASSETS_TABLE_NOTICEHTHREE'), 'Notice'
|
||||||
);
|
);
|
||||||
$asset_table_fix_type = ($add_assets_table_fix == 2)
|
$asset_table_fix_type = ($add_assets_table_fix == 2)
|
||||||
? 'intelligent' : 'sql';
|
? 'intelligent' : 'sql';
|
||||||
@ -262,7 +259,7 @@ class Compiler extends Infusion
|
|||||||
elseif (CFactory::_('Utilities.Counter')->accessSize >= 30)
|
elseif (CFactory::_('Utilities.Counter')->accessSize >= 30)
|
||||||
{
|
{
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Assets Table Warning</h3>'), 'Warning'
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEASSETS_TABLE_WARNINGHTHREE'), 'Warning'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -279,7 +276,7 @@ class Compiler extends Infusion
|
|||||||
if (CFactory::_('Utilities.Counter')->accessSize < 30)
|
if (CFactory::_('Utilities.Counter')->accessSize < 30)
|
||||||
{
|
{
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Assets Table Warning</h3>'),
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEASSETS_TABLE_WARNINGHTHREE'),
|
||||||
'Warning'
|
'Warning'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -328,7 +325,7 @@ class Compiler extends Infusion
|
|||||||
))
|
))
|
||||||
{
|
{
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Language Warning</h3>'), 'Warning'
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREELANGUAGE_WARNINGHTHREE'), 'Warning'
|
||||||
);
|
);
|
||||||
if (count((array) $mismatch) > 1)
|
if (count((array) $mismatch) > 1)
|
||||||
{
|
{
|
||||||
@ -368,10 +365,10 @@ class Compiler extends Infusion
|
|||||||
// the correct string
|
// the correct string
|
||||||
$externalCodeString = ($externalCount == 1) ? Text::_(
|
$externalCodeString = ($externalCount == 1) ? Text::_(
|
||||||
'code/string'
|
'code/string'
|
||||||
) : Text::_('code/strings');
|
) : Text::_('COM_COMPONENTBUILDER_CODESTRINGS');
|
||||||
// the notice
|
// the notice
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>External Code Notice</h3>'), 'Notice'
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_NOTICEHTHREE'), 'Notice'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -686,7 +683,7 @@ class Compiler extends Infusion
|
|||||||
|
|
||||||
// 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";
|
||||||
}
|
}
|
||||||
@ -920,7 +917,7 @@ class Compiler extends Infusion
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -978,7 +975,7 @@ class Compiler extends Infusion
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -1015,7 +1012,7 @@ class Compiler extends Infusion
|
|||||||
Folder::copy(CFactory::_('Utilities.Paths')->component_path, $repoFullPath, '', true);
|
Folder::copy(CFactory::_('Utilities.Paths')->component_path, $repoFullPath, '', true);
|
||||||
} catch (\RuntimeException $e) {
|
} catch (\RuntimeException $e) {
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('We where was unable to transfer the component to the git repository:') . ' ' . $e->getMessage()
|
Text::_('COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_COMPONENT_TO_THE_GIT_REPOSITORY') . ' ' . $e->getMessage()
|
||||||
, 'Error'
|
, 'Error'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1057,7 +1054,7 @@ class Compiler extends Infusion
|
|||||||
);
|
);
|
||||||
} catch (\RuntimeException $e) {
|
} catch (\RuntimeException $e) {
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('We where was unable to transfer the (%s) module to the git repository:', $module->name) . ' ' . $e->getMessage()
|
Text::sprintf('COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_MODULE_TO_THE_GIT_REPOSITORY', $module->name) . ' ' . $e->getMessage()
|
||||||
, 'Error'
|
, 'Error'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1101,7 +1098,7 @@ class Compiler extends Infusion
|
|||||||
);
|
);
|
||||||
} catch (\RuntimeException $e) {
|
} catch (\RuntimeException $e) {
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('We where was unable to transfer the (%s) plugin to the git repository:', $plugin->name) . ' ' . $e->getMessage()
|
Text::sprintf('COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_PLUGIN_TO_THE_GIT_REPOSITORY', $plugin->name) . ' ' . $e->getMessage()
|
||||||
, 'Error'
|
, 'Error'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1156,7 +1153,7 @@ class Compiler extends Infusion
|
|||||||
);
|
);
|
||||||
} catch (\RuntimeException $e) {
|
} catch (\RuntimeException $e) {
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('We where was unable to transfer the component ZIP file to the backup folder:') . ' ' . $e->getMessage()
|
Text::_('COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_COMPONENT_ZIP_FILE_TO_THE_BACKUP_FOLDER') . ' ' . $e->getMessage()
|
||||||
, 'Error'
|
, 'Error'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1259,7 +1256,7 @@ class Compiler extends Infusion
|
|||||||
);
|
);
|
||||||
} catch (\RuntimeException $e) {
|
} catch (\RuntimeException $e) {
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('We where was unable to transfer the (%s) module zip file to the backup folder:', $module->name) . ' ' . $e->getMessage()
|
Text::sprintf('COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_MODULE_ZIP_FILE_TO_THE_BACKUP_FOLDER', $module->name) . ' ' . $e->getMessage()
|
||||||
, 'Error'
|
, 'Error'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1367,7 +1364,7 @@ class Compiler extends Infusion
|
|||||||
);
|
);
|
||||||
} catch (\RuntimeException $e) {
|
} catch (\RuntimeException $e) {
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('We where was unable to transfer the (%s) plugin zip file to the backup folder:', $plugin->name) . ' ' . $e->getMessage()
|
Text::sprintf('COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_PLUGIN_ZIP_FILE_TO_THE_BACKUP_FOLDER', $plugin->name) . ' ' . $e->getMessage()
|
||||||
, 'Error'
|
, 'Error'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -1463,7 +1460,7 @@ class Compiler extends Infusion
|
|||||||
if (File::exists($file))
|
if (File::exists($file))
|
||||||
{
|
{
|
||||||
foreach (
|
foreach (
|
||||||
new SplFileObject($file) as $lineNumber => $lineContent
|
new \SplFileObject($file) as $lineNumber => $lineContent
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
// if not found we need to load line bites per line
|
// if not found we need to load line bites per line
|
||||||
@ -1561,7 +1558,7 @@ class Compiler extends Infusion
|
|||||||
// Load escaped code since the target endhash has changed
|
// Load escaped code since the target endhash has changed
|
||||||
$this->loadEscapedCode($file, $target, $lineBites);
|
$this->loadEscapedCode($file, $target, $lineBites);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Custom Code Warning</h3>'),
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREECUSTOM_CODE_WARNINGHTHREE'),
|
||||||
'Warning'
|
'Warning'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
@ -1580,7 +1577,7 @@ class Compiler extends Infusion
|
|||||||
// Load escaped code since the target hash has changed
|
// Load escaped code since the target hash has changed
|
||||||
$this->loadEscapedCode($file, $target, $lineBites);
|
$this->loadEscapedCode($file, $target, $lineBites);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Custom Code Warning</h3>'),
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREECUSTOM_CODE_WARNINGHTHREE'),
|
||||||
'Warning'
|
'Warning'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
@ -1598,7 +1595,7 @@ class Compiler extends Infusion
|
|||||||
{
|
{
|
||||||
// Give developer a notice that file is not found.
|
// Give developer a notice that file is not found.
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Custom Code Warning</h3>'),
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREECUSTOM_CODE_WARNINGHTHREE'),
|
||||||
'Warning'
|
'Warning'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
@ -1666,5 +1663,5 @@ class Compiler extends Infusion
|
|||||||
{
|
{
|
||||||
CFactory::_('Utilities.FileInjector')->add($file, $data, $position, $replace);
|
CFactory::_('Utilities.FileInjector')->add($file, $data, $position, $replace);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -2,30 +2,32 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 30th April, 2015
|
* @created 4th September, 2022
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// No direct access to this file
|
namespace VDM\Joomla\Componentbuilder\Compiler\Helper;
|
||||||
defined('_JEXEC') or die('Restricted access');
|
|
||||||
|
|
||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
use VDM\Joomla\Utilities\StringHelper;
|
// use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper; (for Joomla 4 and above)
|
||||||
use VDM\Joomla\Utilities\ArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Indent;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Helper\Structure;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Compiler class
|
* Fields class
|
||||||
|
*
|
||||||
* @deprecated 3.3
|
* @deprecated 3.3
|
||||||
*/
|
*/
|
||||||
class Fields extends Structure
|
class Fields extends Structure
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Metadate Switch
|
* Metadate Switch
|
||||||
*
|
*
|
||||||
@ -732,7 +734,7 @@ class Fields extends Structure
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -807,7 +809,7 @@ class Fields extends Structure
|
|||||||
'\n' => PHP_EOL
|
'\n' => PHP_EOL
|
||||||
);
|
);
|
||||||
// load the other PHP options
|
// load the other PHP options
|
||||||
foreach (ComponentbuilderHelper::$phpFieldArray as $x)
|
foreach (\ComponentbuilderHelper::$phpFieldArray as $x)
|
||||||
{
|
{
|
||||||
// reset the php bucket
|
// reset the php bucket
|
||||||
$phpBucket = '';
|
$phpBucket = '';
|
||||||
@ -1580,3 +1582,4 @@ class Fields extends Structure
|
|||||||
return CFactory::_('Utilities.Xml')->indent($string, $char, $depth, $skipfirst, $skiplast);
|
return CFactory::_('Utilities.Xml')->indent($string, $char, $depth, $skipfirst, $skiplast);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -2,20 +2,20 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 30th April, 2015
|
* @created 4th September, 2022
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// No direct access to this file
|
namespace VDM\Joomla\Componentbuilder\Compiler\Helper;
|
||||||
defined('_JEXEC') or die('Restricted access');
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
use Joomla\CMS\Component\ComponentHelper;
|
use Joomla\CMS\Component\ComponentHelper;
|
||||||
|
// use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper; (for Joomla 4 and above)
|
||||||
use VDM\Joomla\Utilities\StringHelper;
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
use VDM\Joomla\Utilities\JsonHelper;
|
use VDM\Joomla\Utilities\JsonHelper;
|
||||||
use VDM\Joomla\Utilities\ArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
@ -24,13 +24,14 @@ 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\Unique;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Unique;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get class as the main compilers class
|
* Get class as the main compilers class
|
||||||
|
*
|
||||||
* @deprecated 3.3
|
* @deprecated 3.3
|
||||||
*/
|
*/
|
||||||
class Get
|
class Get
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Joomla Version
|
* The Joomla Version
|
||||||
*
|
*
|
||||||
@ -1047,7 +1048,7 @@ class Get
|
|||||||
// set the global language @deprecated
|
// set the global language @deprecated
|
||||||
$this->langTag = CFactory::_('Config')->get('lang_tag', 'en-GB');
|
$this->langTag = CFactory::_('Config')->get('lang_tag', 'en-GB');
|
||||||
// also set the helper class langTag (for safeStrings)
|
// also set the helper class langTag (for safeStrings)
|
||||||
ComponentbuilderHelper::$langTag = CFactory::_('Config')->get('lang_tag', 'en-GB');
|
\ComponentbuilderHelper::$langTag = CFactory::_('Config')->get('lang_tag', 'en-GB');
|
||||||
// setup the main language array
|
// setup the main language array
|
||||||
$this->languages['components'][CFactory::_('Config')->get('lang_tag', 'en-GB')] = [];
|
$this->languages['components'][CFactory::_('Config')->get('lang_tag', 'en-GB')] = [];
|
||||||
// check if we have Tidy enabled @deprecated
|
// check if we have Tidy enabled @deprecated
|
||||||
@ -1061,7 +1062,7 @@ class Get
|
|||||||
$this->fieldBuilderType = 1;
|
$this->fieldBuilderType = 1;
|
||||||
// load the sugestion to use string manipulation
|
// load the sugestion to use string manipulation
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_('<hr /><h3>Field Notice</h3>'), 'Notice'
|
Text::_('COM_COMPONENTBUILDER_HR_HTHREEFIELD_NOTICEHTHREE'), 'Notice'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::_(
|
Text::_(
|
||||||
@ -1420,7 +1421,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -1509,7 +1510,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -1600,7 +1601,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -1655,7 +1656,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -1775,7 +1776,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -1909,7 +1910,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -1932,7 +1933,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -1970,7 +1971,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -1994,7 +1995,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2579,7 +2580,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2620,7 +2621,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2641,7 +2642,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2662,7 +2663,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2694,7 +2695,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2713,7 +2714,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2732,7 +2733,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2753,7 +2754,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2817,7 +2818,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2838,7 +2839,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2880,7 +2881,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2944,7 +2945,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -2986,7 +2987,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -3012,7 +3013,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -3038,7 +3039,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -3086,7 +3087,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -3142,7 +3143,7 @@ class Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -3152,5 +3153,5 @@ class Get
|
|||||||
|
|
||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -2,21 +2,21 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 30th April, 2015
|
* @created 4th September, 2022
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// No direct access to this file
|
namespace VDM\Joomla\Componentbuilder\Compiler\Helper;
|
||||||
defined('_JEXEC') or die('Restricted access');
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
use Joomla\CMS\Filesystem\File;
|
use Joomla\CMS\Filesystem\File;
|
||||||
use Joomla\CMS\Filesystem\Folder;
|
use Joomla\CMS\Filesystem\Folder;
|
||||||
use Joomla\Filter\OutputFilter;
|
use Joomla\Filter\OutputFilter;
|
||||||
|
// use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper; (for Joomla 4 and above)
|
||||||
use VDM\Joomla\Utilities\StringHelper;
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
use VDM\Joomla\Utilities\ArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
use VDM\Joomla\Utilities\ObjectHelper;
|
use VDM\Joomla\Utilities\ObjectHelper;
|
||||||
@ -27,14 +27,16 @@ 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\Line;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Minify;
|
use VDM\Joomla\Componentbuilder\Compiler\Utilities\Minify;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Helper\Interpretation;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Infusion class
|
* Infusion class
|
||||||
|
*
|
||||||
* @deprecated 3.3
|
* @deprecated 3.3
|
||||||
*/
|
*/
|
||||||
class Infusion extends Interpretation
|
class Infusion extends Interpretation
|
||||||
{
|
{
|
||||||
|
|
||||||
public $langFiles = [];
|
public $langFiles = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -107,7 +109,7 @@ class Infusion extends Interpretation
|
|||||||
// COMPANYNAME
|
// COMPANYNAME
|
||||||
$companyname = CFactory::_('Component')->get('companyname');
|
$companyname = CFactory::_('Component')->get('companyname');
|
||||||
CFactory::_('Compiler.Builder.Content.One')->set('COMPANYNAME', trim(
|
CFactory::_('Compiler.Builder.Content.One')->set('COMPANYNAME', trim(
|
||||||
(string) JFilterOutput::cleanText($companyname)
|
(string) \JFilterOutput::cleanText($companyname)
|
||||||
));
|
));
|
||||||
|
|
||||||
// POWER_LIBRARY_FOLDER
|
// POWER_LIBRARY_FOLDER
|
||||||
@ -1581,19 +1583,19 @@ class Infusion extends Interpretation
|
|||||||
// IMPORT_EXT_METHOD <<<DYNAMIC>>>
|
// IMPORT_EXT_METHOD <<<DYNAMIC>>>
|
||||||
CFactory::_('Compiler.Builder.Content.Multi')->set('import' . '|IMPORT_EXT_METHOD',
|
CFactory::_('Compiler.Builder.Content.Multi')->set('import' . '|IMPORT_EXT_METHOD',
|
||||||
PHP_EOL . PHP_EOL . CFactory::_('Placeholder')->update_(
|
PHP_EOL . PHP_EOL . CFactory::_('Placeholder')->update_(
|
||||||
ComponentbuilderHelper::getDynamicScripts('ext')
|
\ComponentbuilderHelper::getDynamicScripts('ext')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
// IMPORT_SETDATA_METHOD <<<DYNAMIC>>>
|
// IMPORT_SETDATA_METHOD <<<DYNAMIC>>>
|
||||||
CFactory::_('Compiler.Builder.Content.Multi')->set('import' . '|IMPORT_SETDATA_METHOD',
|
CFactory::_('Compiler.Builder.Content.Multi')->set('import' . '|IMPORT_SETDATA_METHOD',
|
||||||
PHP_EOL . PHP_EOL . CFactory::_('Placeholder')->update_(
|
PHP_EOL . PHP_EOL . CFactory::_('Placeholder')->update_(
|
||||||
ComponentbuilderHelper::getDynamicScripts('setdata')
|
\ComponentbuilderHelper::getDynamicScripts('setdata')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
// IMPORT_SAVE_METHOD <<<DYNAMIC>>>
|
// IMPORT_SAVE_METHOD <<<DYNAMIC>>>
|
||||||
CFactory::_('Compiler.Builder.Content.Multi')->set('import' . '|IMPORT_SAVE_METHOD',
|
CFactory::_('Compiler.Builder.Content.Multi')->set('import' . '|IMPORT_SAVE_METHOD',
|
||||||
PHP_EOL . PHP_EOL . CFactory::_('Placeholder')->update_(
|
PHP_EOL . PHP_EOL . CFactory::_('Placeholder')->update_(
|
||||||
ComponentbuilderHelper::getDynamicScripts('save')
|
\ComponentbuilderHelper::getDynamicScripts('save')
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
// IMPORT_CONTROLLER_HEADER <<<DYNAMIC>>> add the header details for the controller
|
// IMPORT_CONTROLLER_HEADER <<<DYNAMIC>>> add the header details for the controller
|
||||||
@ -2546,3 +2548,4 @@ class Infusion extends Interpretation
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -2,16 +2,15 @@
|
|||||||
/**
|
/**
|
||||||
* @package Joomla.Component.Builder
|
* @package Joomla.Component.Builder
|
||||||
*
|
*
|
||||||
* @created 30th April, 2015
|
* @created 4th September, 2022
|
||||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
* @gitea Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
||||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
||||||
* @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
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// No direct access to this file
|
namespace VDM\Joomla\Componentbuilder\Compiler\Helper;
|
||||||
defined('_JEXEC') or die('Restricted access');
|
|
||||||
|
|
||||||
use Joomla\CMS\Filesystem\File;
|
use Joomla\CMS\Filesystem\File;
|
||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
@ -19,14 +18,16 @@ use VDM\Joomla\Utilities\ArrayHelper;
|
|||||||
use VDM\Joomla\Utilities\GetHelper;
|
use VDM\Joomla\Utilities\GetHelper;
|
||||||
use VDM\Joomla\Utilities\FileHelper;
|
use VDM\Joomla\Utilities\FileHelper;
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
||||||
|
use VDM\Joomla\Componentbuilder\Compiler\Helper\Get;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Structure class
|
* Structure class
|
||||||
|
*
|
||||||
* @deprecated 3.3
|
* @deprecated 3.3
|
||||||
*/
|
*/
|
||||||
class Structure extends Get
|
class Structure extends Get
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The folder counter
|
* The folder counter
|
||||||
*
|
*
|
||||||
@ -475,7 +476,7 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -494,7 +495,7 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -513,7 +514,7 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -532,7 +533,7 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -551,7 +552,7 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -570,7 +571,7 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -600,7 +601,7 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -619,7 +620,7 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -638,7 +639,7 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -815,7 +816,7 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
// set notice that we could not get a valid string from the target
|
// set notice that we could not get a valid string from the target
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf('<hr /><h3>%s Warning</h3>', __CLASS__), 'Error'
|
Text::sprintf('COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE', __CLASS__), 'Error'
|
||||||
);
|
);
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
Text::sprintf(
|
Text::sprintf(
|
||||||
@ -896,5 +897,5 @@ class Structure extends Get
|
|||||||
{
|
{
|
||||||
return CFactory::_('Utilities.Folder')->remove($dir, $ignore);
|
return CFactory::_('Utilities.Folder')->remove($dir, $ignore);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
@ -417,7 +417,7 @@ final class Header implements HeaderInterface
|
|||||||
case 'form.custom.field':
|
case 'form.custom.field':
|
||||||
$headers[] = 'use Joomla\CMS\HTML\HTMLHelper as Html;';
|
$headers[] = 'use Joomla\CMS\HTML\HTMLHelper as Html;';
|
||||||
$headers[] = "jimport('joomla.form.helper');";
|
$headers[] = "jimport('joomla.form.helper');";
|
||||||
$headers[] = "JFormHelper::loadFieldClass('###JFORM_extends###');";
|
$headers[] = "\JFormHelper::loadFieldClass('###JFORM_extends###');";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
|
@ -1,38 +1,29 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 4th September, 2022
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.0
|
namespace VDM\Joomla\Componentbuilder\Extrusion\Helper;
|
||||||
@created 26th December, 2016
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage builder.php
|
|
||||||
@author Llewellyn van der Merwe <http://www.vdm.io>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
|
// use VDM\Component\Componentbuilder\Administrator\Helper\ComponentbuilderHelper; (for Joomla 4 and above)
|
||||||
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
||||||
use VDM\Joomla\Utilities\StringHelper;
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
use VDM\Joomla\Utilities\GetHelper;
|
use VDM\Joomla\Utilities\GetHelper;
|
||||||
|
use VDM\Joomla\Componentbuilder\Extrusion\Helper\Mapping;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Builder class
|
* Builder class
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
class Builder extends Mapping
|
class Builder extends Mapping
|
||||||
{
|
{
|
||||||
@ -42,19 +33,19 @@ class Builder extends Mapping
|
|||||||
public $user;
|
public $user;
|
||||||
public $today;
|
public $today;
|
||||||
public $db;
|
public $db;
|
||||||
public $views = array();
|
public array $views = [];
|
||||||
public $admin_fields = array();
|
public array $admin_fields = [];
|
||||||
protected $fields = array();
|
protected array $fields = [];
|
||||||
protected $title = array();
|
protected array $title = [];
|
||||||
protected $description = array();
|
protected array $description = [];
|
||||||
protected $alias = array();
|
protected array $alias = [];
|
||||||
protected $list = array();
|
protected array $list = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Field that should not be used in name, alias, disc, and list view
|
* Field that should not be used in name, alias, disc, and list view
|
||||||
* (TODO) We may need to set this dynamicly
|
* (TODO) We may need to set this dynamicly
|
||||||
*/
|
*/
|
||||||
protected $avoidList = array('not_required');
|
protected array $avoidList = ['not_required'];
|
||||||
|
|
||||||
/***
|
/***
|
||||||
* Constructor
|
* Constructor
|
||||||
@ -106,7 +97,7 @@ class Builder extends Mapping
|
|||||||
protected function setView(&$name)
|
protected function setView(&$name)
|
||||||
{
|
{
|
||||||
// set the view object
|
// set the view object
|
||||||
$object = new stdClass();
|
$object = new \stdClass();
|
||||||
$object->system_name = StringHelper::check($name, 'W') . ' (dynamic build)';
|
$object->system_name = StringHelper::check($name, 'W') . ' (dynamic build)';
|
||||||
$object->name_single = $name;
|
$object->name_single = $name;
|
||||||
$object->name_list = $name. 's';
|
$object->name_list = $name. 's';
|
||||||
@ -126,7 +117,7 @@ class Builder extends Mapping
|
|||||||
{
|
{
|
||||||
// make sure the access of asset is set
|
// make sure the access of asset is set
|
||||||
$id = $this->db->insertid();
|
$id = $this->db->insertid();
|
||||||
ComponentbuilderHelper::setAsset($id, 'admin_view');
|
\ComponentbuilderHelper::setAsset($id, 'admin_view');
|
||||||
// load the views
|
// load the views
|
||||||
$this->views[] = $id;
|
$this->views[] = $id;
|
||||||
// load the admin view fields
|
// load the admin view fields
|
||||||
@ -179,7 +170,7 @@ class Builder extends Mapping
|
|||||||
}
|
}
|
||||||
|
|
||||||
// set the field object
|
// set the field object
|
||||||
$object = new stdClass();
|
$object = new \stdClass();
|
||||||
$object->admin_view = $view_id;
|
$object->admin_view = $view_id;
|
||||||
$object->addfields = json_encode($addField, JSON_FORCE_OBJECT);
|
$object->addfields = json_encode($addField, JSON_FORCE_OBJECT);
|
||||||
$object->created = $this->today;
|
$object->created = $this->today;
|
||||||
@ -199,7 +190,7 @@ class Builder extends Mapping
|
|||||||
if ($fieldType = CFactory::_('Field.Type.Name')->get($field['fieldType']))
|
if ($fieldType = CFactory::_('Field.Type.Name')->get($field['fieldType']))
|
||||||
{
|
{
|
||||||
// set the field object
|
// set the field object
|
||||||
$object = new stdClass();
|
$object = new \stdClass();
|
||||||
$object->name = $field['label'] . ' (dynamic build)';
|
$object->name = $field['label'] . ' (dynamic build)';
|
||||||
$object->fieldtype = $fieldType;
|
$object->fieldtype = $fieldType;
|
||||||
$object->datatype = $field['dataType'];
|
$object->datatype = $field['dataType'];
|
||||||
@ -219,18 +210,18 @@ class Builder extends Mapping
|
|||||||
{
|
{
|
||||||
// make sure the access of asset is set
|
// make sure the access of asset is set
|
||||||
$id = $this->db->insertid();
|
$id = $this->db->insertid();
|
||||||
ComponentbuilderHelper::setAsset($id, 'field');
|
\ComponentbuilderHelper::setAsset($id, 'field');
|
||||||
// check if any field for this field was already set, if not set array
|
// check if any field for this field was already set, if not set array
|
||||||
if (!isset($this->fields[$view]))
|
if (!isset($this->fields[$view]))
|
||||||
{
|
{
|
||||||
$this->fields[$view] = array();
|
$this->fields[$view] = [];
|
||||||
}
|
}
|
||||||
// load the field
|
// load the field
|
||||||
$this->fields[$view][] = $id;
|
$this->fields[$view][] = $id;
|
||||||
|
|
||||||
if (!isset($this->list[$view]))
|
if (!isset($this->list[$view]))
|
||||||
{
|
{
|
||||||
$this->list[$view] = array();
|
$this->list[$view] = [];
|
||||||
}
|
}
|
||||||
// insure that some fields are avoided
|
// insure that some fields are avoided
|
||||||
if (!in_array($field['name'], $this->avoidList))
|
if (!in_array($field['name'], $this->avoidList))
|
||||||
@ -278,7 +269,7 @@ class Builder extends Mapping
|
|||||||
protected function setFieldXML(&$field, $fieldId)
|
protected function setFieldXML(&$field, $fieldId)
|
||||||
{
|
{
|
||||||
// load the field settings
|
// load the field settings
|
||||||
$settings = array();
|
$settings = [];
|
||||||
$settings['name'] = $field['name'];
|
$settings['name'] = $field['name'];
|
||||||
$settings['description'] = 'The '.strtolower($field['label']) . ' is set here.';
|
$settings['description'] = 'The '.strtolower($field['label']) . ' is set here.';
|
||||||
$settings['message'] = "Error! Please add some ".strtolower($field['label'])." here.";
|
$settings['message'] = "Error! Please add some ".strtolower($field['label'])." here.";
|
||||||
@ -286,10 +277,11 @@ class Builder extends Mapping
|
|||||||
$settings['default'] = ($field['default'] == 'Other') ? $field['defaultOther'] : $field['default'];
|
$settings['default'] = ($field['default'] == 'Other') ? $field['defaultOther'] : $field['default'];
|
||||||
$settings['hint'] = $field['label'] .' Here!';
|
$settings['hint'] = $field['label'] .' Here!';
|
||||||
// okay set the xml field values
|
// okay set the xml field values
|
||||||
if ($fieldOptions = ComponentbuilderHelper::getFieldTypeProperties($fieldId, 'id', $settings))
|
if ($fieldOptions = \ComponentbuilderHelper::getFieldTypeProperties($fieldId, 'id', $settings))
|
||||||
{
|
{
|
||||||
return json_encode($fieldOptions['values']);
|
return json_encode($fieldOptions['values']);
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,36 +1,27 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 4th September, 2022
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.0
|
namespace VDM\Joomla\Componentbuilder\Extrusion\Helper;
|
||||||
@created 26th December, 2016
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage extrusion.php
|
|
||||||
@author Llewellyn van der Merwe <http://www.vdm.io>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
use Joomla\CMS\Language\Text;
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
|
||||||
|
|
||||||
use VDM\Joomla\Utilities\GetHelper;
|
|
||||||
use VDM\Joomla\Utilities\ArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
|
use VDM\Joomla\Utilities\GetHelper;
|
||||||
|
use VDM\Joomla\Componentbuilder\Extrusion\Helper\Builder;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Extrusion class
|
* Extrusion class
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
class Extrusion extends Builder
|
class Extrusion extends Builder
|
||||||
{
|
{
|
||||||
@ -46,7 +37,7 @@ class Extrusion extends Builder
|
|||||||
if ($this->setAdminViews($data['id']))
|
if ($this->setAdminViews($data['id']))
|
||||||
{
|
{
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
JText::_('All the fields and views from your sql dump has been created and linked to this component.'),
|
Text::_('COM_COMPONENTBUILDER_ALL_THE_FIELDS_AND_VIEWS_FROM_YOUR_SQL_DUMP_HAS_BEEN_CREATED_AND_LINKED_TO_THIS_COMPONENT'),
|
||||||
'Success'
|
'Success'
|
||||||
);
|
);
|
||||||
return true;
|
return true;
|
||||||
@ -90,7 +81,7 @@ class Extrusion extends Builder
|
|||||||
if (isset($this->addadmin_views) && ArrayHelper::check($this->addadmin_views))
|
if (isset($this->addadmin_views) && ArrayHelper::check($this->addadmin_views))
|
||||||
{
|
{
|
||||||
// set the field object
|
// set the field object
|
||||||
$object = new stdClass();
|
$object = new \stdClass();
|
||||||
$object->joomla_component = $component_id;
|
$object->joomla_component = $component_id;
|
||||||
$object->addadmin_views = json_encode($this->addadmin_views, JSON_FORCE_OBJECT);
|
$object->addadmin_views = json_encode($this->addadmin_views, JSON_FORCE_OBJECT);
|
||||||
$object->created = $this->today;
|
$object->created = $this->today;
|
||||||
@ -109,3 +100,4 @@ class Extrusion extends Builder
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -1,39 +1,30 @@
|
|||||||
<?php
|
<?php
|
||||||
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
/**
|
||||||
__ __ _ _____ _ _ __ __ _ _ _
|
* @package Joomla.Component.Builder
|
||||||
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
*
|
||||||
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
* @created 4th September, 2022
|
||||||
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||||
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
* @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
|
||||||
|_|
|
*/
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.0
|
namespace VDM\Joomla\Componentbuilder\Extrusion\Helper;
|
||||||
@created 26th December, 2016
|
|
||||||
@package Component Builder
|
|
||||||
@subpackage mapping.php
|
|
||||||
@author Llewellyn van der Merwe <http://www.vdm.io>
|
|
||||||
@my wife Roline van der Merwe <http://www.vdm.io/>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
|
|
||||||
Builds Complex Joomla Components
|
|
||||||
|
|
||||||
/-----------------------------------------------------------------------------------------------------------------------------*/
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
defined('_JEXEC') or die('Restricted access');
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
use Joomla\CMS\Factory;
|
||||||
|
use Joomla\CMS\Language\Text;
|
||||||
|
// use Joomla\Database\DatabaseDriver; (for Joomla 4 and above)
|
||||||
use VDM\Joomla\Utilities\StringHelper;
|
use VDM\Joomla\Utilities\StringHelper;
|
||||||
use VDM\Joomla\Utilities\JsonHelper;
|
use VDM\Joomla\Utilities\JsonHelper;
|
||||||
use VDM\Joomla\Utilities\GetHelper;
|
use VDM\Joomla\Utilities\GetHelper;
|
||||||
use VDM\Joomla\Utilities\ArrayHelper;
|
use VDM\Joomla\Utilities\ArrayHelper;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Mapping class
|
* Mapping class
|
||||||
|
*
|
||||||
|
* @since 3.2.0
|
||||||
*/
|
*/
|
||||||
class Mapping
|
class Mapping
|
||||||
{
|
{
|
||||||
@ -43,10 +34,10 @@ class Mapping
|
|||||||
protected $buildcompsql;
|
protected $buildcompsql;
|
||||||
public $id;
|
public $id;
|
||||||
public $name_code;
|
public $name_code;
|
||||||
public $addadmin_views;
|
public array $addadmin_views;
|
||||||
public $addSql = array();
|
public array $addSql = [];
|
||||||
public $source = array();
|
public array $source = [];
|
||||||
public $sql = array();
|
public array $sql = [];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The map of the needed fields and views
|
* The map of the needed fields and views
|
||||||
@ -61,44 +52,52 @@ class Mapping
|
|||||||
/**
|
/**
|
||||||
* The needed set of keys needed to set
|
* The needed set of keys needed to set
|
||||||
*/
|
*/
|
||||||
protected $setting = array('id' => 'default', 'buildcompsql' => 'base64', 'name_code' => 'safeString');
|
protected array $setting = ['id' => 'default', 'buildcompsql' => 'base64', 'name_code' => 'safeString'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The needed set of keys needed to set
|
* The needed set of keys needed to set
|
||||||
*/
|
*/
|
||||||
protected $notRequiered = array('id', 'asset_id', 'published',
|
protected array $notRequiered = [
|
||||||
|
'id', 'asset_id', 'published',
|
||||||
'created_by', 'modified_by', 'created', 'modified', 'checked_out','checked_out_time',
|
'created_by', 'modified_by', 'created', 'modified', 'checked_out','checked_out_time',
|
||||||
'version', 'hits', 'access', 'ordering',
|
'version', 'hits', 'access', 'ordering',
|
||||||
'metakey', 'metadesc', 'metadata', 'params');
|
'metakey', 'metadesc', 'metadata', 'params'
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The datatypes and it linked field types (basic)
|
* The datatypes and it linked field types (basic)
|
||||||
* (TODO) We may need to set this dynamicly
|
* (TODO) We may need to set this dynamicly
|
||||||
*/
|
*/
|
||||||
protected $dataTypes = array( 'VARCHAR' => 'Text', 'CHAR' => 'Text',
|
protected array $dataTypes = [
|
||||||
|
'VARCHAR' => 'Text', 'CHAR' => 'Text',
|
||||||
'MEDIUMTEXT' => 'Textarea', 'LONGTEXT' => 'Textarea',
|
'MEDIUMTEXT' => 'Textarea', 'LONGTEXT' => 'Textarea',
|
||||||
'TEXT' => 'Textarea', 'DATETIME' => 'Calendar',
|
'TEXT' => 'Textarea', 'DATETIME' => 'Calendar',
|
||||||
'DATE' => 'Text', 'TIME' => 'Text', 'TINYINT' => 'Text',
|
'DATE' => 'Text', 'TIME' => 'Text', 'TINYINT' => 'Text',
|
||||||
'BIGINT' => 'Text', 'INT' => 'Text', 'FLOAT' => 'Text',
|
'BIGINT' => 'Text', 'INT' => 'Text', 'FLOAT' => 'Text',
|
||||||
'DECIMAL' => 'Text', 'DOUBLE' => 'Text');
|
'DECIMAL' => 'Text', 'DOUBLE' => 'Text'
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The datasize identifiers
|
* The datasize identifiers
|
||||||
*/
|
*/
|
||||||
protected $dataSize = array(
|
protected array $dataSize = [
|
||||||
'CHAR', 'VARCHAR', 'INT', 'TINYINT',
|
'CHAR', 'VARCHAR', 'INT', 'TINYINT',
|
||||||
'BIGINT', 'FLOAT', 'DECIMAL', 'DOUBLE');
|
'BIGINT', 'FLOAT', 'DECIMAL', 'DOUBLE'
|
||||||
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The default identifiers
|
* The default identifiers
|
||||||
*/
|
*/
|
||||||
protected $defaults = array(0, 1, "CURRENT_TIMESTAMP", "DATETIME"); // Other
|
protected $defaults = [
|
||||||
|
0, 1, "CURRENT_TIMESTAMP", "DATETIME"
|
||||||
|
]; // Other
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The sizes identifiers
|
* The sizes identifiers
|
||||||
*/
|
*/
|
||||||
protected $sizes = array("1", "7", "10", "11", "50", "64", "100", "255", "1024", "2048"); // Other
|
protected $sizes = [
|
||||||
|
"1", "7", "10", "11", "50", "64", "100", "255", "1024", "2048"
|
||||||
|
]; // Other
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
@ -107,6 +106,7 @@ class Mapping
|
|||||||
{
|
{
|
||||||
// set the app to insure messages can be set
|
// set the app to insure messages can be set
|
||||||
$this->app = Factory::getApplication();
|
$this->app = Factory::getApplication();
|
||||||
|
|
||||||
// check that we have data
|
// check that we have data
|
||||||
if (ArrayHelper::check($data))
|
if (ArrayHelper::check($data))
|
||||||
{
|
{
|
||||||
@ -151,7 +151,7 @@ class Mapping
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
JText::_('No "CREATE TABLE.." were found, please check your sql.'),
|
Text::_('COM_COMPONENTBUILDER_NO_CREATE_TABLE_WERE_FOUND_PLEASE_CHECK_YOUR_SQL'),
|
||||||
'Error'
|
'Error'
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
@ -159,13 +159,13 @@ class Mapping
|
|||||||
return false; // not set so just return without any error
|
return false; // not set so just return without any error
|
||||||
}
|
}
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
JText::_('Please try again, this error usualy happens if it is a new component, beacues we need a component ID to do this build with your sql dump.'),
|
Text::_('COM_COMPONENTBUILDER_PLEASE_TRY_AGAIN_THIS_ERROR_USUALY_HAPPENS_IF_IT_IS_A_NEW_COMPONENT_BEACUES_WE_NEED_A_COMPONENT_ID_TO_DO_THIS_BUILD_WITH_YOUR_SQL_DUMP'),
|
||||||
'Error'
|
'Error'
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
$this->app->enqueueMessage(
|
$this->app->enqueueMessage(
|
||||||
JText::_('Could not find the data needed to continue.'),
|
Text::_('COM_COMPONENTBUILDER_COULD_NOT_FIND_THE_DATA_NEEDED_TO_CONTINUE'),
|
||||||
'Error'
|
'Error'
|
||||||
);
|
);
|
||||||
return false;
|
return false;
|
||||||
@ -178,7 +178,7 @@ class Mapping
|
|||||||
protected function setMap()
|
protected function setMap()
|
||||||
{
|
{
|
||||||
// start parsing the sql dump data
|
// start parsing the sql dump data
|
||||||
$queries = JDatabaseDriver::splitSql($this->buildcompsql);
|
$queries = \JDatabaseDriver::splitSql($this->buildcompsql);
|
||||||
if (ArrayHelper::check($queries))
|
if (ArrayHelper::check($queries))
|
||||||
{
|
{
|
||||||
foreach ($queries as $query)
|
foreach ($queries as $query)
|
||||||
@ -238,7 +238,7 @@ class Mapping
|
|||||||
$tableName = GetHelper::between($query, "'#__", "'");
|
$tableName = GetHelper::between($query, "'#__", "'");
|
||||||
}
|
}
|
||||||
// if it still was not found
|
// if it still was not found
|
||||||
if (!isset($tableName) || !ComponentbuilderHelper::checkString($tableName))
|
if (!isset($tableName) || !StringHelper::check($tableName))
|
||||||
{
|
{
|
||||||
// skip this query
|
// skip this query
|
||||||
return false;
|
return false;
|
||||||
@ -249,7 +249,7 @@ class Mapping
|
|||||||
$tableName = trim(str_replace($this->name_code, '', $tableName), '_');
|
$tableName = trim(str_replace($this->name_code, '', $tableName), '_');
|
||||||
}
|
}
|
||||||
// if found
|
// if found
|
||||||
if (ComponentbuilderHelper::checkString($tableName))
|
if (StringHelper::check($tableName))
|
||||||
{
|
{
|
||||||
return $tableName;
|
return $tableName;
|
||||||
}
|
}
|
||||||
@ -281,11 +281,11 @@ class Mapping
|
|||||||
$name = GetHelper::between($row, "'", "'");
|
$name = GetHelper::between($row, "'", "'");
|
||||||
}
|
}
|
||||||
// check if the name was found
|
// check if the name was found
|
||||||
if (ComponentbuilderHelper::checkString($name))
|
if (StringHelper::check($name))
|
||||||
{
|
{
|
||||||
// insure we have the name in lower case from here on
|
// insure we have the name in lower case from here on
|
||||||
$name = strtolower($name);
|
$name = strtolower($name);
|
||||||
// only continue if field is requered
|
// only continue if field is required
|
||||||
if (in_array($name, $this->notRequiered))
|
if (in_array($name, $this->notRequiered))
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
@ -301,7 +301,7 @@ class Mapping
|
|||||||
$field['sizeOther'] = '';
|
$field['sizeOther'] = '';
|
||||||
if (!in_array($field['size'], $this->sizes))
|
if (!in_array($field['size'], $this->sizes))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkString($field['size']))
|
if (StringHelper::check($field['size']))
|
||||||
{
|
{
|
||||||
$field['sizeOther'] = $field['size'];
|
$field['sizeOther'] = $field['size'];
|
||||||
$field['size'] = 'Other';
|
$field['size'] = 'Other';
|
||||||
@ -311,7 +311,7 @@ class Mapping
|
|||||||
$field['defaultOther'] = '';
|
$field['defaultOther'] = '';
|
||||||
if (!in_array($field['default'], $this->defaults))
|
if (!in_array($field['default'], $this->defaults))
|
||||||
{
|
{
|
||||||
if (ComponentbuilderHelper::checkString($field['default']))
|
if (StringHelper::check($field['default']))
|
||||||
{
|
{
|
||||||
$field['defaultOther'] = $field['default'];
|
$field['defaultOther'] = $field['default'];
|
||||||
$field['default'] = 'Other';
|
$field['default'] = 'Other';
|
||||||
@ -419,3 +419,4 @@ class Mapping
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
17
script.php
17
script.php
@ -4478,7 +4478,7 @@ class Com_ComponentbuilderInstallerScript
|
|||||||
$revert_rule = "ALTER TABLE `#__assets` CHANGE `rules` `rules` varchar(5120) NOT NULL COMMENT 'JSON encoded access control.';";
|
$revert_rule = "ALTER TABLE `#__assets` CHANGE `rules` `rules` varchar(5120) NOT NULL COMMENT 'JSON encoded access control.';";
|
||||||
$db->setQuery($revert_rule);
|
$db->setQuery($revert_rule);
|
||||||
$db->execute();
|
$db->execute();
|
||||||
$app->enqueueMessage(Text::_('Reverted the <b>#__assets</b> table rules column back to its default size of varchar(5120)'));
|
$app->enqueueMessage(Text::_('COM_COMPONENTBUILDER_REVERTED_THE_B_ASSETSB_TABLE_RULES_COLUMN_BACK_TO_ITS_DEFAULT_SIZE_OF_VARCHARFIVE_THOUSAND_ONE_HUNDRED_AND_TWENTY'));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -6215,10 +6215,15 @@ class Com_ComponentbuilderInstallerScript
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// path to the new compiler
|
// all things to clear out
|
||||||
$jcb_powers = JPATH_LIBRARIES . '/jcb_powers/VDM.Joomla/src/Componentbuilder';
|
$jcb_cleaner = [];
|
||||||
// we always remove all the old files to avoid mismatching
|
$jcb_cleaner[] = JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/compiler';
|
||||||
ComponentbuilderHelper::removeFolder($jcb_powers);
|
$jcb_cleaner[] = JPATH_ADMINISTRATOR . '/components/com_componentbuilder/helpers/extrusion';
|
||||||
|
$jcb_cleaner[] = JPATH_LIBRARIES . '/jcb_powers/VDM.Joomla/src/Componentbuilder';
|
||||||
|
foreach ($jcb_cleaner as $cleaner)
|
||||||
|
{
|
||||||
|
ComponentbuilderHelper::removeFolder($cleaner);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// do any install needed
|
// do any install needed
|
||||||
if ($type === 'install')
|
if ($type === 'install')
|
||||||
@ -9613,7 +9618,7 @@ class Com_ComponentbuilderInstallerScript
|
|||||||
echo '<div style="background-color: #fff;" class="alert alert-info"><a target="_blank" href="https://dev.vdm.io" title="Component Builder">
|
echo '<div style="background-color: #fff;" class="alert alert-info"><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.2.0-beta2 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
<h3>Upgrade to Version 3.2.0-beta3 Was Successful! Let us know if anything is not working as expected.</h3></div>';
|
||||||
|
|
||||||
// Set db if not set already.
|
// Set db if not set already.
|
||||||
if (!isset($db))
|
if (!isset($db))
|
||||||
|
@ -78,7 +78,7 @@ Html::_('script', 'components/com_componentbuilder/assets/js/site.js', ['version
|
|||||||
|
|
||||||
// Require helper files
|
// Require helper files
|
||||||
JLoader::register('ComponentbuilderHelper', __DIR__ . '/helpers/componentbuilder.php');
|
JLoader::register('ComponentbuilderHelper', __DIR__ . '/helpers/componentbuilder.php');
|
||||||
JLoader::register('ComponentbuilderEmail', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/componentbuilderemail.php');
|
\JLoader::register('ComponentbuilderEmail', JPATH_COMPONENT_ADMINISTRATOR . '/helpers/componentbuilderemail.php');
|
||||||
JLoader::register('ComponentbuilderHelperRoute', __DIR__ . '/helpers/route.php');
|
JLoader::register('ComponentbuilderHelperRoute', __DIR__ . '/helpers/route.php');
|
||||||
|
|
||||||
//Trigger the Global Site Event
|
//Trigger the Global Site Event
|
||||||
|
@ -1120,15 +1120,6 @@ abstract class ComponentbuilderHelper
|
|||||||
jimport('joomla.application');
|
jimport('joomla.application');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* The dynamic builder of views, tables and fields
|
|
||||||
**/
|
|
||||||
public static function dynamicBuilder(&$data, $type)
|
|
||||||
{
|
|
||||||
self::autoLoader('extrusion');
|
|
||||||
$extruder = new Extrusion($data);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Convert repeatable field to subform
|
* Convert repeatable field to subform
|
||||||
*
|
*
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
COM_COMPONENTBUILDER="Component Builder"
|
COM_COMPONENTBUILDER="Component Builder"
|
||||||
COM_COMPONENTBUILDER_ACCESS_DENIED="Access denied!"
|
COM_COMPONENTBUILDER_ACCESS_DENIED="Access denied!"
|
||||||
|
COM_COMPONENTBUILDER_ALL_THE_FIELDS_AND_VIEWS_FROM_YOUR_SQL_DUMP_HAS_BEEN_CREATED_AND_LINKED_TO_THIS_COMPONENT="All the fields and views from your sql dump has been created and linked to this component."
|
||||||
COM_COMPONENTBUILDER_ALL_UNSAVED_WORK_ON_THIS_PAGE_WILL_BE_LOST_ARE_YOU_SURE_YOU_WANT_TO_CONTINUE="All unsaved work on this page will be lost, are you sure you want to continue?"
|
COM_COMPONENTBUILDER_ALL_UNSAVED_WORK_ON_THIS_PAGE_WILL_BE_LOST_ARE_YOU_SURE_YOU_WANT_TO_CONTINUE="All unsaved work on this page will be lost, are you sure you want to continue?"
|
||||||
COM_COMPONENTBUILDER_API="Api"
|
COM_COMPONENTBUILDER_API="Api"
|
||||||
COM_COMPONENTBUILDER_API_DESC="Sync Portal API"
|
COM_COMPONENTBUILDER_API_DESC="Sync Portal API"
|
||||||
@ -10,12 +11,14 @@ COM_COMPONENTBUILDER_BE_CAUTIOUS_DO_NOT_CONTINUE_UNLESS_YOU_TRUST_THE_ORIGIN_OF_
|
|||||||
COM_COMPONENTBUILDER_BGET_THE_KEY_FROMB_A_SSA="<b>Get the key from</b> <a %s>%s</a>"
|
COM_COMPONENTBUILDER_BGET_THE_KEY_FROMB_A_SSA="<b>Get the key from</b> <a %s>%s</a>"
|
||||||
COM_COMPONENTBUILDER_BGET_THE_KEY_FROM_SB_FOR_A_SSA="<b>Get the key from %s</b> for <a %s>%s</a>"
|
COM_COMPONENTBUILDER_BGET_THE_KEY_FROM_SB_FOR_A_SSA="<b>Get the key from %s</b> for <a %s>%s</a>"
|
||||||
COM_COMPONENTBUILDER_CHECK_YOUR_OWNER_DETAILS_IT_HAS_NOT_BEEN_SET_OPEN_THE_JCB_GLOBAL_OPTIONS_GO_TO_THE_COMPANY_TAB_AND_ADD_THE_CORRECT_COMPANY_DETAILS_THERE="Check your owner details, it has not been set. Open the JCB Global Options, go to the Company tab and add the correct company details there."
|
COM_COMPONENTBUILDER_CHECK_YOUR_OWNER_DETAILS_IT_HAS_NOT_BEEN_SET_OPEN_THE_JCB_GLOBAL_OPTIONS_GO_TO_THE_COMPANY_TAB_AND_ADD_THE_CORRECT_COMPANY_DETAILS_THERE="Check your owner details, it has not been set. Open the JCB Global Options, go to the Company tab and add the correct company details there."
|
||||||
|
COM_COMPONENTBUILDER_CODESTRINGS="code/strings"
|
||||||
COM_COMPONENTBUILDER_COMPANY_S="Company: %s"
|
COM_COMPONENTBUILDER_COMPANY_S="Company: %s"
|
||||||
COM_COMPONENTBUILDER_COMPONENT="Component"
|
COM_COMPONENTBUILDER_COMPONENT="Component"
|
||||||
COM_COMPONENTBUILDER_COMPONENT_DID_NOT_COMPILE="Component did not compile!"
|
COM_COMPONENTBUILDER_COMPONENT_DID_NOT_COMPILE="Component did not compile!"
|
||||||
COM_COMPONENTBUILDER_COMPONENT_IS_NOT_PUBLISHED_OR_IS_CHECKED_OUT="Component is not published, or is checked out!"
|
COM_COMPONENTBUILDER_COMPONENT_IS_NOT_PUBLISHED_OR_IS_CHECKED_OUT="Component is not published, or is checked out!"
|
||||||
COM_COMPONENTBUILDER_COMPONENT_WAS_NOT_FOUND="Component was not found!"
|
COM_COMPONENTBUILDER_COMPONENT_WAS_NOT_FOUND="Component was not found!"
|
||||||
COM_COMPONENTBUILDER_COPYRIGHT_S="Copyright: %s"
|
COM_COMPONENTBUILDER_COPYRIGHT_S="Copyright: %s"
|
||||||
|
COM_COMPONENTBUILDER_COULD_NOT_FIND_THE_DATA_NEEDED_TO_CONTINUE="Could not find the data needed to continue."
|
||||||
COM_COMPONENTBUILDER_CREATE_NEW_S="Create New %s"
|
COM_COMPONENTBUILDER_CREATE_NEW_S="Create New %s"
|
||||||
COM_COMPONENTBUILDER_DESCRIPTION="Description"
|
COM_COMPONENTBUILDER_DESCRIPTION="Description"
|
||||||
COM_COMPONENTBUILDER_DTCOMPANYDTDDSDD="<dt>Company</dt><dd>%s</dd>"
|
COM_COMPONENTBUILDER_DTCOMPANYDTDDSDD="<dt>Company</dt><dd>%s</dd>"
|
||||||
@ -44,7 +47,11 @@ COM_COMPONENTBUILDER_FREEOPEN="Free/Open"
|
|||||||
COM_COMPONENTBUILDER_GREAT_THIS_PLACEHOLDER_WILL_WORK="Great, this placeholder will work!"
|
COM_COMPONENTBUILDER_GREAT_THIS_PLACEHOLDER_WILL_WORK="Great, this placeholder will work!"
|
||||||
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_HTHREEASSETS_TABLE_NOTICEHTHREE="<hr /><h3>Assets Table Notice</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEASSETS_TABLE_WARNINGHTHREE="<hr /><h3>Assets Table Warning</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREECONDITIONAL_SCRIPT_WARNINGHTHREE="<hr /><h3>Conditional Script Warning</h3>"
|
||||||
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_HTHREECUSTOM_CODE_WARNINGHTHREE="<hr /><h3>Custom Code 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_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_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>"
|
||||||
@ -52,9 +59,15 @@ COM_COMPONENTBUILDER_HR_HTHREEEXTERNAL_CODE_ERRORHTHREE="<hr /><h3>External Code
|
|||||||
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_HTHREEFIELD_WARNINGHTHREE="<hr /><h3>Field Warning</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREEFILE_PATH_ERRORHTHREE="<hr /><h3>File Path Error</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_HR_HTHREEFOLDER_PATH_ERRORHTHREE="<hr /><h3>Folder Path Error</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREELANGUAGE_NOTICEHTHREE="<hr /><h3>Language Notice</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREELANGUAGE_WARNINGHTHREE="<hr /><h3>Language Warning</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEMULTI_FILTER_ERRORHTHREE="<hr /><h3>Multi Filter Error</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREES_WARNINGHTHREE="<hr /><h3>%s Warning</h3>"
|
||||||
COM_COMPONENTBUILDER_HR_HTHREETIDY_ERRORHTHREE="<hr /><h3>Tidy Error</h3>"
|
COM_COMPONENTBUILDER_HR_HTHREETIDY_ERRORHTHREE="<hr /><h3>Tidy Error</h3>"
|
||||||
|
COM_COMPONENTBUILDER_HR_HTHREEWHMCS_ERRORHTHREE="<hr /><h3>WHMCS 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>"
|
||||||
@ -78,6 +91,7 @@ COM_COMPONENTBUILDER_NONE="None"
|
|||||||
COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!"
|
COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!"
|
||||||
COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!"
|
COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!"
|
||||||
COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE="No component details found, so it is not safe to continue!"
|
COM_COMPONENTBUILDER_NO_COMPONENT_DETAILS_FOUND_SO_IT_IS_NOT_SAFE_TO_CONTINUE="No component details found, so it is not safe to continue!"
|
||||||
|
COM_COMPONENTBUILDER_NO_CREATE_TABLE_WERE_FOUND_PLEASE_CHECK_YOUR_SQL="No "CREATE TABLE.." were found, please check your sql."
|
||||||
COM_COMPONENTBUILDER_NO_KEYS_WERE_FOUND_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_SETTINGS_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_EXPORT_KEY="No keys were found. 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_NO_KEYS_WERE_FOUND_TO_ADD_AN_EXPORT_KEY_SIMPLY_OPEN_THE_COMPONENT_GO_TO_THE_TAB_CALLED_SETTINGS_BOTTOM_RIGHT_THERE_IS_A_FIELD_CALLED_EXPORT_KEY="No keys were found. 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_NO_VALID_MODE_HAS_BEEN_SPECIFIED="No valid mode has been specified!"
|
COM_COMPONENTBUILDER_NO_VALID_MODE_HAS_BEEN_SPECIFIED="No valid mode has been specified!"
|
||||||
COM_COMPONENTBUILDER_OWNER_DETAILS_WAS_SET="Owner details was set"
|
COM_COMPONENTBUILDER_OWNER_DETAILS_WAS_SET="Owner details was set"
|
||||||
@ -87,11 +101,13 @@ COM_COMPONENTBUILDER_PACKAGE_OWNER_DETAILS_NOT_FOUND="Package owner details not
|
|||||||
COM_COMPONENTBUILDER_PACKAGE_OWNER_NOT_SET="Package Owner Not Set"
|
COM_COMPONENTBUILDER_PACKAGE_OWNER_NOT_SET="Package Owner Not Set"
|
||||||
COM_COMPONENTBUILDER_PAIDLOCKED="Paid/Locked"
|
COM_COMPONENTBUILDER_PAIDLOCKED="Paid/Locked"
|
||||||
COM_COMPONENTBUILDER_PFILE_AT_BSSB_GAVE_THE_FOLLOWING_ERRORBR_SP="<p>File at <b>%s/%s</b> gave the following error!<br />%s</p>"
|
COM_COMPONENTBUILDER_PFILE_AT_BSSB_GAVE_THE_FOLLOWING_ERRORBR_SP="<p>File at <b>%s/%s</b> gave the following error!<br />%s</p>"
|
||||||
|
COM_COMPONENTBUILDER_PLEASE_TRY_AGAIN_THIS_ERROR_USUALY_HAPPENS_IF_IT_IS_A_NEW_COMPONENT_BEACUES_WE_NEED_A_COMPONENT_ID_TO_DO_THIS_BUILD_WITH_YOUR_SQL_DUMP="Please try again, this error usualy happens if it is a new component, beacues we need a component ID to do this build with your sql dump."
|
||||||
COM_COMPONENTBUILDER_PLUGIN="Plugin"
|
COM_COMPONENTBUILDER_PLUGIN="Plugin"
|
||||||
COM_COMPONENTBUILDER_PPOWER_BGUIDSB_NOT_FOUNDP="<p>Power <b>guid:%s</b> not found!</p>"
|
COM_COMPONENTBUILDER_PPOWER_BGUIDSB_NOT_FOUNDP="<p>Power <b>guid:%s</b> not found!</p>"
|
||||||
COM_COMPONENTBUILDER_PROPERTY="Property"
|
COM_COMPONENTBUILDER_PROPERTY="Property"
|
||||||
COM_COMPONENTBUILDER_PSUPER_POWERB_REPOSITORY_AT_BSSB_GAVE_THE_FOLLOWING_ERRORBR_SP="<p>Super Power</b> repository at <b>%s/%s</b> gave the following error!<br />%s</p>"
|
COM_COMPONENTBUILDER_PSUPER_POWERB_REPOSITORY_AT_BSSB_GAVE_THE_FOLLOWING_ERRORBR_SP="<p>Super Power</b> repository at <b>%s/%s</b> gave the following error!<br />%s</p>"
|
||||||
COM_COMPONENTBUILDER_PS_NAMING_MISMATCH_ERROR_SPPTHE_S_NAME_IS_BSB_AND_THE_ENDING_FILE_NAME_IN_THE_NAMESPACE_IS_BSB_THIS_IS_BAD_CONVENTION_PLEASE_SEE_A_HREFS_PSRFOURA_FOR_MORE_INFOPPA_HREFSCLICK_HEREA_TO_FIX_THIS_ISSUEP="<p>%s naming mismatch error (%s)</p><p>The %s name is <b>%s</b> and the ending file name in the namespace is <b>%s</b>. This is bad convention, please see <a href=%s >psr-4</a> for more info.</p><p><a href=%s>Click here</a> to fix this issue.</p>"
|
COM_COMPONENTBUILDER_PS_NAMING_MISMATCH_ERROR_SPPTHE_S_NAME_IS_BSB_AND_THE_ENDING_FILE_NAME_IN_THE_NAMESPACE_IS_BSB_THIS_IS_BAD_CONVENTION_PLEASE_SEE_A_HREFS_PSRFOURA_FOR_MORE_INFOPPA_HREFSCLICK_HEREA_TO_FIX_THIS_ISSUEP="<p>%s naming mismatch error (%s)</p><p>The %s name is <b>%s</b> and the ending file name in the namespace is <b>%s</b>. This is bad convention, please see <a href=%s >psr-4</a> for more info.</p><p><a href=%s>Click here</a> to fix this issue.</p>"
|
||||||
|
COM_COMPONENTBUILDER_REVERTED_THE_B_ASSETSB_TABLE_RULES_COLUMN_BACK_TO_ITS_DEFAULT_SIZE_OF_VARCHARFIVE_THOUSAND_ONE_HUNDRED_AND_TWENTY="Reverted the <b>#__assets</b> table rules column back to its default size of varchar(5120)"
|
||||||
COM_COMPONENTBUILDER_SBR_YOU_CAN_ADD_A_BGITHUB_ACCESS_TOKENB_TO_COMPONENTBUILDER_GLOBAL_OPTIONS_TO_MAKE_AUTHENTICATED_REQUESTS_TO_GITHUB_AN_ACCESS_TOKEN_WITH_ONLY_PUBLIC_ACCESS_WILL_DO_TO_RETRIEVE_S="%s<br />You can add a <b>gitHub Access Token</b> to Componentbuilder global options to make authenticated requests to gitHub. An access token with only public access will do to retrieve %s."
|
COM_COMPONENTBUILDER_SBR_YOU_CAN_ADD_A_BGITHUB_ACCESS_TOKENB_TO_COMPONENTBUILDER_GLOBAL_OPTIONS_TO_MAKE_AUTHENTICATED_REQUESTS_TO_GITHUB_AN_ACCESS_TOKEN_WITH_ONLY_PUBLIC_ACCESS_WILL_DO_TO_RETRIEVE_S="%s<br />You can add a <b>gitHub Access Token</b> to Componentbuilder global options to make authenticated requests to gitHub. An access token with only public access will do to retrieve %s."
|
||||||
COM_COMPONENTBUILDER_SELECT_EXTENSION="Select Extension"
|
COM_COMPONENTBUILDER_SELECT_EXTENSION="Select Extension"
|
||||||
COM_COMPONENTBUILDER_SINCE_THE_OWNER_DETAILS_ARE_DISPLAYED_DURING_BIMPORT_PROCESSB_BEFORE_ADDING_THE_KEY_THIS_WAY_IF_THE_USERDEV_BDOES_NOTB_HAVE_THE_KEY_THEY_CAN_SEE_BWHERE_TO_GET_ITB="Since the owner details are displayed during <b>import process</b> before adding the key, this way if the user/dev <b>does not</b> have the key they can see <b>where to get it</b>."
|
COM_COMPONENTBUILDER_SINCE_THE_OWNER_DETAILS_ARE_DISPLAYED_DURING_BIMPORT_PROCESSB_BEFORE_ADDING_THE_KEY_THIS_WAY_IF_THE_USERDEV_BDOES_NOTB_HAVE_THE_KEY_THEY_CAN_SEE_BWHERE_TO_GET_ITB="Since the owner details are displayed during <b>import process</b> before adding the key, this way if the user/dev <b>does not</b> have the key they can see <b>where to get it</b>."
|
||||||
@ -142,6 +158,12 @@ COM_COMPONENTBUILDER_TRANSLATOR_MODULE_NOT_READYBR_THIS_AREA_IS_STILL_UNDER_PROD
|
|||||||
COM_COMPONENTBUILDER_VJRZDESSMHBTRWFIFTYTWVZEROAESFLVVXJTMTHREEJTWOIXM="VjRzdE%ssMHBtRW50TWV0aE%sFlvVXJTM3J2IXM="
|
COM_COMPONENTBUILDER_VJRZDESSMHBTRWFIFTYTWVZEROAESFLVVXJTMTHREEJTWOIXM="VjRzdE%ssMHBtRW50TWV0aE%sFlvVXJTM3J2IXM="
|
||||||
COM_COMPONENTBUILDER_WEBSITE_S="Website: %s"
|
COM_COMPONENTBUILDER_WEBSITE_S="Website: %s"
|
||||||
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_WHERE_WAS_UNABLE_TO_TRANSFER_THE_COMPONENT_TO_THE_GIT_REPOSITORY="We where was unable to transfer the component to the git repository:"
|
||||||
|
COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_COMPONENT_ZIP_FILE_TO_THE_BACKUP_FOLDER="We where was unable to transfer the component ZIP file to the backup folder:"
|
||||||
|
COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_MODULE_TO_THE_GIT_REPOSITORY="We where was unable to transfer the (%s) module to the git repository:"
|
||||||
|
COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_MODULE_ZIP_FILE_TO_THE_BACKUP_FOLDER="We where was unable to transfer the (%s) module zip file to the backup folder:"
|
||||||
|
COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_PLUGIN_TO_THE_GIT_REPOSITORY="We where was unable to transfer the (%s) plugin to the git repository:"
|
||||||
|
COM_COMPONENTBUILDER_WE_WHERE_WAS_UNABLE_TO_TRANSFER_THE_S_PLUGIN_ZIP_FILE_TO_THE_BACKUP_FOLDER="We where was unable to transfer the (%s) plugin zip file to the backup folder:"
|
||||||
COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_TWO_HUNDRED_AND_FIFTY_SIX_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEY="Your data is encrypted with a AES 256 bit encryption using the above 32 character key."
|
COM_COMPONENTBUILDER_YOUR_DATA_IS_ENCRYPTED_WITH_A_AES_TWO_HUNDRED_AND_FIFTY_SIX_BIT_ENCRYPTION_USING_THE_ABOVE_THIRTY_TWO_CHARACTER_KEY="Your data is encrypted with a AES 256 bit encryption using the above 32 character key."
|
||||||
COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_ACCESS_THE_SERVER_DETAILS_BS_DENIEDB_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="You do not have permission to access the server details (<b>%s - denied</b>), please contact your system administrator for more info."
|
COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_ACCESS_THE_SERVER_DETAILS_BS_DENIEDB_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_INFO="You do not have permission to access the server details (<b>%s - denied</b>), please contact your system administrator for more info."
|
||||||
COM_COMPONENTBUILDER_YOU_MUST_ENABLE_THE_BTIDYB_EXTENSION_IN_YOUR_PHPINI_FILE_SO_WE_CAN_TIDY_UP_YOUR_XML_IF_YOU_NEED_HELP_PLEASE_A_SSTART_HEREA="You must enable the <b>Tidy</b> extension in your php.ini file so we can tidy up your xml! If you need help please <a %s>start here</a>!"
|
COM_COMPONENTBUILDER_YOU_MUST_ENABLE_THE_BTIDYB_EXTENSION_IN_YOUR_PHPINI_FILE_SO_WE_CAN_TIDY_UP_YOUR_XML_IF_YOU_NEED_HELP_PLEASE_A_SSTART_HEREA="You must enable the <b>Tidy</b> extension in your php.ini file so we can tidy up your xml! If you need help please <a %s>start here</a>!"
|
||||||
|
Loading…
Reference in New Issue
Block a user