Added Events to Compiler, the beginning of an API. #435
@ -146,7 +146,7 @@ TODO
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 16th May, 2019
|
||||
+ *Last Build*: 20th May, 2019
|
||||
+ *Version*: 2.9.18
|
||||
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
|
@ -146,7 +146,7 @@ TODO
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 16th May, 2019
|
||||
+ *Last Build*: 20th May, 2019
|
||||
+ *Version*: 2.9.18
|
||||
+ *Copyright*: Copyright (C) 2015 - 2019 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
|
@ -5743,7 +5743,7 @@ class Get
|
||||
$joomla = getcwd();
|
||||
$counter = array(1 => 0, 2 => 0);
|
||||
// file types to get
|
||||
$fileTypes = array('\.php', '\.js');
|
||||
$fileTypes = array('\.php', '\.js', '\.xml');
|
||||
// set some local placeholders
|
||||
$placeholders = array();
|
||||
$placeholders[ComponentbuilderHelper::safeString($this->componentCodeName, 'F') . 'Helper::'] = $this->bbb . 'Component' . $this->ddd . 'Helper::';
|
||||
@ -5756,20 +5756,24 @@ class Get
|
||||
chdir($path);
|
||||
foreach ($fileTypes as $type)
|
||||
{
|
||||
// get a list of files in the current directory tree (only PHP and JS for now)
|
||||
// get a list of files in the current directory tree (only PHP, JS and XML for now)
|
||||
$files = JFolder::files('.', $type, true, true);
|
||||
foreach ($files as $file)
|
||||
// check if files found
|
||||
if (ComponentbuilderHelper::checkArray($files))
|
||||
{
|
||||
$this->searchFileContent($counter, $file, $target, $this->customCodePlaceholders, $placeholders, $today);
|
||||
// insert new code
|
||||
if (ComponentbuilderHelper::checkArray($this->newCustomCode))
|
||||
foreach ($files as $file)
|
||||
{
|
||||
$this->setNewCustomCode(100);
|
||||
}
|
||||
// update existing custom code
|
||||
if (ComponentbuilderHelper::checkArray($this->existingCustomCode))
|
||||
{
|
||||
$this->setExistingCustomCode(30);
|
||||
$this->searchFileContent($counter, $file, $target, $this->customCodePlaceholders, $placeholders, $today);
|
||||
// insert new code
|
||||
if (ComponentbuilderHelper::checkArray($this->newCustomCode))
|
||||
{
|
||||
$this->setNewCustomCode(100);
|
||||
}
|
||||
// update existing custom code
|
||||
if (ComponentbuilderHelper::checkArray($this->existingCustomCode))
|
||||
{
|
||||
$this->setExistingCustomCode(30);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -6189,7 +6193,7 @@ class Get
|
||||
* @param string $updateString The string to update
|
||||
* @param string $string The string to use lang update
|
||||
*
|
||||
* @return array
|
||||
* @return string
|
||||
*
|
||||
*/
|
||||
protected function setReverseLangPlaceholders($updateString, $string)
|
||||
@ -6263,8 +6267,6 @@ class Get
|
||||
* 1 -> Just replace (default)
|
||||
* 2 -> Check if data string has placeholders
|
||||
* 3 -> Remove placeholders not in data string
|
||||
*
|
||||
* @param int $langSwitch The lang switch
|
||||
*
|
||||
* @return string
|
||||
*
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="component" version="3.2" method="upgrade">
|
||||
<name>COM_COMPONENTBUILDER</name>
|
||||
<creationDate>16th May, 2019</creationDate>
|
||||
<creationDate>20th May, 2019</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
||||
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
||||
|
Loading…
Reference in New Issue
Block a user