Release of v2.3.0
This commit is contained in:
parent
551f81439d
commit
396696da99
@ -28,7 +28,7 @@ use VDM\Joomla\Componentbuilder\Compiler\Factory as CFactory;
|
||||
* Extension - Componentbuilder Headers Compiler plugin.
|
||||
*
|
||||
* @package ComponentbuilderHeadersCompiler
|
||||
* @since 2.2.5
|
||||
* @since 2.3.0
|
||||
*/
|
||||
class PlgExtensionComponentbuilderHeadersCompiler extends CMSPlugin
|
||||
{
|
||||
@ -378,7 +378,7 @@ class PlgExtensionComponentbuilderHeadersCompiler extends CMSPlugin
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function jcb_ce_onBeforeModelViewData(&$context, &$view, &$placeholders)
|
||||
public function jcb_ce_onBeforeModelViewData(&$view)
|
||||
{
|
||||
// check that the params are set
|
||||
if (isset($view->params))
|
||||
@ -395,7 +395,7 @@ class PlgExtensionComponentbuilderHeadersCompiler extends CMSPlugin
|
||||
*
|
||||
* @since 1.0.2
|
||||
*/
|
||||
public function jcb_ce_onBeforeModelCustomViewData(&$context, &$view, &$id, &$table)
|
||||
public function jcb_ce_onBeforeModelCustomViewData(&$view, &$id, &$table)
|
||||
{
|
||||
// check that the params are set
|
||||
if (isset($view->params))
|
||||
@ -414,7 +414,7 @@ class PlgExtensionComponentbuilderHeadersCompiler extends CMSPlugin
|
||||
*
|
||||
* @since 1.0.10
|
||||
*/
|
||||
public function jcb_ce_onBeforeModelDynamicGetData(&$context, &$dynamicGet, &$id, &$code, &$area)
|
||||
public function jcb_ce_onBeforeModelDynamicGetData(&$dynamicGet, &$id, &$code, &$area)
|
||||
{
|
||||
// check that the params are set
|
||||
if (isset($dynamicGet->params))
|
||||
@ -431,7 +431,7 @@ class PlgExtensionComponentbuilderHeadersCompiler extends CMSPlugin
|
||||
*
|
||||
* @since 1.0.4
|
||||
*/
|
||||
public function jcb_ce_onBeforeModelComponentData(&$context, &$component)
|
||||
public function jcb_ce_onBeforeModelComponentData(&$component)
|
||||
{
|
||||
// check that the params are set
|
||||
if (isset($component->params))
|
||||
@ -454,7 +454,7 @@ class PlgExtensionComponentbuilderHeadersCompiler extends CMSPlugin
|
||||
*
|
||||
* @since 1.0
|
||||
*/
|
||||
public function jcb_ce_setClassHeader(&$context, &$event_context, &$view_name, &$headers)
|
||||
public function jcb_ce_setClassHeader(&$event_context, &$view_name, &$headers)
|
||||
{
|
||||
if ($this->loadHeaders && isset($this->activeHeaders[$view_name])
|
||||
&& isset($this->activeHeaders[$view_name][$event_context])
|
||||
@ -487,7 +487,7 @@ class PlgExtensionComponentbuilderHeadersCompiler extends CMSPlugin
|
||||
*
|
||||
* @since 1.0.6
|
||||
*/
|
||||
public function jcb_ce_onBeforeGetComponentData(&$context, $compiler)
|
||||
public function jcb_ce_onBeforeGetComponentData()
|
||||
{
|
||||
// get placeholders from the compiler
|
||||
$this->placeholders = CFactory::_('Component.Placeholder')->get();
|
||||
@ -500,12 +500,12 @@ class PlgExtensionComponentbuilderHeadersCompiler extends CMSPlugin
|
||||
*
|
||||
* @since 1.0.6
|
||||
*/
|
||||
public function jcb_ce_onAfterGetComponentData(&$context, $compiler)
|
||||
public function jcb_ce_onAfterGetComponentData()
|
||||
{
|
||||
// add the powers to the component
|
||||
if (ArrayHelper::check($this->linkedPowers, true))
|
||||
{
|
||||
$compiler->linkedPowers = $this->linkedPowers;
|
||||
CFactory::_('Power')->load($this->linkedPowers);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="plugin" version="4" group="extension" method="upgrade">
|
||||
<extension type="plugin" version="3.10" group="extension" method="upgrade">
|
||||
<name>PLG_EXTENSION_COMPONENTBUILDERHEADERSCOMPILER</name>
|
||||
<creationDate>24th October, 2023</creationDate>
|
||||
<creationDate>2nd March, 2024</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>joomla@vdm.io</authorEmail>
|
||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||
<version>2.2.5</version>
|
||||
<version>2.3.0</version>
|
||||
<description>PLG_EXTENSION_COMPONENTBUILDERHEADERSCOMPILER_XML_DESCRIPTION</description>
|
||||
|
||||
<!-- Scripts to run on installation -->
|
||||
|
@ -1,3 +1,3 @@
|
||||
PLG_EXTENSION_COMPONENTBUILDERHEADERSCOMPILER="Extension - Componentbuilder Headers Compiler"
|
||||
PLG_EXTENSION_COMPONENTBUILDERHEADERSCOMPILER_DESCRIPTION="This plugin is used to set the custom headers for your classes during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to set your code where you would like to set Custom Headers."
|
||||
PLG_EXTENSION_COMPONENTBUILDERHEADERSCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder Headers Compiler (v.2.2.5)</h1> <div style='clear: both;'></div><p>This plugin is used to set the custom headers for your classes during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to set your code where you would like to set Custom Headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 24th May, 2020</small></p>"
|
||||
PLG_EXTENSION_COMPONENTBUILDERHEADERSCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder Headers Compiler (v.2.3.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set the custom headers for your classes during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to set your code where you would like to set Custom Headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 24th May, 2020</small></p>"
|
@ -1,3 +1,3 @@
|
||||
PLG_EXTENSION_COMPONENTBUILDERHEADERSCOMPILER="Extension - Componentbuilder Headers Compiler"
|
||||
PLG_EXTENSION_COMPONENTBUILDERHEADERSCOMPILER_DESCRIPTION="This plugin is used to set the custom headers for your classes during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to set your code where you would like to set Custom Headers."
|
||||
PLG_EXTENSION_COMPONENTBUILDERHEADERSCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder Headers Compiler (v.2.2.5)</h1> <div style='clear: both;'></div><p>This plugin is used to set the custom headers for your classes during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to set your code where you would like to set Custom Headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 24th May, 2020</small></p>"
|
||||
PLG_EXTENSION_COMPONENTBUILDERHEADERSCOMPILER_XML_DESCRIPTION="<h1>Extension - Componentbuilder Headers Compiler (v.2.3.0)</h1> <div style='clear: both;'></div><p>This plugin is used to set the custom headers for your classes during compilation. To activate it you must first enable it here. Then open your JCB component global options, and under the Global tab, select this plugin in the Activate Compiler Plugins field.Also be sure to set your code where you would like to set Custom Headers.</p><p>Created by <a href='https://dev.vdm.io' target='_blank'>Llewellyn van der Merwe</a><br /><small>Development started 24th May, 2020</small></p>"
|
@ -12,6 +12,11 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Filesystem\File;
|
||||
use Joomla\CMS\Filesystem\Folder;
|
||||
|
||||
/**
|
||||
* Extension - Componentbuilder Headers Compiler script file.
|
||||
*
|
||||
@ -31,7 +36,7 @@ class plgExtensionComponentbuilderHeadersCompilerInstallerScript
|
||||
public function preflight($route, $adapter)
|
||||
{
|
||||
// get application
|
||||
$app = JFactory::getApplication();
|
||||
$app = Factory::getApplication();
|
||||
|
||||
// the default for both install and update
|
||||
$jversion = new JVersion();
|
||||
|
Loading…
x
Reference in New Issue
Block a user