added another field to the component view, to add helper methods to both admin and site area of the component

This commit is contained in:
2016-11-25 04:56:16 +02:00
parent 082196378b
commit 0cd5660141
382 changed files with 3714 additions and 3580 deletions

View File

@ -681,6 +681,16 @@ class Get
$this->customScriptBuilder['component_php_admin_event'] = '';
}
unset($component->php_admin_event);
// add_php_helper_both
if ($component->add_php_helper_both == 1)
{
$this->lang = 'both';
$this->customScriptBuilder['component_php_helper_both'] = "\n\n".$this->setCustomContentLang(base64_decode($component->php_helper_both));
}
else
{
$this->customScriptBuilder['component_php_helper_both'] = '';
}
// add_php_helper_site
if ($component->add_php_helper_site == 1)
{

View File

@ -142,8 +142,8 @@ class Interpretation extends Fields
{
if ($this->componentData->add_license && $this->componentData->license_type == 3)
{
$boolMethod = ComponentbuilderHelper::safeString($this->uniquekey(6, false, 'llllllllll'));
$globalbool = ComponentbuilderHelper::safeString($this->uniquekey(6));
$boolMethod = 'get'.ComponentbuilderHelper::safeString($this->uniquekey(3, false, 'ddd'), 'W');
$globalbool = 'set'.ComponentbuilderHelper::safeString($this->uniquekey(3), 'W');
// add it to the system
$this->fileContentDynamic[$view]['###LICENSE_LOCKED_SET_BOOL###'] = $this->setBoolLincenseLock($boolMethod,$globalbool);
$this->fileContentDynamic[$view]['###LICENSE_LOCKED_CHECK###'] = $this->checkStatmentLicenseLocked($boolMethod);

View File

@ -153,6 +153,9 @@ class Infusion extends Interpretation
// ###CUSTOM_HELPER_SCRIPT###
$this->fileContentStatic['###CUSTOM_HELPER_SCRIPT###'] = str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['component_php_helper_admin']);
// ###BOTH_CUSTOM_HELPER_SCRIPT###
$this->fileContentStatic['###BOTH_CUSTOM_HELPER_SCRIPT###'] = str_replace(array_keys($this->placeholders),array_values($this->placeholders),$this->customScriptBuilder['component_php_helper_both']);
// ###ADMIN_GLOBAL_EVENT_HELPER###
$this->fileContentStatic['###ADMIN_GLOBAL_EVENT_HELPER###'] = '';

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.3
@build 22nd November, 2016
@version 2.2.4
@build 25th November, 2016
@created 30th April, 2015
@package Component Builder
@subpackage componentbuilder.php
@ -222,7 +222,7 @@ abstract class ComponentbuilderHelper
return true;
}
return false;
}
}
/**
* Load the Component xml manifest.
**/

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.3
@build 22nd November, 2016
@version 2.2.4
@build 25th November, 2016
@created 30th April, 2015
@package Component Builder
@subpackage batch_.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.3
@build 22nd November, 2016
@version 2.2.4
@build 25th November, 2016
@created 30th April, 2015
@package Component Builder
@subpackage indenter.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.3
@build 22nd November, 2016
@version 2.2.4
@build 25th November, 2016
@created 30th April, 2015
@package Component Builder
@subpackage js.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.3
@build 22nd November, 2016
@version 2.2.4
@build 25th November, 2016
@created 30th April, 2015
@package Component Builder
@subpackage minify.php