Compare commits
19 Commits
Author | SHA1 | Date | |
---|---|---|---|
f0cdf086d4
|
|||
d789ef249e
|
|||
6e4443b997
|
|||
c99cb17c5b
|
|||
1e0533ffa5
|
|||
c5be4ff5fa
|
|||
ec827b7369
|
|||
3331a4c28d
|
|||
278f70c8a6
|
|||
dd3335771c
|
|||
94c934c436
|
|||
c8893d8c94
|
|||
8219d5ed45
|
|||
2ce36117d4
|
|||
e8b0bf8ede
|
|||
758c0f38cf
|
|||
6a38523843
|
|||
e5d599d5a5
|
|||
9373b29bff
|
155
.octojpack
Normal file
155
.octojpack
Normal file
@ -0,0 +1,155 @@
|
||||
{
|
||||
"global": {
|
||||
"packager": "Vast Development Method",
|
||||
"packager_url": "https://dev.vdm.io/",
|
||||
"url": "git.vdm.dev",
|
||||
"api": "https://git.vdm.dev/api/v1"
|
||||
},
|
||||
"package": {
|
||||
"name": "PKG_COMPONENT_BUILDER",
|
||||
"code_name": "component_builder",
|
||||
"package_name": "pkg_component_builder",
|
||||
"min_joomla_version": "3.8",
|
||||
"max_joomla_version": "3.10",
|
||||
"copyright": "Copyright (C) 2015 Llewellyn van der Merwe. All rights reserved.",
|
||||
"copyright_year": "2015",
|
||||
"license": "GNU General Public License version 2; see LICENSE",
|
||||
"license_file": "LICENSE",
|
||||
"author": "Llewellyn van der Merwe",
|
||||
"author_email": "llewellyn@joomlacomponentbuilder.com",
|
||||
"author_url": "http://www.joomlacomponentbuilder.com/",
|
||||
"description": "The Joomla Component Builder Package that bundles JCB Component and all the plugins and features available into one package for easy install and update of your JCB system.",
|
||||
"version_id": "com_componentbuilder",
|
||||
"update_servers": "https://io.vdm.dev/update/componentbuilder_public_update_server.xml"
|
||||
},
|
||||
"repository": {
|
||||
"owner": "joomla",
|
||||
"repo": "pkg-component-builder"
|
||||
},
|
||||
"files": [
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "Component-Builder",
|
||||
"id": "com_componentbuilder",
|
||||
"type": "component"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_content_componentbuilderadminheaderstabs",
|
||||
"id": "ComponentBuilderAdminHeadersTabs",
|
||||
"type": "plugin",
|
||||
"group": "content",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_content_componentbuildercomponentheaderstabs",
|
||||
"id": "ComponentBuilderComponentHeadersTabs",
|
||||
"type": "plugin",
|
||||
"group": "content",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_content_componentbuildercustomadminheaderstabs",
|
||||
"id": "ComponentBuilderCustomAdminHeadersTabs",
|
||||
"type": "plugin",
|
||||
"group": "content",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_content_componentbuilderfieldorderingtabs",
|
||||
"id": "ComponentBuilderFieldOrderingTabs",
|
||||
"type": "plugin",
|
||||
"group": "content",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_content_componentbuilderlanguagetabs",
|
||||
"id": "ComponentBuilderLanguageTabs",
|
||||
"type": "plugin",
|
||||
"group": "content",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_content_componentbuilderprivacytabs",
|
||||
"id": "ComponentBuilderPrivacyTabs",
|
||||
"type": "plugin",
|
||||
"group": "content",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_content_componentbuildersiteheaderstabs",
|
||||
"id": "ComponentBuilderSiteHeadersTabs",
|
||||
"type": "plugin",
|
||||
"group": "content",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_extension_componentbuilderactionlogcompiler",
|
||||
"id": "ComponentBuilderActionLogCompiler",
|
||||
"type": "plugin",
|
||||
"group": "extension",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_extension_componentbuilderexportcompiler",
|
||||
"id": "ComponentBuilderExportCompiler",
|
||||
"type": "plugin",
|
||||
"group": "extension",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_extension_componentbuilderfieldorderingcompiler",
|
||||
"id": "ComponentBuilderFieldOrderingCompiler",
|
||||
"type": "plugin",
|
||||
"group": "extension",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_extension_componentbuilderheaderscompiler",
|
||||
"id": "ComponentBuilderHeadersCompiler",
|
||||
"type": "plugin",
|
||||
"group": "extension",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_extension_componentbuilderlanguagepackaging",
|
||||
"id": "ComponentBuilderLanguagePackaging",
|
||||
"type": "plugin",
|
||||
"group": "extension",
|
||||
"mode": "releases"
|
||||
},
|
||||
{
|
||||
"owner": "joomla",
|
||||
"repo": "plg_extension_componentbuilderprivacycompiler",
|
||||
"id": "ComponentBuilderPrivacyCompiler",
|
||||
"type": "plugin",
|
||||
"group": "extension",
|
||||
"mode": "releases"
|
||||
}
|
||||
],
|
||||
"languages": [
|
||||
{
|
||||
"tag": "en-GB",
|
||||
"ini": "sys.ini",
|
||||
"key": "PKG_COMPONENT_BUILDER",
|
||||
"value": "Component Builder Package"
|
||||
},
|
||||
{
|
||||
"tag": "en-GB",
|
||||
"ini": "ini",
|
||||
"key": "PKG_COMPONENT_BUILDER",
|
||||
"value": "Component Builder Package"
|
||||
}
|
||||
]
|
||||
}
|
14
README.md
14
README.md
@ -12,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
||||
|
||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save 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.12.14) 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.13.0) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
|
||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||
|
||||
@ -143,14 +143,14 @@ TODO
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 21st December, 2021
|
||||
+ *Version*: 2.12.14
|
||||
+ *Last Build*: 27th May, 2022
|
||||
+ *Version*: 2.13.0
|
||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
+ *Line count*: **285607**
|
||||
+ *Field count*: **1562**
|
||||
+ *File count*: **1824**
|
||||
+ *Folder count*: **256**
|
||||
+ *Line count*: **287273**
|
||||
+ *Field count*: **1581**
|
||||
+ *File count*: **1853**
|
||||
+ *Folder count*: **261**
|
||||
|
||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
|
@ -12,7 +12,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
|
||||
|
||||
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save 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.12.14) 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.13.0) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
|
||||
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
|
||||
|
||||
@ -143,14 +143,14 @@ TODO
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 21st December, 2021
|
||||
+ *Version*: 2.12.14
|
||||
+ *Last Build*: 27th May, 2022
|
||||
+ *Version*: 2.13.0
|
||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
+ *Line count*: **285607**
|
||||
+ *Field count*: **1562**
|
||||
+ *File count*: **1824**
|
||||
+ *Folder count*: **256**
|
||||
+ *Line count*: **287273**
|
||||
+ *Field count*: **1581**
|
||||
+ *File count*: **1853**
|
||||
+ *Folder count*: **261**
|
||||
|
||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###ADMIN_VIEWS_CONTROLLER_HEADER###
|
||||
|
||||
/**
|
||||
* ###Views### Controller
|
||||
* ###Views### Admin Controller
|
||||
*/
|
||||
class ###Component###Controller###Views### extends JControllerAdmin
|
||||
class ###Component###Controller###Views### extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###DASH_CONTROLLER_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### Controller
|
||||
* ###Component### Admin Controller
|
||||
*/
|
||||
class ###Component###Controller###Component### extends JControllerAdmin
|
||||
class ###Component###Controller###Component### extends AdminController
|
||||
{
|
||||
|
||||
}
|
@ -20,11 +20,18 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###CUSTOM_ADMIN_VIEWS_CONTROLLER_HEADER###
|
||||
|
||||
/**
|
||||
* ###SViews### Controller
|
||||
* ###SViews### Admin Controller
|
||||
*/
|
||||
class ###Component###Controller###SViews### extends JControllerAdmin
|
||||
class ###Component###Controller###SViews### extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $text_prefix = 'COM_###COMPONENT###_###SVIEWS###';
|
||||
|
||||
/**
|
||||
* Proxy for getModel.
|
||||
* @since 2.5
|
||||
@ -36,7 +43,7 @@ class ###Component###Controller###SViews### extends JControllerAdmin
|
||||
return $model;
|
||||
}
|
||||
|
||||
public function dashboard()
|
||||
public function dashboard()
|
||||
{
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_###component###', false));
|
||||
return;
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###ADMIN_VIEW_MODEL_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### ###View### Model
|
||||
* ###Component### ###View### Admin Model
|
||||
*/
|
||||
class ###Component###Model###View### extends JModelAdmin
|
||||
class ###Component###Model###View### extends AdminModel
|
||||
{
|
||||
/**
|
||||
* The tab layout fields array.
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###SITE_ADMIN_VIEW_MODEL_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### ###View### Model
|
||||
* ###Component### ###View### Admin Model
|
||||
*/
|
||||
class ###Component###Model###View### extends JModelAdmin
|
||||
class ###Component###Model###View### extends AdminModel
|
||||
{
|
||||
/**
|
||||
* The tab layout fields array.
|
@ -17,12 +17,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* General Controller of ###Component### component
|
||||
*/
|
||||
class ###Component###Controller extends JControllerLegacy
|
||||
class ###Component###Controller extends BaseController
|
||||
{
|
||||
/**
|
||||
* Constructor.
|
@ -17,12 +17,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* ###Component### Ajax Controller
|
||||
* ###Component### Ajax Base Controller
|
||||
*/
|
||||
class ###Component###ControllerAjax extends JControllerLegacy
|
||||
class ###Component###ControllerAjax extends BaseController
|
||||
{
|
||||
public function __construct($config)
|
||||
{
|
@ -17,12 +17,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* ###Component### Ajax Controller
|
||||
* ###Component### Ajax Base Controller
|
||||
*/
|
||||
class ###Component###ControllerAjax extends JControllerLegacy
|
||||
class ###Component###ControllerAjax extends BaseController
|
||||
{
|
||||
public function __construct($config)
|
||||
{
|
@ -17,12 +17,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* ###Component### Help Controller
|
||||
* ###Component### Help Base Controller
|
||||
*/
|
||||
class ###Component###ControllerHelp extends JControllerLegacy
|
||||
class ###Component###ControllerHelp extends BaseController
|
||||
{
|
||||
public function __construct($config)
|
||||
{
|
@ -17,12 +17,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* ###Component### Help Controller
|
||||
* ###Component### Help Base Controller
|
||||
*/
|
||||
class ###Component###ControllerHelp extends JControllerLegacy
|
||||
class ###Component###ControllerHelp extends BaseController
|
||||
{
|
||||
public function __construct($config)
|
||||
{
|
@ -17,12 +17,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* ###Component### Component Controller
|
||||
* ###Component### Component Base Controller
|
||||
*/
|
||||
class ###Component###Controller extends JControllerLegacy
|
||||
class ###Component###Controller extends BaseController
|
||||
{
|
||||
/**
|
||||
* Method to display a view.
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###CUSTOM_ADMIN_VIEW_CONTROLLER_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### ###SView### Controller
|
||||
* ###Component### ###SView### Base Controller
|
||||
*/
|
||||
class ###Component###Controller###SView### extends JControllerLegacy
|
||||
class ###Component###Controller###SView### extends BaseController
|
||||
{
|
||||
public function __construct($config)
|
||||
{
|
@ -17,12 +17,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* ###Component### Import Controller
|
||||
* ###Component### Import Base Controller
|
||||
*/
|
||||
class ###Component###ControllerImport extends JControllerLegacy
|
||||
class ###Component###ControllerImport extends BaseController
|
||||
{
|
||||
/**
|
||||
* Import an spreadsheet.
|
@ -17,12 +17,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* ###Component### ###View### Controller
|
||||
* ###Component### ###View### Base Controller
|
||||
*/
|
||||
class ###Component###Controller###View### extends JControllerLegacy
|
||||
class ###Component###Controller###View### extends BaseController
|
||||
{
|
||||
/**
|
||||
* Import an spreadsheet.
|
@ -17,15 +17,16 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
|
||||
use Joomla\CMS\Filesystem\File;
|
||||
use Joomla\CMS\Filesystem\Folder;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||
|
||||
/**
|
||||
* ###Component### Import Model
|
||||
* ###Component### Import Base Database Model
|
||||
*/
|
||||
class ###Component###ModelImport extends JModelLegacy
|
||||
class ###Component###ModelImport extends BaseDatabaseModel
|
||||
{
|
||||
// set uploading values
|
||||
protected $use_streams = false;
|
@ -17,15 +17,16 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
|
||||
use Joomla\CMS\Filesystem\File;
|
||||
use Joomla\CMS\Filesystem\Folder;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
use PhpOffice\PhpSpreadsheet\IOFactory;
|
||||
|
||||
/**
|
||||
* ###Component### ###View### Model
|
||||
* ###Component### ###View### Base Database Model
|
||||
*/
|
||||
class ###Component###Model###View### extends JModelLegacy
|
||||
class ###Component###Model###View### extends BaseDatabaseModel
|
||||
{
|
||||
// set uploading values
|
||||
protected $use_streams = false;
|
@ -62,10 +62,10 @@ class ###Component###View###Component### extends JViewLegacy
|
||||
JToolBarHelper::title(JText::_('COM_###COMPONENT###_DASHBOARD'), 'grid-2');
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###component###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###component###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
|
||||
if ($canDo->get('core.admin') || $canDo->get('core.options'))
|
||||
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###ADMIN_VIEW_CONTROLLER_HEADER###
|
||||
|
||||
/**
|
||||
* ###View### Controller
|
||||
* ###View### Form Controller
|
||||
*/
|
||||
class ###Component###Controller###View### extends JControllerForm
|
||||
class ###Component###Controller###View### extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###SITE_VIEW_CONTROLLER_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### ###SView### Controller
|
||||
* ###Component### ###SView### Form Controller
|
||||
*/
|
||||
class ###Component###Controller###SView### extends JControllerForm
|
||||
class ###Component###Controller###SView### extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###SITE_ADMIN_VIEW_CONTROLLER_HEADER###
|
||||
|
||||
/**
|
||||
* ###View### Controller
|
||||
* ###View### Form Controller
|
||||
*/
|
||||
class ###Component###Controller###View### extends JControllerForm
|
||||
class ###Component###Controller###View### extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
@ -15,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die('Restricted access');###ADMIN_POWER_HELPER###
|
||||
|
||||
###ADMIN_HELPER_CLASS_HEADER###
|
||||
|
||||
@ -36,7 +36,7 @@ abstract class ###Component###Helper
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $langTag;###ADMIN_GLOBAL_EVENT_HELPER######CUSTOM_HELPER_SCRIPT######BOTH_CUSTOM_HELPER_SCRIPT######ADMIN_POWER_EVENT_HELPER###
|
||||
public static $langTag;###ADMIN_GLOBAL_EVENT_HELPER######CUSTOM_HELPER_SCRIPT######BOTH_CUSTOM_HELPER_SCRIPT###
|
||||
|
||||
/**
|
||||
* Load the Composer Vendors
|
||||
@ -1339,3 +1339,4 @@ abstract class ###Component###Helper
|
||||
return implode($key);
|
||||
}###GET_CRYPT_KEY###
|
||||
}
|
||||
|
||||
|
@ -15,7 +15,7 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
defined('_JEXEC') or die('Restricted access');###SITE_POWER_HELPER###
|
||||
|
||||
###SITE_HELPER_CLASS_HEADER###
|
||||
|
||||
@ -36,7 +36,7 @@ abstract class ###Component###Helper
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public static $langTag;###SITE_GLOBAL_EVENT_HELPER######SITE_CUSTOM_HELPER_SCRIPT######BOTH_CUSTOM_HELPER_SCRIPT######SITE_POWER_EVENT_HELPER###
|
||||
public static $langTag;###SITE_GLOBAL_EVENT_HELPER######SITE_CUSTOM_HELPER_SCRIPT######BOTH_CUSTOM_HELPER_SCRIPT###
|
||||
|
||||
/**
|
||||
* Load the Composer Vendors
|
||||
@ -1331,3 +1331,4 @@ abstract class ###Component###Helper
|
||||
return implode($key);
|
||||
}###GET_CRYPT_KEY###
|
||||
}
|
||||
|
||||
|
@ -16,11 +16,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access'); ###LICENSE_LOCKED_DEFINED######CUSTOM_ADMIN_GET_MODULE_JIMPORT###
|
||||
|
||||
###CUSTOM_ADMIN_VIEW_HTML_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### View class for the ###SView###
|
||||
* ###Component### Html View class for the ###SView###
|
||||
*/
|
||||
class ###Component###View###SView### extends JViewLegacy
|
||||
class ###Component###View###SView### extends HtmlView
|
||||
{
|
||||
// Overwriting JView display method
|
||||
function display($tpl = null)
|
||||
@ -63,10 +65,10 @@ class ###Component###View###SView### extends JViewLegacy
|
||||
JToolbarHelper::title($title,'###ICOMOON###');###CUSTOM_ADMIN_CUSTOM_BUTTONS###
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
|
||||
// add the options comp button
|
@ -16,11 +16,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||
|
||||
###ADMIN_VIEW_HTML_HEADER###
|
||||
|
||||
/**
|
||||
* ###View### View class
|
||||
* ###View### Html View class
|
||||
*/
|
||||
class ###Component###View###View### extends JViewLegacy
|
||||
class ###Component###View###View### extends HtmlView
|
||||
{
|
||||
/**
|
||||
* display method of View
|
@ -16,11 +16,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||
|
||||
###SITE_ADMIN_VIEW_HTML_HEADER###
|
||||
|
||||
/**
|
||||
* ###View### View class
|
||||
* ###View### Html View class
|
||||
*/
|
||||
class ###Component###View###View### extends JViewLegacy
|
||||
class ###Component###View###View### extends HtmlView
|
||||
{
|
||||
/**
|
||||
* display method of View
|
@ -17,10 +17,12 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
|
||||
/**
|
||||
* ###Component### Import View
|
||||
* ###Component### Import Html View
|
||||
*/
|
||||
class ###Component###ViewImport extends JViewLegacy
|
||||
class ###Component###ViewImport extends HtmlView
|
||||
{
|
||||
protected $headerList;
|
||||
protected $hasPackage = false;
|
||||
@ -89,10 +91,10 @@ class ###Component###ViewImport extends JViewLegacy
|
||||
}
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('import');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('import');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
}
|
||||
}
|
@ -17,10 +17,12 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
|
||||
/**
|
||||
* ###Component### ###View### View
|
||||
* ###Component### ###View### Html View
|
||||
*/
|
||||
class ###Component###View###View### extends JViewLegacy
|
||||
class ###Component###View###View### extends HtmlView
|
||||
{###IMPORT_DISPLAY_METHOD_CUSTOM###
|
||||
|
||||
/**
|
||||
@ -37,10 +39,10 @@ class ###Component###View###View### extends JViewLegacy
|
||||
}
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###view###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###view###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
}
|
||||
}
|
@ -16,11 +16,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED###
|
||||
|
||||
###ADMIN_VIEWS_HTML_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### View class for the ###Views###
|
||||
* ###Component### Html View class for the ###Views###
|
||||
*/
|
||||
class ###Component###View###Views### extends JViewLegacy
|
||||
class ###Component###View###Views### extends HtmlView
|
||||
{
|
||||
/**
|
||||
* ###Views### view display method
|
||||
@ -129,10 +131,10 @@ class ###Component###View###Views### extends JViewLegacy
|
||||
}###ADMIN_CUSTOM_FUNCTION_ONLY_BUTTONS_LIST######IMPORTBUTTON###
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###views###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###views###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
|
||||
// add the options comp button
|
@ -16,11 +16,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######CUSTOM_ADMIN_GET_MODULE_JIMPORT###
|
||||
|
||||
###CUSTOM_ADMIN_VIEWS_HTML_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### View class for the ###SViews###
|
||||
* ###Component### Html View class for the ###SViews###
|
||||
*/
|
||||
class ###Component###View###SViews### extends JViewLegacy
|
||||
class ###Component###View###SViews### extends HtmlView
|
||||
{
|
||||
// Overwriting JView display method
|
||||
function display($tpl = null)
|
||||
@ -53,10 +55,10 @@ class ###Component###View###SViews### extends JViewLegacy
|
||||
JToolbarHelper::title(JText::_('COM_###COMPONENT###_###SVIEWS###'),'###ICOMOON###');###CUSTOM_ADMIN_CUSTOM_BUTTONS###
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
|
||||
// add the options comp button
|
@ -16,11 +16,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######SITE_GET_MODULE_JIMPORT###
|
||||
|
||||
###SITE_VIEWS_HTML_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### View class for the ###SViews###
|
||||
* ###Component### Html View class for the ###SViews###
|
||||
*/
|
||||
class ###Component###View###SViews### extends JViewLegacy
|
||||
class ###Component###View###SViews### extends HtmlView
|
||||
{
|
||||
// Overwriting JView display method
|
||||
function display($tpl = null)
|
||||
@ -49,10 +51,10 @@ class ###Component###View###SViews### extends JViewLegacy
|
||||
{###SITE_CUSTOM_BUTTONS###
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###sviews###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
// now initiate the toolbar
|
||||
$this->toolbar = JToolbar::getInstance();
|
@ -16,11 +16,13 @@ defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###LICENSE_LOCKED_DEFINED######SITE_GET_MODULE_JIMPORT###
|
||||
|
||||
###SITE_VIEW_HTML_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### View class for the ###SView###
|
||||
* ###Component### Html View class for the ###SView###
|
||||
*/
|
||||
class ###Component###View###SView### extends JViewLegacy
|
||||
class ###Component###View###SView### extends HtmlView
|
||||
{
|
||||
// Overwriting JView display method
|
||||
function display($tpl = null)
|
||||
@ -49,10 +51,10 @@ class ###Component###View###SView### extends JViewLegacy
|
||||
{###SITE_CUSTOM_BUTTONS###
|
||||
|
||||
// set help url for this view if found
|
||||
$help_url = ###Component###Helper::getHelpUrl('###sview###');
|
||||
if (###Component###Helper::checkString($help_url))
|
||||
$this->help_url = ###Component###Helper::getHelpUrl('###sview###');
|
||||
if (###Component###Helper::checkString($this->help_url))
|
||||
{
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $help_url);
|
||||
JToolbarHelper::help('COM_###COMPONENT###_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
// now initiate the toolbar
|
||||
$this->toolbar = JToolbar::getInstance();
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###CUSTOM_ADMIN_VIEW_MODEL_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### ###SView### Model
|
||||
* ###Component### ###SView### Item Model
|
||||
*/
|
||||
class ###Component###Model###SView### extends JModelItem
|
||||
class ###Component###Model###SView### extends ItemModel
|
||||
{
|
||||
/**
|
||||
* Model context string.
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###SITE_VIEW_MODEL_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### ###SView### Model
|
||||
* ###Component### ###SView### Item Model
|
||||
*/
|
||||
class ###Component###Model###SView### extends JModelItem
|
||||
class ###Component###Model###SView### extends ItemModel
|
||||
{
|
||||
/**
|
||||
* Model context string.
|
765
admin/compiler/joomla_3/JCB_Helper.php
Normal file
765
admin/compiler/joomla_3/JCB_Helper.php
Normal file
@ -0,0 +1,765 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
?>
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###ADMIN_POWER_HELPER###
|
||||
|
||||
###ADMIN_HELPER_CLASS_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### component helper.
|
||||
*/
|
||||
abstract class ###Component###Helper
|
||||
{
|
||||
/**
|
||||
* Adding the utilities trait to this class
|
||||
*
|
||||
* @deprecated 4.0 - Check the trait methods for details, a legacy implementation
|
||||
*/
|
||||
use Utilities;
|
||||
|
||||
/**
|
||||
* get the Component Code Name
|
||||
*/
|
||||
public static $ComponentCodeName = '###component###';
|
||||
|
||||
/**
|
||||
* Composer Switch
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected static $composer = array();###ADMIN_GLOBAL_EVENT_HELPER######CUSTOM_HELPER_SCRIPT######BOTH_CUSTOM_HELPER_SCRIPT###
|
||||
|
||||
/**
|
||||
* Load the Composer Vendors
|
||||
*/
|
||||
public static function composerAutoload($target)
|
||||
{
|
||||
// insure we load the composer vendor only once
|
||||
if (!isset(self::$composer[$target]))
|
||||
{
|
||||
// get the function name
|
||||
$functionName = self::safeString('compose' . $target);
|
||||
// check if method exist
|
||||
if (method_exists(__CLASS__, $functionName))
|
||||
{
|
||||
return self::{$functionName}();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return self::$composer[$target];
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the Component xml manifest.
|
||||
*/
|
||||
public static function manifest()
|
||||
{
|
||||
$manifestUrl = JPATH_ADMINISTRATOR."/components/com_###component###/###component###.xml";
|
||||
return simplexml_load_file($manifestUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Joomla version object
|
||||
*/
|
||||
protected static $JVersion;
|
||||
|
||||
/**
|
||||
* set/get Joomla version
|
||||
*/
|
||||
public static function jVersion()
|
||||
{
|
||||
// check if set
|
||||
if (!self::checkObject(self::$JVersion))
|
||||
{
|
||||
self::$JVersion = new JVersion();
|
||||
}
|
||||
return self::$JVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the Contributors details.
|
||||
*/
|
||||
public static function getContributors()
|
||||
{
|
||||
// get params
|
||||
$params = JComponentHelper::getParams('com_###component###');
|
||||
// start contributors array
|
||||
$contributors = array();
|
||||
// get all Contributors (max 20)
|
||||
$searchArray = range('0','20');
|
||||
foreach($searchArray as $nr)
|
||||
{
|
||||
if ((NULL !== $params->get("showContributor".$nr)) && ($params->get("showContributor".$nr) == 1 || $params->get("showContributor".$nr) == 3))
|
||||
{
|
||||
// set link based of selected option
|
||||
if($params->get("useContributor".$nr) == 1)
|
||||
{
|
||||
$link_front = '<a href="mailto:'.$params->get("emailContributor".$nr).'" target="_blank">';
|
||||
$link_back = '</a>';
|
||||
}
|
||||
elseif($params->get("useContributor".$nr) == 2)
|
||||
{
|
||||
$link_front = '<a href="'.$params->get("linkContributor".$nr).'" target="_blank">';
|
||||
$link_back = '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$link_front = '';
|
||||
$link_back = '';
|
||||
}
|
||||
$contributors[$nr]['title'] = self::htmlEscape($params->get("titleContributor".$nr));
|
||||
$contributors[$nr]['name'] = $link_front.self::htmlEscape($params->get("nameContributor".$nr)).$link_back;
|
||||
}
|
||||
}
|
||||
return $contributors;
|
||||
}###HELP###
|
||||
|
||||
/**
|
||||
* Configure the Linkbar.
|
||||
*/
|
||||
public static function addSubmenu($submenu)
|
||||
{
|
||||
// load user for access menus
|
||||
$user = JFactory::getUser();
|
||||
// load the submenus to sidebar
|
||||
###SUBMENU###
|
||||
}###HELPER_CREATEUSER######HELPER_UIKIT######HELPER_EXEL###
|
||||
|
||||
public static function isPublished($id,$type)
|
||||
{
|
||||
if ($type == 'raw')
|
||||
{
|
||||
$type = 'item';
|
||||
}
|
||||
$db = JFactory::getDbo();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select(array('a.published'));
|
||||
$query->from('#__###component###_'.$type.' AS a');
|
||||
$query->where('a.id = '. (int) $id);
|
||||
$query->where('a.published = 1');
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
$found = $db->getNumRows();
|
||||
if($found)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function getGroupName($id)
|
||||
{
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select(array('a.title'));
|
||||
$query->from('#__usergroups AS a');
|
||||
$query->where('a.id = '. (int) $id);
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
$found = $db->getNumRows();
|
||||
if($found)
|
||||
{
|
||||
return $db->loadResult();
|
||||
}
|
||||
return $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the action permissions
|
||||
*
|
||||
* @param string $view The related view name
|
||||
* @param int $record The item to act upon
|
||||
* @param string $views The related list view name
|
||||
* @param mixed $target Only get this permission (like edit, create, delete)
|
||||
* @param string $component The target component
|
||||
* @param object $user The user whose permissions we are loading
|
||||
*
|
||||
* @return object The JObject of permission/authorised actions
|
||||
*
|
||||
*/
|
||||
public static function getActions($view, &$record = null, $views = null, $target = null, $component = '###component###', $user = 'null')
|
||||
{
|
||||
// load the user if not given
|
||||
if (!self::checkObject($user))
|
||||
{
|
||||
// get the user object
|
||||
$user = JFactory::getUser();
|
||||
}
|
||||
// load the JObject
|
||||
$result = new JObject;
|
||||
// make view name safe (just incase)
|
||||
$view = self::safeString($view);
|
||||
if (self::checkString($views))
|
||||
{
|
||||
$views = self::safeString($views);
|
||||
}
|
||||
// get all actions from component
|
||||
$actions = JAccess::getActionsFromFile(
|
||||
JPATH_ADMINISTRATOR . '/components/com_' . $component . '/access.xml',
|
||||
"/access/section[@name='component']/"
|
||||
);
|
||||
// if non found then return empty JObject
|
||||
if (empty($actions))
|
||||
{
|
||||
return $result;
|
||||
}
|
||||
// get created by if not found
|
||||
if (self::checkObject($record) && !isset($record->created_by) && isset($record->id))
|
||||
{
|
||||
$record->created_by = self::getVar($view, $record->id, 'id', 'created_by', '=', $component);
|
||||
}
|
||||
// set actions only set in component settings
|
||||
$componentActions = array('core.admin', 'core.manage', 'core.options', 'core.export');
|
||||
// check if we have a target
|
||||
$checkTarget = false;
|
||||
if ($target)
|
||||
{
|
||||
// convert to an array
|
||||
if (self::checkString($target))
|
||||
{
|
||||
$target = array($target);
|
||||
}
|
||||
// check if we are good to go
|
||||
if (self::checkArray($target))
|
||||
{
|
||||
$checkTarget = true;
|
||||
}
|
||||
}
|
||||
// loop the actions and set the permissions
|
||||
foreach ($actions as $action)
|
||||
{
|
||||
// check target action filter
|
||||
if ($checkTarget && self::filterActions($view, $action->name, $target))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// set to use component default
|
||||
$fallback = true;
|
||||
// reset permission per/action
|
||||
$permission = false;
|
||||
$catpermission = false;
|
||||
// set area
|
||||
$area = 'comp';
|
||||
// check if the record has an ID and the action is item related (not a component action)
|
||||
if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name, $componentActions) &&
|
||||
(strpos($action->name, 'core.') !== false || strpos($action->name, $view . '.') !== false))
|
||||
{
|
||||
// we are in item
|
||||
$area = 'item';
|
||||
// The record has been set. Check the record permissions.
|
||||
$permission = $user->authorise($action->name, 'com_' . $component . '.' . $view . '.' . (int) $record->id);
|
||||
// if no permission found, check edit own
|
||||
if (!$permission)
|
||||
{
|
||||
// With edit, if the created_by matches current user then dig deeper.
|
||||
if (($action->name === 'core.edit' || $action->name === $view . '.edit') && $record->created_by > 0 && ($record->created_by == $user->id))
|
||||
{
|
||||
// the correct target
|
||||
$coreCheck = (array) explode('.', $action->name);
|
||||
// check that we have both local and global access
|
||||
if ($user->authorise($coreCheck[0] . '.edit.own', 'com_' . $component . '.' . $view . '.' . (int) $record->id) &&
|
||||
$user->authorise($coreCheck[0] . '.edit.own', 'com_' . $component))
|
||||
{
|
||||
// allow edit
|
||||
$result->set($action->name, true);
|
||||
// set not to use global default
|
||||
// because we already validated it
|
||||
$fallback = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// do not allow edit
|
||||
$result->set($action->name, false);
|
||||
$fallback = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif (self::checkString($views) && isset($record->catid) && $record->catid > 0)
|
||||
{
|
||||
// we are in item
|
||||
$area = 'category';
|
||||
// set the core check
|
||||
$coreCheck = explode('.', $action->name);
|
||||
$core = $coreCheck[0];
|
||||
// make sure we use the core. action check for the categories
|
||||
if (strpos($action->name, $view) !== false && strpos($action->name, 'core.') === false )
|
||||
{
|
||||
$coreCheck[0] = 'core';
|
||||
$categoryCheck = implode('.', $coreCheck);
|
||||
}
|
||||
else
|
||||
{
|
||||
$categoryCheck = $action->name;
|
||||
}
|
||||
// The record has a category. Check the category permissions.
|
||||
$catpermission = $user->authorise($categoryCheck, 'com_' . $component . '.' . $views . '.category.' . (int) $record->catid);
|
||||
if (!$catpermission && !is_null($catpermission))
|
||||
{
|
||||
// With edit, if the created_by matches current user then dig deeper.
|
||||
if (($action->name === 'core.edit' || $action->name === $view . '.edit') && $record->created_by > 0 && ($record->created_by == $user->id))
|
||||
{
|
||||
// check that we have both local and global access
|
||||
if ($user->authorise('core.edit.own', 'com_' . $component . '.' . $views . '.category.' . (int) $record->catid) &&
|
||||
$user->authorise($core . '.edit.own', 'com_' . $component))
|
||||
{
|
||||
// allow edit
|
||||
$result->set($action->name, true);
|
||||
// set not to use global default
|
||||
// because we already validated it
|
||||
$fallback = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// do not allow edit
|
||||
$result->set($action->name, false);
|
||||
$fallback = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// if allowed then fallback on component global settings
|
||||
if ($fallback)
|
||||
{
|
||||
// if item/category blocks access then don't fall back on global
|
||||
if ((($area === 'item') && !$permission) || (($area === 'category') && !$catpermission))
|
||||
{
|
||||
// do not allow
|
||||
$result->set($action->name, false);
|
||||
}
|
||||
// Finally remember the global settings have the final say. (even if item allow)
|
||||
// The local item permissions can block, but it can't open and override of global permissions.
|
||||
// Since items are created by users and global permissions is set by system admin.
|
||||
else
|
||||
{
|
||||
$result->set($action->name, $user->authorise($action->name, 'com_' . $component));
|
||||
}
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the action permissions
|
||||
*
|
||||
* @param string $action The action to check
|
||||
* @param array $targets The array of target actions
|
||||
*
|
||||
* @return boolean true if action should be filtered out
|
||||
*
|
||||
*/
|
||||
protected static function filterActions(&$view, &$action, &$targets)
|
||||
{
|
||||
foreach ($targets as $target)
|
||||
{
|
||||
if (strpos($action, $view . '.' . $target) !== false ||
|
||||
strpos($action, 'core.' . $target) !== false)
|
||||
{
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get any component's model
|
||||
*/
|
||||
public static function getModel($name, $path = JPATH_COMPONENT_ADMINISTRATOR, $Component = '###Component###', $config = array())
|
||||
{
|
||||
// fix the name
|
||||
$name = self::safeString($name);
|
||||
// full path to models
|
||||
$fullPathModels = $path . '/models';
|
||||
// load the model file
|
||||
JModelLegacy::addIncludePath($fullPathModels, $Component . 'Model');
|
||||
// make sure the table path is loaded
|
||||
if (!isset($config['table_path']) || !self::checkString($config['table_path']))
|
||||
{
|
||||
// This is the JCB default path to tables in Joomla 3.x
|
||||
$config['table_path'] = JPATH_ADMINISTRATOR . '/components/com_' . strtolower($Component) . '/tables';
|
||||
}
|
||||
// get instance
|
||||
$model = JModelLegacy::getInstance($name, $Component . 'Model', $config);
|
||||
// if model not found (strange)
|
||||
if ($model == false)
|
||||
{
|
||||
jimport('joomla.filesystem.file');
|
||||
// get file path
|
||||
$filePath = $path . '/' . $name . '.php';
|
||||
$fullPathModel = $fullPathModels . '/' . $name . '.php';
|
||||
// check if it exists
|
||||
if (File::exists($filePath))
|
||||
{
|
||||
// get the file
|
||||
require_once $filePath;
|
||||
}
|
||||
elseif (File::exists($fullPathModel))
|
||||
{
|
||||
// get the file
|
||||
require_once $fullPathModel;
|
||||
}
|
||||
// build class names
|
||||
$modelClass = $Component . 'Model' . $name;
|
||||
if (class_exists($modelClass))
|
||||
{
|
||||
// initialize the model
|
||||
return new $modelClass($config);
|
||||
}
|
||||
}
|
||||
return $model;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add to asset Table
|
||||
*/
|
||||
public static function setAsset($id, $table, $inherit = true)
|
||||
{
|
||||
$parent = JTable::getInstance('Asset');
|
||||
$parent->loadByName('com_###component###');
|
||||
|
||||
$parentId = $parent->id;
|
||||
$name = 'com_###component###.'.$table.'.'.$id;
|
||||
$title = '';
|
||||
|
||||
$asset = JTable::getInstance('Asset');
|
||||
$asset->loadByName($name);
|
||||
|
||||
// Check for an error.
|
||||
$error = $asset->getError();
|
||||
|
||||
if ($error)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Specify how a new or moved node asset is inserted into the tree.
|
||||
if ($asset->parent_id != $parentId)
|
||||
{
|
||||
$asset->setLocation($parentId, 'last-child');
|
||||
}
|
||||
|
||||
// Prepare the asset to be stored.
|
||||
$asset->parent_id = $parentId;
|
||||
$asset->name = $name;
|
||||
$asset->title = $title;
|
||||
// get the default asset rules
|
||||
$rules = self::getDefaultAssetRules('com_###component###', $table, $inherit);
|
||||
if ($rules instanceof JAccessRules)
|
||||
{
|
||||
$asset->rules = (string) $rules;
|
||||
}
|
||||
|
||||
if (!$asset->check() || !$asset->store())
|
||||
{
|
||||
JFactory::getApplication()->enqueueMessage($asset->getError(), 'warning');
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Create an asset_id or heal one that is corrupted.
|
||||
$object = new stdClass();
|
||||
|
||||
// Must be a valid primary key value.
|
||||
$object->id = $id;
|
||||
$object->asset_id = (int) $asset->id;
|
||||
|
||||
// Update their asset_id to link to the asset table.
|
||||
return JFactory::getDbo()->updateObject('#__###component###_'.$table, $object, 'id');
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the default asset Rules for a component/view.
|
||||
*/
|
||||
protected static function getDefaultAssetRules($component, $view, $inherit = true)
|
||||
{
|
||||
// if new or inherited
|
||||
$assetId = 0;
|
||||
// Only get the actual item rules if not inheriting
|
||||
if (!$inherit)
|
||||
{
|
||||
// Need to find the asset id by the name of the component.
|
||||
$db = JFactory::getDbo();
|
||||
$query = $db->getQuery(true)
|
||||
->select($db->quoteName('id'))
|
||||
->from($db->quoteName('#__assets'))
|
||||
->where($db->quoteName('name') . ' = ' . $db->quote($component));
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
// check that there is a value
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
// asset already set so use saved rules
|
||||
$assetId = (int) $db->loadResult();
|
||||
}
|
||||
}
|
||||
// get asset rules
|
||||
$result = JAccess::getAssetRules($assetId);
|
||||
if ($result instanceof JAccessRules)
|
||||
{
|
||||
$_result = (string) $result;
|
||||
$_result = json_decode($_result);
|
||||
foreach ($_result as $name => &$rule)
|
||||
{
|
||||
$v = explode('.', $name);
|
||||
if ($view !== $v[0])
|
||||
{
|
||||
// remove since it is not part of this view
|
||||
unset($_result->$name);
|
||||
}
|
||||
elseif ($inherit)
|
||||
{
|
||||
// clear the value since we inherit
|
||||
$rule = array();
|
||||
}
|
||||
}
|
||||
// check if there are any view values remaining
|
||||
if (count((array) $_result))
|
||||
{
|
||||
$_result = json_encode($_result);
|
||||
$_result = array($_result);
|
||||
// Instantiate and return the JAccessRules object for the asset rules.
|
||||
$rules = new JAccessRules($_result);
|
||||
// return filtered rules
|
||||
return $rules;
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlAppend
|
||||
*
|
||||
* @param SimpleXMLElement $xml The XML element reference in which to inject a comment
|
||||
* @param mixed $node A SimpleXMLElement node to append to the XML element reference, or a stdClass object containing a comment attribute to be injected before the XML node and a fieldXML attribute containing a SimpleXMLElement
|
||||
*
|
||||
* @return null
|
||||
*
|
||||
*/
|
||||
public static function xmlAppend(&$xml, $node)
|
||||
{
|
||||
if (!$node)
|
||||
{
|
||||
// element was not returned
|
||||
return;
|
||||
}
|
||||
switch (get_class($node))
|
||||
{
|
||||
case 'stdClass':
|
||||
if (property_exists($node, 'comment'))
|
||||
{
|
||||
self::xmlComment($xml, $node->comment);
|
||||
}
|
||||
if (property_exists($node, 'fieldXML'))
|
||||
{
|
||||
self::xmlAppend($xml, $node->fieldXML);
|
||||
}
|
||||
break;
|
||||
case 'SimpleXMLElement':
|
||||
$domXML = dom_import_simplexml($xml);
|
||||
$domNode = dom_import_simplexml($node);
|
||||
$domXML->appendChild($domXML->ownerDocument->importNode($domNode, true));
|
||||
$xml = simplexml_import_dom($domXML);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlComment
|
||||
*
|
||||
* @param SimpleXMLElement $xml The XML element reference in which to inject a comment
|
||||
* @param string $comment The comment to inject
|
||||
*
|
||||
* @return null
|
||||
*
|
||||
*/
|
||||
public static function xmlComment(&$xml, $comment)
|
||||
{
|
||||
$domXML = dom_import_simplexml($xml);
|
||||
$domComment = new DOMComment($comment);
|
||||
$nodeTarget = $domXML->ownerDocument->importNode($domComment, true);
|
||||
$domXML->appendChild($nodeTarget);
|
||||
$xml = simplexml_import_dom($domXML);
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlAddAttributes
|
||||
*
|
||||
* @param SimpleXMLElement $xml The XML element reference in which to inject a comment
|
||||
* @param array $attributes The attributes to apply to the XML element
|
||||
*
|
||||
* @return null
|
||||
*
|
||||
*/
|
||||
public static function xmlAddAttributes(&$xml, $attributes = array())
|
||||
{
|
||||
foreach ($attributes as $key => $value)
|
||||
{
|
||||
$xml->addAttribute($key, $value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlAddOptions
|
||||
*
|
||||
* @param SimpleXMLElement $xml The XML element reference in which to inject a comment
|
||||
* @param array $options The options to apply to the XML element
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public static function xmlAddOptions(&$xml, $options = array())
|
||||
{
|
||||
foreach ($options as $key => $value)
|
||||
{
|
||||
$addOption = $xml->addChild('option');
|
||||
$addOption->addAttribute('value', $key);
|
||||
$addOption[] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* get the field object
|
||||
*
|
||||
* @param array $attributes The array of attributes
|
||||
* @param string $default The default of the field
|
||||
* @param array $options The options to apply to the XML element
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
*/
|
||||
public static function getFieldObject(&$attributes, $default = '', $options = null)
|
||||
{
|
||||
// make sure we have attributes and a type value
|
||||
if (self::checkArray($attributes) && isset($attributes['type']))
|
||||
{
|
||||
// make sure the form helper class is loaded
|
||||
if (!method_exists('JFormHelper', 'loadFieldType'))
|
||||
{
|
||||
jimport('joomla.form.form');
|
||||
}
|
||||
// get field type
|
||||
$field = JFormHelper::loadFieldType($attributes['type'], true);
|
||||
// get field xml
|
||||
$XML = self::getFieldXML($attributes, $options);
|
||||
// setup the field
|
||||
$field->setup($XML, $default);
|
||||
// return the field object
|
||||
return $field;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the field xml
|
||||
*
|
||||
* @param array $attributes The array of attributes
|
||||
* @param array $options The options to apply to the XML element
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
*/
|
||||
public static function getFieldXML(&$attributes, $options = null)
|
||||
{
|
||||
// make sure we have attributes and a type value
|
||||
if (self::checkArray($attributes))
|
||||
{
|
||||
// start field xml
|
||||
$XML = new SimpleXMLElement('<field/>');
|
||||
// load the attributes
|
||||
self::xmlAddAttributes($XML, $attributes);
|
||||
// check if we have options
|
||||
if (self::checkArray($options))
|
||||
{
|
||||
// load the options
|
||||
self::xmlAddOptions($XML, $options);
|
||||
}
|
||||
// return the field xml
|
||||
return $XML;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render Bool Button
|
||||
*
|
||||
* @param array $args All the args for the button
|
||||
* 0) name
|
||||
* 1) additional (options class) // not used at this time
|
||||
* 2) default
|
||||
* 3) yes (name)
|
||||
* 4) no (name)
|
||||
*
|
||||
* @return string The input html of the button
|
||||
*
|
||||
*/
|
||||
public static function renderBoolButton()
|
||||
{
|
||||
$args = func_get_args();
|
||||
// check if there is additional button class
|
||||
$additional = isset($args[1]) ? (string) $args[1] : ''; // not used at this time
|
||||
// button attributes
|
||||
$buttonAttributes = array(
|
||||
'type' => 'radio',
|
||||
'name' => isset($args[0]) ? self::htmlEscape($args[0]) : 'bool_button',
|
||||
'label' => isset($args[0]) ? self::safeString(self::htmlEscape($args[0]), 'Ww') : 'Bool Button', // not seen anyway
|
||||
'class' => 'btn-group',
|
||||
'filter' => 'INT',
|
||||
'default' => isset($args[2]) ? (int) $args[2] : 0);
|
||||
// set the button options
|
||||
$buttonOptions = array(
|
||||
'1' => isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES',
|
||||
'0' => isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO');
|
||||
// return the input
|
||||
return self::getFieldObject($buttonAttributes, $buttonAttributes['default'], $buttonOptions)->input;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if we are connected
|
||||
* Thanks https://stackoverflow.com/a/4860432/1429677
|
||||
*
|
||||
* @returns bool true on success
|
||||
*/
|
||||
public static function isConnected()
|
||||
{
|
||||
// If example.com is down, then probably the whole internet is down, since IANA maintains the domain. Right?
|
||||
$connected = @fsockopen("www.example.com", 80);
|
||||
// website, port (try 80 or 443)
|
||||
if ($connected)
|
||||
{
|
||||
//action when connected
|
||||
$is_conn = true;
|
||||
fclose($connected);
|
||||
}
|
||||
else
|
||||
{
|
||||
//action in connection failure
|
||||
$is_conn = false;
|
||||
}
|
||||
return $is_conn;
|
||||
}
|
||||
|
||||
// typo sorry!
|
||||
public static function sorten($string, $length = 40, $addTip = true)
|
||||
{
|
||||
return self::shorten($string, $length, $addTip);
|
||||
}###HELPER_LICENSE_LOCK######GET_CRYPT_KEY###
|
||||
}
|
754
admin/compiler/joomla_3/JCB_Helper_site.php
Normal file
754
admin/compiler/joomla_3/JCB_Helper_site.php
Normal file
@ -0,0 +1,754 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
||||
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
||||
* @copyright Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
||||
*/
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
?>
|
||||
###BOM###
|
||||
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');###SITE_POWER_HELPER###
|
||||
|
||||
###SITE_HELPER_CLASS_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### component helper
|
||||
*/
|
||||
abstract class ###Component###Helper
|
||||
{
|
||||
/**
|
||||
* Adding the utilities trait to this class
|
||||
*
|
||||
* @deprecated 4.0 - Check the trait methods for details, a legacy implementation
|
||||
*/
|
||||
use Utilities;
|
||||
|
||||
/**
|
||||
* get the Component Code Name
|
||||
*/
|
||||
public static $ComponentCodeName = '###component###';
|
||||
|
||||
/**
|
||||
* Composer Switch
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected static $composer = array();###SITE_GLOBAL_EVENT_HELPER######SITE_CUSTOM_HELPER_SCRIPT######BOTH_CUSTOM_HELPER_SCRIPT###
|
||||
|
||||
/**
|
||||
* Load the Composer Vendors
|
||||
*/
|
||||
public static function composerAutoload($target)
|
||||
{
|
||||
// insure we load the composer vendor only once
|
||||
if (!isset(self::$composer[$target]))
|
||||
{
|
||||
// get the function name
|
||||
$functionName = self::safeString('compose' . $target);
|
||||
// check if method exist
|
||||
if (method_exists(__CLASS__, $functionName))
|
||||
{
|
||||
return self::{$functionName}();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return self::$composer[$target];
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the Component xml manifest.
|
||||
*/
|
||||
public static function manifest()
|
||||
{
|
||||
$manifestUrl = JPATH_ADMINISTRATOR."/components/com_###component###/###component###.xml";
|
||||
return simplexml_load_file($manifestUrl);
|
||||
}
|
||||
|
||||
/**
|
||||
* Joomla version object
|
||||
*/
|
||||
protected static $JVersion;
|
||||
|
||||
/**
|
||||
* set/get Joomla version
|
||||
*/
|
||||
public static function jVersion()
|
||||
{
|
||||
// check if set
|
||||
if (!self::checkObject(self::$JVersion))
|
||||
{
|
||||
self::$JVersion = new JVersion();
|
||||
}
|
||||
return self::$JVersion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the Contributors details.
|
||||
*/
|
||||
public static function getContributors()
|
||||
{
|
||||
// get params
|
||||
$params = JComponentHelper::getParams('com_###component###');
|
||||
// start contributors array
|
||||
$contributors = array();
|
||||
// get all Contributors (max 20)
|
||||
$searchArray = range('0','20');
|
||||
foreach($searchArray as $nr)
|
||||
{
|
||||
if ((NULL !== $params->get("showContributor".$nr)) && ($params->get("showContributor".$nr) == 2 || $params->get("showContributor".$nr) == 3))
|
||||
{
|
||||
// set link based of selected option
|
||||
if($params->get("useContributor".$nr) == 1)
|
||||
{
|
||||
$link_front = '<a href="mailto:'.$params->get("emailContributor".$nr).'" target="_blank">';
|
||||
$link_back = '</a>';
|
||||
}
|
||||
elseif($params->get("useContributor".$nr) == 2)
|
||||
{
|
||||
$link_front = '<a href="'.$params->get("linkContributor".$nr).'" target="_blank">';
|
||||
$link_back = '</a>';
|
||||
}
|
||||
else
|
||||
{
|
||||
$link_front = '';
|
||||
$link_back = '';
|
||||
}
|
||||
$contributors[$nr]['title'] = self::htmlEscape($params->get("titleContributor".$nr));
|
||||
$contributors[$nr]['name'] = $link_front.self::htmlEscape($params->get("nameContributor".$nr)).$link_back;
|
||||
}
|
||||
}
|
||||
return $contributors;
|
||||
}###HELP_SITE###
|
||||
|
||||
/**
|
||||
* Get any component's model
|
||||
*/
|
||||
public static function getModel($name, $path = JPATH_COMPONENT_SITE, $Component = '###Component###', $config = array())
|
||||
{
|
||||
// fix the name
|
||||
$name = self::safeString($name);
|
||||
// full path to models
|
||||
$fullPathModels = $path . '/models';
|
||||
// load the model file
|
||||
JModelLegacy::addIncludePath($fullPathModels, $Component . 'Model');
|
||||
// make sure the table path is loaded
|
||||
if (!isset($config['table_path']) || !self::checkString($config['table_path']))
|
||||
{
|
||||
// This is the JCB default path to tables in Joomla 3.x
|
||||
$config['table_path'] = JPATH_ADMINISTRATOR . '/components/com_' . strtolower($Component) . '/tables';
|
||||
}
|
||||
// get instance
|
||||
$model = JModelLegacy::getInstance($name, $Component . 'Model', $config);
|
||||
// if model not found (strange)
|
||||
if ($model == false)
|
||||
{
|
||||
jimport('joomla.filesystem.file');
|
||||
// get file path
|
||||
$filePath = $path . '/' . $name . '.php';
|
||||
$fullPathModel = $fullPathModels . '/' . $name . '.php';
|
||||
// check if it exists
|
||||
if (File::exists($filePath))
|
||||
{
|
||||
// get the file
|
||||
require_once $filePath;
|
||||
}
|
||||
elseif (File::exists($fullPathModel))
|
||||
{
|
||||
// get the file
|
||||
require_once $fullPathModel;
|
||||
}
|
||||
// build class names
|
||||
$modelClass = $Component . 'Model' . $name;
|
||||
if (class_exists($modelClass))
|
||||
{
|
||||
// initialize the model
|
||||
return new $modelClass($config);
|
||||
}
|
||||
}
|
||||
return $model;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add to asset Table
|
||||
*/
|
||||
public static function setAsset($id, $table, $inherit = true)
|
||||
{
|
||||
$parent = JTable::getInstance('Asset');
|
||||
$parent->loadByName('com_###component###');
|
||||
|
||||
$parentId = $parent->id;
|
||||
$name = 'com_###component###.'.$table.'.'.$id;
|
||||
$title = '';
|
||||
|
||||
$asset = JTable::getInstance('Asset');
|
||||
$asset->loadByName($name);
|
||||
|
||||
// Check for an error.
|
||||
$error = $asset->getError();
|
||||
|
||||
if ($error)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Specify how a new or moved node asset is inserted into the tree.
|
||||
if ($asset->parent_id != $parentId)
|
||||
{
|
||||
$asset->setLocation($parentId, 'last-child');
|
||||
}
|
||||
|
||||
// Prepare the asset to be stored.
|
||||
$asset->parent_id = $parentId;
|
||||
$asset->name = $name;
|
||||
$asset->title = $title;
|
||||
// get the default asset rules
|
||||
$rules = self::getDefaultAssetRules('com_###component###', $table, $inherit);
|
||||
if ($rules instanceof JAccessRules)
|
||||
{
|
||||
$asset->rules = (string) $rules;
|
||||
}
|
||||
|
||||
if (!$asset->check() || !$asset->store())
|
||||
{
|
||||
JFactory::getApplication()->enqueueMessage($asset->getError(), 'warning');
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Create an asset_id or heal one that is corrupted.
|
||||
$object = new stdClass();
|
||||
|
||||
// Must be a valid primary key value.
|
||||
$object->id = $id;
|
||||
$object->asset_id = (int) $asset->id;
|
||||
|
||||
// Update their asset_id to link to the asset table.
|
||||
return JFactory::getDbo()->updateObject('#__###component###_'.$table, $object, 'id');
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the default asset Rules for a component/view.
|
||||
*/
|
||||
protected static function getDefaultAssetRules($component, $view, $inherit = true)
|
||||
{
|
||||
// if new or inherited
|
||||
$assetId = 0;
|
||||
// Only get the actual item rules if not inheriting
|
||||
if (!$inherit)
|
||||
{
|
||||
// Need to find the asset id by the name of the component.
|
||||
$db = JFactory::getDbo();
|
||||
$query = $db->getQuery(true)
|
||||
->select($db->quoteName('id'))
|
||||
->from($db->quoteName('#__assets'))
|
||||
->where($db->quoteName('name') . ' = ' . $db->quote($component));
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
// check that there is a value
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
// asset already set so use saved rules
|
||||
$assetId = (int) $db->loadResult();
|
||||
}
|
||||
}
|
||||
// get asset rules
|
||||
$result = JAccess::getAssetRules($assetId);
|
||||
if ($result instanceof JAccessRules)
|
||||
{
|
||||
$_result = (string) $result;
|
||||
$_result = json_decode($_result);
|
||||
foreach ($_result as $name => &$rule)
|
||||
{
|
||||
$v = explode('.', $name);
|
||||
if ($view !== $v[0])
|
||||
{
|
||||
// remove since it is not part of this view
|
||||
unset($_result->$name);
|
||||
}
|
||||
elseif ($inherit)
|
||||
{
|
||||
// clear the value since we inherit
|
||||
$rule = array();
|
||||
}
|
||||
}
|
||||
// check if there are any view values remaining
|
||||
if (count((array) $_result))
|
||||
{
|
||||
$_result = json_encode($_result);
|
||||
$_result = array($_result);
|
||||
// Instantiate and return the JAccessRules object for the asset rules.
|
||||
$rules = new JAccessRules($_result);
|
||||
// return filtered rules
|
||||
return $rules;
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlAppend
|
||||
*
|
||||
* @param SimpleXMLElement $xml The XML element reference in which to inject a comment
|
||||
* @param mixed $node A SimpleXMLElement node to append to the XML element reference, or a stdClass object containing a comment attribute to be injected before the XML node and a fieldXML attribute containing a SimpleXMLElement
|
||||
*
|
||||
* @return null
|
||||
*
|
||||
*/
|
||||
public static function xmlAppend(&$xml, $node)
|
||||
{
|
||||
if (!$node)
|
||||
{
|
||||
// element was not returned
|
||||
return;
|
||||
}
|
||||
switch (get_class($node))
|
||||
{
|
||||
case 'stdClass':
|
||||
if (property_exists($node, 'comment'))
|
||||
{
|
||||
self::xmlComment($xml, $node->comment);
|
||||
}
|
||||
if (property_exists($node, 'fieldXML'))
|
||||
{
|
||||
self::xmlAppend($xml, $node->fieldXML);
|
||||
}
|
||||
break;
|
||||
case 'SimpleXMLElement':
|
||||
$domXML = dom_import_simplexml($xml);
|
||||
$domNode = dom_import_simplexml($node);
|
||||
$domXML->appendChild($domXML->ownerDocument->importNode($domNode, true));
|
||||
$xml = simplexml_import_dom($domXML);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlComment
|
||||
*
|
||||
* @param SimpleXMLElement $xml The XML element reference in which to inject a comment
|
||||
* @param string $comment The comment to inject
|
||||
*
|
||||
* @return null
|
||||
*
|
||||
*/
|
||||
public static function xmlComment(&$xml, $comment)
|
||||
{
|
||||
$domXML = dom_import_simplexml($xml);
|
||||
$domComment = new DOMComment($comment);
|
||||
$nodeTarget = $domXML->ownerDocument->importNode($domComment, true);
|
||||
$domXML->appendChild($nodeTarget);
|
||||
$xml = simplexml_import_dom($domXML);
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlAddAttributes
|
||||
*
|
||||
* @param SimpleXMLElement $xml The XML element reference in which to inject a comment
|
||||
* @param array $attributes The attributes to apply to the XML element
|
||||
*
|
||||
* @return null
|
||||
*
|
||||
*/
|
||||
public static function xmlAddAttributes(&$xml, $attributes = array())
|
||||
{
|
||||
foreach ($attributes as $key => $value)
|
||||
{
|
||||
$xml->addAttribute($key, $value);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* xmlAddOptions
|
||||
*
|
||||
* @param SimpleXMLElement $xml The XML element reference in which to inject a comment
|
||||
* @param array $options The options to apply to the XML element
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
public static function xmlAddOptions(&$xml, $options = array())
|
||||
{
|
||||
foreach ($options as $key => $value)
|
||||
{
|
||||
$addOption = $xml->addChild('option');
|
||||
$addOption->addAttribute('value', $key);
|
||||
$addOption[] = $value;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* get the field object
|
||||
*
|
||||
* @param array $attributes The array of attributes
|
||||
* @param string $default The default of the field
|
||||
* @param array $options The options to apply to the XML element
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
*/
|
||||
public static function getFieldObject(&$attributes, $default = '', $options = null)
|
||||
{
|
||||
// make sure we have attributes and a type value
|
||||
if (self::checkArray($attributes) && isset($attributes['type']))
|
||||
{
|
||||
// make sure the form helper class is loaded
|
||||
if (!method_exists('JFormHelper', 'loadFieldType'))
|
||||
{
|
||||
jimport('joomla.form.form');
|
||||
}
|
||||
// get field type
|
||||
$field = JFormHelper::loadFieldType($attributes['type'], true);
|
||||
// get field xml
|
||||
$XML = self::getFieldXML($attributes, $options);
|
||||
// setup the field
|
||||
$field->setup($XML, $default);
|
||||
// return the field object
|
||||
return $field;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* get the field xml
|
||||
*
|
||||
* @param array $attributes The array of attributes
|
||||
* @param array $options The options to apply to the XML element
|
||||
*
|
||||
* @return object
|
||||
*
|
||||
*/
|
||||
public static function getFieldXML(&$attributes, $options = null)
|
||||
{
|
||||
// make sure we have attributes and a type value
|
||||
if (self::checkArray($attributes))
|
||||
{
|
||||
// start field xml
|
||||
$XML = new SimpleXMLElement('<field/>');
|
||||
// load the attributes
|
||||
self::xmlAddAttributes($XML, $attributes);
|
||||
// check if we have options
|
||||
if (self::checkArray($options))
|
||||
{
|
||||
// load the options
|
||||
self::xmlAddOptions($XML, $options);
|
||||
}
|
||||
// return the field xml
|
||||
return $XML;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render Bool Button
|
||||
*
|
||||
* @param array $args All the args for the button
|
||||
* 0) name
|
||||
* 1) additional (options class) // not used at this time
|
||||
* 2) default
|
||||
* 3) yes (name)
|
||||
* 4) no (name)
|
||||
*
|
||||
* @return string The input html of the button
|
||||
*
|
||||
*/
|
||||
public static function renderBoolButton()
|
||||
{
|
||||
$args = func_get_args();
|
||||
// check if there is additional button class
|
||||
$additional = isset($args[1]) ? (string) $args[1] : ''; // not used at this time
|
||||
// button attributes
|
||||
$buttonAttributes = array(
|
||||
'type' => 'radio',
|
||||
'name' => isset($args[0]) ? self::htmlEscape($args[0]) : 'bool_button',
|
||||
'label' => isset($args[0]) ? self::safeString(self::htmlEscape($args[0]), 'Ww') : 'Bool Button', // not seen anyway
|
||||
'class' => 'btn-group',
|
||||
'filter' => 'INT',
|
||||
'default' => isset($args[2]) ? (int) $args[2] : 0);
|
||||
// set the button options
|
||||
$buttonOptions = array(
|
||||
'1' => isset($args[3]) ? self::htmlEscape($args[3]) : 'JYES',
|
||||
'0' => isset($args[4]) ? self::htmlEscape($args[4]) : 'JNO');
|
||||
// return the input
|
||||
return self::getFieldObject($buttonAttributes, $buttonAttributes['default'], $buttonOptions)->input;
|
||||
}###HELPER_UIKIT######HELPER_CREATEUSER###
|
||||
|
||||
public static function isPublished($id,$type)
|
||||
{
|
||||
if ($type == 'raw')
|
||||
{
|
||||
$type = 'item';
|
||||
}
|
||||
$db = JFactory::getDbo();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select(array('a.published'));
|
||||
$query->from('#__###component###_'.$type.' AS a');
|
||||
$query->where('a.id = '. (int) $id);
|
||||
$query->where('a.published = 1');
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
$found = $db->getNumRows();
|
||||
if($found)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public static function getGroupName($id)
|
||||
{
|
||||
$db = JFactory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select(array('a.title'));
|
||||
$query->from('#__usergroups AS a');
|
||||
$query->where('a.id = '. (int) $id);
|
||||
$db->setQuery($query);
|
||||
$db->execute();
|
||||
$found = $db->getNumRows();
|
||||
if($found)
|
||||
{
|
||||
return $db->loadResult();
|
||||
}
|
||||
return $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the action permissions
|
||||
*
|
||||
* @param string $view The related view name
|
||||
* @param int $record The item to act upon
|
||||
* @param string $views The related list view name
|
||||
* @param mixed $target Only get this permission (like edit, create, delete)
|
||||
* @param string $component The target component
|
||||
* @param object $user The user whose permissions we are loading
|
||||
*
|
||||
* @return object The JObject of permission/authorised actions
|
||||
*
|
||||
*/
|
||||
public static function getActions($view, &$record = null, $views = null, $target = null, $component = '###component###', $user = 'null')
|
||||
{
|
||||
// load the user if not given
|
||||
if (!self::checkObject($user))
|
||||
{
|
||||
// get the user object
|
||||
$user = JFactory::getUser();
|
||||
}
|
||||
// load the JObject
|
||||
$result = new JObject;
|
||||
// make view name safe (just incase)
|
||||
$view = self::safeString($view);
|
||||
if (self::checkString($views))
|
||||
{
|
||||
$views = self::safeString($views);
|
||||
}
|
||||
// get all actions from component
|
||||
$actions = JAccess::getActionsFromFile(
|
||||
JPATH_ADMINISTRATOR . '/components/com_' . $component . '/access.xml',
|
||||
"/access/section[@name='component']/"
|
||||
);
|
||||
// if non found then return empty JObject
|
||||
if (empty($actions))
|
||||
{
|
||||
return $result;
|
||||
}
|
||||
// get created by if not found
|
||||
if (self::checkObject($record) && !isset($record->created_by) && isset($record->id))
|
||||
{
|
||||
$record->created_by = self::getVar($view, $record->id, 'id', 'created_by', '=', $component);
|
||||
}
|
||||
// set actions only set in component settings
|
||||
$componentActions = array('core.admin', 'core.manage', 'core.options', 'core.export');
|
||||
// check if we have a target
|
||||
$checkTarget = false;
|
||||
if ($target)
|
||||
{
|
||||
// convert to an array
|
||||
if (self::checkString($target))
|
||||
{
|
||||
$target = array($target);
|
||||
}
|
||||
// check if we are good to go
|
||||
if (self::checkArray($target))
|
||||
{
|
||||
$checkTarget = true;
|
||||
}
|
||||
}
|
||||
// loop the actions and set the permissions
|
||||
foreach ($actions as $action)
|
||||
{
|
||||
// check target action filter
|
||||
if ($checkTarget && self::filterActions($view, $action->name, $target))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
// set to use component default
|
||||
$fallback = true;
|
||||
// reset permission per/action
|
||||
$permission = false;
|
||||
$catpermission = false;
|
||||
// set area
|
||||
$area = 'comp';
|
||||
// check if the record has an ID and the action is item related (not a component action)
|
||||
if (self::checkObject($record) && isset($record->id) && $record->id > 0 && !in_array($action->name, $componentActions) &&
|
||||
(strpos($action->name, 'core.') !== false || strpos($action->name, $view . '.') !== false))
|
||||
{
|
||||
// we are in item
|
||||
$area = 'item';
|
||||
// The record has been set. Check the record permissions.
|
||||
$permission = $user->authorise($action->name, 'com_' . $component . '.' . $view . '.' . (int) $record->id);
|
||||
// if no permission found, check edit own
|
||||
if (!$permission)
|
||||
{
|
||||
// With edit, if the created_by matches current user then dig deeper.
|
||||
if (($action->name === 'core.edit' || $action->name === $view . '.edit') && $record->created_by > 0 && ($record->created_by == $user->id))
|
||||
{
|
||||
// the correct target
|
||||
$coreCheck = (array) explode('.', $action->name);
|
||||
// check that we have both local and global access
|
||||
if ($user->authorise($coreCheck[0] . '.edit.own', 'com_' . $component . '.' . $view . '.' . (int) $record->id) &&
|
||||
$user->authorise($coreCheck[0] . '.edit.own', 'com_' . $component))
|
||||
{
|
||||
// allow edit
|
||||
$result->set($action->name, true);
|
||||
// set not to use global default
|
||||
// because we already validated it
|
||||
$fallback = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// do not allow edit
|
||||
$result->set($action->name, false);
|
||||
$fallback = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
elseif (self::checkString($views) && isset($record->catid) && $record->catid > 0)
|
||||
{
|
||||
// we are in item
|
||||
$area = 'category';
|
||||
// set the core check
|
||||
$coreCheck = explode('.', $action->name);
|
||||
$core = $coreCheck[0];
|
||||
// make sure we use the core. action check for the categories
|
||||
if (strpos($action->name, $view) !== false && strpos($action->name, 'core.') === false )
|
||||
{
|
||||
$coreCheck[0] = 'core';
|
||||
$categoryCheck = implode('.', $coreCheck);
|
||||
}
|
||||
else
|
||||
{
|
||||
$categoryCheck = $action->name;
|
||||
}
|
||||
// The record has a category. Check the category permissions.
|
||||
$catpermission = $user->authorise($categoryCheck, 'com_' . $component . '.' . $views . '.category.' . (int) $record->catid);
|
||||
if (!$catpermission && !is_null($catpermission))
|
||||
{
|
||||
// With edit, if the created_by matches current user then dig deeper.
|
||||
if (($action->name === 'core.edit' || $action->name === $view . '.edit') && $record->created_by > 0 && ($record->created_by == $user->id))
|
||||
{
|
||||
// check that we have both local and global access
|
||||
if ($user->authorise('core.edit.own', 'com_' . $component . '.' . $views . '.category.' . (int) $record->catid) &&
|
||||
$user->authorise($core . '.edit.own', 'com_' . $component))
|
||||
{
|
||||
// allow edit
|
||||
$result->set($action->name, true);
|
||||
// set not to use global default
|
||||
// because we already validated it
|
||||
$fallback = false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// do not allow edit
|
||||
$result->set($action->name, false);
|
||||
$fallback = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// if allowed then fallback on component global settings
|
||||
if ($fallback)
|
||||
{
|
||||
// if item/category blocks access then don't fall back on global
|
||||
if ((($area === 'item') && !$permission) || (($area === 'category') && !$catpermission))
|
||||
{
|
||||
// do not allow
|
||||
$result->set($action->name, false);
|
||||
}
|
||||
// Finally remember the global settings have the final say. (even if item allow)
|
||||
// The local item permissions can block, but it can't open and override of global permissions.
|
||||
// Since items are created by users and global permissions is set by system admin.
|
||||
else
|
||||
{
|
||||
$result->set($action->name, $user->authorise($action->name, 'com_' . $component));
|
||||
}
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* Filter the action permissions
|
||||
*
|
||||
* @param string $action The action to check
|
||||
* @param array $targets The array of target actions
|
||||
*
|
||||
* @return boolean true if action should be filtered out
|
||||
*
|
||||
*/
|
||||
protected static function filterActions(&$view, &$action, &$targets)
|
||||
{
|
||||
foreach ($targets as $target)
|
||||
{
|
||||
if (strpos($action, $view . '.' . $target) !== false ||
|
||||
strpos($action, 'core.' . $target) !== false)
|
||||
{
|
||||
return false;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if we are connected
|
||||
* Thanks https://stackoverflow.com/a/4860432/1429677
|
||||
*
|
||||
* @returns bool true on success
|
||||
*/
|
||||
public static function isConnected()
|
||||
{
|
||||
// If example.com is down, then probably the whole internet is down, since IANA maintains the domain. Right?
|
||||
$connected = @fsockopen("www.example.com", 80);
|
||||
// website, port (try 80 or 443)
|
||||
if ($connected)
|
||||
{
|
||||
//action when connected
|
||||
$is_conn = true;
|
||||
fclose($connected);
|
||||
}
|
||||
else
|
||||
{
|
||||
//action in connection failure
|
||||
$is_conn = false;
|
||||
}
|
||||
return $is_conn;
|
||||
}
|
||||
|
||||
// typo sorry!
|
||||
public static function sorten($string, $length = 40, $addTip = true)
|
||||
{
|
||||
return self::shorten($string, $length, $addTip);
|
||||
}###HELPER_SITE_LICENSE_LOCK######GET_CRYPT_KEY###
|
||||
}
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###ADMIN_VIEWS_MODEL_HEADER###
|
||||
|
||||
/**
|
||||
* ###Views### Model
|
||||
* ###Views### List Model
|
||||
*/
|
||||
class ###Component###Model###Views### extends JModelList
|
||||
class ###Component###Model###Views### extends ListModel
|
||||
{
|
||||
public function __construct($config = array())
|
||||
{
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###AJAX_ADMIN_MODEL_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### Ajax Model
|
||||
* ###Component### Ajax List Model
|
||||
*/
|
||||
class ###Component###ModelAjax extends JModelList
|
||||
class ###Component###ModelAjax extends ListModel
|
||||
{
|
||||
protected $app_params;
|
||||
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###AJAX_SITE_MODEL_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### Ajax Model
|
||||
* ###Component### Ajax List Model
|
||||
*/
|
||||
class ###Component###ModelAjax extends JModelList
|
||||
class ###Component###ModelAjax extends ListModel
|
||||
{
|
||||
protected $app_params;
|
||||
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###DASH_MODEL_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### Model
|
||||
* ###Component### List Model
|
||||
*/
|
||||
class ###Component###Model###Component### extends JModelList
|
||||
class ###Component###Model###Component### extends ListModel
|
||||
{
|
||||
public function getIcons()
|
||||
{
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###CUSTOM_ADMIN_VIEWS_MODEL_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### Model for ###SViews###
|
||||
* ###Component### List Model for ###SViews###
|
||||
*/
|
||||
class ###Component###Model###SViews### extends JModelList
|
||||
class ###Component###Model###SViews### extends ListModel
|
||||
{
|
||||
/**
|
||||
* Model user data.
|
@ -20,9 +20,9 @@ defined('_JEXEC') or die('Restricted access');
|
||||
###SITE_VIEWS_MODEL_HEADER###
|
||||
|
||||
/**
|
||||
* ###Component### Model for ###SViews###
|
||||
* ###Component### List Model for ###SViews###
|
||||
*/
|
||||
class ###Component###Model###SViews### extends JModelList
|
||||
class ###Component###Model###SViews### extends ListModel
|
||||
{
|
||||
/**
|
||||
* Model user data.
|
@ -17,6 +17,7 @@ defined('_JEXEC') or die('Restricted access');
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\Table\Table;
|
||||
use Joomla\Registry\Registry;
|
||||
use Joomla\String\StringHelper;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
@ -24,7 +25,7 @@ use Joomla\Utilities\ArrayHelper;
|
||||
/**
|
||||
* ###Views### Table class
|
||||
*/
|
||||
class ###Component###Table###View### extends JTable
|
||||
class ###Component###Table###View### extends Table
|
||||
{
|
||||
/**
|
||||
* Ensure the params and metadata in json encoded in the bind method
|
@ -32,7 +32,7 @@ $document->addScript('components/com_###component###/assets/js/admin.js');
|
||||
|
||||
// require helper files
|
||||
JLoader::register('###Component###Helper', __DIR__ . '/helpers/###component###.php');###HELPER_EMAIL###
|
||||
JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');###LICENSE_LOCKED_INT######ADMIN_GLOBAL_EVENT######ADMIN_POWER_EVENT###
|
||||
JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');###LICENSE_LOCKED_INT######ADMIN_GLOBAL_EVENT###
|
||||
|
||||
// Get an instance of the controller prefixed by ###Component###
|
||||
$controller = JControllerLegacy::getInstance('###Component###');
|
||||
|
@ -26,7 +26,7 @@ $document->addScript('components/com_###component###/assets/js/site.js');
|
||||
|
||||
// Require helper files
|
||||
JLoader::register('###Component###Helper', __DIR__ . '/helpers/###component###.php');###HELPER_EMAIL###
|
||||
JLoader::register('###Component###HelperRoute', __DIR__ . '/helpers/route.php');###LICENSE_LOCKED_INT######SITE_GLOBAL_EVENT######SITE_POWER_EVENT###
|
||||
JLoader::register('###Component###HelperRoute', __DIR__ . '/helpers/route.php');###LICENSE_LOCKED_INT######SITE_GLOBAL_EVENT###
|
||||
|
||||
// Get an instance of the controller prefixed by ###Component###
|
||||
$controller = JControllerLegacy::getInstance('###Component###');
|
||||
|
@ -64,8 +64,8 @@
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"JControllerLegacy.php": {
|
||||
"naam": "JControllerLegacy.php",
|
||||
"BaseController.php": {
|
||||
"naam": "BaseController.php",
|
||||
"path": "c0mp0n3nt/admin",
|
||||
"rename": "new",
|
||||
"newName": "controller.php",
|
||||
@ -138,8 +138,8 @@
|
||||
"newName": "route.php",
|
||||
"type": "file"
|
||||
},
|
||||
"JControllerLegacySITE.php": {
|
||||
"naam": "JControllerLegacySITE.php",
|
||||
"BaseControllerSITE.php": {
|
||||
"naam": "BaseControllerSITE.php",
|
||||
"path": "c0mp0n3nt/site",
|
||||
"rename": "new",
|
||||
"newName": "controller.php",
|
||||
@ -232,14 +232,14 @@
|
||||
"rename": "Helper_",
|
||||
"type": "emailer"
|
||||
},
|
||||
"DASHJControllerAdmin.php": {
|
||||
"AdminControllerDashboard.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "DASHJControllerAdmin",
|
||||
"rename": "AdminControllerDashboard",
|
||||
"type": "dashboard"
|
||||
},
|
||||
"DASHJModelList.php": {
|
||||
"ListModelDASH.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "DASHJModelList",
|
||||
"rename": "ListModelDASH",
|
||||
"type": "dashboard"
|
||||
},
|
||||
"DASHJViewLagacy.php": {
|
||||
@ -289,19 +289,19 @@
|
||||
"rename": false,
|
||||
"type": "single"
|
||||
},
|
||||
"JModelAdmin.php": {
|
||||
"AdminModel.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "JModelAdmin",
|
||||
"rename": "AdminModel",
|
||||
"type": "single"
|
||||
},
|
||||
"JControllerForm.php": {
|
||||
"FormController.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "JControllerForm",
|
||||
"rename": "FormController",
|
||||
"type": "single"
|
||||
},
|
||||
"JTable.php": {
|
||||
"Table.php": {
|
||||
"path": "c0mp0n3nt/admin/tables",
|
||||
"rename": "JTable",
|
||||
"rename": "Table",
|
||||
"type": "single"
|
||||
},
|
||||
"submitbutton.js": {
|
||||
@ -309,7 +309,7 @@
|
||||
"rename": false,
|
||||
"type": "single"
|
||||
},
|
||||
"JViewLegacy_edit.php": {
|
||||
"HtmlView_edit.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
@ -320,14 +320,14 @@
|
||||
"rename": "view",
|
||||
"type": "single"
|
||||
},
|
||||
"JControllerAdmin.php": {
|
||||
"AdminController.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "JControllerAdmin",
|
||||
"rename": "AdminController",
|
||||
"type": "list"
|
||||
},
|
||||
"JModelList.php": {
|
||||
"ListModel.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "JModelList",
|
||||
"rename": "ListModel",
|
||||
"type": "list"
|
||||
},
|
||||
"views.css": {
|
||||
@ -335,7 +335,7 @@
|
||||
"rename": "views",
|
||||
"type": "list"
|
||||
},
|
||||
"JViewLegacy_list.php": {
|
||||
"HtmlView_list.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
@ -446,31 +446,31 @@
|
||||
"rename": "JFormFieldUser",
|
||||
"type": "fielduser"
|
||||
},
|
||||
"JControllerLegacyAjax.php": {
|
||||
"BaseControllerAjax.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "new",
|
||||
"newName": "ajax.json.php",
|
||||
"type": "ajax"
|
||||
},
|
||||
"JModelListAjax.php": {
|
||||
"ListModelAjax.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "new",
|
||||
"newName": "ajax.php",
|
||||
"type": "ajax"
|
||||
},
|
||||
"JControllerLegacy_import.php": {
|
||||
"BaseController_import.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "new",
|
||||
"newName": "import.php",
|
||||
"type": "import"
|
||||
},
|
||||
"JModelLegacy_import.php": {
|
||||
"BaseDatabaseModel_import.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "new",
|
||||
"newName": "import.php",
|
||||
"type": "import"
|
||||
},
|
||||
"JViewLegacy_import.php": {
|
||||
"HtmlView_import.php": {
|
||||
"path": "c0mp0n3nt/admin/views/import",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
@ -482,17 +482,17 @@
|
||||
"newName": "default.php",
|
||||
"type": "import"
|
||||
},
|
||||
"JControllerLegacy_import_custom.php": {
|
||||
"BaseController_import_custom.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "JControllerLegacy_import_custom",
|
||||
"rename": "BaseController_import_custom",
|
||||
"type": "customimport"
|
||||
},
|
||||
"JModelLegacy_import_custom.php": {
|
||||
"BaseDatabaseModel_import_custom.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "JModelLegacy_import_custom",
|
||||
"rename": "BaseDatabaseModel_import_custom",
|
||||
"type": "customimport"
|
||||
},
|
||||
"JViewLegacy_import_custom.php": {
|
||||
"HtmlView_import_custom.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
@ -504,7 +504,7 @@
|
||||
"newName": "default.php",
|
||||
"type": "customimport"
|
||||
},
|
||||
"JControllerLegacyHelp.php": {
|
||||
"BaseControllerHelp.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "new",
|
||||
"newName": "help.php",
|
||||
@ -527,15 +527,15 @@
|
||||
}
|
||||
},
|
||||
"site": {
|
||||
"JViewLegacy_list_site.php": {
|
||||
"HtmlView_list_site.php": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "list"
|
||||
},
|
||||
"JModelList_site.php": {
|
||||
"ListModel_site.php": {
|
||||
"path": "c0mp0n3nt/site/models",
|
||||
"rename": "JModelList_site",
|
||||
"rename": "ListModel_site",
|
||||
"type": "list"
|
||||
},
|
||||
"views_site.css": {
|
||||
@ -549,7 +549,7 @@
|
||||
"newName": "default.php",
|
||||
"type": "list"
|
||||
},
|
||||
"JViewLegacy_site.php": {
|
||||
"HtmlView_site.php": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
@ -560,9 +560,9 @@
|
||||
"rename": "view_site",
|
||||
"type": "single"
|
||||
},
|
||||
"JModelItem_site.php": {
|
||||
"ItemModel_site.php": {
|
||||
"path": "c0mp0n3nt/site/models",
|
||||
"rename": "JModelItem_site",
|
||||
"rename": "ItemModel_site",
|
||||
"type": "single"
|
||||
},
|
||||
"default_site.php": {
|
||||
@ -642,14 +642,14 @@
|
||||
"newName": "edit.php",
|
||||
"type": "edit"
|
||||
},
|
||||
"JModelAdmin_site.php": {
|
||||
"AdminModel_site.php": {
|
||||
"path": "c0mp0n3nt/site/models",
|
||||
"rename": "JModelAdmin_site",
|
||||
"rename": "AdminModel_site",
|
||||
"type": "edit"
|
||||
},
|
||||
"JControllerForm_site.php": {
|
||||
"FormController_site.php": {
|
||||
"path": "c0mp0n3nt/site/controllers",
|
||||
"rename": "JControllerForm_site",
|
||||
"rename": "FormController_site",
|
||||
"type": "edit"
|
||||
},
|
||||
"submitbutton.js": {
|
||||
@ -657,7 +657,7 @@
|
||||
"rename": false,
|
||||
"type": "edit"
|
||||
},
|
||||
"JViewLegacy_edit_site.php": {
|
||||
"HtmlView_edit_site.php": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
@ -668,27 +668,27 @@
|
||||
"rename": "view_site_edit",
|
||||
"type": "edit"
|
||||
},
|
||||
"JControllerLegacyAjaxSite.php": {
|
||||
"BaseControllerAjaxSite.php": {
|
||||
"path": "c0mp0n3nt/site/controllers",
|
||||
"rename": "new",
|
||||
"newName": "ajax.json.php",
|
||||
"type": "ajax"
|
||||
},
|
||||
"JModelListAjaxSite.php": {
|
||||
"ListModelAjaxSite.php": {
|
||||
"path": "c0mp0n3nt/site/models",
|
||||
"rename": "new",
|
||||
"newName": "ajax.php",
|
||||
"type": "ajax"
|
||||
},
|
||||
"JControllerLegacyHelp_site.php": {
|
||||
"BaseControllerHelp_site.php": {
|
||||
"path": "c0mp0n3nt/site/controllers",
|
||||
"rename": "new",
|
||||
"newName": "help.php",
|
||||
"type": "help"
|
||||
},
|
||||
"JControllerForm_custom_site.php": {
|
||||
"FormController_custom_site.php": {
|
||||
"path": "c0mp0n3nt/site/controllers",
|
||||
"rename": "JControllerForm_custom_site",
|
||||
"rename": "FormController_custom_site",
|
||||
"type": "custom_form"
|
||||
},
|
||||
"submitbutton_site.js": {
|
||||
@ -709,15 +709,15 @@
|
||||
}
|
||||
},
|
||||
"custom_admin": {
|
||||
"JViewLegacy_list_custom_admin.php": {
|
||||
"HtmlView_list_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "list"
|
||||
},
|
||||
"JModelList_custom_admin.php": {
|
||||
"ListModel_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "JModelList_custom_admin",
|
||||
"rename": "ListModel_custom_admin",
|
||||
"type": "list"
|
||||
},
|
||||
"default_list_custom_admin.php": {
|
||||
@ -726,9 +726,9 @@
|
||||
"newName": "default.php",
|
||||
"type": "list"
|
||||
},
|
||||
"JControllerAdmin_custom_admin.php": {
|
||||
"AdminController_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "JControllerAdmin_custom_admin",
|
||||
"rename": "AdminController_custom_admin",
|
||||
"type": "list"
|
||||
},
|
||||
"views_custom_admin.css": {
|
||||
@ -741,15 +741,15 @@
|
||||
"rename": "view_custom_admin",
|
||||
"type": "single"
|
||||
},
|
||||
"JViewLegacy_custom_admin.php": {
|
||||
"HtmlView_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "single"
|
||||
},
|
||||
"JModelItem_custom_admin.php": {
|
||||
"ItemModel_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "JModelItem_custom_admin",
|
||||
"rename": "ItemModel_custom_admin",
|
||||
"type": "single"
|
||||
},
|
||||
"default_custom_admin.php": {
|
||||
@ -758,9 +758,9 @@
|
||||
"newName": "default.php",
|
||||
"type": "single"
|
||||
},
|
||||
"JControllerLegacy_custom_admin.php": {
|
||||
"BaseController_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "JControllerLegacy_custom_admin",
|
||||
"rename": "BaseController_custom_admin",
|
||||
"type": "single"
|
||||
},
|
||||
"default_custom_admin_template.php": {
|
||||
|
784
admin/compiler/joomla_3/settings_componentbuilder.json
Normal file
784
admin/compiler/joomla_3/settings_componentbuilder.json
Normal file
@ -0,0 +1,784 @@
|
||||
{
|
||||
"create": {
|
||||
"admin": {
|
||||
"assets": {
|
||||
"css": "css",
|
||||
"images": {
|
||||
"icons": "icons"
|
||||
},
|
||||
"js": "js"
|
||||
},
|
||||
"controllers": "controllers",
|
||||
"helpers": {
|
||||
"html": "html"
|
||||
},
|
||||
"language": {
|
||||
"en-GB": "en-GB"
|
||||
},
|
||||
"layouts": "layouts",
|
||||
"models": {
|
||||
"fields": "fields",
|
||||
"forms": "forms",
|
||||
"rules": "rules"
|
||||
},
|
||||
"sql": {
|
||||
"updates": {
|
||||
"mysql": "mysql"
|
||||
}
|
||||
},
|
||||
"tables": "tables",
|
||||
"views": "views"
|
||||
},
|
||||
"site": {
|
||||
"assets": {
|
||||
"css": "css",
|
||||
"images": "images",
|
||||
"js": "js"
|
||||
},
|
||||
"controllers": "controllers",
|
||||
"helpers": "helpers",
|
||||
"language": {
|
||||
"en-GB": "en-GB"
|
||||
},
|
||||
"layouts": "layouts",
|
||||
"models": "models",
|
||||
"views": "views"
|
||||
},
|
||||
"media": {
|
||||
"css": "css",
|
||||
"images": "images",
|
||||
"js": "js"
|
||||
}
|
||||
},
|
||||
"move": {
|
||||
"static": {
|
||||
"access.xml": {
|
||||
"naam": "access.xml",
|
||||
"path": "c0mp0n3nt/admin",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"config.xml": {
|
||||
"naam": "config.xml",
|
||||
"path": "c0mp0n3nt/admin",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"BaseController.php": {
|
||||
"naam": "BaseController.php",
|
||||
"path": "c0mp0n3nt/admin",
|
||||
"rename": "new",
|
||||
"newName": "controller.php",
|
||||
"type": "file"
|
||||
},
|
||||
"component.xml": {
|
||||
"naam": "component.xml",
|
||||
"path": "c0mp0n3nt/",
|
||||
"rename": "component",
|
||||
"type": "file"
|
||||
},
|
||||
"component_admin.php": {
|
||||
"naam": "component_admin.php",
|
||||
"path": "c0mp0n3nt/admin",
|
||||
"rename": "component_admin",
|
||||
"type": "file"
|
||||
},
|
||||
"admin.css": {
|
||||
"naam": "admin.css",
|
||||
"path": "c0mp0n3nt/admin/assets/css",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"admin.js": {
|
||||
"naam": "admin.js",
|
||||
"path": "c0mp0n3nt/admin/assets/js",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"site.css": {
|
||||
"naam": "site.css",
|
||||
"path": "c0mp0n3nt/site/assets/css",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"site.js": {
|
||||
"naam": "site.js",
|
||||
"path": "c0mp0n3nt/site/assets/js",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"batch_.php": {
|
||||
"naam": "batch_.php",
|
||||
"path": "c0mp0n3nt/admin/helpers/html",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"batchselection.php": {
|
||||
"naam": "batchselection.php",
|
||||
"path": "c0mp0n3nt/admin/layouts",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"component_site.php": {
|
||||
"naam": "component_site.php",
|
||||
"path": "c0mp0n3nt/site",
|
||||
"rename": "component_site",
|
||||
"type": "file"
|
||||
},
|
||||
"router.php": {
|
||||
"naam": "router.php",
|
||||
"path": "c0mp0n3nt/site",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"routeHelper.php": {
|
||||
"naam": "routeHelper.php",
|
||||
"path": "c0mp0n3nt/site/helpers",
|
||||
"rename": "new",
|
||||
"newName": "route.php",
|
||||
"type": "file"
|
||||
},
|
||||
"BaseControllerSITE.php": {
|
||||
"naam": "BaseControllerSITE.php",
|
||||
"path": "c0mp0n3nt/site",
|
||||
"rename": "new",
|
||||
"newName": "controller.php",
|
||||
"type": "file"
|
||||
},
|
||||
"Helper.php": {
|
||||
"naam": "JCB_Helper.php",
|
||||
"path": "c0mp0n3nt/admin/helpers",
|
||||
"rename": "JCB_Helper",
|
||||
"type": "file"
|
||||
},
|
||||
"Helper_site.php": {
|
||||
"naam": "JCB_Helper_site.php",
|
||||
"path": "c0mp0n3nt/site/helpers",
|
||||
"rename": "JCB_Helper_site",
|
||||
"type": "file"
|
||||
},
|
||||
"Helper_category.php": {
|
||||
"naam": "Helper_category.php",
|
||||
"path": "c0mp0n3nt/site/helpers",
|
||||
"rename": "new",
|
||||
"newName": "category.php",
|
||||
"type": "file"
|
||||
},
|
||||
"script.php": {
|
||||
"naam": "script.php",
|
||||
"path": "c0mp0n3nt/",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"install.mysql.utf8.sql": {
|
||||
"naam": "install.mysql.utf8.sql",
|
||||
"path": "c0mp0n3nt/admin/sql",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"uninstall.mysql.utf8.sql": {
|
||||
"naam": "uninstall.mysql.utf8.sql",
|
||||
"path": "c0mp0n3nt/admin/sql",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"headercheck_admin.php": {
|
||||
"naam": "headercheck_admin.php",
|
||||
"path": "c0mp0n3nt/admin/helpers",
|
||||
"rename": "new",
|
||||
"newName": "headercheck.php",
|
||||
"type": "file"
|
||||
},
|
||||
"LICENSE.txt": {
|
||||
"naam": "LICENSE.txt",
|
||||
"path": "c0mp0n3nt/",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"README.txt": {
|
||||
"naam": "README.txt",
|
||||
"path": "c0mp0n3nt/admin",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"README.md": {
|
||||
"naam": "README.md",
|
||||
"path": "c0mp0n3nt/",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"headercheck.php": {
|
||||
"naam": "headercheck.php",
|
||||
"path": "c0mp0n3nt/site/helpers",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
},
|
||||
"import.gif": {
|
||||
"naam": "import.gif",
|
||||
"path": "c0mp0n3nt/admin/assets/images",
|
||||
"rename": false,
|
||||
"type": "file"
|
||||
}
|
||||
},
|
||||
"dynamic": {
|
||||
"admin": {
|
||||
"whmcs.php": {
|
||||
"path": "c0mp0n3nt/admin",
|
||||
"rename": false,
|
||||
"type": "whmcs"
|
||||
},
|
||||
"Helper_email.php": {
|
||||
"path": "c0mp0n3nt/admin/helpers",
|
||||
"rename": "Helper_",
|
||||
"type": "emailer"
|
||||
},
|
||||
"AdminControllerDashboard.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "AdminControllerDashboard",
|
||||
"type": "dashboard"
|
||||
},
|
||||
"ListModelDASH.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "ListModelDASH",
|
||||
"type": "dashboard"
|
||||
},
|
||||
"DASHJViewLagacy.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "dashboard"
|
||||
},
|
||||
"default_vdm.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "dashboard"
|
||||
},
|
||||
"default_main.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "dashboard"
|
||||
},
|
||||
"DASHdefault.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": "new",
|
||||
"newName": "default.php",
|
||||
"type": "dashboard"
|
||||
},
|
||||
"dashboard.css": {
|
||||
"path": "c0mp0n3nt/admin/assets/css",
|
||||
"rename": false,
|
||||
"type": "dashboard"
|
||||
},
|
||||
"filter_forms.xml": {
|
||||
"path": "c0mp0n3nt/admin/models/forms",
|
||||
"rename": "filter_forms",
|
||||
"type": "filter"
|
||||
},
|
||||
"module_forms.xml": {
|
||||
"path": "c0mp0n3nt/admin/models/forms",
|
||||
"rename": "module_forms",
|
||||
"type": "single"
|
||||
},
|
||||
"module_forms.js": {
|
||||
"path": "c0mp0n3nt/media/js",
|
||||
"rename": "module_forms",
|
||||
"type": "single"
|
||||
},
|
||||
"edit.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "single"
|
||||
},
|
||||
"AdminModel.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "AdminModel",
|
||||
"type": "single"
|
||||
},
|
||||
"FormController.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "FormController",
|
||||
"type": "single"
|
||||
},
|
||||
"Table.php": {
|
||||
"path": "c0mp0n3nt/admin/tables",
|
||||
"rename": "Table",
|
||||
"type": "single"
|
||||
},
|
||||
"submitbutton.js": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": false,
|
||||
"type": "single"
|
||||
},
|
||||
"HtmlView_edit.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "single"
|
||||
},
|
||||
"view.css": {
|
||||
"path": "c0mp0n3nt/admin/assets/css",
|
||||
"rename": "view",
|
||||
"type": "single"
|
||||
},
|
||||
"AdminController.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "AdminController",
|
||||
"type": "list"
|
||||
},
|
||||
"ListModel.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "ListModel",
|
||||
"type": "list"
|
||||
},
|
||||
"views.css": {
|
||||
"path": "c0mp0n3nt/admin/assets/css",
|
||||
"rename": "views",
|
||||
"type": "list"
|
||||
},
|
||||
"HtmlView_list.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "list"
|
||||
},
|
||||
"default.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "list"
|
||||
},
|
||||
"default_batch_body.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "list"
|
||||
},
|
||||
"default_batch_footer.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "list"
|
||||
},
|
||||
"default_toolbar.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "list"
|
||||
},
|
||||
"default_head.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "list"
|
||||
},
|
||||
"default_body.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "list"
|
||||
},
|
||||
"default_foot.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "list"
|
||||
},
|
||||
"JFormRule.php": {
|
||||
"path": "c0mp0n3nt/admin/models/rules",
|
||||
"rename": "JFormRule",
|
||||
"type": "rule"
|
||||
},
|
||||
"layout_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/layouts",
|
||||
"rename": "layout_admin",
|
||||
"type": "layout"
|
||||
},
|
||||
"layoutoverride.php": {
|
||||
"path": "c0mp0n3nt/admin/layouts/VIEW",
|
||||
"rename": "layoutoverride",
|
||||
"type": "layoutoverride"
|
||||
},
|
||||
"layoutitems.php": {
|
||||
"path": "c0mp0n3nt/admin/layouts/VIEW",
|
||||
"rename": "layoutitems",
|
||||
"type": "layoutitems"
|
||||
},
|
||||
"layoutfull.php": {
|
||||
"path": "c0mp0n3nt/admin/layouts/VIEW",
|
||||
"rename": "layoutfull",
|
||||
"type": "layoutfull"
|
||||
},
|
||||
"layoutlinkedview.php": {
|
||||
"path": "c0mp0n3nt/admin/layouts/VIEW",
|
||||
"rename": "layoutlinkedview",
|
||||
"type": "layoutlinkedview"
|
||||
},
|
||||
"layouttitle.php": {
|
||||
"path": "c0mp0n3nt/admin/layouts/VIEW",
|
||||
"rename": "layouttitle",
|
||||
"type": "layouttitle"
|
||||
},
|
||||
"layoutpublished.php": {
|
||||
"path": "c0mp0n3nt/admin/layouts/VIEW",
|
||||
"rename": "layoutpublished",
|
||||
"type": "layoutpublished"
|
||||
},
|
||||
"layoutmetadata.php": {
|
||||
"path": "c0mp0n3nt/admin/layouts/VIEW",
|
||||
"rename": "layoutmetadata",
|
||||
"type": "layoutmetadata"
|
||||
},
|
||||
"JFormFieldCustom.php": {
|
||||
"path": "c0mp0n3nt/admin/models/fields",
|
||||
"rename": "JFormFieldCustom",
|
||||
"type": "fieldcustom"
|
||||
},
|
||||
"JFormFieldList.php": {
|
||||
"path": "c0mp0n3nt/admin/models/fields",
|
||||
"rename": "JFormFieldList",
|
||||
"type": "fieldlist"
|
||||
},
|
||||
"JFormFieldRadio.php": {
|
||||
"path": "c0mp0n3nt/admin/models/fields",
|
||||
"rename": "JFormFieldRadio",
|
||||
"type": "fieldradio"
|
||||
},
|
||||
"JFormFieldCheckboxes.php": {
|
||||
"path": "c0mp0n3nt/admin/models/fields",
|
||||
"rename": "JFormFieldCheckboxes",
|
||||
"type": "fieldcheckboxes"
|
||||
},
|
||||
"JFormFieldUser.php": {
|
||||
"path": "c0mp0n3nt/admin/models/fields",
|
||||
"rename": "JFormFieldUser",
|
||||
"type": "fielduser"
|
||||
},
|
||||
"BaseControllerAjax.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "new",
|
||||
"newName": "ajax.json.php",
|
||||
"type": "ajax"
|
||||
},
|
||||
"ListModelAjax.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "new",
|
||||
"newName": "ajax.php",
|
||||
"type": "ajax"
|
||||
},
|
||||
"BaseController_import.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "new",
|
||||
"newName": "import.php",
|
||||
"type": "import"
|
||||
},
|
||||
"BaseDatabaseModel_import.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "new",
|
||||
"newName": "import.php",
|
||||
"type": "import"
|
||||
},
|
||||
"HtmlView_import.php": {
|
||||
"path": "c0mp0n3nt/admin/views/import",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "import"
|
||||
},
|
||||
"default_import.php": {
|
||||
"path": "c0mp0n3nt/admin/views/import/tmpl",
|
||||
"rename": "new",
|
||||
"newName": "default.php",
|
||||
"type": "import"
|
||||
},
|
||||
"BaseController_import_custom.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "BaseController_import_custom",
|
||||
"type": "customimport"
|
||||
},
|
||||
"BaseDatabaseModel_import_custom.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "BaseDatabaseModel_import_custom",
|
||||
"type": "customimport"
|
||||
},
|
||||
"HtmlView_import_custom.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "customimport"
|
||||
},
|
||||
"default_import_custom.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": "new",
|
||||
"newName": "default.php",
|
||||
"type": "customimport"
|
||||
},
|
||||
"BaseControllerHelp.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "new",
|
||||
"newName": "help.php",
|
||||
"type": "help"
|
||||
},
|
||||
"1.0.0.sql": {
|
||||
"path": "c0mp0n3nt/admin/sql/updates/mysql",
|
||||
"rename": "1.0.0",
|
||||
"type": "sql_update"
|
||||
},
|
||||
"update_server.xml": {
|
||||
"path": "c0mp0n3nt/",
|
||||
"rename": "update_server",
|
||||
"type": "update_server"
|
||||
},
|
||||
"viewFile.js": {
|
||||
"path": "c0mp0n3nt/admin/assets/js",
|
||||
"rename": "viewFile",
|
||||
"type": "javascript_file"
|
||||
}
|
||||
},
|
||||
"site": {
|
||||
"HtmlView_list_site.php": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "list"
|
||||
},
|
||||
"ListModel_site.php": {
|
||||
"path": "c0mp0n3nt/site/models",
|
||||
"rename": "ListModel_site",
|
||||
"type": "list"
|
||||
},
|
||||
"views_site.css": {
|
||||
"path": "c0mp0n3nt/site/assets/css",
|
||||
"rename": "views_site",
|
||||
"type": "list"
|
||||
},
|
||||
"default_list_site.php": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW/tmpl",
|
||||
"rename": "new",
|
||||
"newName": "default.php",
|
||||
"type": "list"
|
||||
},
|
||||
"HtmlView_site.php": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "single"
|
||||
},
|
||||
"view_site.css": {
|
||||
"path": "c0mp0n3nt/site/assets/css",
|
||||
"rename": "view_site",
|
||||
"type": "single"
|
||||
},
|
||||
"ItemModel_site.php": {
|
||||
"path": "c0mp0n3nt/site/models",
|
||||
"rename": "ItemModel_site",
|
||||
"type": "single"
|
||||
},
|
||||
"default_site.php": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW/tmpl",
|
||||
"rename": "new",
|
||||
"newName": "default.php",
|
||||
"type": "single"
|
||||
},
|
||||
"default_site_template.php": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW/tmpl",
|
||||
"rename": "site_template",
|
||||
"type": "template"
|
||||
},
|
||||
"layout_site.php": {
|
||||
"path": "c0mp0n3nt/site/layouts",
|
||||
"rename": "layout_site",
|
||||
"type": "layout"
|
||||
},
|
||||
"layoutoverride.php": {
|
||||
"path": "c0mp0n3nt/site/layouts/VIEW",
|
||||
"rename": "layoutoverride",
|
||||
"type": "layoutoverride"
|
||||
},
|
||||
"layoutitems.php": {
|
||||
"path": "c0mp0n3nt/site/layouts/VIEW",
|
||||
"rename": "layoutitems",
|
||||
"type": "layoutitems"
|
||||
},
|
||||
"layoutfull.php": {
|
||||
"path": "c0mp0n3nt/site/layouts/VIEW",
|
||||
"rename": "layoutfull",
|
||||
"type": "layoutfull"
|
||||
},
|
||||
"layoutlinkedview.php": {
|
||||
"path": "c0mp0n3nt/site/layouts/VIEW",
|
||||
"rename": "layoutlinkedview",
|
||||
"type": "layoutlinkedview"
|
||||
},
|
||||
"layouttitle.php": {
|
||||
"path": "c0mp0n3nt/site/layouts/VIEW",
|
||||
"rename": "layouttitle",
|
||||
"type": "layouttitle"
|
||||
},
|
||||
"layoutpublished.php": {
|
||||
"path": "c0mp0n3nt/site/layouts/VIEW",
|
||||
"rename": "layoutpublished",
|
||||
"type": "layoutpublished"
|
||||
},
|
||||
"layoutmetadata.php": {
|
||||
"path": "c0mp0n3nt/site/layouts/VIEW",
|
||||
"rename": "layoutmetadata",
|
||||
"type": "layoutmetadata"
|
||||
},
|
||||
"default.xml": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "menu"
|
||||
},
|
||||
"edit.xml": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW/tmpl",
|
||||
"rename": false,
|
||||
"type": "admin_menu"
|
||||
},
|
||||
"module_forms.xml": {
|
||||
"path": "c0mp0n3nt/site/models/forms",
|
||||
"rename": "module_forms",
|
||||
"type": "edit"
|
||||
},
|
||||
"module_forms.js": {
|
||||
"path": "c0mp0n3nt/site/models/forms",
|
||||
"rename": "module_forms",
|
||||
"type": "edit"
|
||||
},
|
||||
"edit_site.php": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW/tmpl",
|
||||
"rename": "new",
|
||||
"newName": "edit.php",
|
||||
"type": "edit"
|
||||
},
|
||||
"AdminModel_site.php": {
|
||||
"path": "c0mp0n3nt/site/models",
|
||||
"rename": "AdminModel_site",
|
||||
"type": "edit"
|
||||
},
|
||||
"FormController_site.php": {
|
||||
"path": "c0mp0n3nt/site/controllers",
|
||||
"rename": "FormController_site",
|
||||
"type": "edit"
|
||||
},
|
||||
"submitbutton.js": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW",
|
||||
"rename": false,
|
||||
"type": "edit"
|
||||
},
|
||||
"HtmlView_edit_site.php": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "edit"
|
||||
},
|
||||
"view_site_edit.css": {
|
||||
"path": "c0mp0n3nt/site/assets/css",
|
||||
"rename": "view_site_edit",
|
||||
"type": "edit"
|
||||
},
|
||||
"BaseControllerAjaxSite.php": {
|
||||
"path": "c0mp0n3nt/site/controllers",
|
||||
"rename": "new",
|
||||
"newName": "ajax.json.php",
|
||||
"type": "ajax"
|
||||
},
|
||||
"ListModelAjaxSite.php": {
|
||||
"path": "c0mp0n3nt/site/models",
|
||||
"rename": "new",
|
||||
"newName": "ajax.php",
|
||||
"type": "ajax"
|
||||
},
|
||||
"BaseControllerHelp_site.php": {
|
||||
"path": "c0mp0n3nt/site/controllers",
|
||||
"rename": "new",
|
||||
"newName": "help.php",
|
||||
"type": "help"
|
||||
},
|
||||
"FormController_custom_site.php": {
|
||||
"path": "c0mp0n3nt/site/controllers",
|
||||
"rename": "FormController_custom_site",
|
||||
"type": "custom_form"
|
||||
},
|
||||
"submitbutton_site.js": {
|
||||
"path": "c0mp0n3nt/site/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "submitbutton.js",
|
||||
"type": "custom_form"
|
||||
},
|
||||
"Helper_category_view.php": {
|
||||
"path": "c0mp0n3nt/site/helpers",
|
||||
"rename": "Helper_category_view",
|
||||
"type": "category"
|
||||
},
|
||||
"viewFileSite.js": {
|
||||
"path": "c0mp0n3nt/site/assets/js",
|
||||
"rename": "viewFileSite",
|
||||
"type": "javascript_file"
|
||||
}
|
||||
},
|
||||
"custom_admin": {
|
||||
"HtmlView_list_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "list"
|
||||
},
|
||||
"ListModel_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "ListModel_custom_admin",
|
||||
"type": "list"
|
||||
},
|
||||
"default_list_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": "new",
|
||||
"newName": "default.php",
|
||||
"type": "list"
|
||||
},
|
||||
"AdminController_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "AdminController_custom_admin",
|
||||
"type": "list"
|
||||
},
|
||||
"views_custom_admin.css": {
|
||||
"path": "c0mp0n3nt/admin/assets/css",
|
||||
"rename": "views_custom_admin",
|
||||
"type": "list"
|
||||
},
|
||||
"view_custom_admin.css": {
|
||||
"path": "c0mp0n3nt/admin/assets/css",
|
||||
"rename": "view_custom_admin",
|
||||
"type": "single"
|
||||
},
|
||||
"HtmlView_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW",
|
||||
"rename": "new",
|
||||
"newName": "view.html.php",
|
||||
"type": "single"
|
||||
},
|
||||
"ItemModel_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/models",
|
||||
"rename": "ItemModel_custom_admin",
|
||||
"type": "single"
|
||||
},
|
||||
"default_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": "new",
|
||||
"newName": "default.php",
|
||||
"type": "single"
|
||||
},
|
||||
"BaseController_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/controllers",
|
||||
"rename": "BaseController_custom_admin",
|
||||
"type": "single"
|
||||
},
|
||||
"default_custom_admin_template.php": {
|
||||
"path": "c0mp0n3nt/admin/views/VIEW/tmpl",
|
||||
"rename": "custom_admin_template",
|
||||
"type": "template"
|
||||
},
|
||||
"layout_custom_admin.php": {
|
||||
"path": "c0mp0n3nt/admin/layouts",
|
||||
"rename": "layout_custom_admin",
|
||||
"type": "layout"
|
||||
},
|
||||
"viewFileCustomAdmin.js": {
|
||||
"path": "c0mp0n3nt/admin/assets/js",
|
||||
"rename": "viewFileCustomAdmin",
|
||||
"type": "javascript_file"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -134,18 +134,20 @@
|
||||
folder="editors"
|
||||
filter="cmd"
|
||||
/>
|
||||
<!-- Github_access_token Field. Type: Text. (joomla) -->
|
||||
<!-- Github_access_token Field. Type: Password. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
type="password"
|
||||
name="github_access_token"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_GITHUB_ACCESS_TOKEN_LABEL"
|
||||
size="128"
|
||||
maxlength="128"
|
||||
default="secret"
|
||||
description="COM_COMPONENTBUILDER_CONFIG_GITHUB_ACCESS_TOKEN_DESCRIPTION"
|
||||
class="text_area full-width"
|
||||
message="Error! Please add token here."
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_CONFIG_GITHUB_ACCESS_TOKEN_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_CONFIG_GITHUB_ACCESS_TOKEN_HINT"
|
||||
autocomplete="off"
|
||||
/>
|
||||
@ -664,6 +666,16 @@
|
||||
size="60"
|
||||
default=""
|
||||
/>
|
||||
<field type="note" name="medium_key_note" class="alert alert-info" label="COM_COMPONENTBUILDER_CONFIG_MEDIUM_KEY_NOTE_LABEL" description="COM_COMPONENTBUILDER_CONFIG_MEDIUM_KEY_NOTE_DESC" />
|
||||
<field name="medium_key_path"
|
||||
type="text"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_MEDIUM_KEY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_CONFIG_MEDIUM_KEY_DESC"
|
||||
size="160"
|
||||
filter="PATH"
|
||||
hint="/home/user/hiddenfolder123/"
|
||||
default=""
|
||||
/>
|
||||
</fieldset>
|
||||
<fieldset
|
||||
name="compiler_custom_config"
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* General Controller of Componentbuilder component
|
||||
*/
|
||||
class ComponentbuilderController extends JControllerLegacy
|
||||
class ComponentbuilderController extends BaseController
|
||||
{
|
||||
/**
|
||||
* Constructor.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Admin_custom_tabs Controller
|
||||
* Admin_custom_tabs Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAdmin_custom_tabs extends JControllerForm
|
||||
class ComponentbuilderControllerAdmin_custom_tabs extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Admin_fields Controller
|
||||
* Admin_fields Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAdmin_fields extends JControllerForm
|
||||
class ComponentbuilderControllerAdmin_fields extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Admin_fields_conditions Controller
|
||||
* Admin_fields_conditions Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAdmin_fields_conditions extends JControllerForm
|
||||
class ComponentbuilderControllerAdmin_fields_conditions extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Admin_fields_relations Controller
|
||||
* Admin_fields_relations Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAdmin_fields_relations extends JControllerForm
|
||||
class ComponentbuilderControllerAdmin_fields_relations extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Admin_view Controller
|
||||
* Admin_view Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAdmin_view extends JControllerForm
|
||||
class ComponentbuilderControllerAdmin_view extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Admin_views Controller
|
||||
* Admin_views Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAdmin_views extends JControllerAdmin
|
||||
class ComponentbuilderControllerAdmin_views extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Admins_custom_tabs Controller
|
||||
* Admins_custom_tabs Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAdmins_custom_tabs extends JControllerAdmin
|
||||
class ComponentbuilderControllerAdmins_custom_tabs extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Admins_fields Controller
|
||||
* Admins_fields Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAdmins_fields extends JControllerAdmin
|
||||
class ComponentbuilderControllerAdmins_fields extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Admins_fields_conditions Controller
|
||||
* Admins_fields_conditions Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAdmins_fields_conditions extends JControllerAdmin
|
||||
class ComponentbuilderControllerAdmins_fields_conditions extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Admins_fields_relations Controller
|
||||
* Admins_fields_relations Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAdmins_fields_relations extends JControllerAdmin
|
||||
class ComponentbuilderControllerAdmins_fields_relations extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\BaseController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Componentbuilder Ajax Controller
|
||||
* Componentbuilder Ajax Base Controller
|
||||
*/
|
||||
class ComponentbuilderControllerAjax extends JControllerLegacy
|
||||
class ComponentbuilderControllerAjax extends BaseController
|
||||
{
|
||||
public function __construct($config)
|
||||
{
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Class_extendings Controller
|
||||
* Class_extendings Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerClass_extendings extends JControllerAdmin
|
||||
class ComponentbuilderControllerClass_extendings extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Class_extends Controller
|
||||
* Class_extends Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerClass_extends extends JControllerForm
|
||||
class ComponentbuilderControllerClass_extends extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Class_method Controller
|
||||
* Class_method Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerClass_method extends JControllerForm
|
||||
class ComponentbuilderControllerClass_method extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Class_methods Controller
|
||||
* Class_methods Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerClass_methods extends JControllerAdmin
|
||||
class ComponentbuilderControllerClass_methods extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Class_properties Controller
|
||||
* Class_properties Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerClass_properties extends JControllerAdmin
|
||||
class ComponentbuilderControllerClass_properties extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Class_property Controller
|
||||
* Class_property Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerClass_property extends JControllerForm
|
||||
class ComponentbuilderControllerClass_property extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,14 +13,22 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Compiler Controller
|
||||
* Compiler Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerCompiler extends JControllerAdmin
|
||||
class ComponentbuilderControllerCompiler extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $text_prefix = 'COM_COMPONENTBUILDER_COMPILER';
|
||||
|
||||
/**
|
||||
* Proxy for getModel.
|
||||
* @since 2.5
|
||||
@ -32,7 +40,7 @@ class ComponentbuilderControllerCompiler extends JControllerAdmin
|
||||
return $model;
|
||||
}
|
||||
|
||||
public function dashboard()
|
||||
public function dashboard()
|
||||
{
|
||||
$this->setRedirect(JRoute::_('index.php?option=com_componentbuilder', false));
|
||||
return;
|
||||
@ -89,12 +97,13 @@ class ComponentbuilderControllerCompiler extends JControllerAdmin
|
||||
$addBackup = $jinput->post->get('backup', 0, 'INT');
|
||||
$addRepo = $jinput->post->get('repository', 0, 'INT');
|
||||
$addPlaceholders = $jinput->post->get('placeholders', 2, 'INT');
|
||||
$addPowers = $jinput->post->get('powers', 2, 'INT');
|
||||
$debugLinenr = $jinput->post->get('debuglinenr', 2, 'INT');
|
||||
$minify = $jinput->post->get('minify', 2, 'INT');
|
||||
// include component compiler
|
||||
require_once JPATH_ADMINISTRATOR.'/components/com_componentbuilder/helpers/compiler.php';
|
||||
$model = $this->getModel('compiler');
|
||||
if ($model->builder($version, $componentId, $addBackup, $addRepo, $addPlaceholders, $debugLinenr, $minify))
|
||||
if ($model->builder($version, $componentId, $addBackup, $addRepo, $addPlaceholders, $addPowers, $debugLinenr, $minify))
|
||||
{
|
||||
$cache = JFactory::getCache('mod_menu');
|
||||
$cache->clean();
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_admin_views Controller
|
||||
* Component_admin_views Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_admin_views extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_admin_views extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_config Controller
|
||||
* Component_config Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_config extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_config extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_custom_admin_menus Controller
|
||||
* Component_custom_admin_menus Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_custom_admin_menus extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_custom_admin_menus extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_custom_admin_views Controller
|
||||
* Component_custom_admin_views Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_custom_admin_views extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_custom_admin_views extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_dashboard Controller
|
||||
* Component_dashboard Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_dashboard extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_dashboard extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_files_folders Controller
|
||||
* Component_files_folders Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_files_folders extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_files_folders extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_modules Controller
|
||||
* Component_modules Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_modules extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_modules extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_mysql_tweaks Controller
|
||||
* Component_mysql_tweaks Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_mysql_tweaks extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_mysql_tweaks extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_placeholders Controller
|
||||
* Component_placeholders Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_placeholders extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_placeholders extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_plugins Controller
|
||||
* Component_plugins Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_plugins extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_plugins extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_site_views Controller
|
||||
* Component_site_views Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_site_views extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_site_views extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Component_updates Controller
|
||||
* Component_updates Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponent_updates extends JControllerForm
|
||||
class ComponentbuilderControllerComponent_updates extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Componentbuilder Controller
|
||||
* Componentbuilder Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponentbuilder extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponentbuilder extends AdminController
|
||||
{
|
||||
|
||||
}
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_admin_views Controller
|
||||
* Components_admin_views Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_admin_views extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_admin_views extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_config Controller
|
||||
* Components_config Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_config extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_config extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_custom_admin_menus Controller
|
||||
* Components_custom_admin_menus Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_custom_admin_menus extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_custom_admin_menus extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_custom_admin_views Controller
|
||||
* Components_custom_admin_views Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_custom_admin_views extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_custom_admin_views extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_dashboard Controller
|
||||
* Components_dashboard Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_dashboard extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_dashboard extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_files_folders Controller
|
||||
* Components_files_folders Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_files_folders extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_files_folders extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_modules Controller
|
||||
* Components_modules Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_modules extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_modules extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_mysql_tweaks Controller
|
||||
* Components_mysql_tweaks Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_mysql_tweaks extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_mysql_tweaks extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_placeholders Controller
|
||||
* Components_placeholders Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_placeholders extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_placeholders extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_plugins Controller
|
||||
* Components_plugins Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_plugins extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_plugins extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_site_views Controller
|
||||
* Components_site_views Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_site_views extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_site_views extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Components_updates Controller
|
||||
* Components_updates Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerComponents_updates extends JControllerAdmin
|
||||
class ComponentbuilderControllerComponents_updates extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Custom_admin_view Controller
|
||||
* Custom_admin_view Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerCustom_admin_view extends JControllerForm
|
||||
class ComponentbuilderControllerCustom_admin_view extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Custom_admin_views Controller
|
||||
* Custom_admin_views Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerCustom_admin_views extends JControllerAdmin
|
||||
class ComponentbuilderControllerCustom_admin_views extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Custom_code Controller
|
||||
* Custom_code Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerCustom_code extends JControllerForm
|
||||
class ComponentbuilderControllerCustom_code extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Custom_codes Controller
|
||||
* Custom_codes Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerCustom_codes extends JControllerAdmin
|
||||
class ComponentbuilderControllerCustom_codes extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Dynamic_get Controller
|
||||
* Dynamic_get Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerDynamic_get extends JControllerForm
|
||||
class ComponentbuilderControllerDynamic_get extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
|
@ -13,12 +13,13 @@
|
||||
// No direct access to this file
|
||||
defined('_JEXEC') or die('Restricted access');
|
||||
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
|
||||
/**
|
||||
* Dynamic_gets Controller
|
||||
* Dynamic_gets Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerDynamic_gets extends JControllerAdmin
|
||||
class ComponentbuilderControllerDynamic_gets extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user