+
+
+
diff --git a/admin/views/compiler/view.html.php b/admin/views/compiler/view.html.php
index 82d03d445..63c3a3b31 100644
--- a/admin/views/compiler/view.html.php
+++ b/admin/views/compiler/view.html.php
@@ -10,9 +10,9 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version 2.2.9
- @build 1st February, 2017
- @created 30th April, 2015
+ @version @update number 11 of this MVC
+ @build 2nd February, 2017
+ @created 1st February, 2017
@package Component Builder
@subpackage view.html.php
@author Llewellyn van der Merwe
@@ -30,64 +30,53 @@ defined('_JEXEC') or die('Restricted access');
jimport('joomla.application.component.view');
/**
- * Componentbuilder Compiler View
+ * Componentbuilder View class for the Compiler
*/
class ComponentbuilderViewCompiler extends JViewLegacy
{
- /**
- * Componentbuilder view display method
- * @return void
- */
- function display($tpl = null)
+ // Overwriting JView display method
+ function display($tpl = null)
{
- // Check for errors.
- if (count($errors = $this->get('Errors'))){
- JError::raiseError(500, implode('
', $errors));
- return false;
- };
-
- $this->Components = $this->get('Components');
- $this->form = $this->setForm();
-
- // We don't need toolbar in the modal window.
+ // get component params
+ $this->params = JComponentHelper::getParams('com_componentbuilder');
+ // get the application
+ $this->app = JFactory::getApplication();
+ // get the user object
+ $this->user = JFactory::getUser();
+ // get global action permissions
+ $this->canDo = ComponentbuilderHelper::getActions('compiler');
+ // Initialise variables.
+ $this->items = $this->get('Items');
+
+ // Check for errors.
+ if (count($errors = $this->get('Errors')))
+ {
+ JError::raiseError(500, implode("\n", $errors));
+ return false;
+ }
if ($this->getLayout() !== 'modal')
{
// Include helper submenu
ComponentbuilderHelper::addSubmenu('compiler');
- $this->addToolbar();
+ JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=compiler');
$this->sidebar = JHtmlSidebar::render();
}
-
- // Display the template
+ $this->Components = $this->get('Components');
+ $this->form = $this->setForm();
+
+ // We don't need toolbar in the modal window.
+ if ($this->getLayout() !== 'modal')
+ {
+ // add the tool bar
+ $this->addToolBar();
+ }
+
+ // set the document
+ $this->setDocument();
+
parent::display($tpl);
-
- // Set the document
- $this->setDocument();
- }
-
- /**
- * Setting the toolbar
- */
- protected function addToolBar()
- {
- $canDo = ComponentbuilderHelper::getActions('compiler');
- JToolBarHelper::title(JText::_('Compiler'), 'cogs');
-
- if($canDo->get('core.admin') || $canDo->get('core.options'))
- {
- JToolBarHelper::custom('compiler.clearTmp', 'purge', '', 'Clear tmp', false);
- JToolBarHelper::divider();
- JToolBarHelper::preferences('com_componentbuilder');
- }
-
- // set help url for this view if found
- $help_url = ComponentbuilderHelper::getHelpUrl('compiler');
- if (ComponentbuilderHelper::checkString($help_url))
- {
- JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
- }
- }
-
+ }
+
public function setForm()
{
if(ComponentbuilderHelper::checkArray($this->Components)){
@@ -131,17 +120,98 @@ class ComponentbuilderViewCompiler extends JViewLegacy
return false;
}
- /**
- * Method to set up the document properties
- *
- *
- * @return void
+ /**
+ * Prepares the document
*/
- protected function setDocument()
+ protected function setDocument()
+ {
+
+ // always make sure jquery is loaded.
+ JHtml::_('jquery.framework');
+ // Load the header checker class.
+ require_once( JPATH_COMPONENT_ADMINISTRATOR.'/helpers/headercheck.php' );
+ // Initialize the header checker.
+ $HeaderCheck = new HeaderCheck;
+
+ // Load uikit options.
+ $uikit = $this->params->get('uikit_load');
+ // Set script size.
+ $size = $this->params->get('uikit_min');
+ // Set css style.
+ $style = $this->params->get('uikit_style');
+
+ // The uikit css.
+ if ((!$HeaderCheck->css_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3)
+ {
+ $this->document->addStyleSheet(JURI::root(true) .'/media/com_componentbuilder/uikit/css/uikit'.$style.$size.'.css');
+ }
+ // The uikit js.
+ if ((!$HeaderCheck->js_loaded('uikit.min') || $uikit == 1) && $uikit != 2 && $uikit != 3)
+ {
+ $this->document->addScript(JURI::root(true) .'/media/com_componentbuilder/uikit/js/uikit'.$size.'.js');
+ }
+
+ // Load the needed uikit components in this view.
+ $uikitComp = $this->get('UikitComp');
+ if ($uikit != 2 && isset($uikitComp) && ComponentbuilderHelper::checkArray($uikitComp))
+ {
+ // load just in case.
+ jimport('joomla.filesystem.file');
+ // loading...
+ foreach ($uikitComp as $class)
+ {
+ foreach (ComponentbuilderHelper::$uk_components[$class] as $name)
+ {
+ // check if the CSS file exists.
+ if (JFile::exists(JPATH_ROOT.'/media/com_componentbuilder/uikit/css/components/'.$name.$style.$size.'.css'))
+ {
+ // load the css.
+ $this->document->addStyleSheet(JURI::root(true) .'/media/com_componentbuilder/uikit/css/components/'.$name.$style.$size.'.css');
+ }
+ // check if the JavaScript file exists.
+ if (JFile::exists(JPATH_ROOT.'/media/com_componentbuilder/uikit/js/components/'.$name.$size.'.js'))
+ {
+ // load the js.
+ $this->document->addScript(JURI::root(true) .'/media/com_componentbuilder/uikit/js/components/'.$name.$size.'.js', 'text/javascript', true);
+ }
+ }
+ }
+ }
+ // add the document default css file
+ $this->document->addStyleSheet(JURI::root(true) .'/administrator/components/com_componentbuilder/assets/css/compiler.css');
+ }
+
+ /**
+ * Setting the toolbar
+ */
+ protected function addToolBar()
{
- $document = JFactory::getDocument();
-
- $document->setTitle(JText::_('The Compiler'));
+ // hide the main menu
+ $this->app->input->set('hidemainmenu', true);
+ // add title to the page
+ JToolbarHelper::title(JText::_('COM_COMPONENTBUILDER_COMPILER'),'cogs');
+ // add the back button
+ // JToolBarHelper::custom('compiler.back', 'undo-2', '', 'COM_COMPONENTBUILDER_BACK', false);
+ // add cpanel button
+ JToolBarHelper::custom('compiler.dashboard', 'grid-2', '', 'COM_COMPONENTBUILDER_DASH', false);
+ if ($this->canDo->get('compiler.clear_tmp'))
+ {
+ // add Clear tmp button.
+ JToolBarHelper::custom('compiler.clearTmp', 'purge', '', 'COM_COMPONENTBUILDER_CLEAR_TMP', false);
+ }
+
+ // set help url for this view if found
+ $help_url = ComponentbuilderHelper::getHelpUrl('compiler');
+ if (ComponentbuilderHelper::checkString($help_url))
+ {
+ JToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $help_url);
+ }
+
+ // add the options comp button
+ if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
+ {
+ JToolBarHelper::preferences('com_componentbuilder');
+ }
}
/**
@@ -153,12 +223,7 @@ class ComponentbuilderViewCompiler extends JViewLegacy
*/
public function escape($var)
{
- if(strlen($var) > 50)
- {
- // use the helper htmlEscape method instead and shorten the string
- return ComponentbuilderHelper::htmlEscape($var, $this->_charset, true);
- }
// use the helper htmlEscape method instead.
return ComponentbuilderHelper::htmlEscape($var, $this->_charset);
}
-}
\ No newline at end of file
+}
diff --git a/admin/views/component/submitbutton.js b/admin/views/component/submitbutton.js
index 8616cc37d..9737b28a7 100644
--- a/admin/views/component/submitbutton.js
+++ b/admin/views/component/submitbutton.js
@@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage submitbutton.js
diff --git a/admin/views/component/tmpl/edit.php b/admin/views/component/tmpl/edit.php
index bd707d057..d8a8c893d 100644
--- a/admin/views/component/tmpl/edit.php
+++ b/admin/views/component/tmpl/edit.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage edit.php
diff --git a/admin/views/component/view.html.php b/admin/views/component/view.html.php
index a398c2a96..d145284c2 100644
--- a/admin/views/component/view.html.php
+++ b/admin/views/component/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/componentbuilder/tmpl/default.php b/admin/views/componentbuilder/tmpl/default.php
index db5f861eb..eb5acb693 100644
--- a/admin/views/componentbuilder/tmpl/default.php
+++ b/admin/views/componentbuilder/tmpl/default.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default.php
diff --git a/admin/views/componentbuilder/tmpl/default_closed_issues_the_closed_issues_on_github.php b/admin/views/componentbuilder/tmpl/default_closed_issues_the_closed_issues_on_github.php
index bcb6c9801..67cfa1623 100644
--- a/admin/views/componentbuilder/tmpl/default_closed_issues_the_closed_issues_on_github.php
+++ b/admin/views/componentbuilder/tmpl/default_closed_issues_the_closed_issues_on_github.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_closed_issues_the_closed_issues_on_github.php
diff --git a/admin/views/componentbuilder/tmpl/default_main.php b/admin/views/componentbuilder/tmpl/default_main.php
index 8c9deeab9..3407f6f5d 100644
--- a/admin/views/componentbuilder/tmpl/default_main.php
+++ b/admin/views/componentbuilder/tmpl/default_main.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_main.php
diff --git a/admin/views/componentbuilder/tmpl/default_open_issues_the_open_issues_on_github.php b/admin/views/componentbuilder/tmpl/default_open_issues_the_open_issues_on_github.php
index a1cf779bf..b29e8d051 100644
--- a/admin/views/componentbuilder/tmpl/default_open_issues_the_open_issues_on_github.php
+++ b/admin/views/componentbuilder/tmpl/default_open_issues_the_open_issues_on_github.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_open_issues_the_open_issues_on_github.php
diff --git a/admin/views/componentbuilder/tmpl/default_readme_information.php b/admin/views/componentbuilder/tmpl/default_readme_information.php
index b859b3933..bdd9072f6 100644
--- a/admin/views/componentbuilder/tmpl/default_readme_information.php
+++ b/admin/views/componentbuilder/tmpl/default_readme_information.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_readme_information.php
diff --git a/admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php b/admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php
index 38255195e..4bf1cabc3 100644
--- a/admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php
+++ b/admin/views/componentbuilder/tmpl/default_vast_development_method_notice_board.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_vast_development_method_notice_board.php
diff --git a/admin/views/componentbuilder/tmpl/default_vdm.php b/admin/views/componentbuilder/tmpl/default_vdm.php
index 375b47a23..62b6f046d 100644
--- a/admin/views/componentbuilder/tmpl/default_vdm.php
+++ b/admin/views/componentbuilder/tmpl/default_vdm.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_vdm.php
diff --git a/admin/views/componentbuilder/view.html.php b/admin/views/componentbuilder/view.html.php
index 12368c108..94b56f895 100644
--- a/admin/views/componentbuilder/view.html.php
+++ b/admin/views/componentbuilder/view.html.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/components/tmpl/default.php b/admin/views/components/tmpl/default.php
index f4a14fc02..9438b391e 100644
--- a/admin/views/components/tmpl/default.php
+++ b/admin/views/components/tmpl/default.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default.php
diff --git a/admin/views/components/tmpl/default_batch_body.php b/admin/views/components/tmpl/default_batch_body.php
index 57031247c..1df9cc476 100644
--- a/admin/views/components/tmpl/default_batch_body.php
+++ b/admin/views/components/tmpl/default_batch_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_batch_body.php
diff --git a/admin/views/components/tmpl/default_batch_footer.php b/admin/views/components/tmpl/default_batch_footer.php
index d5740dc1d..cc23ee968 100644
--- a/admin/views/components/tmpl/default_batch_footer.php
+++ b/admin/views/components/tmpl/default_batch_footer.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_batch_footer.php
diff --git a/admin/views/components/tmpl/default_body.php b/admin/views/components/tmpl/default_body.php
index 9287eaf22..617ecd5c1 100644
--- a/admin/views/components/tmpl/default_body.php
+++ b/admin/views/components/tmpl/default_body.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_body.php
diff --git a/admin/views/components/tmpl/default_foot.php b/admin/views/components/tmpl/default_foot.php
index 82d8f5988..3fd288175 100644
--- a/admin/views/components/tmpl/default_foot.php
+++ b/admin/views/components/tmpl/default_foot.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_foot.php
diff --git a/admin/views/components/tmpl/default_head.php b/admin/views/components/tmpl/default_head.php
index af348c8bf..7b5f9473e 100644
--- a/admin/views/components/tmpl/default_head.php
+++ b/admin/views/components/tmpl/default_head.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_head.php
diff --git a/admin/views/components/tmpl/default_toolbar.php b/admin/views/components/tmpl/default_toolbar.php
index bf3000c65..19446148b 100644
--- a/admin/views/components/tmpl/default_toolbar.php
+++ b/admin/views/components/tmpl/default_toolbar.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_toolbar.php
diff --git a/admin/views/components/view.html.php b/admin/views/components/view.html.php
index a0f754159..a6884e728 100644
--- a/admin/views/components/view.html.php
+++ b/admin/views/components/view.html.php
@@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
- @version @update number 77 of this MVC
- @build 26th December, 2016
+ @version @update number 80 of this MVC
+ @build 2nd February, 2017
@created 6th May, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/admin/views/import/tmpl/default.php b/admin/views/import/tmpl/default.php
index db01941e3..f6af775f6 100644
--- a/admin/views/import/tmpl/default.php
+++ b/admin/views/import/tmpl/default.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default.php
diff --git a/admin/views/import/view.html.php b/admin/views/import/view.html.php
index cd74a2df5..ab5470d66 100644
--- a/admin/views/import/view.html.php
+++ b/admin/views/import/view.html.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage view.html.php
diff --git a/componentbuilder.xml b/componentbuilder.xml
index 6315702d9..dbbc80311 100644
--- a/componentbuilder.xml
+++ b/componentbuilder.xml
@@ -1,7 +1,7 @@
COM_COMPONENTBUILDER
- 1st February, 2017
+ 2nd February, 2017
Llewellyn van der Merwe
info@vdm.io
http://vdm.bz/component-builder
diff --git a/script.php b/script.php
index 28884b8ff..7579d9167 100644
--- a/script.php
+++ b/script.php
@@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.2.9
- @build 1st February, 2017
+ @build 2nd February, 2017
@created 30th April, 2015
@package Component Builder
@subpackage script.php
@@ -1349,9 +1349,9 @@ class com_componentbuilderInstallerScript
$component->type_title = 'Componentbuilder Component';
$component->type_alias = 'com_componentbuilder.component';
$component->table = '{"special": {"dbtable": "#__componentbuilder_component","key": "id","type": "Component","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
- $component->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "readme","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name_code":"name_code","component_version":"component_version","short_description":"short_description","companyname":"companyname","author":"author","update_server_target":"update_server_target","add_php_helper_admin":"add_php_helper_admin","creatuserhelper":"creatuserhelper","add_sql":"add_sql","update_server_ftp":"update_server_ftp","css":"css","debug_linenr":"debug_linenr","add_php_helper_site":"add_php_helper_site","update_server":"update_server","description":"description","name":"name","bom":"bom","image":"image","addfootable":"addfootable","add_update_server":"add_update_server","add_php_helper_both":"add_php_helper_both","php_preflight_update":"php_preflight_update","add_admin_event":"add_admin_event","php_postflight_update":"php_postflight_update","add_site_event":"add_site_event","readme":"readme","add_php_dashboard_methods":"add_php_dashboard_methods","sales_server_ftp":"sales_server_ftp","php_preflight_install":"php_preflight_install","email":"email","php_postflight_install":"php_postflight_install","website":"website","php_method_uninstall":"php_method_uninstall","copyright":"copyright","not_required":"not_required","add_license":"add_license","buildcomp":"buildcomp","license_type":"license_type","whmcs_key":"whmcs_key","whmcs_url":"whmcs_url","adduikit":"adduikit","license":"license","add_css":"add_css","add_email_helper":"add_email_helper","php_helper_both":"php_helper_both","php_helper_admin":"php_helper_admin","php_admin_event":"php_admin_event","php_helper_site":"php_helper_site","php_site_event":"php_site_event","sql":"sql","php_dashboard_methods":"php_dashboard_methods","add_php_preflight_install":"add_php_preflight_install","add_php_preflight_update":"add_php_preflight_update","add_php_postflight_install":"add_php_postflight_install","add_php_postflight_update":"add_php_postflight_update","add_php_method_uninstall":"add_php_method_uninstall","addreadme":"addreadme","emptycontributors":"emptycontributors","add_sales_server":"add_sales_server","number":"number","buildcompsql":"buildcompsql"}}';
+ $component->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "readme","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name_code":"name_code","component_version":"component_version","short_description":"short_description","companyname":"companyname","author":"author","css":"css","add_php_helper_site":"add_php_helper_site","php_postflight_update":"php_postflight_update","update_server_ftp":"update_server_ftp","creatuserhelper":"creatuserhelper","add_php_helper_admin":"add_php_helper_admin","debug_linenr":"debug_linenr","add_sql":"add_sql","add_placeholders":"add_placeholders","php_preflight_update":"php_preflight_update","mvc_versiondate":"mvc_versiondate","update_server_target":"update_server_target","update_server":"update_server","description":"description","addfootable":"addfootable","bom":"bom","add_php_helper_both":"add_php_helper_both","image":"image","add_admin_event":"add_admin_event","add_update_server":"add_update_server","add_site_event":"add_site_event","readme":"readme","add_php_dashboard_methods":"add_php_dashboard_methods","sales_server_ftp":"sales_server_ftp","php_preflight_install":"php_preflight_install","name":"name","php_postflight_install":"php_postflight_install","php_method_uninstall":"php_method_uninstall","email":"email","not_required":"not_required","website":"website","buildcomp":"buildcomp","copyright":"copyright","add_license":"add_license","license_type":"license_type","whmcs_key":"whmcs_key","adduikit":"adduikit","whmcs_url":"whmcs_url","add_css":"add_css","license":"license","add_email_helper":"add_email_helper","php_helper_both":"php_helper_both","php_helper_admin":"php_helper_admin","php_admin_event":"php_admin_event","php_helper_site":"php_helper_site","php_site_event":"php_site_event","sql":"sql","php_dashboard_methods":"php_dashboard_methods","add_php_preflight_install":"add_php_preflight_install","add_php_preflight_update":"add_php_preflight_update","add_php_postflight_install":"add_php_postflight_install","add_php_postflight_update":"add_php_postflight_update","add_php_method_uninstall":"add_php_method_uninstall","addreadme":"addreadme","add_sales_server":"add_sales_server","emptycontributors":"emptycontributors","number":"number","buildcompsql":"buildcompsql"}}';
$component->router = 'ComponentbuilderHelperRoute::getComponentRoute';
- $component->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/component.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","update_server_target","add_php_helper_admin","creatuserhelper","add_sql","debug_linenr","add_php_helper_site","addfootable","add_update_server","add_php_helper_both","add_admin_event","add_site_event","add_php_dashboard_methods","not_required","add_license","buildcomp","license_type","adduikit","add_css","add_email_helper","add_php_preflight_install","add_php_preflight_update","add_php_postflight_install","add_php_postflight_update","add_php_method_uninstall","addreadme","emptycontributors","add_sales_server","number"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
+ $component->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/component.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","add_php_helper_site","creatuserhelper","add_php_helper_admin","debug_linenr","add_sql","add_placeholders","mvc_versiondate","update_server_target","addfootable","add_php_helper_both","add_admin_event","add_update_server","add_site_event","add_php_dashboard_methods","not_required","buildcomp","add_license","license_type","adduikit","add_css","add_email_helper","add_php_preflight_install","add_php_preflight_update","add_php_postflight_install","add_php_postflight_update","add_php_method_uninstall","addreadme","add_sales_server","emptycontributors","number"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
// Set the object into the content types table.
$component_Inserted = $db->insertObject('#__content_types', $component);
@@ -1545,9 +1545,9 @@ class com_componentbuilderInstallerScript
$component->type_title = 'Componentbuilder Component';
$component->type_alias = 'com_componentbuilder.component';
$component->table = '{"special": {"dbtable": "#__componentbuilder_component","key": "id","type": "Component","prefix": "componentbuilderTable","config": "array()"},"common": {"dbtable": "#__ucm_content","key": "ucm_id","type": "Corecontent","prefix": "JTable","config": "array()"}}';
- $component->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "readme","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name_code":"name_code","component_version":"component_version","short_description":"short_description","companyname":"companyname","author":"author","update_server_target":"update_server_target","add_php_helper_admin":"add_php_helper_admin","creatuserhelper":"creatuserhelper","add_sql":"add_sql","update_server_ftp":"update_server_ftp","css":"css","debug_linenr":"debug_linenr","add_php_helper_site":"add_php_helper_site","update_server":"update_server","description":"description","name":"name","bom":"bom","image":"image","addfootable":"addfootable","add_update_server":"add_update_server","add_php_helper_both":"add_php_helper_both","php_preflight_update":"php_preflight_update","add_admin_event":"add_admin_event","php_postflight_update":"php_postflight_update","add_site_event":"add_site_event","readme":"readme","add_php_dashboard_methods":"add_php_dashboard_methods","sales_server_ftp":"sales_server_ftp","php_preflight_install":"php_preflight_install","email":"email","php_postflight_install":"php_postflight_install","website":"website","php_method_uninstall":"php_method_uninstall","copyright":"copyright","not_required":"not_required","add_license":"add_license","buildcomp":"buildcomp","license_type":"license_type","whmcs_key":"whmcs_key","whmcs_url":"whmcs_url","adduikit":"adduikit","license":"license","add_css":"add_css","add_email_helper":"add_email_helper","php_helper_both":"php_helper_both","php_helper_admin":"php_helper_admin","php_admin_event":"php_admin_event","php_helper_site":"php_helper_site","php_site_event":"php_site_event","sql":"sql","php_dashboard_methods":"php_dashboard_methods","add_php_preflight_install":"add_php_preflight_install","add_php_preflight_update":"add_php_preflight_update","add_php_postflight_install":"add_php_postflight_install","add_php_postflight_update":"add_php_postflight_update","add_php_method_uninstall":"add_php_method_uninstall","addreadme":"addreadme","emptycontributors":"emptycontributors","add_sales_server":"add_sales_server","number":"number","buildcompsql":"buildcompsql"}}';
+ $component->field_mappings = '{"common": {"core_content_item_id": "id","core_title": "name","core_state": "published","core_alias": "null","core_created_time": "created","core_modified_time": "modified","core_body": "readme","core_hits": "hits","core_publish_up": "null","core_publish_down": "null","core_access": "access","core_params": "params","core_featured": "null","core_metadata": "null","core_language": "null","core_images": "null","core_urls": "null","core_version": "version","core_ordering": "ordering","core_metakey": "null","core_metadesc": "null","core_catid": "null","core_xreference": "null","asset_id": "asset_id"},"special": {"system_name":"system_name","name_code":"name_code","component_version":"component_version","short_description":"short_description","companyname":"companyname","author":"author","css":"css","add_php_helper_site":"add_php_helper_site","php_postflight_update":"php_postflight_update","update_server_ftp":"update_server_ftp","creatuserhelper":"creatuserhelper","add_php_helper_admin":"add_php_helper_admin","debug_linenr":"debug_linenr","add_sql":"add_sql","add_placeholders":"add_placeholders","php_preflight_update":"php_preflight_update","mvc_versiondate":"mvc_versiondate","update_server_target":"update_server_target","update_server":"update_server","description":"description","addfootable":"addfootable","bom":"bom","add_php_helper_both":"add_php_helper_both","image":"image","add_admin_event":"add_admin_event","add_update_server":"add_update_server","add_site_event":"add_site_event","readme":"readme","add_php_dashboard_methods":"add_php_dashboard_methods","sales_server_ftp":"sales_server_ftp","php_preflight_install":"php_preflight_install","name":"name","php_postflight_install":"php_postflight_install","php_method_uninstall":"php_method_uninstall","email":"email","not_required":"not_required","website":"website","buildcomp":"buildcomp","copyright":"copyright","add_license":"add_license","license_type":"license_type","whmcs_key":"whmcs_key","adduikit":"adduikit","whmcs_url":"whmcs_url","add_css":"add_css","license":"license","add_email_helper":"add_email_helper","php_helper_both":"php_helper_both","php_helper_admin":"php_helper_admin","php_admin_event":"php_admin_event","php_helper_site":"php_helper_site","php_site_event":"php_site_event","sql":"sql","php_dashboard_methods":"php_dashboard_methods","add_php_preflight_install":"add_php_preflight_install","add_php_preflight_update":"add_php_preflight_update","add_php_postflight_install":"add_php_postflight_install","add_php_postflight_update":"add_php_postflight_update","add_php_method_uninstall":"add_php_method_uninstall","addreadme":"addreadme","add_sales_server":"add_sales_server","emptycontributors":"emptycontributors","number":"number","buildcompsql":"buildcompsql"}}';
$component->router = 'ComponentbuilderHelperRoute::getComponentRoute';
- $component->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/component.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","update_server_target","add_php_helper_admin","creatuserhelper","add_sql","debug_linenr","add_php_helper_site","addfootable","add_update_server","add_php_helper_both","add_admin_event","add_site_event","add_php_dashboard_methods","not_required","add_license","buildcomp","license_type","adduikit","add_css","add_email_helper","add_php_preflight_install","add_php_preflight_update","add_php_postflight_install","add_php_postflight_update","add_php_method_uninstall","addreadme","emptycontributors","add_sales_server","number"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
+ $component->content_history_options = '{"formFile": "administrator/components/com_componentbuilder/models/forms/component.xml","hideFields": ["asset_id","checked_out","checked_out_time","version","not_required"],"ignoreChanges": ["modified_by","modified","checked_out","checked_out_time","version","hits"],"convertToInt": ["published","ordering","add_php_helper_site","creatuserhelper","add_php_helper_admin","debug_linenr","add_sql","add_placeholders","mvc_versiondate","update_server_target","addfootable","add_php_helper_both","add_admin_event","add_update_server","add_site_event","add_php_dashboard_methods","not_required","buildcomp","add_license","license_type","adduikit","add_css","add_email_helper","add_php_preflight_install","add_php_preflight_update","add_php_postflight_install","add_php_postflight_update","add_php_method_uninstall","addreadme","add_sales_server","emptycontributors","number"],"displayLookup": [{"sourceColumn": "created_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"},{"sourceColumn": "access","targetTable": "#__viewlevels","targetColumn": "id","displayColumn": "title"},{"sourceColumn": "modified_by","targetTable": "#__users","targetColumn": "id","displayColumn": "name"}]}';
// Check if component type is already in content_type DB.
$component_id = null;