forked from joomla/Component-Builder
Further gh-53 implementation of the export and import of complete components as JCB packages. Fixes gh-56
This commit is contained in:
parent
63b1bac955
commit
8b522f44d9
14
README.md
14
README.md
@ -1,4 +1,4 @@
|
|||||||
# Component Builder (2.3.7)
|
# Component Builder (2.3.8)
|
||||||
|
|
||||||
This is a [Joomla 3.x](http://www.joomla.org/) component.
|
This is a [Joomla 3.x](http://www.joomla.org/) component.
|
||||||
|
|
||||||
@ -8,7 +8,7 @@ The Component Builder for [Joomla](http://www.joomla.org/) that is highly advanc
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.3.7) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.3.8) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
Once installed upgrades are quick and easy via the default Joomla upgrade area.
|
Once installed upgrades are quick and easy via the default Joomla upgrade area.
|
||||||
|
|
||||||
@ -104,13 +104,13 @@ Component Builder is mapped as a component in itself on my local development env
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
|
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 20th March, 2017
|
+ *Last Build*: 27th March, 2017
|
||||||
+ *Version*: 2.3.7
|
+ *Version*: 2.3.8
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
+ *Line count*: **93648**
|
+ *Line count*: **95888**
|
||||||
+ *File count*: **602**
|
+ *File count*: **609**
|
||||||
+ *Folder count*: **105**
|
+ *Folder count*: **107**
|
||||||
|
|
||||||
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).
|
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# Component Builder (2.3.7)
|
# Component Builder (2.3.8)
|
||||||
|
|
||||||
This is a [Joomla 3.x](http://www.joomla.org/) component.
|
This is a [Joomla 3.x](http://www.joomla.org/) component.
|
||||||
|
|
||||||
@ -8,7 +8,7 @@ The Component Builder for [Joomla](http://www.joomla.org/) that is highly advanc
|
|||||||
|
|
||||||
Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
Whether you're a seasoned [Joomla](http://www.joomla.org/) developer, or have just started, Component Builder will safe you lots of time and money. A real must have!
|
||||||
|
|
||||||
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.3.7) with **ALL** its features and **ALL** concepts totally open-source and free!
|
You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.3.8) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||||
|
|
||||||
Once installed upgrades are quick and easy via the default Joomla upgrade area.
|
Once installed upgrades are quick and easy via the default Joomla upgrade area.
|
||||||
|
|
||||||
@ -104,13 +104,13 @@ Component Builder is mapped as a component in itself on my local development env
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
|
+ *Name*: [Component Builder](http://vdm.bz/component-builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 20th March, 2017
|
+ *Last Build*: 27th March, 2017
|
||||||
+ *Version*: 2.3.7
|
+ *Version*: 2.3.8
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
+ *Line count*: **93648**
|
+ *Line count*: **95888**
|
||||||
+ *File count*: **602**
|
+ *File count*: **609**
|
||||||
+ *Folder count*: **105**
|
+ *Folder count*: **107**
|
||||||
|
|
||||||
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).
|
> This **component** was build with a Joomla [Automated Component Builder](http://vdm.bz/component-builder).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
|
@ -101,7 +101,8 @@
|
|||||||
<action name="help_document.export" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT_DESC" />
|
<action name="help_document.export" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EXPORT_DESC" />
|
||||||
<action name="help_document.import" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT_DESC" />
|
<action name="help_document.import" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_IMPORT_DESC" />
|
||||||
<action name="help_document.submenu" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU_DESC" />
|
<action name="help_document.submenu" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_SUBMENU_DESC" />
|
||||||
<action name="joomla_component.export_component" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_COMPONENT_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_COMPONENT_BUTTON_ACCESS_DESC" />
|
<action name="joomla_component.export_components" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_COMPONENTS_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_COMPONENTS_BUTTON_ACCESS_DESC" />
|
||||||
|
<action name="joomla_component.import_components" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_COMPONENTS_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_COMPONENTS_BUTTON_ACCESS_DESC" />
|
||||||
<action name="joomla_component.access" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS_DESC" />
|
<action name="joomla_component.access" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_ACCESS_DESC" />
|
||||||
<action name="joomla_component.batch" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE_DESC" />
|
<action name="joomla_component.batch" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_BATCH_USE_DESC" />
|
||||||
<action name="joomla_component.dashboard_add" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD_DESC" />
|
<action name="joomla_component.dashboard_add" title="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD" description="COM_COMPONENTBUILDER_JOOMLA_COMPONENTS_DASHBOARD_ADD_DESC" />
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin.css
|
@subpackage admin.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 104 of this MVC
|
@version @update number 108 of this MVC
|
||||||
@build 6th March, 2017
|
@build 24th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_view.css
|
@subpackage admin_view.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 104 of this MVC
|
@version @update number 108 of this MVC
|
||||||
@build 6th March, 2017
|
@build 24th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_views.css
|
@subpackage admin_views.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 46 of this MVC
|
@version @update number 47 of this MVC
|
||||||
@build 3rd March, 2017
|
@build 21st March, 2017
|
||||||
@created 1st February, 2017
|
@created 1st February, 2017
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage compiler.css
|
@subpackage compiler.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage dashboard.css
|
@subpackage dashboard.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 132 of this MVC
|
@version @update number 182 of this MVC
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 6th May, 2015
|
@created 6th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage joomla_component.css
|
@subpackage joomla_component.css
|
||||||
|
@ -9,8 +9,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 132 of this MVC
|
@version @update number 182 of this MVC
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 6th May, 2015
|
@created 6th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage joomla_components.css
|
@subpackage joomla_components.css
|
||||||
|
@ -34,6 +34,11 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
*/
|
*/
|
||||||
class ###Component###ModelImport extends JModelLegacy
|
class ###Component###ModelImport extends JModelLegacy
|
||||||
{
|
{
|
||||||
|
// set uploading values
|
||||||
|
protected $use_streams = false;
|
||||||
|
protected $allow_unsafe = false;
|
||||||
|
protected $safeFileOptions = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var object JTable object
|
* @var object JTable object
|
||||||
*/
|
*/
|
||||||
@ -75,10 +80,6 @@ class ###Component###ModelImport extends JModelLegacy
|
|||||||
// Recall the 'Import from Directory' path.
|
// Recall the 'Import from Directory' path.
|
||||||
$path = $app->getUserStateFromRequest($this->_context . '.import_directory', 'import_directory', $app->get('tmp_path'));
|
$path = $app->getUserStateFromRequest($this->_context . '.import_directory', 'import_directory', $app->get('tmp_path'));
|
||||||
$this->setState('import.directory', $path);
|
$this->setState('import.directory', $path);
|
||||||
// set uploading values
|
|
||||||
$this->use_streams = false;
|
|
||||||
$this->allow_unsafe = false;
|
|
||||||
$this->safeFileOptions = array();
|
|
||||||
parent::populateState();
|
parent::populateState();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -285,16 +286,11 @@ class ###Component###ModelImport extends JModelLegacy
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check the extention
|
// check the extention
|
||||||
switch(strtolower(pathinfo($p_dir, PATHINFO_EXTENSION))){
|
if(!$this->checkExtension($p_dir))
|
||||||
case 'xls':
|
{
|
||||||
case 'ods':
|
// set error message
|
||||||
case 'csv':
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
$app->enqueueMessage(JText::_('COM_###COMPONENT###_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
|
$app->enqueueMessage(JText::_('COM_###COMPONENT###_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
|
||||||
return false;
|
return false;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$package['packagename'] = null;
|
$package['packagename'] = null;
|
||||||
@ -357,18 +353,12 @@ class ###Component###ModelImport extends JModelLegacy
|
|||||||
$archivename = JPath::clean($archivename);
|
$archivename = JPath::clean($archivename);
|
||||||
|
|
||||||
// check the extention
|
// check the extention
|
||||||
switch(strtolower(pathinfo($archivename, PATHINFO_EXTENSION))){
|
if(!$this->checkExtension($archivename))
|
||||||
case 'xls':
|
{
|
||||||
case 'ods':
|
|
||||||
case 'csv':
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
// Cleanup the import files
|
// Cleanup the import files
|
||||||
$this->remove($archivename);
|
$this->remove($archivename);
|
||||||
$app->enqueueMessage(JText::_('COM_###COMPONENT###_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
|
$app->enqueueMessage(JText::_('COM_###COMPONENT###_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
|
||||||
return false;
|
return false;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$config = JFactory::getConfig();
|
$config = JFactory::getConfig();
|
||||||
@ -384,6 +374,28 @@ class ###Component###ModelImport extends JModelLegacy
|
|||||||
return $check;
|
return $check;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check the extension
|
||||||
|
*
|
||||||
|
* @param string $file Name of the uploaded file
|
||||||
|
*
|
||||||
|
* @return boolean True on success
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected function checkExtension($file)
|
||||||
|
{
|
||||||
|
// check the extention
|
||||||
|
switch(strtolower(pathinfo($file, PATHINFO_EXTENSION)))
|
||||||
|
{
|
||||||
|
case 'xls':
|
||||||
|
case 'ods':
|
||||||
|
case 'csv':
|
||||||
|
return true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clean up temporary uploaded spreadsheet
|
* Clean up temporary uploaded spreadsheet
|
||||||
*
|
*
|
||||||
|
@ -34,6 +34,11 @@ defined('_JEXEC') or die('Restricted access');
|
|||||||
*/
|
*/
|
||||||
class ###Component###Model###View### extends JModelLegacy
|
class ###Component###Model###View### extends JModelLegacy
|
||||||
{
|
{
|
||||||
|
// set uploading values
|
||||||
|
protected $use_streams = false;
|
||||||
|
protected $allow_unsafe = false;
|
||||||
|
protected $safeFileOptions = array();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var object JTable object
|
* @var object JTable object
|
||||||
*/
|
*/
|
||||||
@ -75,10 +80,6 @@ class ###Component###Model###View### extends JModelLegacy
|
|||||||
// Recall the 'Import from Directory' path.
|
// Recall the 'Import from Directory' path.
|
||||||
$path = $app->getUserStateFromRequest($this->_context . '.import_directory', 'import_directory', $app->get('tmp_path'));
|
$path = $app->getUserStateFromRequest($this->_context . '.import_directory', 'import_directory', $app->get('tmp_path'));
|
||||||
$this->setState('import.directory', $path);
|
$this->setState('import.directory', $path);
|
||||||
// set uploading values
|
|
||||||
$this->use_streams = false;
|
|
||||||
$this->allow_unsafe = false;
|
|
||||||
$this->safeFileOptions = array();
|
|
||||||
parent::populateState();
|
parent::populateState();
|
||||||
}
|
}
|
||||||
###IMPORT_METHOD_CUSTOM###
|
###IMPORT_METHOD_CUSTOM###
|
||||||
@ -175,16 +176,11 @@ class ###Component###Model###View### extends JModelLegacy
|
|||||||
}
|
}
|
||||||
|
|
||||||
// check the extention
|
// check the extention
|
||||||
switch(strtolower(pathinfo($p_dir, PATHINFO_EXTENSION))){
|
if(!$this->checkExtension($p_dir))
|
||||||
case 'xls':
|
{
|
||||||
case 'ods':
|
// set error message
|
||||||
case 'csv':
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
$app->enqueueMessage(JText::_('COM_###COMPONENT###_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
|
$app->enqueueMessage(JText::_('COM_###COMPONENT###_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
|
||||||
return false;
|
return false;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$package['packagename'] = null;
|
$package['packagename'] = null;
|
||||||
@ -247,18 +243,12 @@ class ###Component###Model###View### extends JModelLegacy
|
|||||||
$archivename = JPath::clean($archivename);
|
$archivename = JPath::clean($archivename);
|
||||||
|
|
||||||
// check the extention
|
// check the extention
|
||||||
switch(strtolower(pathinfo($archivename, PATHINFO_EXTENSION))){
|
if(!$this->checkExtension($archivename))
|
||||||
case 'xls':
|
{
|
||||||
case 'ods':
|
|
||||||
case 'csv':
|
|
||||||
break;
|
|
||||||
|
|
||||||
default:
|
|
||||||
// Cleanup the import files
|
// Cleanup the import files
|
||||||
$this->remove($archivename);
|
$this->remove($archivename);
|
||||||
$app->enqueueMessage(JText::_('COM_###COMPONENT###_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
|
$app->enqueueMessage(JText::_('COM_###COMPONENT###_IMPORT_MSG_DOES_NOT_HAVE_A_VALID_FILE_TYPE'), 'warning');
|
||||||
return false;
|
return false;
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$config = JFactory::getConfig();
|
$config = JFactory::getConfig();
|
||||||
@ -273,6 +263,7 @@ class ###Component###Model###View### extends JModelLegacy
|
|||||||
|
|
||||||
return $check;
|
return $check;
|
||||||
}
|
}
|
||||||
|
###IMPORT_EXT_METHOD_CUSTOM###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Clean up temporary uploaded spreadsheet
|
* Clean up temporary uploaded spreadsheet
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage componentbuilder.php
|
@subpackage componentbuilder.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage controller.php
|
@subpackage controller.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 104 of this MVC
|
@version @update number 108 of this MVC
|
||||||
@build 6th March, 2017
|
@build 24th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_view.php
|
@subpackage admin_view.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 104 of this MVC
|
@version @update number 108 of this MVC
|
||||||
@build 6th March, 2017
|
@build 24th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage admin_views.php
|
@subpackage admin_views.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage ajax.json.php
|
@subpackage ajax.json.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 46 of this MVC
|
@version @update number 47 of this MVC
|
||||||
@build 3rd March, 2017
|
@build 21st March, 2017
|
||||||
@created 1st February, 2017
|
@created 1st February, 2017
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage compiler.php
|
@subpackage compiler.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage componentbuilder.php
|
@subpackage componentbuilder.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage help.php
|
@subpackage help.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage import.php
|
@subpackage import.php
|
||||||
|
67
admin/controllers/import_joomla_components.php
Normal file
67
admin/controllers/import_joomla_components.php
Normal file
@ -0,0 +1,67 @@
|
|||||||
|
<?php
|
||||||
|
/*--------------------------------------------------------------------------------------------------------| www.vdm.io |------/
|
||||||
|
__ __ _ _____ _ _ __ __ _ _ _
|
||||||
|
\ \ / / | | | __ \ | | | | | \/ | | | | | | |
|
||||||
|
\ \ / /_ _ ___| |_ | | | | _____ _____| | ___ _ __ _ __ ___ ___ _ __ | |_ | \ / | ___| |_| |__ ___ __| |
|
||||||
|
\ \/ / _` / __| __| | | | |/ _ \ \ / / _ \ |/ _ \| '_ \| '_ ` _ \ / _ \ '_ \| __| | |\/| |/ _ \ __| '_ \ / _ \ / _` |
|
||||||
|
\ / (_| \__ \ |_ | |__| | __/\ V / __/ | (_) | |_) | | | | | | __/ | | | |_ | | | | __/ |_| | | | (_) | (_| |
|
||||||
|
\/ \__,_|___/\__| |_____/ \___| \_/ \___|_|\___/| .__/|_| |_| |_|\___|_| |_|\__| |_| |_|\___|\__|_| |_|\___/ \__,_|
|
||||||
|
| |
|
||||||
|
|_|
|
||||||
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
|
@version 2.3.8
|
||||||
|
@build 27th March, 2017
|
||||||
|
@created 30th April, 2015
|
||||||
|
@package Component Builder
|
||||||
|
@subpackage import_joomla_components.php
|
||||||
|
@author Llewellyn van der Merwe <http://vdm.bz/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');
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Componentbuilder Import_joomla_components Controller
|
||||||
|
*/
|
||||||
|
class ComponentbuilderControllerImport_joomla_components extends JControllerLegacy
|
||||||
|
{
|
||||||
|
/**
|
||||||
|
* Import an spreadsheet.
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
|
public function import()
|
||||||
|
{
|
||||||
|
// Check for request forgeries
|
||||||
|
JSession::checkToken() or jexit(JText::_('JINVALID_TOKEN'));
|
||||||
|
|
||||||
|
$model = $this->getModel('Import_joomla_components');
|
||||||
|
if ($model->import())
|
||||||
|
{
|
||||||
|
$cache = JFactory::getCache('mod_menu');
|
||||||
|
$cache->clean();
|
||||||
|
// TODO: Reset the users acl here as well to kill off any missing bits
|
||||||
|
}
|
||||||
|
|
||||||
|
$app = JFactory::getApplication();
|
||||||
|
$redirect_url = $app->getUserState('com_componentbuilder.redirect_url');
|
||||||
|
if (empty($redirect_url))
|
||||||
|
{
|
||||||
|
$redirect_url = JRoute::_('index.php?option=com_componentbuilder&view=import_joomla_components', false);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// wipe out the user state when we're going to redirect
|
||||||
|
$app->setUserState('com_componentbuilder.redirect_url', '');
|
||||||
|
$app->setUserState('com_componentbuilder.message', '');
|
||||||
|
$app->setUserState('com_componentbuilder.extension_message', '');
|
||||||
|
}
|
||||||
|
$this->setRedirect($redirect_url);
|
||||||
|
}
|
||||||
|
}
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 132 of this MVC
|
@version @update number 182 of this MVC
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 6th May, 2015
|
@created 6th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage joomla_component.php
|
@subpackage joomla_component.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version @update number 132 of this MVC
|
@version @update number 182 of this MVC
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 6th May, 2015
|
@created 6th May, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage joomla_components.php
|
@subpackage joomla_components.php
|
||||||
@ -99,7 +99,7 @@ class ComponentbuilderControllerJoomla_components extends JControllerAdmin
|
|||||||
$session->set('dataType_VDM_IMPORTINTO', 'joomla_component');
|
$session->set('dataType_VDM_IMPORTINTO', 'joomla_component');
|
||||||
// Redirect to import view.
|
// Redirect to import view.
|
||||||
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_JOOMLA_COMPONENTS');
|
$message = JText::_('COM_COMPONENTBUILDER_IMPORT_SELECT_FILE_FOR_JOOMLA_COMPONENTS');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import', false), $message);
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import_joomla_components', false), $message);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -109,6 +109,28 @@ class ComponentbuilderControllerJoomla_components extends JControllerAdmin
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function smartImport()
|
||||||
|
{
|
||||||
|
// Check for request forgeries
|
||||||
|
JSession::checkToken() or die(JText::_('JINVALID_TOKEN'));
|
||||||
|
// check if import is allowed for this user.
|
||||||
|
$user = JFactory::getUser();
|
||||||
|
if ($user->authorise('joomla_component.import', 'com_componentbuilder') && $user->authorise('core.import', 'com_componentbuilder'))
|
||||||
|
{
|
||||||
|
$session = JFactory::getSession();
|
||||||
|
$session->set('backto_VDM_IMPORT', 'joomla_components');
|
||||||
|
$session->set('dataType_VDM_IMPORTINTO', 'smart_package');
|
||||||
|
// Redirect to import view.
|
||||||
|
$message = JText::_('COM_COMPONENTBUILDER_YOU_CAN_NOW_SELECT_THE_COMPONENT_BZIPB_PACKAGE_YOU_WOULD_LIKE_TO_IMPORTBR_SMALLPLEASE_NOTE_THAT_SMART_COMPONENT_IMPORT_ONLY_WORKS_WITH_THE_FOLLOWING_FORMAT_BZIPBSMALL');
|
||||||
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=import_joomla_components&target=smartPackage', false), $message);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
// Redirect to the list screen with error.
|
||||||
|
$message = JText::_('COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_IMPORT_A_COMPONENT_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP');
|
||||||
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false), $message, 'error');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
public function smartExport()
|
public function smartExport()
|
||||||
{
|
{
|
||||||
// Check for request forgeries
|
// Check for request forgeries
|
||||||
@ -122,6 +144,14 @@ class ComponentbuilderControllerJoomla_components extends JControllerAdmin
|
|||||||
$pks = $input->post->get('cid', array(), 'array');
|
$pks = $input->post->get('cid', array(), 'array');
|
||||||
// Sanitize the input
|
// Sanitize the input
|
||||||
JArrayHelper::toInteger($pks);
|
JArrayHelper::toInteger($pks);
|
||||||
|
// check if there is any selections
|
||||||
|
if (!ComponentbuilderHelper::checkArray($pks))
|
||||||
|
{
|
||||||
|
// Redirect to the list screen with error.
|
||||||
|
$message = JText::_('COM_COMPONENTBUILDER_NO_COMPONENTS_WERE_SELECTED_PLEASE_MAKE_A_SELECTION_AND_TRY_AGAIN');
|
||||||
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false), $message, 'error');
|
||||||
|
return;
|
||||||
|
}
|
||||||
// Get the model
|
// Get the model
|
||||||
$model = $this->getModel('Joomla_components');
|
$model = $this->getModel('Joomla_components');
|
||||||
// set auto loader
|
// set auto loader
|
||||||
@ -129,7 +159,7 @@ class ComponentbuilderControllerJoomla_components extends JControllerAdmin
|
|||||||
// get the data to export
|
// get the data to export
|
||||||
if ($model->getSmartExport($pks))
|
if ($model->getSmartExport($pks))
|
||||||
{
|
{
|
||||||
// Redirect to the list screen with error.
|
// Redirect to the list screen with success.
|
||||||
$message = array();
|
$message = array();
|
||||||
$message[] = '<h1>' . JText::_('COM_COMPONENTBUILDER_EXPORT_COMPLETED') . '</h1>';
|
$message[] = '<h1>' . JText::_('COM_COMPONENTBUILDER_EXPORT_COMPLETED') . '</h1>';
|
||||||
$message[] = '<p>' . JText::sprintf('COM_COMPONENTBUILDER_PATH_TO_THE_ZIPPED_PACKAGE_IS_CODESCODE', $model->zipPath) . '</p>';
|
$message[] = '<p>' . JText::sprintf('COM_COMPONENTBUILDER_PATH_TO_THE_ZIPPED_PACKAGE_IS_CODESCODE', $model->zipPath) . '</p>';
|
||||||
@ -151,7 +181,7 @@ class ComponentbuilderControllerJoomla_components extends JControllerAdmin
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Redirect to the list screen with error.
|
// Redirect to the list screen with error.
|
||||||
$message = JText::_('COM_COMPONENTBUILDER_EXPORT_FAILED');
|
$message = JText::_('COM_COMPONENTBUILDER_EXPORT_FAILED_PLEASE_TRY_AGAIN_LATTER');
|
||||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false), $message, 'error');
|
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder&view=joomla_components', false), $message, 'error');
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -814,7 +814,7 @@ class Get
|
|||||||
{
|
{
|
||||||
foreach ($addScriptTypes as $scriptType)
|
foreach ($addScriptTypes as $scriptType)
|
||||||
{
|
{
|
||||||
if (isset($component->{'add_'.$scriptMethod.'_'.$scriptType}) && $component->{'add_'.$scriptMethod.'_'.$scriptType} == 1)
|
if (isset($component->{'add_'.$scriptMethod.'_'.$scriptType}) && $component->{'add_'.$scriptMethod.'_'.$scriptType} == 1 && ComponentbuilderHelper::checkString($component->{$scriptMethod.'_'.$scriptType}))
|
||||||
{
|
{
|
||||||
$this->customScriptBuilder[$scriptMethod][$scriptType] = $this->setDynamicValues(base64_decode($component->{$scriptMethod.'_'.$scriptType}));
|
$this->customScriptBuilder[$scriptMethod][$scriptType] = $this->setDynamicValues(base64_decode($component->{$scriptMethod.'_'.$scriptType}));
|
||||||
}
|
}
|
||||||
@ -826,7 +826,7 @@ class Get
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
// add_php_helper
|
// add_php_helper
|
||||||
if ($component->add_php_helper_admin == 1)
|
if ($component->add_php_helper_admin == 1 && ComponentbuilderHelper::checkString($component->php_helper_admin))
|
||||||
{
|
{
|
||||||
$this->lang = 'admin';
|
$this->lang = 'admin';
|
||||||
$this->customScriptBuilder['component_php_helper_admin'] = PHP_EOL.PHP_EOL.$this->setDynamicValues(base64_decode($component->php_helper_admin));
|
$this->customScriptBuilder['component_php_helper_admin'] = PHP_EOL.PHP_EOL.$this->setDynamicValues(base64_decode($component->php_helper_admin));
|
||||||
@ -837,7 +837,7 @@ class Get
|
|||||||
}
|
}
|
||||||
unset($component->php_helper);
|
unset($component->php_helper);
|
||||||
// add_admin_event
|
// add_admin_event
|
||||||
if ($component->add_admin_event == 1)
|
if ($component->add_admin_event == 1 && ComponentbuilderHelper::checkString($component->php_admin_event))
|
||||||
{
|
{
|
||||||
$this->lang = 'admin';
|
$this->lang = 'admin';
|
||||||
$this->customScriptBuilder['component_php_admin_event'] = $this->setDynamicValues(base64_decode($component->php_admin_event));
|
$this->customScriptBuilder['component_php_admin_event'] = $this->setDynamicValues(base64_decode($component->php_admin_event));
|
||||||
@ -848,7 +848,7 @@ class Get
|
|||||||
}
|
}
|
||||||
unset($component->php_admin_event);
|
unset($component->php_admin_event);
|
||||||
// add_php_helper_both
|
// add_php_helper_both
|
||||||
if ($component->add_php_helper_both == 1)
|
if ($component->add_php_helper_both == 1 && ComponentbuilderHelper::checkString($component->php_helper_both))
|
||||||
{
|
{
|
||||||
$this->lang = 'both';
|
$this->lang = 'both';
|
||||||
$this->customScriptBuilder['component_php_helper_both'] = PHP_EOL.PHP_EOL.$this->setDynamicValues(base64_decode($component->php_helper_both));
|
$this->customScriptBuilder['component_php_helper_both'] = PHP_EOL.PHP_EOL.$this->setDynamicValues(base64_decode($component->php_helper_both));
|
||||||
@ -858,7 +858,7 @@ class Get
|
|||||||
$this->customScriptBuilder['component_php_helper_both'] = '';
|
$this->customScriptBuilder['component_php_helper_both'] = '';
|
||||||
}
|
}
|
||||||
// add_php_helper_site
|
// add_php_helper_site
|
||||||
if ($component->add_php_helper_site == 1)
|
if ($component->add_php_helper_site == 1 && ComponentbuilderHelper::checkString($component->php_helper_site))
|
||||||
{
|
{
|
||||||
$this->lang = 'site';
|
$this->lang = 'site';
|
||||||
$this->customScriptBuilder['component_php_helper_site'] = PHP_EOL.PHP_EOL.$this->setDynamicValues(base64_decode($component->php_helper_site));
|
$this->customScriptBuilder['component_php_helper_site'] = PHP_EOL.PHP_EOL.$this->setDynamicValues(base64_decode($component->php_helper_site));
|
||||||
@ -869,7 +869,7 @@ class Get
|
|||||||
}
|
}
|
||||||
unset($component->php_helper);
|
unset($component->php_helper);
|
||||||
// add_site_event
|
// add_site_event
|
||||||
if ($component->add_site_event == 1)
|
if ($component->add_site_event == 1 && ComponentbuilderHelper::checkString($component->php_site_event))
|
||||||
{
|
{
|
||||||
$this->lang = 'site';
|
$this->lang = 'site';
|
||||||
$this->customScriptBuilder['component_php_site_event'] = $this->setDynamicValues(base64_decode($component->php_site_event));
|
$this->customScriptBuilder['component_php_site_event'] = $this->setDynamicValues(base64_decode($component->php_site_event));
|
||||||
@ -906,7 +906,7 @@ class Get
|
|||||||
}
|
}
|
||||||
|
|
||||||
// dashboard methods
|
// dashboard methods
|
||||||
if ($component->add_php_dashboard_methods)
|
if ($component->add_php_dashboard_methods && ComponentbuilderHelper::checkString($component->php_dashboard_methods))
|
||||||
{
|
{
|
||||||
$nowLang = $this->lang;
|
$nowLang = $this->lang;
|
||||||
$this->lang = 'admin';
|
$this->lang = 'admin';
|
||||||
@ -1230,7 +1230,7 @@ class Get
|
|||||||
$addArrayJ = array('javascript_view_file','javascript_view_footer','javascript_views_file','javascript_views_footer');
|
$addArrayJ = array('javascript_view_file','javascript_view_footer','javascript_views_file','javascript_views_footer');
|
||||||
foreach ($addArrayJ as $scripter)
|
foreach ($addArrayJ as $scripter)
|
||||||
{
|
{
|
||||||
if (isset($view->{'add_'.$scripter}) && $view->{'add_'.$scripter} == 1)
|
if (isset($view->{'add_'.$scripter}) && $view->{'add_'.$scripter} == 1 && ComponentbuilderHelper::checkString($view->$scripter))
|
||||||
{
|
{
|
||||||
$view->$scripter = $this->setDynamicValues(base64_decode($view->$scripter));
|
$view->$scripter = $this->setDynamicValues(base64_decode($view->$scripter));
|
||||||
$scripter_target = str_replace('javascript_', '', $scripter);
|
$scripter_target = str_replace('javascript_', '', $scripter);
|
||||||
@ -1316,7 +1316,7 @@ class Get
|
|||||||
// set custom import scripts
|
// set custom import scripts
|
||||||
if (isset($view->add_custom_import) && $view->add_custom_import == 1)
|
if (isset($view->add_custom_import) && $view->add_custom_import == 1)
|
||||||
{
|
{
|
||||||
$addImportArray = array('php_import_display','php_import','php_import_setdata','php_import_save','html_import_view');
|
$addImportArray = array('php_import_ext','php_import_display','php_import','php_import_setdata','php_import_save','html_import_view');
|
||||||
foreach ($addImportArray as $importScripter)
|
foreach ($addImportArray as $importScripter)
|
||||||
{
|
{
|
||||||
if (isset($view->$importScripter) && strlen($view->$importScripter) > 0)
|
if (isset($view->$importScripter) && strlen($view->$importScripter) > 0)
|
||||||
@ -1324,6 +1324,11 @@ class Get
|
|||||||
$this->customScriptBuilder[$importScripter]['import_'.$name_list] = $this->setDynamicValues(base64_decode($view->$importScripter));
|
$this->customScriptBuilder[$importScripter]['import_'.$name_list] = $this->setDynamicValues(base64_decode($view->$importScripter));
|
||||||
unset($view->$importScripter);
|
unset($view->$importScripter);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// load the default
|
||||||
|
$this->customScriptBuilder[$importScripter]['import_'.$name_list] = ComponentbuilderHelper::getImportScripts($importScripter, true);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1472,7 +1477,7 @@ class Get
|
|||||||
$addArray = array('php_view','php_jview','php_jview_display','php_document','js_document','css_document','css');
|
$addArray = array('php_view','php_jview','php_jview_display','php_document','js_document','css_document','css');
|
||||||
foreach ($addArray as $scripter)
|
foreach ($addArray as $scripter)
|
||||||
{
|
{
|
||||||
if (isset($view->{'add_'.$scripter}) && $view->{'add_'.$scripter} == 1)
|
if (isset($view->{'add_'.$scripter}) && $view->{'add_'.$scripter} == 1 && ComponentbuilderHelper::checkString($view->$scripter))
|
||||||
{
|
{
|
||||||
$view->$scripter = $this->setDynamicValues(base64_decode($view->$scripter));
|
$view->$scripter = $this->setDynamicValues(base64_decode($view->$scripter));
|
||||||
// set uikit to views
|
// set uikit to views
|
||||||
@ -1661,7 +1666,7 @@ class Get
|
|||||||
if (ComponentbuilderHelper::checkString($name_single) && !isset($this->customFieldScript[$name_single][$id]))
|
if (ComponentbuilderHelper::checkString($name_single) && !isset($this->customFieldScript[$name_single][$id]))
|
||||||
{
|
{
|
||||||
// add_javascript_view_footer
|
// add_javascript_view_footer
|
||||||
if ($this->_fieldData[$id]->add_javascript_view_footer == 1)
|
if ($this->_fieldData[$id]->add_javascript_view_footer == 1 && ComponentbuilderHelper::checkString($this->_fieldData[$id]->javascript_view_footer))
|
||||||
{
|
{
|
||||||
if(!isset($this->customScriptBuilder['view_footer']))
|
if(!isset($this->customScriptBuilder['view_footer']))
|
||||||
{
|
{
|
||||||
@ -1719,7 +1724,7 @@ class Get
|
|||||||
if (ComponentbuilderHelper::checkString($name_list) && !isset($this->customFieldScript[$name_list][$id]))
|
if (ComponentbuilderHelper::checkString($name_list) && !isset($this->customFieldScript[$name_list][$id]))
|
||||||
{
|
{
|
||||||
// add_javascript_views_footer
|
// add_javascript_views_footer
|
||||||
if ($this->_fieldData[$id]->add_javascript_views_footer == 1)
|
if ($this->_fieldData[$id]->add_javascript_views_footer == 1 && ComponentbuilderHelper::checkString($this->_fieldData[$id]->javascript_views_footer))
|
||||||
{
|
{
|
||||||
if(!isset($this->customScriptBuilder['views_footer']))
|
if(!isset($this->customScriptBuilder['views_footer']))
|
||||||
{
|
{
|
||||||
@ -1812,12 +1817,12 @@ class Get
|
|||||||
foreach ($results as $nr => &$result)
|
foreach ($results as $nr => &$result)
|
||||||
{
|
{
|
||||||
// add calculations if set
|
// add calculations if set
|
||||||
if($result->addcalculation == 1)
|
if($result->addcalculation == 1 && ComponentbuilderHelper::checkString($result->php_calculation))
|
||||||
{
|
{
|
||||||
$result->php_calculation = base64_decode($result->php_calculation);
|
$result->php_calculation = $this->setDynamicValues(base64_decode($result->php_calculation));
|
||||||
}
|
}
|
||||||
// add php custom scripting (php_before_getitem)
|
// add php custom scripting (php_before_getitem)
|
||||||
if($result->add_php_before_getitem == 1)
|
if($result->add_php_before_getitem == 1 && ComponentbuilderHelper::checkString($result->php_before_getitem))
|
||||||
{
|
{
|
||||||
if (!isset($this->customScriptBuilder[$this->target.'_php_before_getitem'][$view_code]))
|
if (!isset($this->customScriptBuilder[$this->target.'_php_before_getitem'][$view_code]))
|
||||||
{
|
{
|
||||||
@ -1828,7 +1833,7 @@ class Get
|
|||||||
unset($result->php_before_getitem);
|
unset($result->php_before_getitem);
|
||||||
}
|
}
|
||||||
// add php custom scripting (php_after_getitem)
|
// add php custom scripting (php_after_getitem)
|
||||||
if($result->add_php_after_getitem == 1)
|
if($result->add_php_after_getitem == 1 && ComponentbuilderHelper::checkString($result->php_after_getitem))
|
||||||
{
|
{
|
||||||
if (!isset($this->customScriptBuilder[$this->target.'_php_after_getitem'][$view_code]))
|
if (!isset($this->customScriptBuilder[$this->target.'_php_after_getitem'][$view_code]))
|
||||||
{
|
{
|
||||||
@ -1839,7 +1844,7 @@ class Get
|
|||||||
unset($result->php_after_getitem);
|
unset($result->php_after_getitem);
|
||||||
}
|
}
|
||||||
// add php custom scripting (php_before_getitems)
|
// add php custom scripting (php_before_getitems)
|
||||||
if($result->add_php_before_getitems == 1)
|
if($result->add_php_before_getitems == 1 && ComponentbuilderHelper::checkString($result->php_before_getitems))
|
||||||
{
|
{
|
||||||
if (!isset($this->customScriptBuilder[$this->target.'_php_before_getitems'][$view_code]))
|
if (!isset($this->customScriptBuilder[$this->target.'_php_before_getitems'][$view_code]))
|
||||||
{
|
{
|
||||||
@ -1850,7 +1855,7 @@ class Get
|
|||||||
unset($result->php_before_getitems);
|
unset($result->php_before_getitems);
|
||||||
}
|
}
|
||||||
// add php custom scripting (php_after_getitems)
|
// add php custom scripting (php_after_getitems)
|
||||||
if($result->add_php_after_getitems == 1)
|
if($result->add_php_after_getitems == 1 && ComponentbuilderHelper::checkString($result->php_after_getitems))
|
||||||
{
|
{
|
||||||
if (!isset($this->customScriptBuilder[$this->target.'_php_after_getitems'][$view_code]))
|
if (!isset($this->customScriptBuilder[$this->target.'_php_after_getitems'][$view_code]))
|
||||||
{
|
{
|
||||||
@ -1861,7 +1866,7 @@ class Get
|
|||||||
unset($result->php_after_getitems);
|
unset($result->php_after_getitems);
|
||||||
}
|
}
|
||||||
// add php custom scripting (php_getlistquery)
|
// add php custom scripting (php_getlistquery)
|
||||||
if($result->add_php_getlistquery == 1)
|
if($result->add_php_getlistquery == 1 && ComponentbuilderHelper::checkString($result->php_getlistquery))
|
||||||
{
|
{
|
||||||
if (!isset($this->customScriptBuilder[$this->target.'_php_getlistquery'][$view_code]))
|
if (!isset($this->customScriptBuilder[$this->target.'_php_getlistquery'][$view_code]))
|
||||||
{
|
{
|
||||||
@ -2227,7 +2232,7 @@ class Get
|
|||||||
if ($k_ey == $n_ame || $key == $name)
|
if ($k_ey == $n_ame || $key == $name)
|
||||||
{
|
{
|
||||||
$php_view = '';
|
$php_view = '';
|
||||||
if ($row->add_php_view == 1)
|
if ($row->add_php_view == 1 && ComponentbuilderHelper::checkString($row->php_view))
|
||||||
{
|
{
|
||||||
$php_view = $this->setDynamicValues(base64_decode($row->php_view));
|
$php_view = $this->setDynamicValues(base64_decode($row->php_view));
|
||||||
}
|
}
|
||||||
|
@ -7382,8 +7382,10 @@ class Interpretation extends Fields
|
|||||||
{
|
{
|
||||||
// setup Ajax files
|
// setup Ajax files
|
||||||
$target = array('admin' => 'import_'.$viewName_list);
|
$target = array('admin' => 'import_'.$viewName_list);
|
||||||
$this->buildDynamique($target,'customimport');
|
$this->buildDynamique($target, 'customimport');
|
||||||
// load the custom script to the files
|
// load the custom script to the files
|
||||||
|
// ###IMPORT_EXT_METHOD_CUSTOM### <<<DYNAMIC>>>
|
||||||
|
$this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_EXT_METHOD_CUSTOM###'] = $this->getCustomScriptBuilder('php_import_ext', 'import_'.$viewName_list, PHP_EOL, null, true);
|
||||||
// ###IMPORT_DISPLAY_METHOD_CUSTOM### <<<DYNAMIC>>>
|
// ###IMPORT_DISPLAY_METHOD_CUSTOM### <<<DYNAMIC>>>
|
||||||
$this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_DISPLAY_METHOD_CUSTOM###'] = $this->getCustomScriptBuilder('php_import_display', 'import_'.$viewName_list, PHP_EOL, null, true);
|
$this->fileContentDynamic['import_'.$viewName_list]['###IMPORT_DISPLAY_METHOD_CUSTOM###'] = $this->getCustomScriptBuilder('php_import_display', 'import_'.$viewName_list, PHP_EOL, null, true);
|
||||||
// ###IMPORT_SETDATE_METHOD_CUSTOM### <<<DYNAMIC>>>
|
// ###IMPORT_SETDATE_METHOD_CUSTOM### <<<DYNAMIC>>>
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage componentbuilder.php
|
@subpackage componentbuilder.php
|
||||||
@ -393,6 +393,679 @@ abstract class ComponentbuilderHelper
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static function getImportScripts($type, $fieldName = false)
|
||||||
|
{
|
||||||
|
// if field name is pased the convert to type
|
||||||
|
if ($fieldName)
|
||||||
|
{
|
||||||
|
$fieldNames = array(
|
||||||
|
'php_import_display' => 'display',
|
||||||
|
'php_import_setdata' => 'setdata',
|
||||||
|
'php_import_save' => 'save',
|
||||||
|
'html_import_view' => 'view',
|
||||||
|
'php_import' => 'import',
|
||||||
|
'php_import_ext' => 'ext'
|
||||||
|
);
|
||||||
|
// first check if the field name is found
|
||||||
|
if (isset($fieldNames[$type]))
|
||||||
|
{
|
||||||
|
$type = $fieldNames[$type];
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return '';
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$script = array();
|
||||||
|
if ('display' === $type)
|
||||||
|
{
|
||||||
|
// set the display script
|
||||||
|
$script['display'][] = "\tprotected \$headerList;";
|
||||||
|
$script['display'][] = "\tprotected \$hasPackage = false;";
|
||||||
|
$script['display'][] = "\tprotected \$headers;";
|
||||||
|
$script['display'][] = "\tprotected \$hasHeader = 0;";
|
||||||
|
$script['display'][] = "\tprotected \$dataType;";
|
||||||
|
$script['display'][] = "\n\tpublic function display(\$tpl = null)";
|
||||||
|
$script['display'][] = "\t{";
|
||||||
|
$script['display'][] = "\t\tif (\$this->getLayout() !== 'modal')";
|
||||||
|
$script['display'][] = "\t\t{";
|
||||||
|
$script['display'][] = "\t\t\t// Include helper submenu";
|
||||||
|
$script['display'][] = "\t\t\t###-#-#-Component###Helper::addSubmenu('import');";
|
||||||
|
$script['display'][] = "\t\t}";
|
||||||
|
$script['display'][] = "\n\t\t// Check for errors.";
|
||||||
|
$script['display'][] = "\t\tif (count(\$errors = \$this->get('Errors'))){";
|
||||||
|
$script['display'][] = "\t\t\tJError::raiseError(500, implode('<br />', \$errors));";
|
||||||
|
$script['display'][] = "\t\t\treturn false;";
|
||||||
|
$script['display'][] = "\t\t}";
|
||||||
|
$script['display'][] = "\n\t\t\$paths = new stdClass;";
|
||||||
|
$script['display'][] = "\t\t\$paths->first = '';";
|
||||||
|
$script['display'][] = "\t\t\$state = \$this->get('state');";
|
||||||
|
$script['display'][] = "\n\t\t\$this->paths = &\$paths;";
|
||||||
|
$script['display'][] = "\t\t\$this->state = &\$state;";
|
||||||
|
$script['display'][] = "\t\t// get global action permissions";
|
||||||
|
$script['display'][] = "\t\t\$this->canDo = ###-#-#-Component###Helper::getActions('import');";
|
||||||
|
$script['display'][] = "\n\t\t// We don't need toolbar in the modal window.";
|
||||||
|
$script['display'][] = "\t\tif (\$this->getLayout() !== 'modal')";
|
||||||
|
$script['display'][] = "\t\t{";
|
||||||
|
$script['display'][] = "\t\t\t\$this->addToolbar();";
|
||||||
|
$script['display'][] = "\t\t\t\$this->sidebar = JHtmlSidebar::render();";
|
||||||
|
$script['display'][] = "\t\t}";
|
||||||
|
$script['display'][] = "\n\t\t// get the session object";
|
||||||
|
$script['display'][] = "\t\t\$session = JFactory::getSession();";
|
||||||
|
$script['display'][] = "\t\t// check if it has package";
|
||||||
|
$script['display'][] = "\t\t\$this->hasPackage \t= \$session->get('hasPackage', false);";
|
||||||
|
$script['display'][] = "\t\t\$this->dataType \t= \$session->get('dataType', false);";
|
||||||
|
$script['display'][] = "\t\tif(\$this->hasPackage && \$this->dataType)";
|
||||||
|
$script['display'][] = "\t\t{";
|
||||||
|
$script['display'][] = "\t\t\t\$this->headerList \t= json_decode(\$session->get(\$this->dataType.'_VDM_IMPORTHEADERS', false),true);";
|
||||||
|
$script['display'][] = "\t\t\t\$this->headers \t\t= ###-#-#-Component###Helper::getFileHeaders(\$this->dataType);";
|
||||||
|
$script['display'][] = "\t\t\t// clear the data type";
|
||||||
|
$script['display'][] = "\t\t\t\$session->clear('dataType');";
|
||||||
|
$script['display'][] = "\t\t}";
|
||||||
|
$script['display'][] = "\n\t\t// Display the template";
|
||||||
|
$script['display'][] = "\t\tparent::display(\$tpl);";
|
||||||
|
$script['display'][] = "\t}";
|
||||||
|
}
|
||||||
|
elseif ('setdata' === $type)
|
||||||
|
{
|
||||||
|
// set the setdata script
|
||||||
|
$script['setdata'] = array();
|
||||||
|
$script['setdata'][] = "\t/**";
|
||||||
|
$script['setdata'][] = "\t* Set the data from the spreadsheet to the database";
|
||||||
|
$script['setdata'][] = "\t*";
|
||||||
|
$script['setdata'][] = "\t* @param string \$package Paths to the uploaded package file";
|
||||||
|
$script['setdata'][] = "\t*";
|
||||||
|
$script['setdata'][] = "\t* @return boolean false on failure";
|
||||||
|
$script['setdata'][] = "\t*";
|
||||||
|
$script['setdata'][] = "\t**/";
|
||||||
|
$script['setdata'][] = "\tprotected function setData(\$package,\$table,\$target_headers)";
|
||||||
|
$script['setdata'][] = "\t{";
|
||||||
|
$script['setdata'][] = "\t\tif (###-#-#-Component###Helper::checkArray(\$target_headers))";
|
||||||
|
$script['setdata'][] = "\t\t{";
|
||||||
|
$script['setdata'][] = "\t\t\t// make sure the file is loaded\t\t";
|
||||||
|
$script['setdata'][] = "\t\t\tJLoader::import('PHPExcel', JPATH_COMPONENT_ADMINISTRATOR . '/helpers');";
|
||||||
|
$script['setdata'][] = "\t\t\t\$jinput = JFactory::getApplication()->input;";
|
||||||
|
$script['setdata'][] = "\t\t\tforeach(\$target_headers as \$header)";
|
||||||
|
$script['setdata'][] = "\t\t\t{";
|
||||||
|
$script['setdata'][] = "\t\t\t\t\$data['target_headers'][\$header] = \$jinput->getString(\$header, null);";
|
||||||
|
$script['setdata'][] = "\t\t\t}";
|
||||||
|
$script['setdata'][] = "\t\t\t// set the data";
|
||||||
|
$script['setdata'][] = "\t\t\tif(isset(\$package['dir']))";
|
||||||
|
$script['setdata'][] = "\t\t\t{";
|
||||||
|
$script['setdata'][] = "\t\t\t\t\$inputFileType = PHPExcel_IOFactory::identify(\$package['dir']);";
|
||||||
|
$script['setdata'][] = "\t\t\t\t\$excelReader = PHPExcel_IOFactory::createReader(\$inputFileType);";
|
||||||
|
$script['setdata'][] = "\t\t\t\t\$excelReader->setReadDataOnly(true);";
|
||||||
|
$script['setdata'][] = "\t\t\t\t\$excelObj = \$excelReader->load(\$package['dir']);";
|
||||||
|
$script['setdata'][] = "\t\t\t\t\$data['array'] = \$excelObj->getActiveSheet()->toArray(null, true,true,true);";
|
||||||
|
$script['setdata'][] = "\t\t\t\t\$excelObj->disconnectWorksheets();";
|
||||||
|
$script['setdata'][] = "\t\t\t\tunset(\$excelObj);";
|
||||||
|
$script['setdata'][] = "\t\t\t\treturn \$this->save(\$data,\$table);";
|
||||||
|
$script['setdata'][] = "\t\t\t}";
|
||||||
|
$script['setdata'][] = "\t\t}";
|
||||||
|
$script['setdata'][] = "\t\treturn false;";
|
||||||
|
$script['setdata'][] = "\t}";
|
||||||
|
}
|
||||||
|
elseif ('save' === $type)
|
||||||
|
{
|
||||||
|
$script['save'] = array();
|
||||||
|
$script['save'][] = "\t/**";
|
||||||
|
$script['save'][] = "\t* Save the data from the file to the database";
|
||||||
|
$script['save'][] = "\t*";
|
||||||
|
$script['save'][] = "\t* @param string \$package Paths to the uploaded package file";
|
||||||
|
$script['save'][] = "\t*";
|
||||||
|
$script['save'][] = "\t* @return boolean false on failure";
|
||||||
|
$script['save'][] = "\t*";
|
||||||
|
$script['save'][] = "\t**/";
|
||||||
|
$script['save'][] = "\tprotected function save(\$data,\$table)";
|
||||||
|
$script['save'][] = "\t{";
|
||||||
|
$script['save'][] = "\t\t// import the data if there is any";
|
||||||
|
$script['save'][] = "\t\tif(###-#-#-Component###Helper::checkArray(\$data['array']))";
|
||||||
|
$script['save'][] = "\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t// get user object";
|
||||||
|
$script['save'][] = "\t\t\t\$user \t\t= JFactory::getUser();";
|
||||||
|
$script['save'][] = "\t\t\t// remove header if it has headers";
|
||||||
|
$script['save'][] = "\t\t\t\$id_key \t= \$data['target_headers']['id'];";
|
||||||
|
$script['save'][] = "\t\t\t\$published_key \t= \$data['target_headers']['published'];";
|
||||||
|
$script['save'][] = "\t\t\t\$ordering_key \t= \$data['target_headers']['ordering'];";
|
||||||
|
$script['save'][] = "\t\t\t// get the first array set";
|
||||||
|
$script['save'][] = "\t\t\t\$firstSet = reset(\$data['array']);";
|
||||||
|
$script['save'][] = "";
|
||||||
|
$script['save'][] = "\t\t\t// check if first array is a header array and remove if true";
|
||||||
|
$script['save'][] = "\t\t\tif(\$firstSet[\$id_key] == 'id' || \$firstSet[\$published_key] == 'published' || \$firstSet[\$ordering_key] == 'ordering')";
|
||||||
|
$script['save'][] = "\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\tarray_shift(\$data['array']);";
|
||||||
|
$script['save'][] = "\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t";
|
||||||
|
$script['save'][] = "\t\t\t// make sure there is still values in array and that it was not only headers";
|
||||||
|
$script['save'][] = "\t\t\tif(###-#-#-Component###Helper::checkArray(\$data['array']) && \$user->authorise(\$table.'.import', 'com_###-#-#-component###') && \$user->authorise('core.import', 'com_###-#-#-component###'))";
|
||||||
|
$script['save'][] = "\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t// set target.";
|
||||||
|
$script['save'][] = "\t\t\t\t\$target\t= array_flip(\$data['target_headers']);";
|
||||||
|
$script['save'][] = "\t\t\t\t// Get a db connection.";
|
||||||
|
$script['save'][] = "\t\t\t\t\$db = JFactory::getDbo();";
|
||||||
|
$script['save'][] = "\t\t\t\t// set some defaults";
|
||||||
|
$script['save'][] = "\t\t\t\t\$todayDate\t\t= JFactory::getDate()->toSql();";
|
||||||
|
$script['save'][] = "\t\t\t\t// get global action permissions";
|
||||||
|
$script['save'][] = "\t\t\t\t\$canDo\t\t\t= ###-#-#-Component###Helper::getActions(\$table);";
|
||||||
|
$script['save'][] = "\t\t\t\t\$canEdit\t\t= \$canDo->get('core.edit');";
|
||||||
|
$script['save'][] = "\t\t\t\t\$canState\t\t= \$canDo->get('core.edit.state');";
|
||||||
|
$script['save'][] = "\t\t\t\t\$canCreate\t\t= \$canDo->get('core.create');";
|
||||||
|
$script['save'][] = "\t\t\t\t\$hasAlias\t\t= \$this->getAliasesUsed(\$table);";
|
||||||
|
$script['save'][] = "\t\t\t\t// prosses the data";
|
||||||
|
$script['save'][] = "\t\t\t\tforeach(\$data['array'] as \$row)";
|
||||||
|
$script['save'][] = "\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\$found = false;";
|
||||||
|
$script['save'][] = "\t\t\t\t\tif (isset(\$row[\$id_key]) && is_numeric(\$row[\$id_key]) && \$row[\$id_key] > 0)";
|
||||||
|
$script['save'][] = "\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// raw items import & update!";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$query = \$db->getQuery(true);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$query";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t->select('version')";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t->from(\$db->quoteName('#__###-#-#-component###_'.\$table))";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t->where(\$db->quoteName('id') . ' = '. \$db->quote(\$row[\$id_key]));";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// Reset the query using our newly populated query object.";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$db->setQuery(\$query);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$db->execute();";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$found = \$db->getNumRows();";
|
||||||
|
$script['save'][] = "\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t";
|
||||||
|
$script['save'][] = "\t\t\t\t\tif(\$found && \$canEdit)";
|
||||||
|
$script['save'][] = "\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// update item";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$id \t\t= \$row[\$id_key];";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$version\t= \$db->loadResult();";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// reset all buckets";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$query \t\t= \$db->getQuery(true);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$fields \t= array();";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// Fields to update.";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\tforeach(\$row as \$key => \$cell)";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// ignore column";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('IGNORE' == \$target[\$key])";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// update modified";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('modified_by' == \$target[\$key])";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// update modified";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('modified' == \$target[\$key])";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// update version";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('version' == \$target[\$key])";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$cell = (int) \$version + 1;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// verify publish authority";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('published' == \$target[\$key] && !\$canState)";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// set to update array";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif(in_array(\$key, \$data['target_headers']) && is_numeric(\$cell))";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$fields[] = \$db->quoteName(\$target[\$key]) . ' = ' . \$cell;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\telseif(in_array(\$key, \$data['target_headers']) && is_string(\$cell))";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$fields[] = \$db->quoteName(\$target[\$key]) . ' = ' . \$db->quote(\$cell);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\telseif(in_array(\$key, \$data['target_headers']) && is_null(\$cell))";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t// if import data is null then set empty";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$fields[] = \$db->quoteName(\$target[\$key]) . \" = ''\";";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// load the defaults";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$fields[]\t= \$db->quoteName('modified_by') . ' = ' . \$db->quote(\$user->id);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$fields[]\t= \$db->quoteName('modified') . ' = ' . \$db->quote(\$todayDate);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// Conditions for which records should be updated.";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$conditions = array(";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\$db->quoteName('id') . ' = ' . \$id";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$query->update(\$db->quoteName('#__###-#-#-component###_'.\$table))->set(\$fields)->where(\$conditions);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$db->setQuery(\$query);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$db->execute();";
|
||||||
|
$script['save'][] = "\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\telseif (\$canCreate)";
|
||||||
|
$script['save'][] = "\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// insert item";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$query = \$db->getQuery(true);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// reset all buckets";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$columns \t= array();";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$values \t= array();";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$version\t= false;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// Insert columns. Insert values.";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\tforeach(\$row as \$key => \$cell)";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// ignore column";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('IGNORE' == \$target[\$key])";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// remove id";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('id' == \$target[\$key])";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// update created";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('created_by' == \$target[\$key])";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// update created";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('created' == \$target[\$key])";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\tcontinue;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// Make sure the alias is incremented";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('alias' == \$target[\$key])";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$cell = \$this->getAlias(\$cell,\$table);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// update version";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif ('version' == \$target[\$key])";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$cell = 1;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$version = true;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// set to insert array";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\tif(in_array(\$key, \$data['target_headers']) && is_numeric(\$cell))";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$columns[] \t= \$target[\$key];";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$values[] \t= \$cell;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\telseif(in_array(\$key, \$data['target_headers']) && is_string(\$cell))";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$columns[] \t= \$target[\$key];";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$values[] \t= \$db->quote(\$cell);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\telseif(in_array(\$key, \$data['target_headers']) && is_null(\$cell))";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t// if import data is null then set empty";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$columns[] \t= \$target[\$key];";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\t\$values[] \t= \"''\";";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// load the defaults";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$columns[] \t= 'created_by';";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$values[] \t= \$db->quote(\$user->id);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$columns[] \t= 'created';";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$values[] \t= \$db->quote(\$todayDate);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\tif (!\$version)";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\$columns[] \t= 'version';";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\$values[] \t= 1;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// Prepare the insert query.";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$query";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t->insert(\$db->quoteName('#__###-#-#-component###_'.\$table))";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t->columns(\$db->quoteName(\$columns))";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t->values(implode(',', \$values));";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t// Set the query using our newly populated query object and execute it.";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$db->setQuery(\$query);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\$done = \$db->execute();";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\tif (\$done)";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t\$aId = \$db->insertid();";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t// make sure the access of asset is set";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t\t###-#-#-Component###Helper::setAsset(\$aId,\$table);";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t\telse";
|
||||||
|
$script['save'][] = "\t\t\t\t\t{";
|
||||||
|
$script['save'][] = "\t\t\t\t\t\treturn false;";
|
||||||
|
$script['save'][] = "\t\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t\t\treturn true;";
|
||||||
|
$script['save'][] = "\t\t\t}";
|
||||||
|
$script['save'][] = "\t\t}";
|
||||||
|
$script['save'][] = "\t\treturn false;";
|
||||||
|
$script['save'][] = "\t}";
|
||||||
|
}
|
||||||
|
elseif ('view' === $type)
|
||||||
|
{
|
||||||
|
$script['view'] = array();
|
||||||
|
$script['view'][] = "<script type=\"text/javascript\">";
|
||||||
|
$script['view'][] = "<?php if (\$this->hasPackage && ###-#-#-Component###Helper::checkArray(\$this->headerList)) : ?>";
|
||||||
|
$script['view'][] = "\tJoomla.continueImport = function()";
|
||||||
|
$script['view'][] = "\t{";
|
||||||
|
$script['view'][] = "\t\tvar form = document.getElementById('adminForm');";
|
||||||
|
$script['view'][] = "\t\tvar error = false;";
|
||||||
|
$script['view'][] = "\t\tvar therequired = [<?php \$i = 0; foreach(\$this->headerList as \$name => \$title) { echo (\$i != 0)? ', \"vdm_'.\$name.'\"':'\"vdm_'.\$name.'\"'; \$i++; } ?>];";
|
||||||
|
$script['view'][] = "\t\tfor(i = 0; i < therequired.length; i++)";
|
||||||
|
$script['view'][] = "\t\t{";
|
||||||
|
$script['view'][] = "\t\t\tif(jQuery('#'+therequired[i]).val() == \"\" )";
|
||||||
|
$script['view'][] = "\t\t\t{";
|
||||||
|
$script['view'][] = "\t\t\t\terror = true;";
|
||||||
|
$script['view'][] = "\t\t\t\tbreak;";
|
||||||
|
$script['view'][] = "\t\t\t}";
|
||||||
|
$script['view'][] = "\t\t}";
|
||||||
|
$script['view'][] = "\t\t// do field validation";
|
||||||
|
$script['view'][] = "\t\tif (error)";
|
||||||
|
$script['view'][] = "\t\t{";
|
||||||
|
$script['view'][] = "\t\t\talert(\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_MSG_PLEASE_SELECT_ALL_COLUMNS', true); ?>\");";
|
||||||
|
$script['view'][] = "\t\t}";
|
||||||
|
$script['view'][] = "\t\telse";
|
||||||
|
$script['view'][] = "\t\t{";
|
||||||
|
$script['view'][] = "\t\t\tjQuery('#loading').css('display', 'block');";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t\t\tform.gettype.value = 'continue';";
|
||||||
|
$script['view'][] = "\t\t\tform.submit();";
|
||||||
|
$script['view'][] = "\t\t}";
|
||||||
|
$script['view'][] = "\t};";
|
||||||
|
$script['view'][] = "<?php else: ?>";
|
||||||
|
$script['view'][] = "\tJoomla.submitbutton = function()";
|
||||||
|
$script['view'][] = "\t{";
|
||||||
|
$script['view'][] = "\t\tvar form = document.getElementById('adminForm');";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t\t// do field validation";
|
||||||
|
$script['view'][] = "\t\tif (form.import_package.value == \"\")";
|
||||||
|
$script['view'][] = "\t\t{";
|
||||||
|
$script['view'][] = "\t\t\talert(\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_MSG_PLEASE_SELECT_A_FILE', true); ?>\");";
|
||||||
|
$script['view'][] = "\t\t}";
|
||||||
|
$script['view'][] = "\t\telse";
|
||||||
|
$script['view'][] = "\t\t{";
|
||||||
|
$script['view'][] = "\t\t\tjQuery('#loading').css('display', 'block');";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t\t\tform.gettype.value = 'upload';";
|
||||||
|
$script['view'][] = "\t\t\tform.submit();";
|
||||||
|
$script['view'][] = "\t\t}";
|
||||||
|
$script['view'][] = "\t};";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\tJoomla.submitbutton3 = function()";
|
||||||
|
$script['view'][] = "\t{";
|
||||||
|
$script['view'][] = "\t\tvar form = document.getElementById('adminForm');";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t\t// do field validation";
|
||||||
|
$script['view'][] = "\t\tif (form.import_directory.value == \"\"){";
|
||||||
|
$script['view'][] = "\t\t\talert(\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_MSG_PLEASE_SELECT_A_DIRECTORY', true); ?>\");";
|
||||||
|
$script['view'][] = "\t\t}";
|
||||||
|
$script['view'][] = "\t\telse";
|
||||||
|
$script['view'][] = "\t\t{";
|
||||||
|
$script['view'][] = "\t\t\tjQuery('#loading').css('display', 'block');";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t\t\tform.gettype.value = 'folder';";
|
||||||
|
$script['view'][] = "\t\t\tform.submit();";
|
||||||
|
$script['view'][] = "\t\t}";
|
||||||
|
$script['view'][] = "\t};";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\tJoomla.submitbutton4 = function()";
|
||||||
|
$script['view'][] = "\t{";
|
||||||
|
$script['view'][] = "\t\tvar form = document.getElementById('adminForm');";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t\t// do field validation";
|
||||||
|
$script['view'][] = "\t\tif (form.import_url.value == \"\" || form.import_url.value == \"http://\")";
|
||||||
|
$script['view'][] = "\t\t{";
|
||||||
|
$script['view'][] = "\t\t\talert(\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_MSG_ENTER_A_URL', true); ?>\");";
|
||||||
|
$script['view'][] = "\t\t}";
|
||||||
|
$script['view'][] = "\t\telse";
|
||||||
|
$script['view'][] = "\t\t{";
|
||||||
|
$script['view'][] = "\t\t\tjQuery('#loading').css('display', 'block');";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t\t\tform.gettype.value = 'url';";
|
||||||
|
$script['view'][] = "\t\t\tform.submit();";
|
||||||
|
$script['view'][] = "\t\t}";
|
||||||
|
$script['view'][] = "\t};";
|
||||||
|
$script['view'][] = "<?php endif; ?>";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n// Add spindle-wheel for importations:";
|
||||||
|
$script['view'][] = "jQuery(document).ready(function(\$) {";
|
||||||
|
$script['view'][] = "\tvar outerDiv = \$('body');";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t\$('<div id=\"loading\"></div>')";
|
||||||
|
$script['view'][] = "\t\t.css(\"background\", \"rgba(255, 255, 255, .8) url('components/com_###-#-#-component###/assets/images/import.gif') 50% 15% no-repeat\")";
|
||||||
|
$script['view'][] = "\t\t.css(\"top\", outerDiv.position().top - \$(window).scrollTop())";
|
||||||
|
$script['view'][] = "\t\t.css(\"left\", outerDiv.position().left - \$(window).scrollLeft())";
|
||||||
|
$script['view'][] = "\t\t.css(\"width\", outerDiv.width())";
|
||||||
|
$script['view'][] = "\t\t.css(\"height\", outerDiv.height())";
|
||||||
|
$script['view'][] = "\t\t.css(\"position\", \"fixed\")";
|
||||||
|
$script['view'][] = "\t\t.css(\"opacity\", \"0.80\")";
|
||||||
|
$script['view'][] = "\t\t.css(\"-ms-filter\", \"progid:DXImageTransform.Microsoft.Alpha(Opacity = 80)\")";
|
||||||
|
$script['view'][] = "\t\t.css(\"filter\", \"alpha(opacity = 80)\")";
|
||||||
|
$script['view'][] = "\t\t.css(\"display\", \"none\")";
|
||||||
|
$script['view'][] = "\t\t.appendTo(outerDiv);";
|
||||||
|
$script['view'][] = "});";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n</script>";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n<div id=\"installer-import\" class=\"clearfix\">";
|
||||||
|
$script['view'][] = "<form enctype=\"multipart/form-data\" action=\"<?php echo JRoute::_('index.php?option=com_###-#-#-component###&view=import_###-#-#-views###');?>\" method=\"post\" name=\"adminForm\" id=\"adminForm\" class=\"form-horizontal form-validate\">";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t<?php if (!empty( \$this->sidebar)) : ?>";
|
||||||
|
$script['view'][] = "\t\t<div id=\"j-sidebar-container\" class=\"span2\">";
|
||||||
|
$script['view'][] = "\t\t\t<?php echo \$this->sidebar; ?>";
|
||||||
|
$script['view'][] = "\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t<div id=\"j-main-container\" class=\"span10\">";
|
||||||
|
$script['view'][] = "\t<?php else : ?>";
|
||||||
|
$script['view'][] = "\t\t<div id=\"j-main-container\">";
|
||||||
|
$script['view'][] = "\t<?php endif;?>";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t<?php if (\$this->hasPackage && ###-#-#-Component###Helper::checkArray(\$this->headerList) && ###-#-#-Component###Helper::checkArray(\$this->headers)) : ?>";
|
||||||
|
$script['view'][] = "\t\t<fieldset class=\"uploadform\">";
|
||||||
|
$script['view'][] = "\t\t\t<legend><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_LINK_FILE_TO_TABLE_COLUMNS'); ?></legend>";
|
||||||
|
$script['view'][] = "\t\t\t<div class=\"control-group\">";
|
||||||
|
$script['view'][] = "\t\t\t\t<label class=\"control-label\" ><h4><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_TABLE_COLUMNS'); ?></h4></label>";
|
||||||
|
$script['view'][] = "\t\t\t\t<div class=\"controls\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<label class=\"control-label\" ><h4><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FILE_COLUMNS'); ?></h4></label>";
|
||||||
|
$script['view'][] = "\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t<?php foreach(\$this->headerList as \$name => \$title): ?>";
|
||||||
|
$script['view'][] = "\t\t\t\t<div class=\"control-group\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<label for=\"<?php echo \$name; ?>\" class=\"control-label\" ><?php echo \$title; ?></label>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<div class=\"controls\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t<select name=\"<?php echo \$name; ?>\" id=\"vdm_<?php echo \$name; ?>\" required class=\"required input_box\" >";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t\t<option value=\"\"><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_PLEASE_SELECT_COLUMN'); ?></option>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t\t<option value=\"IGNORE\"><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_IGNORE_COLUMN'); ?></option>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t\t<?php foreach(\$this->headers as \$value => \$option): ?>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t\t\t<?php \$selected = (strtolower(\$option) == strtolower (\$title) || strtolower(\$option) == strtolower(\$name))? 'selected=\"selected\"':''; ?>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t\t\t<option value=\"<?php echo ###-#-#-Component###Helper::htmlEscape(\$value); ?>\" class=\"required\" <?php echo \$selected ?>><?php echo ###-#-#-Component###Helper::htmlEscape(\$option); ?></option>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t\t<?php endforeach; ?>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t</select>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t<?php endforeach; ?>";
|
||||||
|
$script['view'][] = "\t\t\t<div class=\"form-actions\">";
|
||||||
|
$script['view'][] = "\t\t\t\t<input class=\"btn btn-primary\" type=\"button\" value=\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_CONTINUE'); ?>\" onclick=\"Joomla.continueImport()\" />";
|
||||||
|
$script['view'][] = "\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t</fieldset>";
|
||||||
|
$script['view'][] = "\t\t<input type=\"hidden\" name=\"gettype\" value=\"continue\" />";
|
||||||
|
$script['view'][] = "\t<?php else: ?>";
|
||||||
|
$script['view'][] = "\t\t<?php echo JHtml::_('bootstrap.startTabSet', 'myTab', array('active' => 'upload')); ?>";
|
||||||
|
$script['view'][] = "\t\t";
|
||||||
|
$script['view'][] = "\t\t<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'upload', JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FROM_UPLOAD', true)); ?>";
|
||||||
|
$script['view'][] = "\t\t\t<fieldset class=\"uploadform\">";
|
||||||
|
$script['view'][] = "\t\t\t\t<legend><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_UPDATE_DATA'); ?></legend>";
|
||||||
|
$script['view'][] = "\t\t\t\t<div class=\"control-group\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<label for=\"import_package\" class=\"control-label\"><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_SELECT_FILE'); ?></label>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<div class=\"controls\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t<input class=\"input_box\" id=\"import_package\" name=\"import_package\" type=\"file\" size=\"57\" />";
|
||||||
|
$script['view'][] = "\t\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t\t<div class=\"form-actions\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<input class=\"btn btn-primary\" type=\"button\" value=\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_UPLOAD_BOTTON'); ?>\" onclick=\"Joomla.submitbutton()\" /> <small><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FORMATS_ACCEPTED'); ?> (.csv .xls .ods)</small>";
|
||||||
|
$script['view'][] = "\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t</fieldset>";
|
||||||
|
$script['view'][] = "\t\t<?php echo JHtml::_('bootstrap.endTab'); ?>";
|
||||||
|
$script['view'][] = "\t\t";
|
||||||
|
$script['view'][] = "\t\t<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'directory', JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FROM_DIRECTORY', true)); ?>";
|
||||||
|
$script['view'][] = "\t\t\t<fieldset class=\"uploadform\">";
|
||||||
|
$script['view'][] = "\t\t\t\t<legend><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_UPDATE_DATA'); ?></legend>";
|
||||||
|
$script['view'][] = "\t\t\t\t<div class=\"control-group\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<label for=\"import_directory\" class=\"control-label\"><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_SELECT_FILE_DIRECTORY'); ?></label>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<div class=\"controls\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t<input type=\"text\" id=\"import_directory\" name=\"import_directory\" class=\"span5 input_box\" size=\"70\" value=\"<?php echo \$this->state->get('import.directory'); ?>\" />";
|
||||||
|
$script['view'][] = "\t\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t\t<div class=\"form-actions\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<input type=\"button\" class=\"btn btn-primary\" value=\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_GET_BOTTON'); ?>\" onclick=\"Joomla.submitbutton3()\" /> <small><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FORMATS_ACCEPTED'); ?> (.csv .xls .ods)</small>";
|
||||||
|
$script['view'][] = "\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t\t</fieldset>";
|
||||||
|
$script['view'][] = "\t\t<?php echo JHtml::_('bootstrap.endTab'); ?>";
|
||||||
|
$script['view'][] = "";
|
||||||
|
$script['view'][] = "\n\t\t<?php echo JHtml::_('bootstrap.addTab', 'myTab', 'url', JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FROM_URL', true)); ?>";
|
||||||
|
$script['view'][] = "\t\t\t<fieldset class=\"uploadform\">";
|
||||||
|
$script['view'][] = "\t\t\t\t<legend><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_UPDATE_DATA'); ?></legend>";
|
||||||
|
$script['view'][] = "\t\t\t\t<div class=\"control-group\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<label for=\"import_url\" class=\"control-label\"><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_SELECT_FILE_URL'); ?></label>";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<div class=\"controls\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t\t<input type=\"text\" id=\"import_url\" name=\"import_url\" class=\"span5 input_box\" size=\"70\" value=\"http://\" />";
|
||||||
|
$script['view'][] = "\t\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t\t<div class=\"form-actions\">";
|
||||||
|
$script['view'][] = "\t\t\t\t\t<input type=\"button\" class=\"btn btn-primary\" value=\"<?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_GET_BOTTON'); ?>\" onclick=\"Joomla.submitbutton4()\" /> <small><?php echo JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_FORMATS_ACCEPTED'); ?> (.csv .xls .ods)</small>";
|
||||||
|
$script['view'][] = "\t\t\t\t</div>";
|
||||||
|
$script['view'][] = "\t\t\t</fieldset>";
|
||||||
|
$script['view'][] = "\t\t<?php echo JHtml::_('bootstrap.endTab'); ?>";
|
||||||
|
$script['view'][] = "\t\t<?php echo JHtml::_('bootstrap.endTabSet'); ?>";
|
||||||
|
$script['view'][] = "\t\t<input type=\"hidden\" name=\"gettype\" value=\"upload\" />";
|
||||||
|
$script['view'][] = "\t<?php endif; ?>";
|
||||||
|
$script['view'][] = "\t<input type=\"hidden\" name=\"task\" value=\"import_###-#-#-views###.import\" />";
|
||||||
|
$script['view'][] = "\t<?php echo JHtml::_('form.token'); ?>";
|
||||||
|
$script['view'][] = "</form>";
|
||||||
|
$script['view'][] = "</div>";
|
||||||
|
}
|
||||||
|
elseif ('import' === $type)
|
||||||
|
{
|
||||||
|
$script['import'] = array();
|
||||||
|
$script['import'][] = "\t/**";
|
||||||
|
$script['import'][] = "\t * Import an spreadsheet from either folder, url or upload.";
|
||||||
|
$script['import'][] = "\t *";
|
||||||
|
$script['import'][] = "\t * @return boolean result of import";
|
||||||
|
$script['import'][] = "\t *";
|
||||||
|
$script['import'][] = "\t */";
|
||||||
|
$script['import'][] = "\tpublic function import()";
|
||||||
|
$script['import'][] = "\t{";
|
||||||
|
$script['import'][] = "\t\t\$this->setState('action', 'import');";
|
||||||
|
$script['import'][] = "\t\t\$app \t\t= JFactory::getApplication();";
|
||||||
|
$script['import'][] = "\t\t\$session \t= JFactory::getSession();";
|
||||||
|
$script['import'][] = "\t\t\$package \t= null;";
|
||||||
|
$script['import'][] = "\t\t\$continue\t= false;";
|
||||||
|
$script['import'][] = "\t\t// get import type";
|
||||||
|
$script['import'][] = "\t\t\$this->getType = \$app->input->getString('gettype', NULL);";
|
||||||
|
$script['import'][] = "\t\t// get import type";
|
||||||
|
$script['import'][] = "\t\t\$this->dataType\t= \$session->get('dataType_VDM_IMPORTINTO', NULL);";
|
||||||
|
$script['import'][] = "\n\t\tif (\$package === null)";
|
||||||
|
$script['import'][] = "\t\t{";
|
||||||
|
$script['import'][] = "\t\t\tswitch (\$this->getType)";
|
||||||
|
$script['import'][] = "\t\t\t{";
|
||||||
|
$script['import'][] = "\t\t\t\tcase 'folder':";
|
||||||
|
$script['import'][] = "\t\t\t\t\t// Remember the 'Import from Directory' path.";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$app->getUserStateFromRequest(\$this->_context . '.import_directory', 'import_directory');";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$package = \$this->_getPackageFromFolder();";
|
||||||
|
$script['import'][] = "\t\t\t\t\tbreak;";
|
||||||
|
$script['import'][] = "\n\t\t\t\tcase 'upload':";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$package = \$this->_getPackageFromUpload();";
|
||||||
|
$script['import'][] = "\t\t\t\t\tbreak;";
|
||||||
|
$script['import'][] = "\n\t\t\t\tcase 'url':";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$package = \$this->_getPackageFromUrl();";
|
||||||
|
$script['import'][] = "\t\t\t\t\tbreak;";
|
||||||
|
$script['import'][] = "\n\t\t\t\tcase 'continue':";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$continue \t= true;";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$package\t= \$session->get('package', null);";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$package\t= json_decode(\$package, true);";
|
||||||
|
$script['import'][] = "\t\t\t\t\t// clear session";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$session->clear('package');";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$session->clear('dataType');";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$session->clear('hasPackage');";
|
||||||
|
$script['import'][] = "\t\t\t\t\tbreak;";
|
||||||
|
$script['import'][] = "\n\t\t\t\tdefault:";
|
||||||
|
$script['import'][] = "\t\t\t\t\t\$app->setUserState('com_###-#-#-component###.message', JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_NO_IMPORT_TYPE_FOUND'));";
|
||||||
|
$script['import'][] = "\n\t\t\t\t\treturn false;";
|
||||||
|
$script['import'][] = "\t\t\t\t\tbreak;";
|
||||||
|
$script['import'][] = "\t\t\t}";
|
||||||
|
$script['import'][] = "\t\t}";
|
||||||
|
$script['import'][] = "\t\t// Was the package valid?";
|
||||||
|
$script['import'][] = "\t\tif (!\$package || !\$package['type'])";
|
||||||
|
$script['import'][] = "\t\t{";
|
||||||
|
$script['import'][] = "\t\t\tif (in_array(\$this->getType, array('upload', 'url')))";
|
||||||
|
$script['import'][] = "\t\t\t{";
|
||||||
|
$script['import'][] = "\t\t\t\t\$this->remove(\$package['packagename']);";
|
||||||
|
$script['import'][] = "\t\t\t}";
|
||||||
|
$script['import'][] = "\n\t\t\t\$app->setUserState('com_###-#-#-component###.message', JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_UNABLE_TO_FIND_IMPORT_PACKAGE'));";
|
||||||
|
$script['import'][] = "\t\t\treturn false;";
|
||||||
|
$script['import'][] = "\t\t}";
|
||||||
|
$script['import'][] = "\t\t";
|
||||||
|
$script['import'][] = "\t\t// first link data to table headers";
|
||||||
|
$script['import'][] = "\t\tif(!\$continue){";
|
||||||
|
$script['import'][] = "\t\t\t\$package\t= json_encode(\$package);";
|
||||||
|
$script['import'][] = "\t\t\t\$session->set('package', \$package);";
|
||||||
|
$script['import'][] = "\t\t\t\$session->set('dataType', \$this->dataType);";
|
||||||
|
$script['import'][] = "\t\t\t\$session->set('hasPackage', true);";
|
||||||
|
$script['import'][] = "\t\t\treturn true;";
|
||||||
|
$script['import'][] = "\t\t}";
|
||||||
|
$script['import'][] = "\t\t// set the data";
|
||||||
|
$script['import'][] = "\t\t\$headerList = json_decode(\$session->get(\$this->dataType.'_VDM_IMPORTHEADERS', false), true);";
|
||||||
|
$script['import'][] = "\t\tif (!\$this->setData(\$package,\$this->dataType,\$headerList))";
|
||||||
|
$script['import'][] = "\t\t{";
|
||||||
|
$script['import'][] = "\t\t\t// There was an error importing the package";
|
||||||
|
$script['import'][] = "\t\t\t\$msg = JTe-#-#-xt::_('COM_###-#-#-COMPONENT###_IMPORT_ERROR');";
|
||||||
|
$script['import'][] = "\t\t\t\$back = \$session->get('backto_VDM_IMPORT', NULL);";
|
||||||
|
$script['import'][] = "\t\t\tif (\$back)";
|
||||||
|
$script['import'][] = "\t\t\t{";
|
||||||
|
$script['import'][] = "\t\t\t\t\$app->setUserState('com_###-#-#-component###.redirect_url', 'index.php?option=com_###-#-#-component###&view='.\$back);";
|
||||||
|
$script['import'][] = "\t\t\t\t\$session->clear('backto_VDM_IMPORT');";
|
||||||
|
$script['import'][] = "\t\t\t}";
|
||||||
|
$script['import'][] = "\t\t\t\$result = false;";
|
||||||
|
$script['import'][] = "\t\t}";
|
||||||
|
$script['import'][] = "\t\telse";
|
||||||
|
$script['import'][] = "\t\t{";
|
||||||
|
$script['import'][] = "\t\t\t// Package imported sucessfully";
|
||||||
|
$script['import'][] = "\t\t\t\$msg = JTe-#-#-xt::sprintf('COM_###-#-#-COMPONENT###_IMPORT_SUCCESS', \$package['packagename']);";
|
||||||
|
$script['import'][] = "\t\t\t\$back = \$session->get('backto_VDM_IMPORT', NULL);";
|
||||||
|
$script['import'][] = "\t\t\tif (\$back)";
|
||||||
|
$script['import'][] = "\t\t\t{";
|
||||||
|
$script['import'][] = "\t\t\t \$app->setUserState('com_###-#-#-component###.redirect_url', 'index.php?option=com_###-#-#-component###&view='.\$back);";
|
||||||
|
$script['import'][] = "\t\t\t \$session->clear('backto_VDM_IMPORT');";
|
||||||
|
$script['import'][] = "\t\t\t}";
|
||||||
|
$script['import'][] = "\t\t\t\$result = true;";
|
||||||
|
$script['import'][] = "\t\t}";
|
||||||
|
$script['import'][] = "\n\t\t// Set some model state values";
|
||||||
|
$script['import'][] = "\t\t\$app->enqueueMessage(\$msg);";
|
||||||
|
$script['import'][] = "\n\t\t// remove file after import";
|
||||||
|
$script['import'][] = "\t\t\$this->remove(\$package['packagename']);";
|
||||||
|
$script['import'][] = "\t\t\$session->clear(\$this->getType.'_VDM_IMPORTHEADERS');";
|
||||||
|
$script['import'][] = "\t\treturn \$result;";
|
||||||
|
$script['import'][] = "\t}";
|
||||||
|
}
|
||||||
|
elseif ('ext' === $type)
|
||||||
|
{
|
||||||
|
$script['ext'][] = "\t/**";
|
||||||
|
$script['ext'][] = "\t * Check the extension";
|
||||||
|
$script['ext'][] = "\t *";
|
||||||
|
$script['ext'][] = "\t * @param string \$file Name of the uploaded file";
|
||||||
|
$script['ext'][] = "\t *";
|
||||||
|
$script['ext'][] = "\t * @return boolean True on success";
|
||||||
|
$script['ext'][] = "\t *";
|
||||||
|
$script['ext'][] = "\t */";
|
||||||
|
$script['ext'][] = "\tprotected function checkExtention(\$file)";
|
||||||
|
$script['ext'][] = "\t{";
|
||||||
|
$script['ext'][] = "\t\t// check the extention";
|
||||||
|
$script['ext'][] = "\t\tswitch(strtolower(pathinfo(\$file, PATHINFO_EXTENSION)))";
|
||||||
|
$script['ext'][] = "\t\t{";
|
||||||
|
$script['ext'][] = "\t\t\tcase 'xls':";
|
||||||
|
$script['ext'][] = "\t\t\tcase 'ods':";
|
||||||
|
$script['ext'][] = "\t\t\tcase 'csv':";
|
||||||
|
$script['ext'][] = "\t\t\treturn true;";
|
||||||
|
$script['ext'][] = "\t\t\tbreak;";
|
||||||
|
$script['ext'][] = "\t\t}";
|
||||||
|
$script['ext'][] = "\t\treturn false;";
|
||||||
|
$script['ext'][] = "\t}";
|
||||||
|
}
|
||||||
|
// return the needed script
|
||||||
|
if (isset($script[$type]))
|
||||||
|
{
|
||||||
|
return str_replace('-#-#-', '', implode("\n",$script[$type]));
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the Component xml manifest.
|
* Load the Component xml manifest.
|
||||||
**/
|
**/
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage headercheck.php
|
@subpackage headercheck.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage batch_.php
|
@subpackage batch_.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage indenter.php
|
@subpackage indenter.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage js.php
|
@subpackage js.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage minify.php
|
@subpackage minify.php
|
||||||
|
@ -517,6 +517,10 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY="Php Import Display"
|
|||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY_DESCRIPTION="Add your PHP here!"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY_DESCRIPTION="Add your PHP here!"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY_HINT="// The display method for the view.html.php file."
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY_HINT="// The display method for the view.html.php file."
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY_LABEL="PHP (display)"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY_LABEL="PHP (display)"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT="Php Import Ext"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT_DESCRIPTION="Add your PHP here! [Do not add the php tags]"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT_HINT="// PHP here for the checkExtension Method"
|
||||||
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_EXT_LABEL="Check Extension Method PHP"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HINT="// PHP Here that should run in the import Method."
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_HINT="// PHP Here that should run in the import Method."
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_LABEL="Import Method PHP"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_LABEL="Import Method PHP"
|
||||||
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE="Php Import Save"
|
COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SAVE="Php Import Save"
|
||||||
@ -696,6 +700,7 @@ COM_COMPONENTBUILDER_AUTHOR="Author"
|
|||||||
COM_COMPONENTBUILDER_A_FEW_CLOSED_ISSUES_FROM_GITHUB_IS_LOADING="A few closed issues from Github is loading"
|
COM_COMPONENTBUILDER_A_FEW_CLOSED_ISSUES_FROM_GITHUB_IS_LOADING="A few closed issues from Github is loading"
|
||||||
COM_COMPONENTBUILDER_A_FEW_OPEN_ISSUES_FROM_GITHUB_IS_LOADING="A few open issues from Github is loading"
|
COM_COMPONENTBUILDER_A_FEW_OPEN_ISSUES_FROM_GITHUB_IS_LOADING="A few open issues from Github is loading"
|
||||||
COM_COMPONENTBUILDER_BACK="Back"
|
COM_COMPONENTBUILDER_BACK="Back"
|
||||||
|
COM_COMPONENTBUILDER_BASIC_METHOD="Basic Method"
|
||||||
COM_COMPONENTBUILDER_CLEAR_TMP="Clear tmp"
|
COM_COMPONENTBUILDER_CLEAR_TMP="Clear tmp"
|
||||||
COM_COMPONENTBUILDER_COMPANY="Company"
|
COM_COMPONENTBUILDER_COMPANY="Company"
|
||||||
COM_COMPONENTBUILDER_COMPILER="Compiler"
|
COM_COMPONENTBUILDER_COMPILER="Compiler"
|
||||||
@ -1743,10 +1748,11 @@ COM_COMPONENTBUILDER_EDIT_VERSIONS="Edit Version"
|
|||||||
COM_COMPONENTBUILDER_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions."
|
COM_COMPONENTBUILDER_EDIT_VERSIONS_DESC=" Allows users in this group to edit versions."
|
||||||
COM_COMPONENTBUILDER_EMAIL="Email"
|
COM_COMPONENTBUILDER_EMAIL="Email"
|
||||||
COM_COMPONENTBUILDER_EXPORT_COMPLETED="Export Completed!"
|
COM_COMPONENTBUILDER_EXPORT_COMPLETED="Export Completed!"
|
||||||
COM_COMPONENTBUILDER_EXPORT_COMPONENT="Export Component"
|
COM_COMPONENTBUILDER_EXPORT_COMPONENTS="Export Components"
|
||||||
COM_COMPONENTBUILDER_EXPORT_DATA="Export Data"
|
COM_COMPONENTBUILDER_EXPORT_DATA="Export Data"
|
||||||
COM_COMPONENTBUILDER_EXPORT_DATA_DESC=" Allows users in this group to export data."
|
COM_COMPONENTBUILDER_EXPORT_DATA_DESC=" Allows users in this group to export data."
|
||||||
COM_COMPONENTBUILDER_EXPORT_FAILED="Export Failed"
|
COM_COMPONENTBUILDER_EXPORT_FAILED="Export Failed"
|
||||||
|
COM_COMPONENTBUILDER_EXPORT_FAILED_PLEASE_TRY_AGAIN_LATTER="Export failed, please try again latter!"
|
||||||
COM_COMPONENTBUILDER_FIELD="Field"
|
COM_COMPONENTBUILDER_FIELD="Field"
|
||||||
COM_COMPONENTBUILDER_FIELDS="Fields"
|
COM_COMPONENTBUILDER_FIELDS="Fields"
|
||||||
COM_COMPONENTBUILDER_FIELDS_ACCESS="Fields Access"
|
COM_COMPONENTBUILDER_FIELDS_ACCESS="Fields Access"
|
||||||
@ -2151,7 +2157,9 @@ COM_COMPONENTBUILDER_HELP_DOCUMENT_URL_LABEL="URL"
|
|||||||
COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_DESC="A count of the number of times this Help Document has been revised."
|
COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_DESC="A count of the number of times this Help Document has been revised."
|
||||||
COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_LABEL="Revision"
|
COM_COMPONENTBUILDER_HELP_DOCUMENT_VERSION_LABEL="Revision"
|
||||||
COM_COMPONENTBUILDER_HELP_MANAGER="Help"
|
COM_COMPONENTBUILDER_HELP_MANAGER="Help"
|
||||||
|
COM_COMPONENTBUILDER_HERE_YOU_CAN_ADD="Here you can add....."
|
||||||
COM_COMPONENTBUILDER_HI="Hi"
|
COM_COMPONENTBUILDER_HI="Hi"
|
||||||
|
COM_COMPONENTBUILDER_IMPORT_COMPONENTS="Import Components"
|
||||||
COM_COMPONENTBUILDER_IMPORT_CONTINUE="Continue"
|
COM_COMPONENTBUILDER_IMPORT_CONTINUE="Continue"
|
||||||
COM_COMPONENTBUILDER_IMPORT_DATA="Import Data"
|
COM_COMPONENTBUILDER_IMPORT_DATA="Import Data"
|
||||||
COM_COMPONENTBUILDER_IMPORT_DATA_DESC=" Allows users in this group to import data."
|
COM_COMPONENTBUILDER_IMPORT_DATA_DESC=" Allows users in this group to import data."
|
||||||
@ -2480,8 +2488,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXIT="Exit"
|
|||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPAND="Expand"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPAND="Expand"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPAND_TWO="Expand 2"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPAND_TWO="Expand 2"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPIRED="Expired"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPIRED="Expired"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_COMPONENT_BUTTON_ACCESS="Joomla Component Export Component Button Access"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_COMPONENTS_BUTTON_ACCESS="Joomla Component Export Components Button Access"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_COMPONENT_BUTTON_ACCESS_DESC=" Allows the users in this group to access the export component button."
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EXPORT_COMPONENTS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the export components button."
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EYE_CLOSE="Eye Close"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EYE_CLOSE="Eye Close"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EYE_OPEN="Eye Open"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_EYE_OPEN="Eye Open"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_FEATURED="Featured"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_FEATURED="Featured"
|
||||||
@ -2544,6 +2552,8 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE="Image"
|
|||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGES="Images"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGES="Images"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_DESCRIPTION="The component image (product box) for the dashboard and install page, must be 300px X 300px."
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_DESCRIPTION="The component image (product box) for the dashboard and install page, must be 300px X 300px."
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_LABEL="Component Image"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_LABEL="Component Image"
|
||||||
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_COMPONENTS_BUTTON_ACCESS="Joomla Component Import Components Button Access"
|
||||||
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_COMPONENTS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the import components button."
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_INFO="Info"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_INFO="Info"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_INFO_CIRCLE="Info Circle"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_INFO_CIRCLE="Info Circle"
|
||||||
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JOOMLA="Joomla"
|
COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JOOMLA="Joomla"
|
||||||
@ -3024,6 +3034,7 @@ COM_COMPONENTBUILDER_NEW_ISSUE="New Issue"
|
|||||||
COM_COMPONENTBUILDER_NEW_NOTICE="New Notice"
|
COM_COMPONENTBUILDER_NEW_NOTICE="New Notice"
|
||||||
COM_COMPONENTBUILDER_NO="No"
|
COM_COMPONENTBUILDER_NO="No"
|
||||||
COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!"
|
COM_COMPONENTBUILDER_NO_ACCESS_GRANTED="No Access Granted!"
|
||||||
|
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_OPENED_BY="opened by"
|
COM_COMPONENTBUILDER_OPENED_BY="opened by"
|
||||||
COM_COMPONENTBUILDER_PATH_TO_THE_ZIPPED_PACKAGE_IS_CODESCODE="Path to the zipped package is: <code>%s</code>"
|
COM_COMPONENTBUILDER_PATH_TO_THE_ZIPPED_PACKAGE_IS_CODESCODE="Path to the zipped package is: <code>%s</code>"
|
||||||
COM_COMPONENTBUILDER_PLEASE_ADD_FILES_TO_S="Please add files to (%s)"
|
COM_COMPONENTBUILDER_PLEASE_ADD_FILES_TO_S="Please add files to (%s)"
|
||||||
@ -3474,6 +3485,7 @@ COM_COMPONENTBUILDER_SITE_VIEW_YES="Yes"
|
|||||||
COM_COMPONENTBUILDER_SITE_VIEW_YOUTUBE="Youtube"
|
COM_COMPONENTBUILDER_SITE_VIEW_YOUTUBE="Youtube"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEW_ZOOM_IN="Zoom In"
|
COM_COMPONENTBUILDER_SITE_VIEW_ZOOM_IN="Zoom In"
|
||||||
COM_COMPONENTBUILDER_SITE_VIEW_ZOOM_OUT="Zoom Out"
|
COM_COMPONENTBUILDER_SITE_VIEW_ZOOM_OUT="Zoom Out"
|
||||||
|
COM_COMPONENTBUILDER_SMART_JCB_COMPONENTS_IMPORT="Smart JCB Components Import"
|
||||||
COM_COMPONENTBUILDER_SNIPPET="Snippet"
|
COM_COMPONENTBUILDER_SNIPPET="Snippet"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS="Snippets"
|
COM_COMPONENTBUILDER_SNIPPETS="Snippets"
|
||||||
COM_COMPONENTBUILDER_SNIPPETS_ACCESS="Snippets Access"
|
COM_COMPONENTBUILDER_SNIPPETS_ACCESS="Snippets Access"
|
||||||
@ -3702,5 +3714,7 @@ COM_COMPONENTBUILDER_VERSION="Version"
|
|||||||
COM_COMPONENTBUILDER_VIEW_MORE_ISSUES_ON_GITHUB="View more issues on Github"
|
COM_COMPONENTBUILDER_VIEW_MORE_ISSUES_ON_GITHUB="View more issues on Github"
|
||||||
COM_COMPONENTBUILDER_WEBSITE="Website"
|
COM_COMPONENTBUILDER_WEBSITE="Website"
|
||||||
COM_COMPONENTBUILDER_YES="Yes"
|
COM_COMPONENTBUILDER_YES="Yes"
|
||||||
|
COM_COMPONENTBUILDER_YOU_CAN_NOW_SELECT_THE_COMPONENT_BZIPB_PACKAGE_YOU_WOULD_LIKE_TO_IMPORTBR_SMALLPLEASE_NOTE_THAT_SMART_COMPONENT_IMPORT_ONLY_WORKS_WITH_THE_FOLLOWING_FORMAT_BZIPBSMALL="You can now select the component <b>zip</b> package you would like to import.<br /><small>Please note that smart component import only works with the following format: <b>(.zip)</b></small>"
|
||||||
|
COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_IMPORT_A_COMPONENT_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP="You do not have permission to import a component, please contact your system administrator for more help."
|
||||||
COM_COMPONENTBUILDER_YOU_MUST_SELECT_A_COMPONENT="You must select a component!"
|
COM_COMPONENTBUILDER_YOU_MUST_SELECT_A_COMPONENT="You must select a component!"
|
||||||
COM_COMPONENTBUILDER__SELECT_COMPONENT_="- Select Component -"
|
COM_COMPONENTBUILDER__SELECT_COMPONENT_="- Select Component -"
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage css_fullwidth.php
|
@subpackage css_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_buttons_fullwidth.php
|
@subpackage custom_buttons_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_buttons_left.php
|
@subpackage custom_buttons_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_import_fullwidth.php
|
@subpackage custom_import_fullwidth.php
|
||||||
@ -37,7 +37,8 @@ $fields = $displayData->get('fields') ?: array(
|
|||||||
'html_import_view',
|
'html_import_view',
|
||||||
'php_import',
|
'php_import',
|
||||||
'php_import_setdata',
|
'php_import_setdata',
|
||||||
'php_import_save'
|
'php_import_save',
|
||||||
|
'php_import_ext'
|
||||||
);
|
);
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage fields_fullwidth.php
|
@subpackage fields_fullwidth.php
|
||||||
@ -28,7 +28,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->vxvfields;
|
$items = $displayData->vxwfields;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
|
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage javascript_fullwidth.php
|
@subpackage javascript_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage linked_components_fullwidth.php
|
@subpackage linked_components_fullwidth.php
|
||||||
@ -28,7 +28,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->vxwlinked_components;
|
$items = $displayData->vxxlinked_components;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
|
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage mysql_fullwidth.php
|
@subpackage mysql_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage mysql_left.php
|
@subpackage mysql_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage php_fullwidth.php
|
@subpackage php_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_above.php
|
@subpackage settings_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_left.php
|
@subpackage settings_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_right.php
|
@subpackage settings_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage settings_under.php
|
@subpackage settings_under.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage batchselection.php
|
@subpackage batchselection.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_buttons_fullwidth.php
|
@subpackage custom_buttons_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_buttons_left.php
|
@subpackage custom_buttons_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_script_fullwidth.php
|
@subpackage custom_script_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_rightside.php
|
@subpackage details_rightside.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage linked_components_fullwidth.php
|
@subpackage linked_components_fullwidth.php
|
||||||
@ -28,7 +28,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->vyglinked_components;
|
$items = $displayData->vyhlinked_components;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
|
$edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit";
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage abacus_fullwidth.php
|
@subpackage abacus_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage abacus_left.php
|
@subpackage abacus_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage custom_script_fullwidth.php
|
@subpackage custom_script_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage gettable_above.php
|
@subpackage gettable_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage gettable_fullwidth.php
|
@subpackage gettable_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage gettable_left.php
|
@subpackage gettable_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage gettable_right.php
|
@subpackage gettable_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage gettable_under.php
|
@subpackage gettable_under.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage linked_admin_views_fullwidth.php
|
@subpackage linked_admin_views_fullwidth.php
|
||||||
@ -28,7 +28,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->vzylinked_admin_views;
|
$items = $displayData->vzzlinked_admin_views;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_componentbuilder&view=admin_views&task=admin_view.edit";
|
$edit = "index.php?option=com_componentbuilder&view=admin_views&task=admin_view.edit";
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage scripts_left.php
|
@subpackage scripts_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage scripts_right.php
|
@subpackage scripts_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage fields_fullwidth.php
|
@subpackage fields_fullwidth.php
|
||||||
@ -28,7 +28,7 @@
|
|||||||
defined('_JEXEC') or die('Restricted access');
|
defined('_JEXEC') or die('Restricted access');
|
||||||
|
|
||||||
// set the defaults
|
// set the defaults
|
||||||
$items = $displayData->vzzfields;
|
$items = $displayData->waafields;
|
||||||
$user = JFactory::getUser();
|
$user = JFactory::getUser();
|
||||||
$id = $displayData->item->id;
|
$id = $displayData->item->id;
|
||||||
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
|
$edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit";
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_fullwidth.php
|
@subpackage details_fullwidth.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage details_under.php
|
@subpackage details_under.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
|_|
|
|_|
|
||||||
/-------------------------------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 2.3.7
|
@version 2.3.8
|
||||||
@build 20th March, 2017
|
@build 27th March, 2017
|
||||||
@created 30th April, 2015
|
@created 30th April, 2015
|
||||||
@package Component Builder
|
@package Component Builder
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user