forked from joomla/Component-Builder
Release of v3.2.2-alpha5
Add repositories for better integration with gitea. Refactored the Data classes. Add new Data classes.
This commit is contained in:
parent
894d691897
commit
7a680bb734
@ -1,12 +1,15 @@
|
||||
# v3.2.2-alpha4
|
||||
# v3.2.2-alpha5
|
||||
|
||||
- Update the Schema class to also update null mismatching if needed
|
||||
- Add repositories for better integration with gitea
|
||||
- Refactored the Data classes
|
||||
- Add new Data classes
|
||||
|
||||
# v3.2.2-alpha
|
||||
|
||||
- Fix auto build from SQL in Joomla 4 and 5.
|
||||
- Fix permission issue for admin views.
|
||||
- Add extending options to interfaces.
|
||||
- Update the Schema class to also update null mismatching if needed
|
||||
|
||||
# v3.2.1
|
||||
|
||||
|
14
README.md
14
README.md
@ -9,7 +9,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 [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.2-alpha4) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.2-alpha5) 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)
|
||||
|
||||
@ -144,14 +144,14 @@ TODO
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 7th June, 2024
|
||||
+ *Version*: 3.2.2-alpha4
|
||||
+ *Last Build*: 20th June, 2024
|
||||
+ *Version*: 3.2.2-alpha5
|
||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
+ *Line count*: **765384**
|
||||
+ *Field count*: **2100**
|
||||
+ *File count*: **5304**
|
||||
+ *Folder count*: **471**
|
||||
+ *Line count*: **773763**
|
||||
+ *Field count*: **2104**
|
||||
+ *File count*: **5362**
|
||||
+ *Folder count*: **474**
|
||||
|
||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
|
@ -9,7 +9,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 [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.2-alpha4) with **ALL** its features and **ALL** concepts totally open-source and free!
|
||||
You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.2-alpha5) 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)
|
||||
|
||||
@ -144,14 +144,14 @@ TODO
|
||||
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
|
||||
+ *First Build*: 30th April, 2015
|
||||
+ *Last Build*: 7th June, 2024
|
||||
+ *Version*: 3.2.2-alpha4
|
||||
+ *Last Build*: 20th June, 2024
|
||||
+ *Version*: 3.2.2-alpha5
|
||||
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
|
||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||
+ *Line count*: **765384**
|
||||
+ *Field count*: **2100**
|
||||
+ *File count*: **5304**
|
||||
+ *Folder count*: **471**
|
||||
+ *Line count*: **773763**
|
||||
+ *Field count*: **2104**
|
||||
+ *File count*: **5362**
|
||||
+ *Folder count*: **474**
|
||||
|
||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
|
||||
> Developed by [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||
|
@ -521,6 +521,18 @@
|
||||
<action name="power.edit.state" title="COM_COMPONENTBUILDER_POWERS_EDIT_STATE" description="COM_COMPONENTBUILDER_POWERS_EDIT_STATE_DESC" />
|
||||
<action name="power.version" title="COM_COMPONENTBUILDER_POWERS_EDIT_VERSION" description="COM_COMPONENTBUILDER_POWERS_EDIT_VERSION_DESC" />
|
||||
<action name="power.submenu" title="COM_COMPONENTBUILDER_POWERS_SUBMENU" description="COM_COMPONENTBUILDER_POWERS_SUBMENU_DESC" />
|
||||
<action name="repository.access" title="COM_COMPONENTBUILDER_REPOSITORIES_ACCESS" description="COM_COMPONENTBUILDER_REPOSITORIES_ACCESS_DESC" />
|
||||
<action name="repository.batch" title="COM_COMPONENTBUILDER_REPOSITORIES_BATCH_USE" description="COM_COMPONENTBUILDER_REPOSITORIES_BATCH_USE_DESC" />
|
||||
<action name="repository.create" title="COM_COMPONENTBUILDER_REPOSITORIES_CREATE" description="COM_COMPONENTBUILDER_REPOSITORIES_CREATE_DESC" />
|
||||
<action name="repository.dashboard_list" title="COM_COMPONENTBUILDER_REPOSITORIES_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_REPOSITORIES_DASHBOARD_LIST_DESC" />
|
||||
<action name="repository.delete" title="COM_COMPONENTBUILDER_REPOSITORIES_DELETE" description="COM_COMPONENTBUILDER_REPOSITORIES_DELETE_DESC" />
|
||||
<action name="repository.edit" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_DESC" />
|
||||
<action name="repository.edit.created_by" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_BY_DESC" />
|
||||
<action name="repository.edit.created" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="repository.edit.own" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_OWN" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_OWN_DESC" />
|
||||
<action name="repository.edit.state" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_STATE" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_STATE_DESC" />
|
||||
<action name="repository.version" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_VERSION" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_VERSION_DESC" />
|
||||
<action name="repository.submenu" title="COM_COMPONENTBUILDER_REPOSITORIES_SUBMENU" description="COM_COMPONENTBUILDER_REPOSITORIES_SUBMENU_DESC" />
|
||||
<action name="search.access" title="COM_COMPONENTBUILDER_SEARCH_ACCESS" description="COM_COMPONENTBUILDER_SEARCH_ACCESS_DESC" />
|
||||
<action name="search.compiler" title="COM_COMPONENTBUILDER_SEARCH_COMPILER_BUTTON_ACCESS" description="COM_COMPONENTBUILDER_SEARCH_COMPILER_BUTTON_ACCESS_DESC" />
|
||||
<action name="search.dashboard_list" title="COM_COMPONENTBUILDER_SEARCH_DASHBOARD_LIST" description="COM_COMPONENTBUILDER_SEARCH_DASHBOARD_LIST_DESC" />
|
||||
@ -814,6 +826,17 @@
|
||||
<action name="server.access" title="COM_COMPONENTBUILDER_SERVERS_ACCESS" description="COM_COMPONENTBUILDER_SERVERS_ACCESS_DESC" />
|
||||
<action name="server.version" title="COM_COMPONENTBUILDER_SERVERS_EDIT_VERSION" description="COM_COMPONENTBUILDER_SERVERS_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="repository">
|
||||
<action name="repository.edit" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_DESC" />
|
||||
<action name="repository.edit.own" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_OWN" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_OWN_DESC" />
|
||||
<action name="repository.edit.state" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_STATE" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_STATE_DESC" />
|
||||
<action name="repository.edit.created_by" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_BY" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_BY_DESC" />
|
||||
<action name="repository.edit.created" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_DATE" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_DATE_DESC" />
|
||||
<action name="repository.create" title="COM_COMPONENTBUILDER_REPOSITORIES_CREATE" description="COM_COMPONENTBUILDER_REPOSITORIES_CREATE_DESC" />
|
||||
<action name="repository.delete" title="COM_COMPONENTBUILDER_REPOSITORIES_DELETE" description="COM_COMPONENTBUILDER_REPOSITORIES_DELETE_DESC" />
|
||||
<action name="repository.access" title="COM_COMPONENTBUILDER_REPOSITORIES_ACCESS" description="COM_COMPONENTBUILDER_REPOSITORIES_ACCESS_DESC" />
|
||||
<action name="repository.version" title="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_VERSION" description="COM_COMPONENTBUILDER_REPOSITORIES_EDIT_VERSION_DESC" />
|
||||
</section>
|
||||
<section name="help_document">
|
||||
<action name="help_document.edit" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT_DESC" />
|
||||
<action name="help_document.edit.own" title="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT_OWN" description="COM_COMPONENTBUILDER_HELP_DOCUMENTS_EDIT_OWN_DESC" />
|
||||
|
13
admin/assets/css/repositories.css
Normal file
13
admin/assets/css/repositories.css
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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
|
||||
*/
|
||||
|
||||
/* CSS Document */
|
||||
|
||||
|
13
admin/assets/css/repository.css
Normal file
13
admin/assets/css/repository.css
Normal file
@ -0,0 +1,13 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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
|
||||
*/
|
||||
|
||||
/* CSS Document */
|
||||
|
||||
|
BIN
admin/assets/images/icons/repositories.png
Normal file
BIN
admin/assets/images/icons/repositories.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
139
admin/config.xml
139
admin/config.xml
@ -756,62 +756,7 @@
|
||||
COM_COMPONENTBUILDER_CONFIG_NO</option>
|
||||
</field>
|
||||
<!-- Note_super_powers_repositories Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_super_powers_repositories" label="COM_COMPONENTBUILDER_CONFIG_NOTE_SUPER_POWERS_REPOSITORIES_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_SUPER_POWERS_REPOSITORIES_DESCRIPTION" heading="h4" class="alert alert-info note_super_powers_repositories" showon="powers_repository:1[AND]super_powers_repositories:1" />
|
||||
<!-- Approved_paths Field. Type: Subform. (joomla) -->
|
||||
<field
|
||||
type="subform"
|
||||
name="approved_paths"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_APPROVED_PATHS_LABEL"
|
||||
layout="joomla.form.field.subform.repeatable-table"
|
||||
multiple="true"
|
||||
buttons="add,remove,move"
|
||||
icon="list"
|
||||
max="30"
|
||||
min="1"
|
||||
showon="powers_repository:1[AND]super_powers_repositories:1">
|
||||
<form hidden="true" name="list_approved_paths_modal" repeat="true">
|
||||
<!-- Owner Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="owner"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_OWNER_LABEL"
|
||||
size="70"
|
||||
maxlength="150"
|
||||
class="text_area span12"
|
||||
readonly="false"
|
||||
filter="CMD"
|
||||
hint="COM_COMPONENTBUILDER_CONFIG_OWNER_HINT"
|
||||
autocomplete="on"
|
||||
/>
|
||||
<!-- Repo Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="repo"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_REPO_LABEL"
|
||||
size="70"
|
||||
maxlength="150"
|
||||
class="text_area span12"
|
||||
readonly="false"
|
||||
filter="CMD"
|
||||
hint="COM_COMPONENTBUILDER_CONFIG_REPO_HINT"
|
||||
autocomplete="on"
|
||||
/>
|
||||
<!-- Branch Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="branch"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_BRANCH_LABEL"
|
||||
size="70"
|
||||
maxlength="150"
|
||||
default="default"
|
||||
class="text_area span12"
|
||||
readonly="false"
|
||||
filter="CMD"
|
||||
hint="COM_COMPONENTBUILDER_CONFIG_BRANCH_HINT"
|
||||
autocomplete="on"
|
||||
/>
|
||||
</form>
|
||||
</field>
|
||||
<field type="note" name="note_super_powers_repositories" label="COM_COMPONENTBUILDER_CONFIG_NOTE_SUPER_POWERS_REPOSITORIES_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_SUPER_POWERS_REPOSITORIES_DESCRIPTION" heading="h4" class="alert alert-error note_super_powers_repositories" showon="powers_repository:1[AND]super_powers_repositories:1" />
|
||||
<!-- Note_powers_repository_path Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_powers_repository_path" label="COM_COMPONENTBUILDER_CONFIG_NOTE_POWERS_REPOSITORY_PATH_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_POWERS_REPOSITORY_PATH_DESCRIPTION" heading="h4" class="alert alert-info note_powers_repository_path" showon="powers_repository:1" />
|
||||
<!-- Local_powers_repository_path Field. Type: Text. (joomla) -->
|
||||
@ -832,88 +777,6 @@
|
||||
autocomplete="on"
|
||||
showon="powers_repository:1"
|
||||
/>
|
||||
<!-- Add_custom_gitea_url Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="add_custom_gitea_url"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_ADD_CUSTOM_GITEA_URL_LABEL"
|
||||
description="COM_COMPONENTBUILDER_CONFIG_ADD_CUSTOM_GITEA_URL_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="1">
|
||||
<!-- Option Set. -->
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_CONFIG_GITVDMDEV</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_CONFIG_CUSTOMGITEA</option>
|
||||
</field>
|
||||
<!-- Note_custom_gitea_url Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_custom_gitea_url" label="COM_COMPONENTBUILDER_CONFIG_NOTE_CUSTOM_GITEA_URL_LABEL" description="COM_COMPONENTBUILDER_CONFIG_NOTE_CUSTOM_GITEA_URL_DESCRIPTION" heading="h3" class="alert alert-success note_custom_gitea_url" showon="add_custom_gitea_url:2" />
|
||||
<!-- Custom_gitea_url Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="custom_gitea_url"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_CUSTOM_GITEA_URL_LABEL"
|
||||
size="70"
|
||||
maxlength="150"
|
||||
default="https://git.vdm.dev"
|
||||
description="COM_COMPONENTBUILDER_CONFIG_CUSTOM_GITEA_URL_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="url"
|
||||
validated="url"
|
||||
scheme="http,https"
|
||||
message="COM_COMPONENTBUILDER_CONFIG_CUSTOM_GITEA_URL_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_CONFIG_CUSTOM_GITEA_URL_HINT"
|
||||
autocomplete="on"
|
||||
showon="add_custom_gitea_url:2"
|
||||
/>
|
||||
<!-- Custom_gitea_token Field. Type: Password. (joomla) -->
|
||||
<field
|
||||
type="password"
|
||||
name="custom_gitea_token"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_CUSTOM_GITEA_TOKEN_LABEL"
|
||||
size="128"
|
||||
description="COM_COMPONENTBUILDER_CONFIG_CUSTOM_GITEA_TOKEN_DESCRIPTION"
|
||||
message="Error! Please add token here."
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
disabled="false"
|
||||
required="false"
|
||||
filter="STRING"
|
||||
hint="COM_COMPONENTBUILDER_CONFIG_CUSTOM_GITEA_TOKEN_HINT"
|
||||
autocomplete="off"
|
||||
showon="add_custom_gitea_url:2"
|
||||
/>
|
||||
<!-- Super_powers_core_organisation_note Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="super_powers_core_organisation_note" label="COM_COMPONENTBUILDER_CONFIG_SUPER_POWERS_CORE_ORGANISATION_NOTE_LABEL" description="COM_COMPONENTBUILDER_CONFIG_SUPER_POWERS_CORE_ORGANISATION_NOTE_DESCRIPTION" heading="h4" class="alert alert-success super_powers_core_organisation_note" showon="add_custom_gitea_url:2" />
|
||||
<!-- Super_powers_core_organisation Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="super_powers_core_organisation"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_SUPER_POWERS_CORE_ORGANISATION_LABEL"
|
||||
size="70"
|
||||
maxlength="150"
|
||||
default="joomla"
|
||||
description="COM_COMPONENTBUILDER_CONFIG_SUPER_POWERS_CORE_ORGANISATION_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="WORD"
|
||||
hint="COM_COMPONENTBUILDER_CONFIG_SUPER_POWERS_CORE_ORGANISATION_HINT"
|
||||
autocomplete="on"
|
||||
showon="add_custom_gitea_url:2"
|
||||
/>
|
||||
<!-- Super_powers_core Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="super_powers_core"
|
||||
label="COM_COMPONENTBUILDER_CONFIG_SUPER_POWERS_CORE_LABEL"
|
||||
size="70"
|
||||
maxlength="150"
|
||||
default="joomla/super-powers"
|
||||
class="text_area"
|
||||
filter="PATH"
|
||||
hint="COM_COMPONENTBUILDER_CONFIG_SUPER_POWERS_CORE_HINT"
|
||||
autocomplete="on"
|
||||
showon="add_custom_gitea_url:2"
|
||||
/>
|
||||
</fieldset>
|
||||
<fieldset
|
||||
name="compiler_custom_config"
|
||||
|
@ -120,6 +120,7 @@ class ComponentbuilderController extends BaseController
|
||||
'language_translation' => 'language_translations',
|
||||
'language' => 'languages',
|
||||
'server' => 'servers',
|
||||
'repository' => 'repositories',
|
||||
'help_document' => 'help_documents',
|
||||
'admin_fields' => 'admins_fields',
|
||||
'admin_fields_conditions' => 'admins_fields_conditions',
|
||||
|
50
admin/controllers/repositories.php
Normal file
50
admin/controllers/repositories.php
Normal file
@ -0,0 +1,50 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\Controller\AdminController;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Session\Session;
|
||||
|
||||
/**
|
||||
* Repositories Admin Controller
|
||||
*/
|
||||
class ComponentbuilderControllerRepositories extends AdminController
|
||||
{
|
||||
/**
|
||||
* The prefix to use with controller messages.
|
||||
*
|
||||
* @var string
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $text_prefix = 'COM_COMPONENTBUILDER_REPOSITORIES';
|
||||
|
||||
/**
|
||||
* Method to get a model object, loading it if required.
|
||||
*
|
||||
* @param string $name The model name. Optional.
|
||||
* @param string $prefix The class prefix. Optional.
|
||||
* @param array $config Configuration array for model. Optional.
|
||||
*
|
||||
* @return JModelLegacy The model.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getModel($name = 'Repository', $prefix = 'ComponentbuilderModel', $config = array('ignore_request' => true))
|
||||
{
|
||||
return parent::getModel($name, $prefix, $config);
|
||||
}
|
||||
}
|
329
admin/controllers/repository.php
Normal file
329
admin/controllers/repository.php
Normal file
@ -0,0 +1,329 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\MVC\Controller\FormController;
|
||||
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
|
||||
/**
|
||||
* Repository Form Controller
|
||||
*/
|
||||
class ComponentbuilderControllerRepository extends FormController
|
||||
{
|
||||
/**
|
||||
* Current or most recently performed task.
|
||||
*
|
||||
* @var string
|
||||
* @since 12.2
|
||||
* @note Replaces _task.
|
||||
*/
|
||||
protected $task;
|
||||
|
||||
/**
|
||||
* Class constructor.
|
||||
*
|
||||
* @param array $config A named array of configuration variables.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function __construct($config = [])
|
||||
{
|
||||
$this->view_list = 'Repositories'; // safeguard for setting the return view listing to the main view.
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method override to check if you can add a new record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowAdd($data = [])
|
||||
{
|
||||
// Get user object.
|
||||
$user = Factory::getUser();
|
||||
// Access check.
|
||||
$access = $user->authorise('repository.access', 'com_componentbuilder');
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// In the absence of better information, revert to the component permissions.
|
||||
return $user->authorise('repository.create', $this->option);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method override to check if you can edit an existing record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
* @param string $key The name of the key for the primary key.
|
||||
*
|
||||
* @return boolean
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function allowEdit($data = [], $key = 'id')
|
||||
{
|
||||
// get user object.
|
||||
$user = Factory::getUser();
|
||||
// get record id.
|
||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
||||
|
||||
|
||||
// Access check.
|
||||
$access = ($user->authorise('repository.access', 'com_componentbuilder.repository.' . (int) $recordId) && $user->authorise('repository.access', 'com_componentbuilder'));
|
||||
if (!$access)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($recordId)
|
||||
{
|
||||
// The record has been set. Check the record permissions.
|
||||
$permission = $user->authorise('repository.edit', 'com_componentbuilder.repository.' . (int) $recordId);
|
||||
if (!$permission)
|
||||
{
|
||||
if ($user->authorise('repository.edit.own', 'com_componentbuilder.repository.' . $recordId))
|
||||
{
|
||||
// Now test the owner is the user.
|
||||
$ownerId = (int) isset($data['created_by']) ? $data['created_by'] : 0;
|
||||
if (empty($ownerId))
|
||||
{
|
||||
// Need to do a lookup from the model.
|
||||
$record = $this->getModel()->getItem($recordId);
|
||||
|
||||
if (empty($record))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
$ownerId = $record->created_by;
|
||||
}
|
||||
|
||||
// If the owner matches 'me' then allow.
|
||||
if ($ownerId == $user->id)
|
||||
{
|
||||
if ($user->authorise('repository.edit.own', 'com_componentbuilder'))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// Since there is no permission, revert to the component permissions.
|
||||
return $user->authorise('repository.edit', $this->option);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the URL arguments to append to an item redirect.
|
||||
*
|
||||
* @param integer $recordId The primary key id for the item.
|
||||
* @param string $urlVar The name of the URL variable for the id.
|
||||
*
|
||||
* @return string The arguments to append to the redirect URL.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||
{
|
||||
// get the referral options (old method use return instead see parent)
|
||||
$ref = $this->input->get('ref', 0, 'string');
|
||||
$refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
// get redirect info.
|
||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||
|
||||
// set the referral options
|
||||
if ($refid && $ref)
|
||||
{
|
||||
$append = '&ref=' . (string) $ref . '&refid='. (int) $refid . $append;
|
||||
}
|
||||
elseif ($ref)
|
||||
{
|
||||
$append = '&ref='. (string) $ref . $append;
|
||||
}
|
||||
|
||||
return $append;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to run batch operations.
|
||||
*
|
||||
* @param object $model The model.
|
||||
*
|
||||
* @return boolean True if successful, false otherwise and internal error is set.
|
||||
*
|
||||
* @since 2.5
|
||||
*/
|
||||
public function batch($model = null)
|
||||
{
|
||||
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
|
||||
|
||||
// Set the model
|
||||
$model = $this->getModel('Repository', '', []);
|
||||
|
||||
// Preset the redirect
|
||||
$this->setRedirect(Route::_('index.php?option=com_componentbuilder&view=repositories' . $this->getRedirectToListAppend(), false));
|
||||
|
||||
return parent::batch($model);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to cancel an edit.
|
||||
*
|
||||
* @param string $key The name of the primary key of the URL variable.
|
||||
*
|
||||
* @return boolean True if access level checks pass, false otherwise.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function cancel($key = null)
|
||||
{
|
||||
// get the referral options
|
||||
$this->ref = $this->input->get('ref', 0, 'word');
|
||||
$this->refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
// Check if there is a return value
|
||||
$return = $this->input->get('return', null, 'base64');
|
||||
|
||||
$cancel = parent::cancel($key);
|
||||
|
||||
if (!is_null($return) && Uri::isInternal(base64_decode($return)))
|
||||
{
|
||||
$redirect = base64_decode($return);
|
||||
|
||||
// Redirect to the return value.
|
||||
$this->setRedirect(
|
||||
Route::_(
|
||||
$redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->refid && $this->ref)
|
||||
{
|
||||
$redirect = '&view=' . (string)$this->ref . '&layout=edit&id=' . (int)$this->refid;
|
||||
|
||||
// Redirect to the item screen.
|
||||
$this->setRedirect(
|
||||
Route::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->ref)
|
||||
{
|
||||
$redirect = '&view='.(string)$this->ref;
|
||||
|
||||
// Redirect to the list screen.
|
||||
$this->setRedirect(
|
||||
Route::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
return $cancel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to save a record.
|
||||
*
|
||||
* @param string $key The name of the primary key of the URL variable.
|
||||
* @param string $urlVar The name of the URL variable if different from the primary key (sometimes required to avoid router collisions).
|
||||
*
|
||||
* @return boolean True if successful, false otherwise.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function save($key = null, $urlVar = null)
|
||||
{
|
||||
// get the referral options
|
||||
$this->ref = $this->input->get('ref', 0, 'word');
|
||||
$this->refid = $this->input->get('refid', 0, 'int');
|
||||
|
||||
// Check if there is a return value
|
||||
$return = $this->input->get('return', null, 'base64');
|
||||
$canReturn = (!is_null($return) && Uri::isInternal(base64_decode($return)));
|
||||
|
||||
if ($this->ref || $this->refid || $canReturn)
|
||||
{
|
||||
// to make sure the item is checkedin on redirect
|
||||
$this->task = 'save';
|
||||
}
|
||||
|
||||
$saved = parent::save($key, $urlVar);
|
||||
|
||||
// This is not needed since parent save already does this
|
||||
// Due to the ref and refid implementation we need to add this
|
||||
if ($canReturn)
|
||||
{
|
||||
$redirect = base64_decode($return);
|
||||
|
||||
// Redirect to the return value.
|
||||
$this->setRedirect(
|
||||
Route::_(
|
||||
$redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->refid && $this->ref)
|
||||
{
|
||||
$redirect = '&view=' . (string) $this->ref . '&layout=edit&id=' . (int) $this->refid;
|
||||
|
||||
// Redirect to the item screen.
|
||||
$this->setRedirect(
|
||||
Route::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
elseif ($this->ref)
|
||||
{
|
||||
$redirect = '&view=' . (string) $this->ref;
|
||||
|
||||
// Redirect to the list screen.
|
||||
$this->setRedirect(
|
||||
Route::_(
|
||||
'index.php?option=' . $this->option . $redirect, false
|
||||
)
|
||||
);
|
||||
}
|
||||
return $saved;
|
||||
}
|
||||
|
||||
/**
|
||||
* Function that allows child controller access to model data
|
||||
* after the data has been saved.
|
||||
*
|
||||
* @param BaseDatabaseModel &$model The data model object.
|
||||
* @param array $validData The validated data.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 11.1
|
||||
*/
|
||||
protected function postSaveHook(BaseDatabaseModel $model, $validData = [])
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
@ -6173,6 +6173,10 @@ abstract class ComponentbuilderHelper
|
||||
{
|
||||
\JHtmlSidebar::addEntry(Text::_('COM_COMPONENTBUILDER_SUBMENU_SERVERS'), 'index.php?option=com_componentbuilder&view=servers', $submenu === 'servers');
|
||||
}
|
||||
if ($user->authorise('repository.access', 'com_componentbuilder') && $user->authorise('repository.submenu', 'com_componentbuilder'))
|
||||
{
|
||||
\JHtmlSidebar::addEntry(Text::_('COM_COMPONENTBUILDER_SUBMENU_REPOSITORIES'), 'index.php?option=com_componentbuilder&view=repositories', $submenu === 'repositories');
|
||||
}
|
||||
if ($user->authorise('help_document.access', 'com_componentbuilder') && $user->authorise('help_document.submenu', 'com_componentbuilder'))
|
||||
{
|
||||
\JHtmlSidebar::addEntry(Text::_('COM_COMPONENTBUILDER_SUBMENU_HELP_DOCUMENTS'), 'index.php?option=com_componentbuilder&view=help_documents', $submenu === 'help_documents');
|
||||
|
File diff suppressed because one or more lines are too long
@ -1065,6 +1065,30 @@ COM_COMPONENTBUILDER_POWER_RESET_BUTTON_ACCESS="Power Reset Button Access"
|
||||
COM_COMPONENTBUILDER_POWER_RESET_BUTTON_ACCESS_DESC="Allows the users in this group to access the reset button."
|
||||
COM_COMPONENTBUILDER_POWER_RUN_EXPANSION_BUTTON_ACCESS="Power Run Expansion Button Access"
|
||||
COM_COMPONENTBUILDER_POWER_RUN_EXPANSION_BUTTON_ACCESS_DESC="Allows the users in this group to access the run expansion button."
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_ACCESS="Repositories Access"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_ACCESS_DESC="Allows the users in this group to access access repositories"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_BATCH_USE="Repositories Batch Use"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_BATCH_USE_DESC="Allows the users in this group to use batch copy/update method of batch repositories"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_CREATE="Repositories Create"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_CREATE_DESC="Allows the users in this group to create create repositories"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_DASHBOARD_LIST="Repositories Dashboard List"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_DASHBOARD_LIST_DESC="Allows the users in this group to dashboard list of repository"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_DELETE="Repositories Delete"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_DELETE_DESC="Allows the users in this group to delete delete repositories"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT="Repositories Edit"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_BY="Repositories Edit Created By"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_BY_DESC="Allows the users in this group to update the created by of the edit created by repositories"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_DATE="Repositories Edit Created Date"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_CREATED_DATE_DESC="Allows the users in this group to update the created date of the edit created repositories"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_DESC="Allows the users in this group to edit the repository"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_OWN="Repositories Edit Own"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_OWN_DESC="Allows the users in this group to edit edit own repositories created by them"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_STATE="Repositories Edit State"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_STATE_DESC="Allows the users in this group to update the state of the repository"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_VERSION="Repositories Edit Version"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version repositories"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_SUBMENU="Repositories Submenu"
|
||||
COM_COMPONENTBUILDER_REPOSITORIES_SUBMENU_DESC="Allows the users in this group to submenu of repository"
|
||||
COM_COMPONENTBUILDER_SEARCH_ACCESS="Search Access"
|
||||
COM_COMPONENTBUILDER_SEARCH_ACCESS_DESC="Allows the users in this group to access search."
|
||||
COM_COMPONENTBUILDER_SEARCH_COMPILER_BUTTON_ACCESS="Search Compiler Button Access"
|
||||
|
@ -31,7 +31,6 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'store',
|
||||
'medium_encryption_note',
|
||||
'basic_encryption_note',
|
||||
'note_whmcs_encryption',
|
||||
'note_expert_field_save_mode',
|
||||
'initiator_on_save_model',
|
||||
'initiator_on_get_model',
|
||||
|
@ -19,7 +19,7 @@ use VDM\Joomla\Utilities\StringHelper;
|
||||
use VDM\Joomla\Utilities\ArrayHelper;
|
||||
|
||||
// set the defaults
|
||||
$items = $displayData->vxtfields;
|
||||
$items = $displayData->vxsfields;
|
||||
$user = Factory::getUser();
|
||||
$id = $displayData->item->id;
|
||||
// set the edit URL
|
||||
|
@ -30,12 +30,6 @@ $fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'author',
|
||||
'email',
|
||||
'website',
|
||||
'add_license',
|
||||
'license_type',
|
||||
'note_whmcs_lisencing_note',
|
||||
'whmcs_key',
|
||||
'whmcs_url',
|
||||
'whmcs_buy_link',
|
||||
'license',
|
||||
'bom',
|
||||
'image',
|
||||
|
46
admin/layouts/repository/details_above.php
Normal file
46
admin/layouts/repository/details_above.php
Normal file
@ -0,0 +1,46 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'system_name',
|
||||
'target',
|
||||
'access_repo'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: [];
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<div class="form-inline form-inline-header">
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
<?php endif; ?>
|
45
admin/layouts/repository/details_left.php
Normal file
45
admin/layouts/repository/details_left.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'type',
|
||||
'base',
|
||||
'username',
|
||||
'token'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: [];
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
45
admin/layouts/repository/details_right.php
Normal file
45
admin/layouts/repository/details_right.php
Normal file
@ -0,0 +1,45 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'organisation',
|
||||
'repository',
|
||||
'read_branch',
|
||||
'write_branch'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: [];
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
47
admin/layouts/repository/publishing.php
Normal file
47
admin/layouts/repository/publishing.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'guid',
|
||||
'title',
|
||||
'created',
|
||||
'created_by',
|
||||
'modified',
|
||||
'modified_by'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: [];
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
47
admin/layouts/repository/publlshing.php
Normal file
47
admin/layouts/repository/publlshing.php
Normal file
@ -0,0 +1,47 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
// get the form
|
||||
$form = $displayData->getForm();
|
||||
|
||||
// get the layout fields override method name (from layout path/ID)
|
||||
$layout_path_array = explode('.', $this->getLayoutId());
|
||||
// Since we cannot pass the layout and tab names as parameters to the model method
|
||||
// this name combination of tab and layout in the method name is the only work around
|
||||
// seeing that JCB uses those two values (tab_name & layout_name) as the layout file name.
|
||||
// example of layout name: details_left.php
|
||||
// example of method name: getFields_details_left()
|
||||
$fields_tab_layout = 'fields_' . $layout_path_array[1];
|
||||
|
||||
// get the fields
|
||||
$fields = $displayData->get($fields_tab_layout) ?: array(
|
||||
'published',
|
||||
'ordering',
|
||||
'access',
|
||||
'version',
|
||||
'hits',
|
||||
'id'
|
||||
);
|
||||
|
||||
$hiddenFields = $displayData->get('hidden_fields') ?: [];
|
||||
|
||||
?>
|
||||
<?php if ($fields && count((array) $fields)) :?>
|
||||
<?php foreach($fields as $field): ?>
|
||||
<?php if (in_array($field, $hiddenFields)) : ?>
|
||||
<?php $form->setFieldAttribute($field, 'type', 'hidden'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo $form->renderField($field, null, null, array('class' => 'control-wrapper-' . $field)); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endif; ?>
|
@ -37,7 +37,7 @@ class ComponentbuilderModelComponentbuilder extends ListModel
|
||||
$icons = [];
|
||||
// view groups array
|
||||
$viewGroups = array(
|
||||
'main' => array('png.compiler', 'png.joomla_components', 'png.joomla_modules', 'png.joomla_plugins', 'png.powers', 'png.search', 'png||importjcbpackages||index.php?option=com_componentbuilder&view=joomla_components&task=joomla_components.smartImport', 'png.admin_views', 'png.custom_admin_views', 'png.site_views', 'png.template.add', 'png.templates', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.placeholders', 'png.libraries', 'png.snippets', 'png.get_snippets', 'png.validation_rules', 'png.field.add', 'png.fields', 'png.fields.catid_qpo0O0oqp_com_componentbuilder_po0O0oq_field', 'png.fieldtypes', 'png.fieldtypes.catid_qpo0O0oqp_com_componentbuilder_po0O0oq_fieldtype', 'png.language_translations', 'png.servers', 'png.help_documents')
|
||||
'main' => array('png.compiler', 'png.joomla_components', 'png.joomla_modules', 'png.joomla_plugins', 'png.powers', 'png.search', 'png||importjcbpackages||index.php?option=com_componentbuilder&view=joomla_components&task=joomla_components.smartImport', 'png.admin_views', 'png.custom_admin_views', 'png.site_views', 'png.template.add', 'png.templates', 'png.layouts', 'png.dynamic_get.add', 'png.dynamic_gets', 'png.custom_codes', 'png.placeholders', 'png.libraries', 'png.snippets', 'png.get_snippets', 'png.validation_rules', 'png.field.add', 'png.fields', 'png.fields.catid_qpo0O0oqp_com_componentbuilder_po0O0oq_field', 'png.fieldtypes', 'png.fieldtypes.catid_qpo0O0oqp_com_componentbuilder_po0O0oq_fieldtype', 'png.language_translations', 'png.servers', 'png.repositories', 'png.help_documents')
|
||||
);
|
||||
// view access array
|
||||
$viewAccess = [
|
||||
@ -155,6 +155,11 @@ class ComponentbuilderModelComponentbuilder extends ListModel
|
||||
'server.access' => 'server.access',
|
||||
'servers.submenu' => 'server.submenu',
|
||||
'servers.dashboard_list' => 'server.dashboard_list',
|
||||
'repository.create' => 'repository.create',
|
||||
'repositories.access' => 'repository.access',
|
||||
'repository.access' => 'repository.access',
|
||||
'repositories.submenu' => 'repository.submenu',
|
||||
'repositories.dashboard_list' => 'repository.dashboard_list',
|
||||
'help_document.create' => 'help_document.create',
|
||||
'help_documents.access' => 'help_document.access',
|
||||
'help_document.access' => 'help_document.access',
|
||||
|
@ -71,7 +71,6 @@ class ComponentbuilderModelField extends AdminModel
|
||||
'store',
|
||||
'medium_encryption_note',
|
||||
'basic_encryption_note',
|
||||
'note_whmcs_encryption',
|
||||
'note_expert_field_save_mode',
|
||||
'initiator_on_save_model',
|
||||
'initiator_on_get_model',
|
||||
@ -215,6 +214,12 @@ class ComponentbuilderModelField extends AdminModel
|
||||
$item->metadata = $registry->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->on_get_model_field))
|
||||
{
|
||||
// base64 Decode on_get_model_field.
|
||||
$item->on_get_model_field = base64_decode($item->on_get_model_field);
|
||||
}
|
||||
|
||||
if (!empty($item->on_save_model_field))
|
||||
{
|
||||
// base64 Decode on_save_model_field.
|
||||
@ -227,10 +232,10 @@ class ComponentbuilderModelField extends AdminModel
|
||||
$item->initiator_on_get_model = base64_decode($item->initiator_on_get_model);
|
||||
}
|
||||
|
||||
if (!empty($item->initiator_on_save_model))
|
||||
if (!empty($item->javascript_view_footer))
|
||||
{
|
||||
// base64 Decode initiator_on_save_model.
|
||||
$item->initiator_on_save_model = base64_decode($item->initiator_on_save_model);
|
||||
// base64 Decode javascript_view_footer.
|
||||
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
|
||||
}
|
||||
|
||||
if (!empty($item->css_views))
|
||||
@ -245,24 +250,18 @@ class ComponentbuilderModelField extends AdminModel
|
||||
$item->css_view = base64_decode($item->css_view);
|
||||
}
|
||||
|
||||
if (!empty($item->on_get_model_field))
|
||||
{
|
||||
// base64 Decode on_get_model_field.
|
||||
$item->on_get_model_field = base64_decode($item->on_get_model_field);
|
||||
}
|
||||
|
||||
if (!empty($item->javascript_view_footer))
|
||||
{
|
||||
// base64 Decode javascript_view_footer.
|
||||
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
|
||||
}
|
||||
|
||||
if (!empty($item->javascript_views_footer))
|
||||
{
|
||||
// base64 Decode javascript_views_footer.
|
||||
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
|
||||
}
|
||||
|
||||
if (!empty($item->initiator_on_save_model))
|
||||
{
|
||||
// base64 Decode initiator_on_save_model.
|
||||
$item->initiator_on_save_model = base64_decode($item->initiator_on_save_model);
|
||||
}
|
||||
|
||||
if (!empty($item->xml))
|
||||
{
|
||||
// JSON Decode xml.
|
||||
@ -1172,6 +1171,12 @@ class ComponentbuilderModelField extends AdminModel
|
||||
$data['xml'] = (string) json_encode($data['xml']);
|
||||
}
|
||||
|
||||
// Set the on_get_model_field string to base64 string.
|
||||
if (isset($data['on_get_model_field']))
|
||||
{
|
||||
$data['on_get_model_field'] = base64_encode($data['on_get_model_field']);
|
||||
}
|
||||
|
||||
// Set the on_save_model_field string to base64 string.
|
||||
if (isset($data['on_save_model_field']))
|
||||
{
|
||||
@ -1184,10 +1189,10 @@ class ComponentbuilderModelField extends AdminModel
|
||||
$data['initiator_on_get_model'] = base64_encode($data['initiator_on_get_model']);
|
||||
}
|
||||
|
||||
// Set the initiator_on_save_model string to base64 string.
|
||||
if (isset($data['initiator_on_save_model']))
|
||||
// Set the javascript_view_footer string to base64 string.
|
||||
if (isset($data['javascript_view_footer']))
|
||||
{
|
||||
$data['initiator_on_save_model'] = base64_encode($data['initiator_on_save_model']);
|
||||
$data['javascript_view_footer'] = base64_encode($data['javascript_view_footer']);
|
||||
}
|
||||
|
||||
// Set the css_views string to base64 string.
|
||||
@ -1202,24 +1207,18 @@ class ComponentbuilderModelField extends AdminModel
|
||||
$data['css_view'] = base64_encode($data['css_view']);
|
||||
}
|
||||
|
||||
// Set the on_get_model_field string to base64 string.
|
||||
if (isset($data['on_get_model_field']))
|
||||
{
|
||||
$data['on_get_model_field'] = base64_encode($data['on_get_model_field']);
|
||||
}
|
||||
|
||||
// Set the javascript_view_footer string to base64 string.
|
||||
if (isset($data['javascript_view_footer']))
|
||||
{
|
||||
$data['javascript_view_footer'] = base64_encode($data['javascript_view_footer']);
|
||||
}
|
||||
|
||||
// Set the javascript_views_footer string to base64 string.
|
||||
if (isset($data['javascript_views_footer']))
|
||||
{
|
||||
$data['javascript_views_footer'] = base64_encode($data['javascript_views_footer']);
|
||||
}
|
||||
|
||||
// Set the initiator_on_save_model string to base64 string.
|
||||
if (isset($data['initiator_on_save_model']))
|
||||
{
|
||||
$data['initiator_on_save_model'] = base64_encode($data['initiator_on_save_model']);
|
||||
}
|
||||
|
||||
// Set the Params Items to data
|
||||
if (isset($data['params']) && is_array($data['params']))
|
||||
{
|
||||
|
@ -346,7 +346,6 @@ class ComponentbuilderModelFields extends ListModel
|
||||
2 => 'COM_COMPONENTBUILDER_FIELD_BASE64',
|
||||
3 => 'COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALDBKEY',
|
||||
5 => 'COM_COMPONENTBUILDER_FIELD_MEDIUM_ENCRYPTION_LOCALFILEKEY',
|
||||
4 => 'COM_COMPONENTBUILDER_FIELD_WHMCSKEY_ENCRYPTION',
|
||||
6 => 'COM_COMPONENTBUILDER_FIELD_EXPERT_MODE_CUSTOM'
|
||||
);
|
||||
// Now check if value is found in this array
|
||||
@ -721,22 +720,22 @@ class ComponentbuilderModelFields extends ListModel
|
||||
continue;
|
||||
}
|
||||
|
||||
// decode on_get_model_field
|
||||
$item->on_get_model_field = base64_decode($item->on_get_model_field);
|
||||
// decode on_save_model_field
|
||||
$item->on_save_model_field = base64_decode($item->on_save_model_field);
|
||||
// decode initiator_on_get_model
|
||||
$item->initiator_on_get_model = base64_decode($item->initiator_on_get_model);
|
||||
// decode initiator_on_save_model
|
||||
$item->initiator_on_save_model = base64_decode($item->initiator_on_save_model);
|
||||
// decode javascript_view_footer
|
||||
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
|
||||
// decode css_views
|
||||
$item->css_views = base64_decode($item->css_views);
|
||||
// decode css_view
|
||||
$item->css_view = base64_decode($item->css_view);
|
||||
// decode on_get_model_field
|
||||
$item->on_get_model_field = base64_decode($item->on_get_model_field);
|
||||
// decode javascript_view_footer
|
||||
$item->javascript_view_footer = base64_decode($item->javascript_view_footer);
|
||||
// decode javascript_views_footer
|
||||
$item->javascript_views_footer = base64_decode($item->javascript_views_footer);
|
||||
// decode initiator_on_save_model
|
||||
$item->initiator_on_save_model = base64_decode($item->initiator_on_save_model);
|
||||
// unset the values we don't want exported.
|
||||
unset($item->asset_id);
|
||||
unset($item->checked_out);
|
||||
|
71
admin/models/fields/repositoriesfilterbase.php
Normal file
71
admin/models/fields/repositoriesfilterbase.php
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Repositoriesfilterbase Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldRepositoriesfilterbase extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The repositoriesfilterbase field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'repositoriesfilterbase';
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of Html options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = Factory::getDbo();
|
||||
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select the text.
|
||||
$query->select($db->quoteName('base'));
|
||||
$query->from($db->quoteName('#__componentbuilder_repository'));
|
||||
$query->order($db->quoteName('base') . ' ASC');
|
||||
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
|
||||
$_results = $db->loadColumn();
|
||||
$_filter = [];
|
||||
$_filter[] = Html::_('select.option', '', '- ' . Text::_('COM_COMPONENTBUILDER_FILTER_SELECT_BASE_URL') . ' -');
|
||||
|
||||
if ($_results)
|
||||
{
|
||||
$_results = array_unique($_results);
|
||||
foreach ($_results as $base)
|
||||
{
|
||||
// Now add the base and its text to the options array
|
||||
$_filter[] = Html::_('select.option', $base, $base);
|
||||
}
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
}
|
71
admin/models/fields/repositoriesfilterorganisation.php
Normal file
71
admin/models/fields/repositoriesfilterorganisation.php
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Repositoriesfilterorganisation Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldRepositoriesfilterorganisation extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The repositoriesfilterorganisation field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'repositoriesfilterorganisation';
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of Html options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = Factory::getDbo();
|
||||
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select the text.
|
||||
$query->select($db->quoteName('organisation'));
|
||||
$query->from($db->quoteName('#__componentbuilder_repository'));
|
||||
$query->order($db->quoteName('organisation') . ' ASC');
|
||||
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
|
||||
$_results = $db->loadColumn();
|
||||
$_filter = [];
|
||||
$_filter[] = Html::_('select.option', '', '- ' . Text::_('COM_COMPONENTBUILDER_FILTER_SELECT_ORGANISATION') . ' -');
|
||||
|
||||
if ($_results)
|
||||
{
|
||||
$_results = array_unique($_results);
|
||||
foreach ($_results as $organisation)
|
||||
{
|
||||
// Now add the organisation and its text to the options array
|
||||
$_filter[] = Html::_('select.option', $organisation, $organisation);
|
||||
}
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
}
|
71
admin/models/fields/repositoriesfilterrepository.php
Normal file
71
admin/models/fields/repositoriesfilterrepository.php
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Repositoriesfilterrepository Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldRepositoriesfilterrepository extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The repositoriesfilterrepository field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'repositoriesfilterrepository';
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of Html options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = Factory::getDbo();
|
||||
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select the text.
|
||||
$query->select($db->quoteName('repository'));
|
||||
$query->from($db->quoteName('#__componentbuilder_repository'));
|
||||
$query->order($db->quoteName('repository') . ' ASC');
|
||||
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
|
||||
$_results = $db->loadColumn();
|
||||
$_filter = [];
|
||||
$_filter[] = Html::_('select.option', '', '- ' . Text::_('COM_COMPONENTBUILDER_FILTER_SELECT_REPOSITORY') . ' -');
|
||||
|
||||
if ($_results)
|
||||
{
|
||||
$_results = array_unique($_results);
|
||||
foreach ($_results as $repository)
|
||||
{
|
||||
// Now add the repository and its text to the options array
|
||||
$_filter[] = Html::_('select.option', $repository, $repository);
|
||||
}
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
}
|
75
admin/models/fields/repositoriesfiltertarget.php
Normal file
75
admin/models/fields/repositoriesfiltertarget.php
Normal file
@ -0,0 +1,75 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
|
||||
// import the list field type
|
||||
jimport('joomla.form.helper');
|
||||
JFormHelper::loadFieldClass('list');
|
||||
|
||||
/**
|
||||
* Repositoriesfiltertarget Form Field class for the Componentbuilder component
|
||||
*/
|
||||
class JFormFieldRepositoriesfiltertarget extends JFormFieldList
|
||||
{
|
||||
/**
|
||||
* The repositoriesfiltertarget field type.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
public $type = 'repositoriesfiltertarget';
|
||||
|
||||
/**
|
||||
* Method to get a list of options for a list input.
|
||||
*
|
||||
* @return array An array of Html options.
|
||||
*/
|
||||
protected function getOptions()
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = Factory::getDbo();
|
||||
|
||||
// Create a new query object.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select the text.
|
||||
$query->select($db->quoteName('target'));
|
||||
$query->from($db->quoteName('#__componentbuilder_repository'));
|
||||
$query->order($db->quoteName('target') . ' ASC');
|
||||
|
||||
// Reset the query using our newly populated query object.
|
||||
$db->setQuery($query);
|
||||
|
||||
$_results = $db->loadColumn();
|
||||
$_filter = [];
|
||||
$_filter[] = Html::_('select.option', '', '- ' . Text::_('COM_COMPONENTBUILDER_FILTER_SELECT_TARGET_CONTENT') . ' -');
|
||||
|
||||
if ($_results)
|
||||
{
|
||||
// get repositoriesmodel
|
||||
$_model = ComponentbuilderHelper::getModel('repositories');
|
||||
$_results = array_unique($_results);
|
||||
foreach ($_results as $target)
|
||||
{
|
||||
// Translate the target selection
|
||||
$_text = $_model->selectionTranslation($target,'target');
|
||||
// Now add the target and its text to the options array
|
||||
$_filter[] = Html::_('select.option', $target, Text::_($_text));
|
||||
}
|
||||
}
|
||||
return $_filter;
|
||||
}
|
||||
}
|
@ -15,7 +15,6 @@ defined('_JEXEC') or die('Restricted access');
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use VDM\Joomla\Utilities\Component\Helper;
|
||||
jimport('joomla.form.helper');
|
||||
\JFormHelper::loadFieldClass('checkboxes');
|
||||
|
||||
@ -33,69 +32,41 @@ class JFormFieldSuperpowerpaths extends JFormFieldCheckboxes
|
||||
|
||||
// A DynamicCheckboxes@ Field
|
||||
/**
|
||||
* Method to get the data to be passed to the layout for rendering.
|
||||
* Method to get the field options.
|
||||
*
|
||||
* @return array
|
||||
* @return array The field option objects.
|
||||
*
|
||||
* @since 3.5
|
||||
* @since 3.7.0
|
||||
*/
|
||||
protected function getLayoutData()
|
||||
protected function getOptions()
|
||||
{
|
||||
$data = parent::getLayoutData();
|
||||
|
||||
// True if the field has 'value' set. In other words, it has been stored, don't use the default values.
|
||||
$hasValue = (isset($this->value) && !empty($this->value));
|
||||
|
||||
// If a value has been stored, use it. Otherwise, use the defaults.
|
||||
$checkedOptions = $hasValue ? $this->value : $this->checkedOptions;
|
||||
|
||||
// get the form options
|
||||
// Get the databse object.
|
||||
$db = Factory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
$query->select($db->quoteName(array('a.repository', 'a.organisation')))
|
||||
->from($db->quoteName('#__componentbuilder_repository', 'a'))
|
||||
->where($db->quoteName('a.published') . ' >= 1')
|
||||
->where($db->quoteName('a.target') . ' = 1') // super powers
|
||||
->order($db->quoteName('a.ordering') . ' ASC');
|
||||
$db->setQuery((string)$query);
|
||||
$items = $db->loadObjectList();
|
||||
$options = [];
|
||||
|
||||
// get the component params
|
||||
$params = Helper::getParams();
|
||||
$activate = $params->get('super_powers_repositories', 0);
|
||||
|
||||
// set the default
|
||||
$default = $params->get('super_powers_core', 'joomla/super-powers');
|
||||
|
||||
// must have one / in the path
|
||||
if (strpos($default, '/') !== false)
|
||||
if ($items)
|
||||
{
|
||||
$tmp = new \stdClass;
|
||||
$tmp->text = $tmp->value = trim($default);
|
||||
$tmp->checked = false;
|
||||
$options[$tmp->value] = $tmp;
|
||||
if ($this->multiple === false)
|
||||
{
|
||||
$options[] = Html::_('select.option', '', Text::_('COM_COMPONENTBUILDER_SELECT_AN_OPTION'));
|
||||
}
|
||||
|
||||
if ($activate == 1)
|
||||
foreach($items as $item)
|
||||
{
|
||||
$subform = $params->get($this->fieldname);
|
||||
|
||||
// add the paths found in global settings
|
||||
if (is_object($subform))
|
||||
{
|
||||
foreach ($subform as $value)
|
||||
{
|
||||
if (isset($value->owner) && strlen($value->owner) > 1 &&
|
||||
isset($value->repo) && strlen($value->repo) > 1)
|
||||
{
|
||||
$tmp = new \stdClass;
|
||||
$tmp->text = $tmp->value = trim($value->owner) . '/' . trim($value->repo);
|
||||
$tmp->checked = false;
|
||||
|
||||
$options[$tmp->value] = $tmp;
|
||||
$path = $item->organisation . '/' . $item->repository;
|
||||
$options[] = Html::_('select.option', $path, $path);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$options[] = Html::_('select.option', '', Text::_('COM_COMPONENTBUILDER_NO_ACTIVE_REPOSITORIES_FOUND'));
|
||||
}
|
||||
}
|
||||
|
||||
$extraData = array(
|
||||
'checkedOptions' => is_array($checkedOptions) ? $checkedOptions : explode(',', (string) $checkedOptions),
|
||||
'hasValue' => $hasValue,
|
||||
'options' => array_values($options)
|
||||
);
|
||||
|
||||
return array_merge($data, $extraData);
|
||||
return $options;
|
||||
}
|
||||
}
|
||||
|
@ -257,7 +257,7 @@ class ComponentbuilderModelFieldtype extends AdminModel
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getVxtfields()
|
||||
public function getVxsfields()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = Factory::getUser();
|
||||
@ -399,13 +399,13 @@ class ComponentbuilderModelFieldtype extends AdminModel
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// convert datatype
|
||||
$item->datatype = $this->selectionTranslationVxtfields($item->datatype, 'datatype');
|
||||
$item->datatype = $this->selectionTranslationVxsfields($item->datatype, 'datatype');
|
||||
// convert indexes
|
||||
$item->indexes = $this->selectionTranslationVxtfields($item->indexes, 'indexes');
|
||||
$item->indexes = $this->selectionTranslationVxsfields($item->indexes, 'indexes');
|
||||
// convert null_switch
|
||||
$item->null_switch = $this->selectionTranslationVxtfields($item->null_switch, 'null_switch');
|
||||
$item->null_switch = $this->selectionTranslationVxsfields($item->null_switch, 'null_switch');
|
||||
// convert store
|
||||
$item->store = $this->selectionTranslationVxtfields($item->store, 'store');
|
||||
$item->store = $this->selectionTranslationVxsfields($item->store, 'store');
|
||||
}
|
||||
}
|
||||
|
||||
@ -419,7 +419,7 @@ class ComponentbuilderModelFieldtype extends AdminModel
|
||||
*
|
||||
* @return string The translatable string.
|
||||
*/
|
||||
public function selectionTranslationVxtfields($value,$name)
|
||||
public function selectionTranslationVxsfields($value,$name)
|
||||
{
|
||||
// Array of datatype language strings
|
||||
if ($name === 'datatype')
|
||||
@ -487,7 +487,6 @@ class ComponentbuilderModelFieldtype extends AdminModel
|
||||
2 => 'COM_COMPONENTBUILDER_FIELD_BASE64',
|
||||
3 => 'COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALDBKEY',
|
||||
5 => 'COM_COMPONENTBUILDER_FIELD_MEDIUM_ENCRYPTION_LOCALFILEKEY',
|
||||
4 => 'COM_COMPONENTBUILDER_FIELD_WHMCSKEY_ENCRYPTION',
|
||||
6 => 'COM_COMPONENTBUILDER_FIELD_EXPERT_MODE_CUSTOM'
|
||||
);
|
||||
// Now check if value is found in this array
|
||||
|
@ -226,8 +226,6 @@
|
||||
COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALDBKEY</option>
|
||||
<option value="5">
|
||||
COM_COMPONENTBUILDER_FIELD_MEDIUM_ENCRYPTION_LOCALFILEKEY</option>
|
||||
<option value="4">
|
||||
COM_COMPONENTBUILDER_FIELD_WHMCSKEY_ENCRYPTION</option>
|
||||
<option value="6">
|
||||
COM_COMPONENTBUILDER_FIELD_EXPERT_MODE_CUSTOM</option>
|
||||
</field>
|
||||
@ -240,6 +238,21 @@
|
||||
description="COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION"
|
||||
class="inputbox"
|
||||
/>
|
||||
<!-- Note_no_database_settings_needed Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_no_database_settings_needed" label="COM_COMPONENTBUILDER_FIELD_NOTE_NO_DATABASE_SETTINGS_NEEDED_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_NO_DATABASE_SETTINGS_NEEDED_DESCRIPTION" heading="h4" class="alert alert-info note_no_database_settings_needed" />
|
||||
<!-- On_get_model_field Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="on_get_model_field"
|
||||
label="COM_COMPONENTBUILDER_FIELD_ON_GET_MODEL_FIELD_LABEL"
|
||||
rows="5"
|
||||
cols="10"
|
||||
description="COM_COMPONENTBUILDER_FIELD_ON_GET_MODEL_FIELD_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_FIELD_ON_GET_MODEL_FIELD_HINT"
|
||||
required="true"
|
||||
/>
|
||||
<!-- On_save_model_field Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
@ -266,19 +279,6 @@
|
||||
hint="COM_COMPONENTBUILDER_FIELD_INITIATOR_ON_GET_MODEL_HINT"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Initiator_on_save_model Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="initiator_on_save_model"
|
||||
label="COM_COMPONENTBUILDER_FIELD_INITIATOR_ON_SAVE_MODEL_LABEL"
|
||||
rows="5"
|
||||
cols="10"
|
||||
description="COM_COMPONENTBUILDER_FIELD_INITIATOR_ON_SAVE_MODEL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_FIELD_INITIATOR_ON_SAVE_MODEL_HINT"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Note_filter_information Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_filter_information" description="COM_COMPONENTBUILDER_FIELD_NOTE_FILTER_INFORMATION_DESCRIPTION" class="note_filter_information" />
|
||||
<!-- Xml Field. Type: Hidden. (joomla) -->
|
||||
@ -324,8 +324,22 @@
|
||||
<option value="Other">
|
||||
COM_COMPONENTBUILDER_FIELD_OTHER</option>
|
||||
</field>
|
||||
<!-- Note_database_settings_needed Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_database_settings_needed" label="COM_COMPONENTBUILDER_FIELD_NOTE_DATABASE_SETTINGS_NEEDED_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_DATABASE_SETTINGS_NEEDED_DESCRIPTION" heading="h4" class="alert alert-info note_database_settings_needed" />
|
||||
<!-- Javascript_view_footer Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="javascript_view_footer"
|
||||
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="javascript"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Css_views Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
@ -411,37 +425,8 @@
|
||||
message="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_FIELD_DATALENGHT_OTHER_HINT"
|
||||
/>
|
||||
<!-- On_get_model_field Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="on_get_model_field"
|
||||
label="COM_COMPONENTBUILDER_FIELD_ON_GET_MODEL_FIELD_LABEL"
|
||||
rows="5"
|
||||
cols="10"
|
||||
description="COM_COMPONENTBUILDER_FIELD_ON_GET_MODEL_FIELD_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_FIELD_ON_GET_MODEL_FIELD_HINT"
|
||||
required="true"
|
||||
/>
|
||||
<!-- Javascript_view_footer Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
name="javascript_view_footer"
|
||||
label="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL"
|
||||
description="COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION"
|
||||
width="100%"
|
||||
height="450px"
|
||||
cols="15"
|
||||
rows="30"
|
||||
buttons="no"
|
||||
syntax="javascript"
|
||||
editor="codemirror|none"
|
||||
filter="raw"
|
||||
validate="code"
|
||||
/>
|
||||
<!-- Note_no_database_settings_needed Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_no_database_settings_needed" label="COM_COMPONENTBUILDER_FIELD_NOTE_NO_DATABASE_SETTINGS_NEEDED_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_NO_DATABASE_SETTINGS_NEEDED_DESCRIPTION" heading="h4" class="alert alert-info note_no_database_settings_needed" />
|
||||
<!-- Note_database_settings_needed Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_database_settings_needed" label="COM_COMPONENTBUILDER_FIELD_NOTE_DATABASE_SETTINGS_NEEDED_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_DATABASE_SETTINGS_NEEDED_DESCRIPTION" heading="h4" class="alert alert-info note_database_settings_needed" />
|
||||
<!-- Javascript_views_footer Field. Type: Editor. (joomla) -->
|
||||
<field
|
||||
type="editor"
|
||||
@ -524,12 +509,23 @@
|
||||
<option value="0">
|
||||
COM_COMPONENTBUILDER_FIELD_NO</option>
|
||||
</field>
|
||||
<!-- Note_whmcs_encryption Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_whmcs_encryption" label="COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_WHMCS_ENCRYPTION_DESCRIPTION" heading="h4" class="alert alert-success note_whmcs_encryption" />
|
||||
<!-- Helpnote Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="helpnote" label="COM_COMPONENTBUILDER_FIELD_HELPNOTE_LABEL" class="helpNote helpnote" />
|
||||
<!-- Note_expert_field_save_mode Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="note_expert_field_save_mode" label="COM_COMPONENTBUILDER_FIELD_NOTE_EXPERT_FIELD_SAVE_MODE_LABEL" description="COM_COMPONENTBUILDER_FIELD_NOTE_EXPERT_FIELD_SAVE_MODE_DESCRIPTION" heading="h4" class="alert alert-success note_expert_encryption note_expert_field_save_mode" />
|
||||
<!-- Helpnote Field. Type: Note. A None Database Field. (joomla) -->
|
||||
<field type="note" name="helpnote" label="COM_COMPONENTBUILDER_FIELD_HELPNOTE_LABEL" class="helpNote helpnote" />
|
||||
<!-- Initiator_on_save_model Field. Type: Textarea. (joomla) -->
|
||||
<field
|
||||
type="textarea"
|
||||
name="initiator_on_save_model"
|
||||
label="COM_COMPONENTBUILDER_FIELD_INITIATOR_ON_SAVE_MODEL_LABEL"
|
||||
rows="5"
|
||||
cols="10"
|
||||
description="COM_COMPONENTBUILDER_FIELD_INITIATOR_ON_SAVE_MODEL_DESCRIPTION"
|
||||
class="text_area span12"
|
||||
filter="raw"
|
||||
hint="COM_COMPONENTBUILDER_FIELD_INITIATOR_ON_SAVE_MODEL_HINT"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Guid Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
|
@ -132,8 +132,6 @@
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_BASIC_ENCRYPTION_LOCALDBKEY</option>
|
||||
<option value="5">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_MEDIUM_ENCRYPTION_LOCALFILEKEY</option>
|
||||
<option value="4">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_WHMCSKEY_ENCRYPTION</option>
|
||||
<option value="6">
|
||||
COM_COMPONENTBUILDER_FIELDTYPE_EXPERT_MODE_CUSTOM</option>
|
||||
</field>
|
||||
|
103
admin/models/forms/filter_repositories.xml
Normal file
103
admin/models/forms/filter_repositories.xml
Normal file
@ -0,0 +1,103 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_componentbuilder/models/rules"
|
||||
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
|
||||
>
|
||||
<fields name="filter">
|
||||
<field
|
||||
type="text"
|
||||
name="search"
|
||||
inputmode="search"
|
||||
label="COM_COMPONENTBUILDER_FILTER_SEARCH"
|
||||
description="COM_COMPONENTBUILDER_FILTER_SEARCH_REPOSITORIES"
|
||||
hint="JSEARCH_FILTER"
|
||||
/>
|
||||
<field
|
||||
type="status"
|
||||
name="published"
|
||||
label="COM_COMPONENTBUILDER_FILTER_PUBLISHED"
|
||||
description="COM_COMPONENTBUILDER_FILTER_PUBLISHED_REPOSITORIES"
|
||||
onchange="this.form.submit();"
|
||||
>
|
||||
<option value="">JOPTION_SELECT_PUBLISHED</option>
|
||||
</field>
|
||||
<field
|
||||
type="accesslevel"
|
||||
name="access"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
multiple="true"
|
||||
class="multipleAccessLevels"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
<field
|
||||
type="repositoriesfilterorganisation"
|
||||
name="organisation"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_ORGANISATION_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
<field
|
||||
type="repositoriesfilterrepository"
|
||||
name="repository"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_REPOSITORY_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
<field
|
||||
type="repositoriesfiltertarget"
|
||||
name="target"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_TARGET_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
<field
|
||||
type="repositoriesfilterbase"
|
||||
name="base"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_BASE_LABEL"
|
||||
multiple="false"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
<input type="hidden" name="form_submited" value="1"/>
|
||||
</fields>
|
||||
|
||||
<fields name="list">
|
||||
<field
|
||||
name="fullordering"
|
||||
type="list"
|
||||
label="COM_CONTENT_LIST_FULL_ORDERING"
|
||||
description="COM_CONTENT_LIST_FULL_ORDERING_DESC"
|
||||
onchange="this.form.submit();"
|
||||
default="a.id DESC"
|
||||
validate="options"
|
||||
>
|
||||
<option value="">JGLOBAL_SORT_BY</option>
|
||||
<option value="a.ordering ASC">JGRID_HEADING_ORDERING_ASC</option>
|
||||
<option value="a.ordering DESC">JGRID_HEADING_ORDERING_DESC</option>
|
||||
<option value="a.published ASC">JSTATUS_ASC</option>
|
||||
<option value="a.published DESC">JSTATUS_DESC</option>
|
||||
<option value="a.organisation ASC">COM_COMPONENTBUILDER_FILTER_ORGANISATION_ASCENDING</option>
|
||||
<option value="a.organisation DESC">COM_COMPONENTBUILDER_FILTER_ORGANISATION_DESCENDING</option>
|
||||
<option value="a.repository ASC">COM_COMPONENTBUILDER_FILTER_REPOSITORY_ASCENDING</option>
|
||||
<option value="a.repository DESC">COM_COMPONENTBUILDER_FILTER_REPOSITORY_DESCENDING</option>
|
||||
<option value="a.target ASC">COM_COMPONENTBUILDER_FILTER_TARGET_CONTENT_ASCENDING</option>
|
||||
<option value="a.target DESC">COM_COMPONENTBUILDER_FILTER_TARGET_CONTENT_DESCENDING</option>
|
||||
<option value="a.type ASC">COM_COMPONENTBUILDER_FILTER_TYPE_ASCENDING</option>
|
||||
<option value="a.type DESC">COM_COMPONENTBUILDER_FILTER_TYPE_DESCENDING</option>
|
||||
<option value="a.base ASC">COM_COMPONENTBUILDER_FILTER_BASE_URL_ASCENDING</option>
|
||||
<option value="a.base DESC">COM_COMPONENTBUILDER_FILTER_BASE_URL_DESCENDING</option>
|
||||
<option value="a.id ASC">JGRID_HEADING_ID_ASC</option>
|
||||
<option value="a.id DESC">JGRID_HEADING_ID_DESC</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="limit"
|
||||
type="limitbox"
|
||||
label="COM_CONTENT_LIST_LIMIT"
|
||||
description="COM_CONTENT_LIST_LIMIT_DESC"
|
||||
class="input-mini"
|
||||
default="25"
|
||||
onchange="this.form.submit();"
|
||||
/>
|
||||
</fields>
|
||||
</form>
|
File diff suppressed because it is too large
Load Diff
302
admin/models/forms/repository.xml
Normal file
302
admin/models/forms/repository.xml
Normal file
@ -0,0 +1,302 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<form
|
||||
addrulepath="/administrator/components/com_componentbuilder/models/rules"
|
||||
addfieldpath="/administrator/components/com_componentbuilder/models/fields"
|
||||
>
|
||||
<fieldset name="details">
|
||||
<!-- Default Fields. -->
|
||||
<!-- Id Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="id"
|
||||
type="text" class="readonly" label="JGLOBAL_FIELD_ID_LABEL"
|
||||
description ="JGLOBAL_FIELD_ID_DESC" size="10" default="0"
|
||||
readonly="true"
|
||||
/>
|
||||
<!-- Date Created Field. Type: Calendar (joomla) -->
|
||||
<field
|
||||
name="created"
|
||||
type="calendar"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_CREATED_DATE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_CREATED_DATE_DESC"
|
||||
size="22"
|
||||
format="%Y-%m-%d %H:%M:%S"
|
||||
filter="user_utc"
|
||||
/>
|
||||
<!-- User Created Field. Type: User (joomla) -->
|
||||
<field
|
||||
name="created_by"
|
||||
type="user"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_CREATED_BY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_CREATED_BY_DESC"
|
||||
/>
|
||||
<!-- Published Field. Type: List (joomla) -->
|
||||
<field name="published" type="list" label="JSTATUS"
|
||||
description="JFIELD_PUBLISHED_DESC" class="chzn-color-state"
|
||||
filter="intval" size="1" default="1" >
|
||||
<option value="1">
|
||||
JPUBLISHED</option>
|
||||
<option value="0">
|
||||
JUNPUBLISHED</option>
|
||||
<option value="2">
|
||||
JARCHIVED</option>
|
||||
<option value="-2">
|
||||
JTRASHED</option>
|
||||
</field>
|
||||
<!-- Date Modified Field. Type: Calendar (joomla) -->
|
||||
<field name="modified" type="calendar" class="readonly"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_MODIFIED_DATE_LABEL" description="COM_COMPONENTBUILDER_REPOSITORY_MODIFIED_DATE_DESC"
|
||||
size="22" readonly="true" format="%Y-%m-%d %H:%M:%S" filter="user_utc" />
|
||||
<!-- User Modified Field. Type: User (joomla) -->
|
||||
<field name="modified_by" type="user"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_MODIFIED_BY_LABEL"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_MODIFIED_BY_DESC"
|
||||
class="readonly"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Access Field. Type: Accesslevel (joomla) -->
|
||||
<field name="access"
|
||||
type="accesslevel"
|
||||
label="JFIELD_ACCESS_LABEL"
|
||||
description="JFIELD_ACCESS_DESC"
|
||||
default="1"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Ordering Field. Type: Numbers (joomla) -->
|
||||
<field
|
||||
name="ordering"
|
||||
type="number"
|
||||
class="inputbox validate-ordering"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_ORDERING_LABEL"
|
||||
description=""
|
||||
default="0"
|
||||
size="6"
|
||||
required="false"
|
||||
/>
|
||||
<!-- Version Field. Type: Text (joomla) -->
|
||||
<field
|
||||
name="version"
|
||||
type="text"
|
||||
class="readonly"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_VERSION_LABEL"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_VERSION_DESC"
|
||||
size="6"
|
||||
default="1"
|
||||
readonly="true"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Was added due to Permissions JS needing a Title field -->
|
||||
<!-- Let us know at gh-629 should this change -->
|
||||
<!-- https://github.com/vdm-io/Joomla-Component-Builder/issues/629#issuecomment-750117235 -->
|
||||
<field
|
||||
name="title"
|
||||
type="hidden"
|
||||
default="componentbuilder repository"
|
||||
/>
|
||||
<!-- Dynamic Fields. -->
|
||||
<!-- System_name Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="system_name"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_SYSTEM_NAME_LABEL"
|
||||
size="10"
|
||||
maxlength="50"
|
||||
default=""
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_SYSTEM_NAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_REPOSITORY_SYSTEM_NAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_REPOSITORY_SYSTEM_NAME_HINT"
|
||||
/>
|
||||
<!-- Organisation Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="organisation"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_ORGANISATION_LABEL"
|
||||
size="60"
|
||||
maxlength="150"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_ORGANISATION_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_REPOSITORY_ORGANISATION_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_REPOSITORY_ORGANISATION_HINT"
|
||||
/>
|
||||
<!-- Repository Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="repository"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_REPOSITORY_LABEL"
|
||||
size="70"
|
||||
maxlength="150"
|
||||
class="text_area"
|
||||
readonly="false"
|
||||
required="true"
|
||||
filter="CMD"
|
||||
hint="COM_COMPONENTBUILDER_REPOSITORY_REPOSITORY_HINT"
|
||||
autocomplete="on"
|
||||
/>
|
||||
<!-- Target Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="target"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_TARGET_LABEL"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_TARGET_DESCRIPTION"
|
||||
class="list_class"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
multiple="false"
|
||||
filter="INT"
|
||||
required="true"
|
||||
validate="int">
|
||||
<!-- Option Set. -->
|
||||
<option value="">
|
||||
COM_COMPONENTBUILDER_REPOSITORY_SELECT_AN_OPTION</option>
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_REPOSITORY_SUPER_POWER</option>
|
||||
<option value="2">
|
||||
COM_COMPONENTBUILDER_REPOSITORY_JOOMLA_POWER</option>
|
||||
</field>
|
||||
<!-- Type Field. Type: List. (joomla) -->
|
||||
<field
|
||||
type="list"
|
||||
name="type"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_TYPE_LABEL"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_TYPE_DESCRIPTION"
|
||||
class="list_class"
|
||||
layout="joomla.form.field.list-fancy-select"
|
||||
multiple="false"
|
||||
filter="INT"
|
||||
required="true"
|
||||
validate="int">
|
||||
<!-- Option Set. -->
|
||||
<option value="">
|
||||
COM_COMPONENTBUILDER_REPOSITORY_SELECT_AN_OPTION</option>
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_REPOSITORY_GITEA</option>
|
||||
</field>
|
||||
<!-- Base Field. Type: Url. (joomla) -->
|
||||
<field
|
||||
type="url"
|
||||
name="base"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_BASE_LABEL"
|
||||
size="70"
|
||||
maxlength="150"
|
||||
default="https://git.vdm.dev"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_BASE_DESCRIPTION"
|
||||
class="text_area"
|
||||
required="true"
|
||||
filter="url"
|
||||
validated="url"
|
||||
scheme="http,https"
|
||||
message="COM_COMPONENTBUILDER_REPOSITORY_BASE_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_REPOSITORY_BASE_HINT"
|
||||
autocomplete="on"
|
||||
showon="type:1"
|
||||
/>
|
||||
<!-- Guid Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="guid"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_GUID_LABEL"
|
||||
size="40"
|
||||
maxlength="40"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_GUID_DESCRIPTION"
|
||||
class="text_area"
|
||||
readonly="true"
|
||||
filter="CMD"
|
||||
validate="guid"
|
||||
hint="COM_COMPONENTBUILDER_REPOSITORY_GUID_HINT"
|
||||
/>
|
||||
<!-- Access_repo Field. Type: Radio. (joomla) -->
|
||||
<field
|
||||
type="radio"
|
||||
name="access_repo"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_ACCESS_REPO_LABEL"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_ACCESS_REPO_DESCRIPTION"
|
||||
class="btn-group btn-group-yesno"
|
||||
default="">
|
||||
<!-- Option Set. -->
|
||||
<option value="">
|
||||
COM_COMPONENTBUILDER_REPOSITORY_GLOBAL</option>
|
||||
<option value="1">
|
||||
COM_COMPONENTBUILDER_REPOSITORY_OVERRIDE</option>
|
||||
</field>
|
||||
<!-- Write_branch Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="write_branch"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_WRITE_BRANCH_LABEL"
|
||||
size="128"
|
||||
maxlength="50"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_WRITE_BRANCH_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_REPOSITORY_WRITE_BRANCH_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_REPOSITORY_WRITE_BRANCH_HINT"
|
||||
/>
|
||||
<!-- Read_branch Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="read_branch"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_READ_BRANCH_LABEL"
|
||||
size="128"
|
||||
maxlength="50"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_READ_BRANCH_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_REPOSITORY_READ_BRANCH_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_REPOSITORY_READ_BRANCH_HINT"
|
||||
/>
|
||||
<!-- Token Field. Type: Password. (joomla) -->
|
||||
<field
|
||||
type="password"
|
||||
name="token"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_TOKEN_LABEL"
|
||||
size="128"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_TOKEN_DESCRIPTION"
|
||||
message="Error! Please add token here."
|
||||
class="text_area"
|
||||
filter="STRING"
|
||||
hint="COM_COMPONENTBUILDER_REPOSITORY_TOKEN_HINT"
|
||||
autocomplete="off"
|
||||
showon="type:1[AND]access_repo:1"
|
||||
/>
|
||||
<!-- Username Field. Type: Text. (joomla) -->
|
||||
<field
|
||||
type="text"
|
||||
name="username"
|
||||
label="COM_COMPONENTBUILDER_REPOSITORY_USERNAME_LABEL"
|
||||
size="128"
|
||||
maxlength="50"
|
||||
description="COM_COMPONENTBUILDER_REPOSITORY_USERNAME_DESCRIPTION"
|
||||
class="text_area"
|
||||
filter="STRING"
|
||||
message="COM_COMPONENTBUILDER_REPOSITORY_USERNAME_MESSAGE"
|
||||
hint="COM_COMPONENTBUILDER_REPOSITORY_USERNAME_HINT"
|
||||
autocomplete="on"
|
||||
showon="type:1[AND]access_repo:1"
|
||||
/>
|
||||
</fieldset>
|
||||
|
||||
<!-- Access Control Fields. -->
|
||||
<fieldset name="accesscontrol">
|
||||
<!-- Asset Id Field. Type: Hidden (joomla) -->
|
||||
<field
|
||||
name="asset_id"
|
||||
type="hidden"
|
||||
filter="unset"
|
||||
/>
|
||||
<!-- Rules Field. Type: Rules (joomla) -->
|
||||
<field
|
||||
name="rules"
|
||||
type="rules"
|
||||
label="Permissions in relation to this repository"
|
||||
translate_label="false"
|
||||
filter="rules"
|
||||
validate="rules"
|
||||
class="inputbox"
|
||||
component="com_componentbuilder"
|
||||
section="repository"
|
||||
/>
|
||||
</fieldset>
|
||||
</form>
|
@ -64,12 +64,6 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
'author',
|
||||
'email',
|
||||
'website',
|
||||
'add_license',
|
||||
'license_type',
|
||||
'note_whmcs_lisencing_note',
|
||||
'whmcs_key',
|
||||
'whmcs_url',
|
||||
'whmcs_buy_link',
|
||||
'license',
|
||||
'bom',
|
||||
'image',
|
||||
@ -84,30 +78,6 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
'not_required'
|
||||
)
|
||||
),
|
||||
'libs_helpers' => array(
|
||||
'fullwidth' => array(
|
||||
'creatuserhelper',
|
||||
'adduikit',
|
||||
'addfootable',
|
||||
'add_email_helper',
|
||||
'add_php_helper_both',
|
||||
'php_helper_both',
|
||||
'add_php_helper_admin',
|
||||
'php_helper_admin',
|
||||
'add_admin_event',
|
||||
'php_admin_event',
|
||||
'add_php_helper_site',
|
||||
'php_helper_site',
|
||||
'add_site_event',
|
||||
'php_site_event',
|
||||
'add_javascript',
|
||||
'javascript',
|
||||
'add_css_admin',
|
||||
'css_admin',
|
||||
'add_css_site',
|
||||
'css_site'
|
||||
)
|
||||
),
|
||||
'dynamic_integration' => array(
|
||||
'left' => array(
|
||||
'add_update_server',
|
||||
@ -137,6 +107,15 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
'crowdin_account_api_key'
|
||||
)
|
||||
),
|
||||
'mysql' => array(
|
||||
'fullwidth' => array(
|
||||
'add_sql',
|
||||
'sql',
|
||||
'add_sql_uninstall',
|
||||
'sql_uninstall',
|
||||
'assets_table_fix'
|
||||
)
|
||||
),
|
||||
'dash_install' => array(
|
||||
'left' => array(
|
||||
'dashboard_type'
|
||||
@ -161,6 +140,30 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
'php_method_install'
|
||||
)
|
||||
),
|
||||
'libs_helpers' => array(
|
||||
'fullwidth' => array(
|
||||
'creatuserhelper',
|
||||
'adduikit',
|
||||
'addfootable',
|
||||
'add_email_helper',
|
||||
'add_php_helper_both',
|
||||
'php_helper_both',
|
||||
'add_php_helper_admin',
|
||||
'php_helper_admin',
|
||||
'add_admin_event',
|
||||
'php_admin_event',
|
||||
'add_php_helper_site',
|
||||
'php_helper_site',
|
||||
'add_site_event',
|
||||
'php_site_event',
|
||||
'add_javascript',
|
||||
'javascript',
|
||||
'add_css_admin',
|
||||
'css_admin',
|
||||
'add_css_site',
|
||||
'css_site'
|
||||
)
|
||||
),
|
||||
'readme' => array(
|
||||
'left' => array(
|
||||
'addreadme',
|
||||
@ -170,15 +173,6 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
'note_readme'
|
||||
)
|
||||
),
|
||||
'mysql' => array(
|
||||
'fullwidth' => array(
|
||||
'add_sql',
|
||||
'sql',
|
||||
'add_sql_uninstall',
|
||||
'sql_uninstall',
|
||||
'assets_table_fix'
|
||||
)
|
||||
),
|
||||
'dynamic_build' => array(
|
||||
'fullwidth' => array(
|
||||
'note_buildcomp_dynamic_mysql',
|
||||
@ -371,58 +365,22 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
$item->metadata = $registry->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->php_site_event))
|
||||
if (!empty($item->sql_uninstall))
|
||||
{
|
||||
// base64 Decode php_site_event.
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
// base64 Decode sql_uninstall.
|
||||
$item->sql_uninstall = base64_decode($item->sql_uninstall);
|
||||
}
|
||||
|
||||
if (!empty($item->php_admin_event))
|
||||
if (!empty($item->php_postflight_update))
|
||||
{
|
||||
// base64 Decode php_admin_event.
|
||||
$item->php_admin_event = base64_decode($item->php_admin_event);
|
||||
// base64 Decode php_postflight_update.
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
}
|
||||
|
||||
if (!empty($item->php_preflight_install))
|
||||
if (!empty($item->css_site))
|
||||
{
|
||||
// base64 Decode php_preflight_install.
|
||||
$item->php_preflight_install = base64_decode($item->php_preflight_install);
|
||||
}
|
||||
|
||||
if (!empty($item->php_method_uninstall))
|
||||
{
|
||||
// base64 Decode php_method_uninstall.
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
}
|
||||
|
||||
if (!empty($item->css_admin))
|
||||
{
|
||||
// base64 Decode css_admin.
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
}
|
||||
|
||||
if (!empty($item->php_postflight_install))
|
||||
{
|
||||
// base64 Decode php_postflight_install.
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
}
|
||||
|
||||
if (!empty($item->sql))
|
||||
{
|
||||
// base64 Decode sql.
|
||||
$item->sql = base64_decode($item->sql);
|
||||
}
|
||||
|
||||
if (!empty($item->buildcompsql))
|
||||
{
|
||||
// base64 Decode buildcompsql.
|
||||
$item->buildcompsql = base64_decode($item->buildcompsql);
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_admin))
|
||||
{
|
||||
// base64 Decode php_helper_admin.
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
// base64 Decode css_site.
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_site))
|
||||
@ -437,10 +395,28 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
}
|
||||
|
||||
if (!empty($item->css_site))
|
||||
if (!empty($item->php_method_install))
|
||||
{
|
||||
// base64 Decode css_site.
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
// base64 Decode php_method_install.
|
||||
$item->php_method_install = base64_decode($item->php_method_install);
|
||||
}
|
||||
|
||||
if (!empty($item->php_admin_event))
|
||||
{
|
||||
// base64 Decode php_admin_event.
|
||||
$item->php_admin_event = base64_decode($item->php_admin_event);
|
||||
}
|
||||
|
||||
if (!empty($item->php_site_event))
|
||||
{
|
||||
// base64 Decode php_site_event.
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
}
|
||||
|
||||
if (!empty($item->css_admin))
|
||||
{
|
||||
// base64 Decode css_admin.
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
}
|
||||
|
||||
if (!empty($item->php_preflight_update))
|
||||
@ -449,22 +425,34 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
}
|
||||
|
||||
if (!empty($item->php_postflight_update))
|
||||
if (!empty($item->php_preflight_install))
|
||||
{
|
||||
// base64 Decode php_postflight_update.
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
// base64 Decode php_preflight_install.
|
||||
$item->php_preflight_install = base64_decode($item->php_preflight_install);
|
||||
}
|
||||
|
||||
if (!empty($item->php_method_install))
|
||||
if (!empty($item->php_postflight_install))
|
||||
{
|
||||
// base64 Decode php_method_install.
|
||||
$item->php_method_install = base64_decode($item->php_method_install);
|
||||
// base64 Decode php_postflight_install.
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
}
|
||||
|
||||
if (!empty($item->sql_uninstall))
|
||||
if (!empty($item->php_method_uninstall))
|
||||
{
|
||||
// base64 Decode sql_uninstall.
|
||||
$item->sql_uninstall = base64_decode($item->sql_uninstall);
|
||||
// base64 Decode php_method_uninstall.
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
}
|
||||
|
||||
if (!empty($item->sql))
|
||||
{
|
||||
// base64 Decode sql.
|
||||
$item->sql = base64_decode($item->sql);
|
||||
}
|
||||
|
||||
if (!empty($item->buildcompsql))
|
||||
{
|
||||
// base64 Decode buildcompsql.
|
||||
$item->buildcompsql = base64_decode($item->buildcompsql);
|
||||
}
|
||||
|
||||
if (!empty($item->readme))
|
||||
@ -479,6 +467,12 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
$item->php_helper_both = base64_decode($item->php_helper_both);
|
||||
}
|
||||
|
||||
if (!empty($item->php_helper_admin))
|
||||
{
|
||||
// base64 Decode php_helper_admin.
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
}
|
||||
|
||||
// Get the basic encryption.
|
||||
$basickey = ComponentbuilderHelper::getCryptKey('basic');
|
||||
// Get the encryption object.
|
||||
@ -490,12 +484,6 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
$item->crowdin_username = rtrim($basic->decryptString($item->crowdin_username), "\0");
|
||||
}
|
||||
|
||||
if (!empty($item->whmcs_key) && $basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true)))
|
||||
{
|
||||
// basic decrypt data whmcs_key.
|
||||
$item->whmcs_key = rtrim($basic->decryptString($item->whmcs_key), "\0");
|
||||
}
|
||||
|
||||
if (!empty($item->export_key) && $basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true)))
|
||||
{
|
||||
// basic decrypt data export_key.
|
||||
@ -1449,58 +1437,22 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
$data['addcontributors'] = '';
|
||||
}
|
||||
|
||||
// Set the php_site_event string to base64 string.
|
||||
if (isset($data['php_site_event']))
|
||||
// Set the sql_uninstall string to base64 string.
|
||||
if (isset($data['sql_uninstall']))
|
||||
{
|
||||
$data['php_site_event'] = base64_encode($data['php_site_event']);
|
||||
$data['sql_uninstall'] = base64_encode($data['sql_uninstall']);
|
||||
}
|
||||
|
||||
// Set the php_admin_event string to base64 string.
|
||||
if (isset($data['php_admin_event']))
|
||||
// Set the php_postflight_update string to base64 string.
|
||||
if (isset($data['php_postflight_update']))
|
||||
{
|
||||
$data['php_admin_event'] = base64_encode($data['php_admin_event']);
|
||||
$data['php_postflight_update'] = base64_encode($data['php_postflight_update']);
|
||||
}
|
||||
|
||||
// Set the php_preflight_install string to base64 string.
|
||||
if (isset($data['php_preflight_install']))
|
||||
// Set the css_site string to base64 string.
|
||||
if (isset($data['css_site']))
|
||||
{
|
||||
$data['php_preflight_install'] = base64_encode($data['php_preflight_install']);
|
||||
}
|
||||
|
||||
// Set the php_method_uninstall string to base64 string.
|
||||
if (isset($data['php_method_uninstall']))
|
||||
{
|
||||
$data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']);
|
||||
}
|
||||
|
||||
// Set the css_admin string to base64 string.
|
||||
if (isset($data['css_admin']))
|
||||
{
|
||||
$data['css_admin'] = base64_encode($data['css_admin']);
|
||||
}
|
||||
|
||||
// Set the php_postflight_install string to base64 string.
|
||||
if (isset($data['php_postflight_install']))
|
||||
{
|
||||
$data['php_postflight_install'] = base64_encode($data['php_postflight_install']);
|
||||
}
|
||||
|
||||
// Set the sql string to base64 string.
|
||||
if (isset($data['sql']))
|
||||
{
|
||||
$data['sql'] = base64_encode($data['sql']);
|
||||
}
|
||||
|
||||
// Set the buildcompsql string to base64 string.
|
||||
if (isset($data['buildcompsql']))
|
||||
{
|
||||
$data['buildcompsql'] = base64_encode($data['buildcompsql']);
|
||||
}
|
||||
|
||||
// Set the php_helper_admin string to base64 string.
|
||||
if (isset($data['php_helper_admin']))
|
||||
{
|
||||
$data['php_helper_admin'] = base64_encode($data['php_helper_admin']);
|
||||
$data['css_site'] = base64_encode($data['css_site']);
|
||||
}
|
||||
|
||||
// Set the php_helper_site string to base64 string.
|
||||
@ -1515,10 +1467,28 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
$data['javascript'] = base64_encode($data['javascript']);
|
||||
}
|
||||
|
||||
// Set the css_site string to base64 string.
|
||||
if (isset($data['css_site']))
|
||||
// Set the php_method_install string to base64 string.
|
||||
if (isset($data['php_method_install']))
|
||||
{
|
||||
$data['css_site'] = base64_encode($data['css_site']);
|
||||
$data['php_method_install'] = base64_encode($data['php_method_install']);
|
||||
}
|
||||
|
||||
// Set the php_admin_event string to base64 string.
|
||||
if (isset($data['php_admin_event']))
|
||||
{
|
||||
$data['php_admin_event'] = base64_encode($data['php_admin_event']);
|
||||
}
|
||||
|
||||
// Set the php_site_event string to base64 string.
|
||||
if (isset($data['php_site_event']))
|
||||
{
|
||||
$data['php_site_event'] = base64_encode($data['php_site_event']);
|
||||
}
|
||||
|
||||
// Set the css_admin string to base64 string.
|
||||
if (isset($data['css_admin']))
|
||||
{
|
||||
$data['css_admin'] = base64_encode($data['css_admin']);
|
||||
}
|
||||
|
||||
// Set the php_preflight_update string to base64 string.
|
||||
@ -1527,22 +1497,34 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
$data['php_preflight_update'] = base64_encode($data['php_preflight_update']);
|
||||
}
|
||||
|
||||
// Set the php_postflight_update string to base64 string.
|
||||
if (isset($data['php_postflight_update']))
|
||||
// Set the php_preflight_install string to base64 string.
|
||||
if (isset($data['php_preflight_install']))
|
||||
{
|
||||
$data['php_postflight_update'] = base64_encode($data['php_postflight_update']);
|
||||
$data['php_preflight_install'] = base64_encode($data['php_preflight_install']);
|
||||
}
|
||||
|
||||
// Set the php_method_install string to base64 string.
|
||||
if (isset($data['php_method_install']))
|
||||
// Set the php_postflight_install string to base64 string.
|
||||
if (isset($data['php_postflight_install']))
|
||||
{
|
||||
$data['php_method_install'] = base64_encode($data['php_method_install']);
|
||||
$data['php_postflight_install'] = base64_encode($data['php_postflight_install']);
|
||||
}
|
||||
|
||||
// Set the sql_uninstall string to base64 string.
|
||||
if (isset($data['sql_uninstall']))
|
||||
// Set the php_method_uninstall string to base64 string.
|
||||
if (isset($data['php_method_uninstall']))
|
||||
{
|
||||
$data['sql_uninstall'] = base64_encode($data['sql_uninstall']);
|
||||
$data['php_method_uninstall'] = base64_encode($data['php_method_uninstall']);
|
||||
}
|
||||
|
||||
// Set the sql string to base64 string.
|
||||
if (isset($data['sql']))
|
||||
{
|
||||
$data['sql'] = base64_encode($data['sql']);
|
||||
}
|
||||
|
||||
// Set the buildcompsql string to base64 string.
|
||||
if (isset($data['buildcompsql']))
|
||||
{
|
||||
$data['buildcompsql'] = base64_encode($data['buildcompsql']);
|
||||
}
|
||||
|
||||
// Set the readme string to base64 string.
|
||||
@ -1557,6 +1539,12 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
$data['php_helper_both'] = base64_encode($data['php_helper_both']);
|
||||
}
|
||||
|
||||
// Set the php_helper_admin string to base64 string.
|
||||
if (isset($data['php_helper_admin']))
|
||||
{
|
||||
$data['php_helper_admin'] = base64_encode($data['php_helper_admin']);
|
||||
}
|
||||
|
||||
// Get the basic encryption key.
|
||||
$basickey = ComponentbuilderHelper::getCryptKey('basic');
|
||||
// Get the encryption object
|
||||
@ -1568,12 +1556,6 @@ class ComponentbuilderModelJoomla_component extends AdminModel
|
||||
$data['crowdin_username'] = $basic->encryptString($data['crowdin_username']);
|
||||
}
|
||||
|
||||
// Encrypt data whmcs_key.
|
||||
if (isset($data['whmcs_key']) && $basickey)
|
||||
{
|
||||
$data['whmcs_key'] = $basic->encryptString($data['whmcs_key']);
|
||||
}
|
||||
|
||||
// Encrypt data export_key.
|
||||
if (isset($data['export_key']) && $basickey)
|
||||
{
|
||||
|
@ -2694,48 +2694,41 @@ class ComponentbuilderModelJoomla_components extends ListModel
|
||||
continue;
|
||||
}
|
||||
|
||||
// decode php_site_event
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
// decode sql_uninstall
|
||||
$item->sql_uninstall = base64_decode($item->sql_uninstall);
|
||||
// decode php_postflight_update
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
// decode css_site
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
// decode php_helper_site
|
||||
$item->php_helper_site = base64_decode($item->php_helper_site);
|
||||
// decode javascript
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
// decode php_method_install
|
||||
$item->php_method_install = base64_decode($item->php_method_install);
|
||||
// decode php_admin_event
|
||||
$item->php_admin_event = base64_decode($item->php_admin_event);
|
||||
// decode php_site_event
|
||||
$item->php_site_event = base64_decode($item->php_site_event);
|
||||
// decode css_admin
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
// decode php_preflight_update
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
// decode php_preflight_install
|
||||
$item->php_preflight_install = base64_decode($item->php_preflight_install);
|
||||
// decode php_postflight_install
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
// decode php_method_uninstall
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
// decode sql
|
||||
$item->sql = base64_decode($item->sql);
|
||||
if ($basickey && !is_numeric($item->crowdin_username) && $item->crowdin_username === base64_encode(base64_decode($item->crowdin_username, true)))
|
||||
{
|
||||
// decrypt crowdin_username
|
||||
$item->crowdin_username = $basic->decryptString($item->crowdin_username);
|
||||
}
|
||||
// decode php_preflight_install
|
||||
$item->php_preflight_install = base64_decode($item->php_preflight_install);
|
||||
// decode php_method_uninstall
|
||||
$item->php_method_uninstall = base64_decode($item->php_method_uninstall);
|
||||
// decode css_admin
|
||||
$item->css_admin = base64_decode($item->css_admin);
|
||||
// decode php_postflight_install
|
||||
$item->php_postflight_install = base64_decode($item->php_postflight_install);
|
||||
// decode sql
|
||||
$item->sql = base64_decode($item->sql);
|
||||
// decode buildcompsql
|
||||
$item->buildcompsql = base64_decode($item->buildcompsql);
|
||||
// decode php_helper_admin
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
// decode php_helper_site
|
||||
$item->php_helper_site = base64_decode($item->php_helper_site);
|
||||
if ($basickey && !is_numeric($item->whmcs_key) && $item->whmcs_key === base64_encode(base64_decode($item->whmcs_key, true)))
|
||||
{
|
||||
// decrypt whmcs_key
|
||||
$item->whmcs_key = $basic->decryptString($item->whmcs_key);
|
||||
}
|
||||
// decode javascript
|
||||
$item->javascript = base64_decode($item->javascript);
|
||||
// decode css_site
|
||||
$item->css_site = base64_decode($item->css_site);
|
||||
// decode php_preflight_update
|
||||
$item->php_preflight_update = base64_decode($item->php_preflight_update);
|
||||
// decode php_postflight_update
|
||||
$item->php_postflight_update = base64_decode($item->php_postflight_update);
|
||||
// decode php_method_install
|
||||
$item->php_method_install = base64_decode($item->php_method_install);
|
||||
// decode sql_uninstall
|
||||
$item->sql_uninstall = base64_decode($item->sql_uninstall);
|
||||
if ($basickey && !is_numeric($item->export_key) && $item->export_key === base64_encode(base64_decode($item->export_key, true)))
|
||||
{
|
||||
// decrypt export_key
|
||||
@ -2748,13 +2741,15 @@ class ComponentbuilderModelJoomla_components extends ListModel
|
||||
// decrypt crowdin_project_api_key
|
||||
$item->crowdin_project_api_key = $basic->decryptString($item->crowdin_project_api_key);
|
||||
}
|
||||
// decode php_helper_both
|
||||
$item->php_helper_both = base64_decode($item->php_helper_both);
|
||||
if ($basickey && !is_numeric($item->crowdin_account_api_key) && $item->crowdin_account_api_key === base64_encode(base64_decode($item->crowdin_account_api_key, true)))
|
||||
{
|
||||
// decrypt crowdin_account_api_key
|
||||
$item->crowdin_account_api_key = $basic->decryptString($item->crowdin_account_api_key);
|
||||
}
|
||||
// decode php_helper_both
|
||||
$item->php_helper_both = base64_decode($item->php_helper_both);
|
||||
// decode php_helper_admin
|
||||
$item->php_helper_admin = base64_decode($item->php_helper_admin);
|
||||
// unset the values we don't want exported.
|
||||
unset($item->asset_id);
|
||||
unset($item->checked_out);
|
||||
|
@ -19,7 +19,6 @@ use Joomla\CMS\MVC\Model\ListModel;
|
||||
use Joomla\CMS\Plugin\PluginHelper;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
use Joomla\CMS\Helper\TagsHelper;
|
||||
use VDM\Joomla\Utilities\Component\Helper as JCBHelper;
|
||||
use VDM\Joomla\Componentbuilder\Utilities\FilterHelper as JCBFilterHelper;
|
||||
use VDM\Joomla\Utilities\FormHelper as JCBFormHelper;
|
||||
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
|
||||
@ -68,7 +67,7 @@ class ComponentbuilderModelPowers extends ListModel
|
||||
// load form from the parent class
|
||||
$form = parent::getFilterForm($data, $loadData);
|
||||
|
||||
// Create the "admin_view" filter
|
||||
// Create the "namegroup" filter
|
||||
$attributes = array(
|
||||
'name' => 'namegroup',
|
||||
'type' => 'list',
|
||||
@ -77,7 +76,7 @@ class ComponentbuilderModelPowers extends ListModel
|
||||
$options = array(
|
||||
'' => '- ' . Text::_('COM_COMPONENTBUILDER_NO_NAMESPACE_FOUND') . ' -'
|
||||
);
|
||||
// check if we have namespace (and limit to an extension if it is set)
|
||||
// check if we have namespace
|
||||
if (($namespaces = JCBFilterHelper::namespaces()) !== null)
|
||||
{
|
||||
$options = array(
|
||||
@ -95,14 +94,7 @@ class ComponentbuilderModelPowers extends ListModel
|
||||
);
|
||||
array_push($this->filter_fields, 'namegroup');
|
||||
|
||||
// get the component params
|
||||
$params = JCBHelper::getParams();
|
||||
$activate = $params->get('super_powers_repositories', 0);
|
||||
if ($activate == 1)
|
||||
{
|
||||
$subform = $params->get('approved_paths', null);
|
||||
|
||||
// create approved paths filter
|
||||
// Create the "approved_paths" filter
|
||||
$attributes = array(
|
||||
'name' => 'approved_paths',
|
||||
'type' => 'list',
|
||||
@ -111,37 +103,23 @@ class ComponentbuilderModelPowers extends ListModel
|
||||
$options = array(
|
||||
'' => '- ' . Text::_('COM_COMPONENTBUILDER_NO_PATHS_FOUND') . ' -'
|
||||
);
|
||||
|
||||
// add the paths found in global settings
|
||||
if (is_object($subform))
|
||||
// check if we have approved_paths = 1
|
||||
if (($approvedpaths = JCBFilterHelper::repositories(1)) !== null)
|
||||
{
|
||||
$core = $params->get('super_powers_core', 'joomla/super-powers');
|
||||
|
||||
$options = array(
|
||||
'' => '- ' . Text::_('COM_COMPONENTBUILDER_SELECT_APPROVED_PATH') . ' -',
|
||||
$core => $core
|
||||
'' => '- ' . Text::_('COM_COMPONENTBUILDER_SELECT_APPROVED_PATH') . ' -'
|
||||
);
|
||||
|
||||
foreach ($subform as $value)
|
||||
{
|
||||
if (isset($value->owner) && strlen($value->owner) > 1 &&
|
||||
isset($value->repo) && strlen($value->repo) > 1)
|
||||
{
|
||||
$value = trim($value->owner) . '/' . trim($value->repo);
|
||||
|
||||
$options[$value] = $value;
|
||||
}
|
||||
}
|
||||
// make sure we do not lose the key values in normal merge
|
||||
$options = $options + $approvedpaths;
|
||||
}
|
||||
|
||||
$form->setField(JCBFormHelper::xml($attributes, $options), 'filter');
|
||||
$form->setField(JCBFormHelper::xml($attributes, $options),'filter');
|
||||
$form->setValue(
|
||||
'approved_paths',
|
||||
'filter',
|
||||
$this->state->get("filter.approved_paths")
|
||||
);
|
||||
array_push($this->filter_fields, 'approved_paths');
|
||||
}
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
464
admin/models/repositories.php
Normal file
464
admin/models/repositories.php
Normal file
@ -0,0 +1,464 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
use Joomla\CMS\MVC\Model\ListModel;
|
||||
use Joomla\CMS\Plugin\PluginHelper;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
use Joomla\CMS\Helper\TagsHelper;
|
||||
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
|
||||
use VDM\Joomla\Utilities\ObjectHelper;
|
||||
use VDM\Joomla\Utilities\StringHelper;
|
||||
|
||||
/**
|
||||
* Repositories List Model
|
||||
*/
|
||||
class ComponentbuilderModelRepositories extends ListModel
|
||||
{
|
||||
public function __construct($config = [])
|
||||
{
|
||||
if (empty($config['filter_fields']))
|
||||
{
|
||||
$config['filter_fields'] = array(
|
||||
'a.id','id',
|
||||
'a.published','published',
|
||||
'a.access','access',
|
||||
'a.ordering','ordering',
|
||||
'a.created_by','created_by',
|
||||
'a.modified_by','modified_by',
|
||||
'a.organisation','organisation',
|
||||
'a.repository','repository',
|
||||
'a.target','target',
|
||||
'a.base','base',
|
||||
'a.type','type'
|
||||
);
|
||||
}
|
||||
|
||||
parent::__construct($config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to auto-populate the model state.
|
||||
*
|
||||
* Note. Calling getState in this method will result in recursion.
|
||||
*
|
||||
* @param string $ordering An optional ordering field.
|
||||
* @param string $direction An optional direction (asc|desc).
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
*/
|
||||
protected function populateState($ordering = null, $direction = null)
|
||||
{
|
||||
$app = Factory::getApplication();
|
||||
|
||||
// Adjust the context to support modal layouts.
|
||||
if ($layout = $app->input->get('layout'))
|
||||
{
|
||||
$this->context .= '.' . $layout;
|
||||
}
|
||||
|
||||
// Check if the form was submitted
|
||||
$formSubmited = $app->input->post->get('form_submited');
|
||||
|
||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$access = $app->input->post->get('access');
|
||||
$this->setState('filter.access', $access);
|
||||
}
|
||||
|
||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||
$this->setState('filter.published', $published);
|
||||
|
||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||
$this->setState('filter.created_by', $created_by);
|
||||
|
||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||
$this->setState('filter.created', $created);
|
||||
|
||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||
$this->setState('filter.sorting', $sorting);
|
||||
|
||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||
$this->setState('filter.search', $search);
|
||||
|
||||
$organisation = $this->getUserStateFromRequest($this->context . '.filter.organisation', 'filter_organisation');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$organisation = $app->input->post->get('organisation');
|
||||
$this->setState('filter.organisation', $organisation);
|
||||
}
|
||||
|
||||
$repository = $this->getUserStateFromRequest($this->context . '.filter.repository', 'filter_repository');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$repository = $app->input->post->get('repository');
|
||||
$this->setState('filter.repository', $repository);
|
||||
}
|
||||
|
||||
$target = $this->getUserStateFromRequest($this->context . '.filter.target', 'filter_target');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$target = $app->input->post->get('target');
|
||||
$this->setState('filter.target', $target);
|
||||
}
|
||||
|
||||
$base = $this->getUserStateFromRequest($this->context . '.filter.base', 'filter_base');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$base = $app->input->post->get('base');
|
||||
$this->setState('filter.base', $base);
|
||||
}
|
||||
|
||||
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
||||
if ($formSubmited)
|
||||
{
|
||||
$type = $app->input->post->get('type');
|
||||
$this->setState('filter.type', $type);
|
||||
}
|
||||
|
||||
// List state information.
|
||||
parent::populateState($ordering, $direction);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get an array of data items.
|
||||
*
|
||||
* @return mixed An array of data items on success, false on failure.
|
||||
*/
|
||||
public function getItems()
|
||||
{
|
||||
// Check in items
|
||||
$this->checkInNow();
|
||||
|
||||
// load parent items
|
||||
$items = parent::getItems();
|
||||
|
||||
// Set values to display correctly.
|
||||
if (UtilitiesArrayHelper::check($items))
|
||||
{
|
||||
// Get the user object if not set.
|
||||
if (!isset($user) || !ObjectHelper::check($user))
|
||||
{
|
||||
$user = Factory::getUser();
|
||||
}
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// Remove items the user can't access.
|
||||
$access = ($user->authorise('repository.access', 'com_componentbuilder.repository.' . (int) $item->id) && $user->authorise('repository.access', 'com_componentbuilder'));
|
||||
if (!$access)
|
||||
{
|
||||
unset($items[$nr]);
|
||||
continue;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
// set selection value to a translatable value
|
||||
if (UtilitiesArrayHelper::check($items))
|
||||
{
|
||||
foreach ($items as $nr => &$item)
|
||||
{
|
||||
// convert target
|
||||
$item->target = $this->selectionTranslation($item->target, 'target');
|
||||
// convert type
|
||||
$item->type = $this->selectionTranslation($item->type, 'type');
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// return items
|
||||
return $items;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to convert selection values to translatable string.
|
||||
*
|
||||
* @return string The translatable string.
|
||||
*/
|
||||
public function selectionTranslation($value,$name)
|
||||
{
|
||||
// Array of target language strings
|
||||
if ($name === 'target')
|
||||
{
|
||||
$targetArray = array(
|
||||
0 => 'COM_COMPONENTBUILDER_REPOSITORY_SELECT_AN_OPTION',
|
||||
1 => 'COM_COMPONENTBUILDER_REPOSITORY_SUPER_POWER',
|
||||
2 => 'COM_COMPONENTBUILDER_REPOSITORY_JOOMLA_POWER'
|
||||
);
|
||||
// Now check if value is found in this array
|
||||
if (isset($targetArray[$value]) && StringHelper::check($targetArray[$value]))
|
||||
{
|
||||
return $targetArray[$value];
|
||||
}
|
||||
}
|
||||
// Array of type language strings
|
||||
if ($name === 'type')
|
||||
{
|
||||
$typeArray = array(
|
||||
0 => 'COM_COMPONENTBUILDER_REPOSITORY_SELECT_AN_OPTION',
|
||||
1 => 'COM_COMPONENTBUILDER_REPOSITORY_GITEA'
|
||||
);
|
||||
// Now check if value is found in this array
|
||||
if (isset($typeArray[$value]) && StringHelper::check($typeArray[$value]))
|
||||
{
|
||||
return $typeArray[$value];
|
||||
}
|
||||
}
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to build an SQL query to load the list data.
|
||||
*
|
||||
* @return string An SQL query
|
||||
*/
|
||||
protected function getListQuery()
|
||||
{
|
||||
// Get the user object.
|
||||
$user = Factory::getUser();
|
||||
// Create a new query object.
|
||||
$db = Factory::getDBO();
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Select some fields
|
||||
$query->select('a.*');
|
||||
|
||||
// From the componentbuilder_item table
|
||||
$query->from($db->quoteName('#__componentbuilder_repository', 'a'));
|
||||
|
||||
// Filter by published state
|
||||
$published = $this->getState('filter.published');
|
||||
if (is_numeric($published))
|
||||
{
|
||||
$query->where('a.published = ' . (int) $published);
|
||||
}
|
||||
elseif ($published === '')
|
||||
{
|
||||
$query->where('(a.published = 0 OR a.published = 1)');
|
||||
}
|
||||
|
||||
// Join over the asset groups.
|
||||
$query->select('ag.title AS access_level');
|
||||
$query->join('LEFT', '#__viewlevels AS ag ON ag.id = a.access');
|
||||
// Filter by access level.
|
||||
$_access = $this->getState('filter.access');
|
||||
if ($_access && is_numeric($_access))
|
||||
{
|
||||
$query->where('a.access = ' . (int) $_access);
|
||||
}
|
||||
elseif (UtilitiesArrayHelper::check($_access))
|
||||
{
|
||||
// Secure the array for the query
|
||||
$_access = ArrayHelper::toInteger($_access);
|
||||
// Filter by the Access Array.
|
||||
$query->where('a.access IN (' . implode(',', $_access) . ')');
|
||||
}
|
||||
// Implement View Level Access
|
||||
if (!$user->authorise('core.options', 'com_componentbuilder'))
|
||||
{
|
||||
$groups = implode(',', $user->getAuthorisedViewLevels());
|
||||
$query->where('a.access IN (' . $groups . ')');
|
||||
}
|
||||
// Filter by search.
|
||||
$search = $this->getState('filter.search');
|
||||
if (!empty($search))
|
||||
{
|
||||
if (stripos($search, 'id:') === 0)
|
||||
{
|
||||
$query->where('a.id = ' . (int) substr($search, 3));
|
||||
}
|
||||
else
|
||||
{
|
||||
$search = $db->quote('%' . $db->escape($search) . '%');
|
||||
$query->where('(a.organisation LIKE '.$search.' OR a.repository LIKE '.$search.' OR a.target LIKE '.$search.' OR a.type LIKE '.$search.' OR a.base LIKE '.$search.' OR a.guid LIKE '.$search.' OR a.username LIKE '.$search.')');
|
||||
}
|
||||
}
|
||||
|
||||
// Filter by Organisation.
|
||||
$_organisation = $this->getState('filter.organisation');
|
||||
if (is_numeric($_organisation))
|
||||
{
|
||||
if (is_float($_organisation))
|
||||
{
|
||||
$query->where('a.organisation = ' . (float) $_organisation);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->where('a.organisation = ' . (int) $_organisation);
|
||||
}
|
||||
}
|
||||
elseif (StringHelper::check($_organisation))
|
||||
{
|
||||
$query->where('a.organisation = ' . $db->quote($db->escape($_organisation)));
|
||||
}
|
||||
// Filter by Repository.
|
||||
$_repository = $this->getState('filter.repository');
|
||||
if (is_numeric($_repository))
|
||||
{
|
||||
if (is_float($_repository))
|
||||
{
|
||||
$query->where('a.repository = ' . (float) $_repository);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->where('a.repository = ' . (int) $_repository);
|
||||
}
|
||||
}
|
||||
elseif (StringHelper::check($_repository))
|
||||
{
|
||||
$query->where('a.repository = ' . $db->quote($db->escape($_repository)));
|
||||
}
|
||||
// Filter by Target.
|
||||
$_target = $this->getState('filter.target');
|
||||
if (is_numeric($_target))
|
||||
{
|
||||
if (is_float($_target))
|
||||
{
|
||||
$query->where('a.target = ' . (float) $_target);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->where('a.target = ' . (int) $_target);
|
||||
}
|
||||
}
|
||||
elseif (StringHelper::check($_target))
|
||||
{
|
||||
$query->where('a.target = ' . $db->quote($db->escape($_target)));
|
||||
}
|
||||
// Filter by Base.
|
||||
$_base = $this->getState('filter.base');
|
||||
if (is_numeric($_base))
|
||||
{
|
||||
if (is_float($_base))
|
||||
{
|
||||
$query->where('a.base = ' . (float) $_base);
|
||||
}
|
||||
else
|
||||
{
|
||||
$query->where('a.base = ' . (int) $_base);
|
||||
}
|
||||
}
|
||||
elseif (StringHelper::check($_base))
|
||||
{
|
||||
$query->where('a.base = ' . $db->quote($db->escape($_base)));
|
||||
}
|
||||
|
||||
// Add the list ordering clause.
|
||||
$orderCol = $this->getState('list.ordering', 'a.id');
|
||||
$orderDirn = $this->getState('list.direction', 'desc');
|
||||
if ($orderCol != '')
|
||||
{
|
||||
// Check that the order direction is valid encase we have a field called direction as part of filers.
|
||||
$orderDirn = (is_string($orderDirn) && in_array(strtolower($orderDirn), ['asc', 'desc'])) ? $orderDirn : 'desc';
|
||||
$query->order($db->escape($orderCol . ' ' . $orderDirn));
|
||||
}
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a store id based on model configuration state.
|
||||
*
|
||||
* @return string A store id.
|
||||
*
|
||||
*/
|
||||
protected function getStoreId($id = '')
|
||||
{
|
||||
// Compile the store id.
|
||||
$id .= ':' . $this->getState('filter.id');
|
||||
$id .= ':' . $this->getState('filter.search');
|
||||
$id .= ':' . $this->getState('filter.published');
|
||||
// Check if the value is an array
|
||||
$_access = $this->getState('filter.access');
|
||||
if (UtilitiesArrayHelper::check($_access))
|
||||
{
|
||||
$id .= ':' . implode(':', $_access);
|
||||
}
|
||||
// Check if this is only an number or string
|
||||
elseif (is_numeric($_access)
|
||||
|| StringHelper::check($_access))
|
||||
{
|
||||
$id .= ':' . $_access;
|
||||
}
|
||||
$id .= ':' . $this->getState('filter.ordering');
|
||||
$id .= ':' . $this->getState('filter.created_by');
|
||||
$id .= ':' . $this->getState('filter.modified_by');
|
||||
$id .= ':' . $this->getState('filter.organisation');
|
||||
$id .= ':' . $this->getState('filter.repository');
|
||||
$id .= ':' . $this->getState('filter.target');
|
||||
$id .= ':' . $this->getState('filter.base');
|
||||
$id .= ':' . $this->getState('filter.type');
|
||||
|
||||
return parent::getStoreId($id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Build an SQL query to checkin all items left checked out longer then a set time.
|
||||
*
|
||||
* @return bool
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function checkInNow(): bool
|
||||
{
|
||||
// Get set check in time
|
||||
$time = ComponentHelper::getParams('com_componentbuilder')->get('check_in');
|
||||
|
||||
if ($time)
|
||||
{
|
||||
// Get a db connection.
|
||||
$db = Factory::getDbo();
|
||||
// Reset query.
|
||||
$query = $db->getQuery(true);
|
||||
$query->select('*');
|
||||
$query->from($db->quoteName('#__componentbuilder_repository'));
|
||||
// Only select items that are checked out.
|
||||
$query->where($db->quoteName('checked_out') . '!=0');
|
||||
$db->setQuery($query, 0, 1);
|
||||
$db->execute();
|
||||
if ($db->getNumRows())
|
||||
{
|
||||
// Get Yesterdays date.
|
||||
$date = Factory::getDate()->modify($time)->toSql();
|
||||
// Reset query.
|
||||
$query = $db->getQuery(true);
|
||||
|
||||
// Fields to update.
|
||||
$fields = array(
|
||||
$db->quoteName('checked_out_time') . '=\'0000-00-00 00:00:00\'',
|
||||
$db->quoteName('checked_out') . '=0'
|
||||
);
|
||||
|
||||
// Conditions for which records should be updated.
|
||||
$conditions = array(
|
||||
$db->quoteName('checked_out') . '!=0',
|
||||
$db->quoteName('checked_out_time') . '<\''.$date.'\''
|
||||
);
|
||||
|
||||
// Check table.
|
||||
$query->update($db->quoteName('#__componentbuilder_repository'))->set($fields)->where($conditions);
|
||||
|
||||
$db->setQuery($query);
|
||||
|
||||
return $db->execute();
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
916
admin/models/repository.php
Normal file
916
admin/models/repository.php
Normal file
@ -0,0 +1,916 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
use Joomla\CMS\Filter\InputFilter;
|
||||
use Joomla\CMS\Filter\OutputFilter;
|
||||
use Joomla\CMS\MVC\Model\AdminModel;
|
||||
use Joomla\CMS\Table\Table;
|
||||
use Joomla\CMS\UCM\UCMType;
|
||||
use Joomla\Registry\Registry;
|
||||
use Joomla\String\StringHelper;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
use Joomla\CMS\Helper\TagsHelper;
|
||||
use VDM\Joomla\Utilities\GuidHelper;
|
||||
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
|
||||
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
|
||||
use VDM\Joomla\Utilities\GetHelper;
|
||||
|
||||
/**
|
||||
* Componentbuilder Repository Admin Model
|
||||
*/
|
||||
class ComponentbuilderModelRepository extends AdminModel
|
||||
{
|
||||
/**
|
||||
* The tab layout fields array.
|
||||
*
|
||||
* @var array
|
||||
*/
|
||||
protected $tabLayoutFields = array(
|
||||
'details' => array(
|
||||
'left' => array(
|
||||
'type',
|
||||
'base',
|
||||
'username',
|
||||
'token'
|
||||
),
|
||||
'right' => array(
|
||||
'organisation',
|
||||
'repository',
|
||||
'read_branch',
|
||||
'write_branch'
|
||||
),
|
||||
'above' => array(
|
||||
'system_name',
|
||||
'target',
|
||||
'access_repo'
|
||||
)
|
||||
)
|
||||
);
|
||||
|
||||
/**
|
||||
* @var string The prefix to use with controller messages.
|
||||
* @since 1.6
|
||||
*/
|
||||
protected $text_prefix = 'COM_COMPONENTBUILDER';
|
||||
|
||||
/**
|
||||
* The type alias for this content type.
|
||||
*
|
||||
* @var string
|
||||
* @since 3.2
|
||||
*/
|
||||
public $typeAlias = 'com_componentbuilder.repository';
|
||||
|
||||
/**
|
||||
* Returns a Table object, always creating it
|
||||
*
|
||||
* @param type $type The table type to instantiate
|
||||
* @param string $prefix A prefix for the table class name. Optional.
|
||||
* @param array $config Configuration array for model. Optional.
|
||||
*
|
||||
* @return Table A database object
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getTable($type = 'repository', $prefix = 'ComponentbuilderTable', $config = [])
|
||||
{
|
||||
// add table path for when model gets used from other component
|
||||
$this->addTablePath(JPATH_ADMINISTRATOR . '/components/com_componentbuilder/tables');
|
||||
// get instance of the table
|
||||
return Table::getInstance($type, $prefix, $config);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get a single record.
|
||||
*
|
||||
* @param integer $pk The id of the primary key.
|
||||
*
|
||||
* @return mixed Object on success, false on failure.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getItem($pk = null)
|
||||
{
|
||||
if ($item = parent::getItem($pk))
|
||||
{
|
||||
if (!empty($item->params) && !is_array($item->params))
|
||||
{
|
||||
// Convert the params field to an array.
|
||||
$registry = new Registry;
|
||||
$registry->loadString($item->params);
|
||||
$item->params = $registry->toArray();
|
||||
}
|
||||
|
||||
if (!empty($item->metadata))
|
||||
{
|
||||
// Convert the metadata field to an array.
|
||||
$registry = new Registry;
|
||||
$registry->loadString($item->metadata);
|
||||
$item->metadata = $registry->toArray();
|
||||
}
|
||||
}
|
||||
|
||||
return $item;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the record form.
|
||||
*
|
||||
* @param array $data Data for the form.
|
||||
* @param boolean $loadData True if the form is to load its own data (default case), false if not.
|
||||
* @param array $options Optional array of options for the form creation.
|
||||
*
|
||||
* @return mixed A JForm object on success, false on failure
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function getForm($data = [], $loadData = true, $options = array('control' => 'jform'))
|
||||
{
|
||||
// set load data option
|
||||
$options['load_data'] = $loadData;
|
||||
// check if xpath was set in options
|
||||
$xpath = false;
|
||||
if (isset($options['xpath']))
|
||||
{
|
||||
$xpath = $options['xpath'];
|
||||
unset($options['xpath']);
|
||||
}
|
||||
// check if clear form was set in options
|
||||
$clear = false;
|
||||
if (isset($options['clear']))
|
||||
{
|
||||
$clear = $options['clear'];
|
||||
unset($options['clear']);
|
||||
}
|
||||
|
||||
// Get the form.
|
||||
$form = $this->loadForm('com_componentbuilder.repository', 'repository', $options, $clear, $xpath);
|
||||
|
||||
if (empty($form))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$jinput = Factory::getApplication()->input;
|
||||
|
||||
// The front end calls this model and uses a_id to avoid id clashes so we need to check for that first.
|
||||
if ($jinput->get('a_id'))
|
||||
{
|
||||
$id = $jinput->get('a_id', 0, 'INT');
|
||||
}
|
||||
// The back end uses id so we use that the rest of the time and set it to 0 by default.
|
||||
else
|
||||
{
|
||||
$id = $jinput->get('id', 0, 'INT');
|
||||
}
|
||||
|
||||
$user = Factory::getUser();
|
||||
|
||||
// Check for existing item.
|
||||
// Modify the form based on Edit State access controls.
|
||||
if ($id != 0 && (!$user->authorise('repository.edit.state', 'com_componentbuilder.repository.' . (int) $id))
|
||||
|| ($id == 0 && !$user->authorise('repository.edit.state', 'com_componentbuilder')))
|
||||
{
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('ordering', 'disabled', 'true');
|
||||
$form->setFieldAttribute('published', 'disabled', 'true');
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('ordering', 'filter', 'unset');
|
||||
$form->setFieldAttribute('published', 'filter', 'unset');
|
||||
}
|
||||
// If this is a new item insure the greated by is set.
|
||||
if (0 == $id)
|
||||
{
|
||||
// Set the created_by to this user
|
||||
$form->setValue('created_by', null, $user->id);
|
||||
}
|
||||
// Modify the form based on Edit Creaded By access controls.
|
||||
if ($id != 0 && (!$user->authorise('repository.edit.created_by', 'com_componentbuilder.repository.' . (int) $id))
|
||||
|| ($id == 0 && !$user->authorise('repository.edit.created_by', 'com_componentbuilder')))
|
||||
{
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'disabled', 'true');
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('created_by', 'readonly', 'true');
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('created_by', 'filter', 'unset');
|
||||
}
|
||||
// Modify the form based on Edit Creaded Date access controls.
|
||||
if ($id != 0 && (!$user->authorise('repository.edit.created', 'com_componentbuilder.repository.' . (int) $id))
|
||||
|| ($id == 0 && !$user->authorise('repository.edit.created', 'com_componentbuilder')))
|
||||
{
|
||||
// Disable fields for display.
|
||||
$form->setFieldAttribute('created', 'disabled', 'true');
|
||||
// Disable fields while saving.
|
||||
$form->setFieldAttribute('created', 'filter', 'unset');
|
||||
}
|
||||
// Only load these values if no id is found
|
||||
if (0 == $id)
|
||||
{
|
||||
// Set redirected view name
|
||||
$redirectedView = $jinput->get('ref', null, 'STRING');
|
||||
// Set field name (or fall back to view name)
|
||||
$redirectedField = $jinput->get('field', $redirectedView, 'STRING');
|
||||
// Set redirected view id
|
||||
$redirectedId = $jinput->get('refid', 0, 'INT');
|
||||
// Set field id (or fall back to redirected view id)
|
||||
$redirectedValue = $jinput->get('field_id', $redirectedId, 'INT');
|
||||
if (0 != $redirectedValue && $redirectedField)
|
||||
{
|
||||
// Now set the local-redirected field default value
|
||||
$form->setValue($redirectedField, null, $redirectedValue);
|
||||
}
|
||||
}
|
||||
|
||||
// Only load the GUID if new item (or empty)
|
||||
if (0 == $id || !($val = $form->getValue('guid')))
|
||||
{
|
||||
$form->setValue('guid', null, GuidHelper::get());
|
||||
}
|
||||
|
||||
return $form;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the script that have to be included on the form
|
||||
*
|
||||
* @return string script files
|
||||
*/
|
||||
public function getScript()
|
||||
{
|
||||
return 'media/com_componentbuilder/js/repository.js';
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to test whether a record can be deleted.
|
||||
*
|
||||
* @param object $record A record object.
|
||||
*
|
||||
* @return boolean True if allowed to delete the record. Defaults to the permission set in the component.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function canDelete($record)
|
||||
{
|
||||
if (!empty($record->id))
|
||||
{
|
||||
if ($record->published != -2)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
$user = Factory::getUser();
|
||||
// The record has been set. Check the record permissions.
|
||||
return $user->authorise('repository.delete', 'com_componentbuilder.repository.' . (int) $record->id);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to test whether a record can have its state edited.
|
||||
*
|
||||
* @param object $record A record object.
|
||||
*
|
||||
* @return boolean True if allowed to change the state of the record. Defaults to the permission set in the component.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function canEditState($record)
|
||||
{
|
||||
$user = Factory::getUser();
|
||||
$recordId = $record->id ?? 0;
|
||||
|
||||
if ($recordId)
|
||||
{
|
||||
// The record has been set. Check the record permissions.
|
||||
$permission = $user->authorise('repository.edit.state', 'com_componentbuilder.repository.' . (int) $recordId);
|
||||
if (!$permission && !is_null($permission))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
// In the absence of better information, revert to the component permissions.
|
||||
return $user->authorise('repository.edit.state', 'com_componentbuilder');
|
||||
}
|
||||
|
||||
/**
|
||||
* Method override to check if you can edit an existing record.
|
||||
*
|
||||
* @param array $data An array of input data.
|
||||
* @param string $key The name of the key for the primary key.
|
||||
*
|
||||
* @return boolean
|
||||
* @since 2.5
|
||||
*/
|
||||
protected function allowEdit($data = [], $key = 'id')
|
||||
{
|
||||
// Check specific edit permission then general edit permission.
|
||||
$user = Factory::getUser();
|
||||
|
||||
return $user->authorise('repository.edit', 'com_componentbuilder.repository.'. ((int) isset($data[$key]) ? $data[$key] : 0)) or $user->authorise('repository.edit', 'com_componentbuilder');
|
||||
}
|
||||
|
||||
/**
|
||||
* Prepare and sanitise the table data prior to saving.
|
||||
*
|
||||
* @param Table $table A Table object.
|
||||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function prepareTable($table)
|
||||
{
|
||||
$date = Factory::getDate();
|
||||
$user = Factory::getUser();
|
||||
|
||||
if (isset($table->name))
|
||||
{
|
||||
$table->name = htmlspecialchars_decode($table->name, ENT_QUOTES);
|
||||
}
|
||||
|
||||
if (isset($table->alias) && empty($table->alias))
|
||||
{
|
||||
$table->generateAlias();
|
||||
}
|
||||
|
||||
if (empty($table->id))
|
||||
{
|
||||
$table->created = $date->toSql();
|
||||
// set the user
|
||||
if ($table->created_by == 0 || empty($table->created_by))
|
||||
{
|
||||
$table->created_by = $user->id;
|
||||
}
|
||||
// Set ordering to the last item if not set
|
||||
if (empty($table->ordering))
|
||||
{
|
||||
$db = Factory::getDbo();
|
||||
$query = $db->getQuery(true)
|
||||
->select('MAX(ordering)')
|
||||
->from($db->quoteName('#__componentbuilder_repository'));
|
||||
$db->setQuery($query);
|
||||
$max = $db->loadResult();
|
||||
|
||||
$table->ordering = $max + 1;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$table->modified = $date->toSql();
|
||||
$table->modified_by = $user->id;
|
||||
}
|
||||
|
||||
if (!empty($table->id))
|
||||
{
|
||||
// Increment the items version number.
|
||||
$table->version++;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the data that should be injected in the form.
|
||||
*
|
||||
* @return mixed The data for the form.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
protected function loadFormData()
|
||||
{
|
||||
// Check the session for previously entered form data.
|
||||
$data = Factory::getApplication()->getUserState('com_componentbuilder.edit.repository.data', []);
|
||||
|
||||
if (empty($data))
|
||||
{
|
||||
$data = $this->getItem();
|
||||
// run the perprocess of the data
|
||||
$this->preprocessData('com_componentbuilder.repository', $data);
|
||||
}
|
||||
|
||||
return $data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to get the unique fields of this table.
|
||||
*
|
||||
* @return mixed An array of field names, boolean false if none is set.
|
||||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
protected function getUniqueFields()
|
||||
{
|
||||
return array('guid');
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to delete one or more records.
|
||||
*
|
||||
* @param array &$pks An array of record primary keys.
|
||||
*
|
||||
* @return boolean True if successful, false if an error occurs.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function delete(&$pks)
|
||||
{
|
||||
if (!parent::delete($pks))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to change the published state of one or more records.
|
||||
*
|
||||
* @param array &$pks A list of the primary keys to change.
|
||||
* @param integer $value The value of the published state.
|
||||
*
|
||||
* @return boolean True on success.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function publish(&$pks, $value = 1)
|
||||
{
|
||||
if (!parent::publish($pks, $value))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to perform batch operations on an item or a set of items.
|
||||
*
|
||||
* @param array $commands An array of commands to perform.
|
||||
* @param array $pks An array of item ids.
|
||||
* @param array $contexts An array of item contexts.
|
||||
*
|
||||
* @return boolean Returns true on success, false on failure.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
public function batch($commands, $pks, $contexts)
|
||||
{
|
||||
// Sanitize ids.
|
||||
$pks = array_unique($pks);
|
||||
ArrayHelper::toInteger($pks);
|
||||
|
||||
// Remove any values of zero.
|
||||
if (array_search(0, $pks, true))
|
||||
{
|
||||
unset($pks[array_search(0, $pks, true)]);
|
||||
}
|
||||
|
||||
if (empty($pks))
|
||||
{
|
||||
$this->setError(Text::_('JGLOBAL_NO_ITEM_SELECTED'));
|
||||
return false;
|
||||
}
|
||||
|
||||
$done = false;
|
||||
|
||||
// Set some needed variables.
|
||||
$this->user = Factory::getUser();
|
||||
$this->table = $this->getTable();
|
||||
$this->tableClassName = get_class($this->table);
|
||||
$this->contentType = new UCMType;
|
||||
$this->type = $this->contentType->getTypeByTable($this->tableClassName);
|
||||
$this->canDo = ComponentbuilderHelper::getActions('repository');
|
||||
$this->batchSet = true;
|
||||
|
||||
if (!$this->canDo->get('core.batch'))
|
||||
{
|
||||
$this->setError(Text::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION'));
|
||||
return false;
|
||||
}
|
||||
|
||||
if ($this->type == false)
|
||||
{
|
||||
$type = new UCMType;
|
||||
$this->type = $type->getTypeByAlias($this->typeAlias);
|
||||
}
|
||||
|
||||
$this->tagsObserver = $this->table->getObserverOfClass('JTableObserverTags');
|
||||
|
||||
if (!empty($commands['move_copy']))
|
||||
{
|
||||
$cmd = ArrayHelper::getValue($commands, 'move_copy', 'c');
|
||||
|
||||
if ($cmd == 'c')
|
||||
{
|
||||
$result = $this->batchCopy($commands, $pks, $contexts);
|
||||
|
||||
if (is_array($result))
|
||||
{
|
||||
foreach ($result as $old => $new)
|
||||
{
|
||||
$contexts[$new] = $contexts[$old];
|
||||
}
|
||||
$pks = array_values($result);
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
elseif ($cmd == 'm' && !$this->batchMove($commands, $pks, $contexts))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
$done = true;
|
||||
}
|
||||
|
||||
if (!$done)
|
||||
{
|
||||
$this->setError(Text::_('JLIB_APPLICATION_ERROR_INSUFFICIENT_BATCH_INFORMATION'));
|
||||
return false;
|
||||
}
|
||||
|
||||
// Clear the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Batch copy items to a new category or current.
|
||||
*
|
||||
* @param integer $values The new values.
|
||||
* @param array $pks An array of row IDs.
|
||||
* @param array $contexts An array of item contexts.
|
||||
*
|
||||
* @return mixed An array of new IDs on success, boolean false on failure.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
protected function batchCopy($values, $pks, $contexts)
|
||||
{
|
||||
if (empty($this->batchSet))
|
||||
{
|
||||
// Set some needed variables.
|
||||
$this->user = Factory::getUser();
|
||||
$this->table = $this->getTable();
|
||||
$this->tableClassName = get_class($this->table);
|
||||
$this->canDo = ComponentbuilderHelper::getActions('repository');
|
||||
}
|
||||
|
||||
if (!$this->canDo->get('repository.create') && !$this->canDo->get('repository.batch'))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
// get list of unique fields
|
||||
$uniqueFields = $this->getUniqueFields();
|
||||
// remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// make sure published is set
|
||||
if (!isset($values['published']))
|
||||
{
|
||||
$values['published'] = 0;
|
||||
}
|
||||
elseif (isset($values['published']) && !$this->canDo->get('repository.edit.state'))
|
||||
{
|
||||
$values['published'] = 0;
|
||||
}
|
||||
|
||||
$newIds = [];
|
||||
// Parent exists so let's proceed
|
||||
while (!empty($pks))
|
||||
{
|
||||
// Pop the first ID off the stack
|
||||
$pk = array_shift($pks);
|
||||
|
||||
$this->table->reset();
|
||||
|
||||
// only allow copy if user may edit this item.
|
||||
if (!$this->user->authorise('repository.edit', $contexts[$pk]))
|
||||
{
|
||||
// Not fatal error
|
||||
$this->setError(Text::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
continue;
|
||||
}
|
||||
|
||||
// Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// Fatal error
|
||||
$this->setError($error);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Not fatal error
|
||||
$this->setError(Text::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// Only for strings
|
||||
if (UtilitiesStringHelper::check($this->table->system_name) && !is_numeric($this->table->system_name))
|
||||
{
|
||||
$this->table->system_name = $this->generateUnique('system_name',$this->table->system_name);
|
||||
}
|
||||
|
||||
// insert all set values
|
||||
if (UtilitiesArrayHelper::check($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
{
|
||||
if (strlen($value) > 0 && isset($this->table->$key))
|
||||
{
|
||||
$this->table->$key = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// update all unique fields
|
||||
if (UtilitiesArrayHelper::check($uniqueFields))
|
||||
{
|
||||
foreach ($uniqueFields as $uniqueField)
|
||||
{
|
||||
$this->table->$uniqueField = $this->generateUnique($uniqueField,$this->table->$uniqueField);
|
||||
}
|
||||
}
|
||||
|
||||
// Reset the ID because we are making a copy
|
||||
$this->table->id = 0;
|
||||
|
||||
// TODO: Deal with ordering?
|
||||
// $this->table->ordering = 1;
|
||||
|
||||
// Check the row.
|
||||
if (!$this->table->check())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!empty($this->type))
|
||||
{
|
||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||
}
|
||||
|
||||
// Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Get the new item ID
|
||||
$newId = $this->table->get('id');
|
||||
|
||||
// Add the new ID to the array
|
||||
$newIds[$pk] = $newId;
|
||||
}
|
||||
|
||||
// Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return $newIds;
|
||||
}
|
||||
|
||||
/**
|
||||
* Batch move items to a new category
|
||||
*
|
||||
* @param integer $value The new category ID.
|
||||
* @param array $pks An array of row IDs.
|
||||
* @param array $contexts An array of item contexts.
|
||||
*
|
||||
* @return boolean True if successful, false otherwise and internal error is set.
|
||||
*
|
||||
* @since 12.2
|
||||
*/
|
||||
protected function batchMove($values, $pks, $contexts)
|
||||
{
|
||||
if (empty($this->batchSet))
|
||||
{
|
||||
// Set some needed variables.
|
||||
$this->user = Factory::getUser();
|
||||
$this->table = $this->getTable();
|
||||
$this->tableClassName = get_class($this->table);
|
||||
$this->canDo = ComponentbuilderHelper::getActions('repository');
|
||||
}
|
||||
|
||||
if (!$this->canDo->get('repository.edit') && !$this->canDo->get('repository.batch'))
|
||||
{
|
||||
$this->setError(Text::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT'));
|
||||
return false;
|
||||
}
|
||||
|
||||
// make sure published only updates if user has the permission.
|
||||
if (isset($values['published']) && !$this->canDo->get('repository.edit.state'))
|
||||
{
|
||||
unset($values['published']);
|
||||
}
|
||||
// remove move_copy from array
|
||||
unset($values['move_copy']);
|
||||
|
||||
// Parent exists so we proceed
|
||||
foreach ($pks as $pk)
|
||||
{
|
||||
if (!$this->user->authorise('repository.edit', $contexts[$pk]))
|
||||
{
|
||||
$this->setError(Text::_('JLIB_APPLICATION_ERROR_BATCH_CANNOT_EDIT'));
|
||||
return false;
|
||||
}
|
||||
|
||||
// Check that the row actually exists
|
||||
if (!$this->table->load($pk))
|
||||
{
|
||||
if ($error = $this->table->getError())
|
||||
{
|
||||
// Fatal error
|
||||
$this->setError($error);
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
// Not fatal error
|
||||
$this->setError(Text::sprintf('JLIB_APPLICATION_ERROR_BATCH_MOVE_ROW_NOT_FOUND', $pk));
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
// insert all set values.
|
||||
if (UtilitiesArrayHelper::check($values))
|
||||
{
|
||||
foreach ($values as $key => $value)
|
||||
{
|
||||
// Do special action for access.
|
||||
if ('access' === $key && strlen($value) > 0)
|
||||
{
|
||||
$this->table->$key = $value;
|
||||
}
|
||||
elseif (strlen($value) > 0 && isset($this->table->$key))
|
||||
{
|
||||
$this->table->$key = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Check the row.
|
||||
if (!$this->table->check())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!empty($this->type))
|
||||
{
|
||||
$this->createTagsHelper($this->tagsObserver, $this->type, $pk, $this->typeAlias, $this->table);
|
||||
}
|
||||
|
||||
// Store the row.
|
||||
if (!$this->table->store())
|
||||
{
|
||||
$this->setError($this->table->getError());
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// Clean the cache
|
||||
$this->cleanCache();
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to save the form data.
|
||||
*
|
||||
* @param array $data The form data.
|
||||
*
|
||||
* @return boolean True on success.
|
||||
*
|
||||
* @since 1.6
|
||||
*/
|
||||
public function save($data)
|
||||
{
|
||||
$input = Factory::getApplication()->input;
|
||||
$filter = InputFilter::getInstance();
|
||||
|
||||
// set the metadata to the Item Data
|
||||
if (isset($data['metadata']) && isset($data['metadata']['author']))
|
||||
{
|
||||
$data['metadata']['author'] = $filter->clean($data['metadata']['author'], 'TRIM');
|
||||
|
||||
$metadata = new Registry;
|
||||
$metadata->loadArray($data['metadata']);
|
||||
$data['metadata'] = (string) $metadata;
|
||||
}
|
||||
|
||||
|
||||
// Set the GUID if empty or not valid
|
||||
if (empty($data['guid']) && $data['id'] > 0)
|
||||
{
|
||||
// get the existing one
|
||||
$data['guid'] = (string) GetHelper::var('repository', $data['id'], 'id', 'guid');
|
||||
}
|
||||
|
||||
// Set the GUID if empty or not valid
|
||||
while (!GuidHelper::valid($data['guid'], "repository", $data['id']))
|
||||
{
|
||||
// must always be set
|
||||
$data['guid'] = (string) GuidHelper::get();
|
||||
}
|
||||
|
||||
// Set the Params Items to data
|
||||
if (isset($data['params']) && is_array($data['params']))
|
||||
{
|
||||
$params = new Registry;
|
||||
$params->loadArray($data['params']);
|
||||
$data['params'] = (string) $params;
|
||||
}
|
||||
|
||||
// Alter the unique field for save as copy
|
||||
if ($input->get('task') === 'save2copy')
|
||||
{
|
||||
// Automatic handling of other unique fields
|
||||
$uniqueFields = $this->getUniqueFields();
|
||||
if (UtilitiesArrayHelper::check($uniqueFields))
|
||||
{
|
||||
foreach ($uniqueFields as $uniqueField)
|
||||
{
|
||||
$data[$uniqueField] = $this->generateUnique($uniqueField,$data[$uniqueField]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (parent::save($data))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to generate a unique value.
|
||||
*
|
||||
* @param string $field name.
|
||||
* @param string $value data.
|
||||
*
|
||||
* @return string New value.
|
||||
*
|
||||
* @since 3.0
|
||||
*/
|
||||
protected function generateUnique($field,$value)
|
||||
{
|
||||
// set field value unique
|
||||
$table = $this->getTable();
|
||||
|
||||
while ($table->load(array($field => $value)))
|
||||
{
|
||||
$value = StringHelper::increment($value);
|
||||
}
|
||||
|
||||
return $value;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to change the title
|
||||
*
|
||||
* @param string $title The title.
|
||||
*
|
||||
* @return array Contains the modified title and alias.
|
||||
*
|
||||
*/
|
||||
protected function _generateNewTitle($title)
|
||||
{
|
||||
|
||||
// Alter the title
|
||||
$table = $this->getTable();
|
||||
|
||||
while ($table->load(['title' => $title]))
|
||||
{
|
||||
$title = StringHelper::increment($title);
|
||||
}
|
||||
|
||||
return $title;
|
||||
}
|
||||
}
|
File diff suppressed because one or more lines are too long
@ -21,6 +21,7 @@ DROP TABLE IF EXISTS `#__componentbuilder_fieldtype`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_language_translation`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_language`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_server`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_repository`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_help_document`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_admin_fields`;
|
||||
DROP TABLE IF EXISTS `#__componentbuilder_admin_fields_conditions`;
|
||||
|
336
admin/tables/repository.php
Normal file
336
admin/tables/repository.php
Normal file
@ -0,0 +1,336 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Table\Table;
|
||||
use Joomla\CMS\Access\Access as AccessRules;
|
||||
use Joomla\CMS\Access\Rules;
|
||||
use Joomla\Registry\Registry;
|
||||
use Joomla\String\StringHelper;
|
||||
use Joomla\Utilities\ArrayHelper;
|
||||
use Joomla\CMS\String\PunycodeHelper;
|
||||
use Joomla\CMS\Table\Observer\Tags as TableObserverTags;
|
||||
use Joomla\CMS\Table\Observer\ContentHistory as TableObserverContenthistory;
|
||||
use Joomla\CMS\Application\ApplicationHelper;
|
||||
|
||||
/**
|
||||
* Repositories Table class
|
||||
*/
|
||||
class ComponentbuilderTableRepository extends Table
|
||||
{
|
||||
/**
|
||||
* Ensure the params and metadata in json encoded in the bind method
|
||||
*
|
||||
* @var array
|
||||
* @since 3.3
|
||||
*/
|
||||
protected $_jsonEncode = array('params', 'metadata');
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param object Database connector object
|
||||
*/
|
||||
function __construct(&$db)
|
||||
{
|
||||
parent::__construct('#__componentbuilder_repository', 'id', $db);
|
||||
|
||||
// Adding History Options
|
||||
TableObserverContenthistory::createObserver($this, array('typeAlias' => 'com_componentbuilder.repository'));
|
||||
}
|
||||
|
||||
public function bind($array, $ignore = '')
|
||||
{
|
||||
|
||||
if (isset($array['params']) && is_array($array['params']))
|
||||
{
|
||||
$registry = new Registry;
|
||||
$registry->loadArray($array['params']);
|
||||
$array['params'] = (string) $registry;
|
||||
}
|
||||
|
||||
if (isset($array['metadata']) && is_array($array['metadata']))
|
||||
{
|
||||
$registry = new Registry;
|
||||
$registry->loadArray($array['metadata']);
|
||||
$array['metadata'] = (string) $registry;
|
||||
}
|
||||
|
||||
// Bind the rules.
|
||||
if (isset($array['rules']) && is_array($array['rules']))
|
||||
{
|
||||
$rules = new AccessRules($array['rules']);
|
||||
$this->setRules($rules);
|
||||
}
|
||||
return parent::bind($array, $ignore);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overload the store method for the Repository table.
|
||||
*
|
||||
* @param boolean Toggle whether null values should be updated.
|
||||
* @return boolean True on success, false on failure.
|
||||
* @since 1.6
|
||||
*/
|
||||
public function store($updateNulls = false)
|
||||
{
|
||||
$date = Factory::getDate();
|
||||
$user = Factory::getUser();
|
||||
|
||||
if ($this->id)
|
||||
{
|
||||
// Existing item
|
||||
$this->modified = $date->toSql();
|
||||
$this->modified_by = $user->get('id');
|
||||
}
|
||||
else
|
||||
{
|
||||
// New repository. A repository created and created_by field can be set by the user,
|
||||
// so we don't touch either of these if they are set.
|
||||
if (!(int) $this->created)
|
||||
{
|
||||
$this->created = $date->toSql();
|
||||
}
|
||||
if (empty($this->created_by))
|
||||
{
|
||||
$this->created_by = $user->get('id');
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($this->alias))
|
||||
{
|
||||
// Verify that the alias is unique
|
||||
$table = Table::getInstance('repository', 'ComponentbuilderTable');
|
||||
|
||||
if ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0))
|
||||
{
|
||||
$this->setError(Text::_('COM_COMPONENTBUILDER_REPOSITORY_ERROR_UNIQUE_ALIAS'));
|
||||
|
||||
if ($table->published === -2)
|
||||
{
|
||||
$this->setError(Text::_('COM_COMPONENTBUILDER_REPOSITORY_ERROR_UNIQUE_ALIAS_TRASHED'));
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($this->url))
|
||||
{
|
||||
// Convert IDN urls to punycode
|
||||
$this->url = PunycodeHelper::urlToPunycode($this->url);
|
||||
}
|
||||
if (isset($this->website))
|
||||
{
|
||||
// Convert IDN urls to punycode
|
||||
$this->website = PunycodeHelper::urlToPunycode($this->website);
|
||||
}
|
||||
|
||||
return parent::store($updateNulls);
|
||||
}
|
||||
|
||||
/**
|
||||
* Overloaded check method to ensure data integrity.
|
||||
*
|
||||
* @return boolean True on success.
|
||||
*/
|
||||
public function check()
|
||||
{
|
||||
if (isset($this->alias))
|
||||
{
|
||||
// Generate a valid alias
|
||||
$this->generateAlias();
|
||||
|
||||
$table = Table::getInstance('repository', 'componentbuilderTable');
|
||||
|
||||
while ($table->load(array('alias' => $this->alias)) && ($table->id != $this->id || $this->id == 0))
|
||||
{
|
||||
$this->alias = StringHelper::increment($this->alias, 'dash');
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Clean up keywords -- eliminate extra spaces between phrases
|
||||
* and cr (\r) and lf (\n) characters from string.
|
||||
* Only process if not empty.
|
||||
*/
|
||||
if (!empty($this->metakey))
|
||||
{
|
||||
// Array of characters to remove.
|
||||
$bad_characters = array("\n", "\r", "\"", "<", ">");
|
||||
|
||||
// Remove bad characters.
|
||||
$after_clean = StringHelper::str_ireplace($bad_characters, "", $this->metakey);
|
||||
|
||||
// Create array using commas as delimiter.
|
||||
$keys = explode(',', $after_clean);
|
||||
$clean_keys = [];
|
||||
|
||||
foreach ($keys as $key)
|
||||
{
|
||||
// Ignore blank keywords.
|
||||
if (trim($key))
|
||||
{
|
||||
$clean_keys[] = trim($key);
|
||||
}
|
||||
}
|
||||
|
||||
// Put array back together delimited by ", "
|
||||
$this->metakey = implode(", ", $clean_keys);
|
||||
}
|
||||
|
||||
// Clean up description -- eliminate quotes and <> brackets
|
||||
if (!empty($this->metadesc))
|
||||
{
|
||||
// Only process if not empty
|
||||
$bad_characters = array("\"", "<", ">");
|
||||
$this->metadesc = StringHelper::str_ireplace($bad_characters, "", $this->metadesc);
|
||||
}
|
||||
|
||||
// If we don't have any access rules set at this point just use an empty AccessRules class
|
||||
if (!$this->getRules())
|
||||
{
|
||||
$rules = $this->getDefaultAssetValues('com_componentbuilder.repository.'.$this->id);
|
||||
$this->setRules($rules);
|
||||
}
|
||||
|
||||
// Set ordering
|
||||
if ($this->published < 0)
|
||||
{
|
||||
// Set ordering to 0 if state is archived or trashed
|
||||
$this->ordering = 0;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the default asset values for a component.
|
||||
*
|
||||
* @param $string $component The component asset name to search for
|
||||
*
|
||||
* @return AccessRules The AccessRules object for the asset
|
||||
*/
|
||||
protected function getDefaultAssetValues($component, $try = true)
|
||||
{
|
||||
// Need to find the asset id by the name of the component.
|
||||
$db = Factory::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();
|
||||
if ($db->loadRowList())
|
||||
{
|
||||
// asset already set so use saved rules
|
||||
$assetId = (int) $db->loadResult();
|
||||
return AccessRules::getAssetRules($assetId); // (TODO) instead of keeping inherited Allowed it becomes Allowed.
|
||||
}
|
||||
// try again
|
||||
elseif ($try)
|
||||
{
|
||||
$try = explode('.',$component);
|
||||
$result = $this->getDefaultAssetValues($try[0], false);
|
||||
if ($result instanceof AccessRules)
|
||||
{
|
||||
if (isset($try[1]))
|
||||
{
|
||||
$_result = (string) $result;
|
||||
$_result = json_decode($_result);
|
||||
foreach ($_result as $name => &$rule)
|
||||
{
|
||||
$v = explode('.', $name);
|
||||
if ($try[1] !== $v[0])
|
||||
{
|
||||
// remove since it is not part of this view
|
||||
unset($_result->$name);
|
||||
}
|
||||
else
|
||||
{
|
||||
// clear the value since we inherit
|
||||
$rule = [];
|
||||
}
|
||||
}
|
||||
// check if there are any view values remaining
|
||||
if (count( (array) $_result))
|
||||
{
|
||||
$_result = json_encode($_result);
|
||||
$_result = array($_result);
|
||||
// Instantiate and return the AccessRules object for the asset rules.
|
||||
$rules = new AccessRules;
|
||||
$rules->mergeCollection($_result);
|
||||
|
||||
return $rules;
|
||||
}
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
}
|
||||
return AccessRules::getAssetRules(0);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to compute the default name of the asset.
|
||||
* The default name is in the form 'table_name.id'
|
||||
* where id is the value of the primary key of the table.
|
||||
*
|
||||
* @return string
|
||||
* @since 2.5
|
||||
*/
|
||||
protected function _getAssetName()
|
||||
{
|
||||
$k = $this->_tbl_key;
|
||||
return 'com_componentbuilder.repository.'.(int) $this->$k;
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to return the title to use for the asset table.
|
||||
*
|
||||
* @return string
|
||||
* @since 2.5
|
||||
*/
|
||||
protected function _getAssetTitle()
|
||||
{
|
||||
if (isset($this->title))
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
return '';
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the parent asset id for the record
|
||||
*
|
||||
* @return int
|
||||
* @since 2.5
|
||||
*/
|
||||
protected function _getAssetParentId(?Table $table = null, $id = null)
|
||||
{
|
||||
$asset = Table::getInstance('Asset');
|
||||
$asset->loadByName('com_componentbuilder');
|
||||
|
||||
return $asset->id;
|
||||
}
|
||||
|
||||
/**
|
||||
* This view does not actually have an alias
|
||||
*
|
||||
* @return bool
|
||||
*/
|
||||
public function generateAlias()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
@ -206,408 +206,442 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvvxd function
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvvxb function
|
||||
jQuery('#jform_add_css_view').on('keyup',function()
|
||||
{
|
||||
var add_css_view_vvvvvxd = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvxd(add_css_view_vvvvvxd);
|
||||
var add_css_view_vvvvvxb = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvxb(add_css_view_vvvvvxb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_view_vvvvvxd = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvxd(add_css_view_vvvvvxd);
|
||||
var add_css_view_vvvvvxb = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvvxb(add_css_view_vvvvvxb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvvxe function
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvvxc function
|
||||
jQuery('#jform_add_css_views').on('keyup',function()
|
||||
{
|
||||
var add_css_views_vvvvvxe = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvxe(add_css_views_vvvvvxe);
|
||||
var add_css_views_vvvvvxc = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvxc(add_css_views_vvvvvxc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_views',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_views_vvvvvxe = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvxe(add_css_views_vvvvvxe);
|
||||
var add_css_views_vvvvvxc = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvvxc(add_css_views_vvvvvxc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_view_file listeners for add_javascript_view_file_vvvvvxf function
|
||||
// #jform_add_javascript_view_file listeners for add_javascript_view_file_vvvvvxd function
|
||||
jQuery('#jform_add_javascript_view_file').on('keyup',function()
|
||||
{
|
||||
var add_javascript_view_file_vvvvvxf = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvxf(add_javascript_view_file_vvvvvxf);
|
||||
var add_javascript_view_file_vvvvvxd = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvxd(add_javascript_view_file_vvvvvxd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_view_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_view_file_vvvvvxf = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvxf(add_javascript_view_file_vvvvvxf);
|
||||
var add_javascript_view_file_vvvvvxd = jQuery("#jform_add_javascript_view_file input[type='radio']:checked").val();
|
||||
vvvvvxd(add_javascript_view_file_vvvvvxd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_views_file listeners for add_javascript_views_file_vvvvvxg function
|
||||
// #jform_add_javascript_views_file listeners for add_javascript_views_file_vvvvvxe function
|
||||
jQuery('#jform_add_javascript_views_file').on('keyup',function()
|
||||
{
|
||||
var add_javascript_views_file_vvvvvxg = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvxg(add_javascript_views_file_vvvvvxg);
|
||||
var add_javascript_views_file_vvvvvxe = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvxe(add_javascript_views_file_vvvvvxe);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_views_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_views_file_vvvvvxg = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvxg(add_javascript_views_file_vvvvvxg);
|
||||
var add_javascript_views_file_vvvvvxe = jQuery("#jform_add_javascript_views_file input[type='radio']:checked").val();
|
||||
vvvvvxe(add_javascript_views_file_vvvvvxe);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvvxh function
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvvxf function
|
||||
jQuery('#jform_add_javascript_view_footer').on('keyup',function()
|
||||
{
|
||||
var add_javascript_view_footer_vvvvvxh = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvxh(add_javascript_view_footer_vvvvvxh);
|
||||
var add_javascript_view_footer_vvvvvxf = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvxf(add_javascript_view_footer_vvvvvxf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_view_footer_vvvvvxh = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvxh(add_javascript_view_footer_vvvvvxh);
|
||||
var add_javascript_view_footer_vvvvvxf = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvvxf(add_javascript_view_footer_vvvvvxf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvvxi function
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvvxg function
|
||||
jQuery('#jform_add_javascript_views_footer').on('keyup',function()
|
||||
{
|
||||
var add_javascript_views_footer_vvvvvxi = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvxi(add_javascript_views_footer_vvvvvxi);
|
||||
var add_javascript_views_footer_vvvvvxg = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvxg(add_javascript_views_footer_vvvvvxg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_views_footer_vvvvvxi = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvxi(add_javascript_views_footer_vvvvvxi);
|
||||
var add_javascript_views_footer_vvvvvxg = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvvxg(add_javascript_views_footer_vvvvvxg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvxj function
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvxh function
|
||||
jQuery('#jform_add_php_ajax').on('keyup',function()
|
||||
{
|
||||
var add_php_ajax_vvvvvxj = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvxj(add_php_ajax_vvvvvxj);
|
||||
var add_php_ajax_vvvvvxh = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvxh(add_php_ajax_vvvvvxh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_ajax',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_ajax_vvvvvxj = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvxj(add_php_ajax_vvvvvxj);
|
||||
var add_php_ajax_vvvvvxh = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvxh(add_php_ajax_vvvvvxh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitem listeners for add_php_getitem_vvvvvxk function
|
||||
// #jform_add_php_getitem listeners for add_php_getitem_vvvvvxi function
|
||||
jQuery('#jform_add_php_getitem').on('keyup',function()
|
||||
{
|
||||
var add_php_getitem_vvvvvxk = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvxk(add_php_getitem_vvvvvxk);
|
||||
var add_php_getitem_vvvvvxi = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvxi(add_php_getitem_vvvvvxi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitem',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getitem_vvvvvxk = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvxk(add_php_getitem_vvvvvxk);
|
||||
var add_php_getitem_vvvvvxi = jQuery("#jform_add_php_getitem input[type='radio']:checked").val();
|
||||
vvvvvxi(add_php_getitem_vvvvvxi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitems listeners for add_php_getitems_vvvvvxl function
|
||||
// #jform_add_php_getitems listeners for add_php_getitems_vvvvvxj function
|
||||
jQuery('#jform_add_php_getitems').on('keyup',function()
|
||||
{
|
||||
var add_php_getitems_vvvvvxl = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvxl(add_php_getitems_vvvvvxl);
|
||||
var add_php_getitems_vvvvvxj = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvxj(add_php_getitems_vvvvvxj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitems',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getitems_vvvvvxl = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvxl(add_php_getitems_vvvvvxl);
|
||||
var add_php_getitems_vvvvvxj = jQuery("#jform_add_php_getitems input[type='radio']:checked").val();
|
||||
vvvvvxj(add_php_getitems_vvvvvxj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getitems_after_all listeners for add_php_getitems_after_all_vvvvvxm function
|
||||
// #jform_add_php_getitems_after_all listeners for add_php_getitems_after_all_vvvvvxk function
|
||||
jQuery('#jform_add_php_getitems_after_all').on('keyup',function()
|
||||
{
|
||||
var add_php_getitems_after_all_vvvvvxm = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvxm(add_php_getitems_after_all_vvvvvxm);
|
||||
var add_php_getitems_after_all_vvvvvxk = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvxk(add_php_getitems_after_all_vvvvvxk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getitems_after_all',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getitems_after_all_vvvvvxm = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvxm(add_php_getitems_after_all_vvvvvxm);
|
||||
var add_php_getitems_after_all_vvvvvxk = jQuery("#jform_add_php_getitems_after_all input[type='radio']:checked").val();
|
||||
vvvvvxk(add_php_getitems_after_all_vvvvvxk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvxn function
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvxl function
|
||||
jQuery('#jform_add_php_getlistquery').on('keyup',function()
|
||||
{
|
||||
var add_php_getlistquery_vvvvvxn = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvxn(add_php_getlistquery_vvvvvxn);
|
||||
var add_php_getlistquery_vvvvvxl = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvxl(add_php_getlistquery_vvvvvxl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getlistquery_vvvvvxn = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvxn(add_php_getlistquery_vvvvvxn);
|
||||
var add_php_getlistquery_vvvvvxl = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
vvvvvxl(add_php_getlistquery_vvvvvxl);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getform listeners for add_php_getform_vvvvvxo function
|
||||
// #jform_add_php_getform listeners for add_php_getform_vvvvvxm function
|
||||
jQuery('#jform_add_php_getform').on('keyup',function()
|
||||
{
|
||||
var add_php_getform_vvvvvxo = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvxo(add_php_getform_vvvvvxo);
|
||||
var add_php_getform_vvvvvxm = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvxm(add_php_getform_vvvvvxm);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getform',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getform_vvvvvxo = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvxo(add_php_getform_vvvvvxo);
|
||||
var add_php_getform_vvvvvxm = jQuery("#jform_add_php_getform input[type='radio']:checked").val();
|
||||
vvvvvxm(add_php_getform_vvvvvxm);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_save listeners for add_php_before_save_vvvvvxp function
|
||||
// #jform_add_php_before_save listeners for add_php_before_save_vvvvvxn function
|
||||
jQuery('#jform_add_php_before_save').on('keyup',function()
|
||||
{
|
||||
var add_php_before_save_vvvvvxp = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvxp(add_php_before_save_vvvvvxp);
|
||||
var add_php_before_save_vvvvvxn = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvxn(add_php_before_save_vvvvvxn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_save',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_save_vvvvvxp = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvxp(add_php_before_save_vvvvvxp);
|
||||
var add_php_before_save_vvvvvxn = jQuery("#jform_add_php_before_save input[type='radio']:checked").val();
|
||||
vvvvvxn(add_php_before_save_vvvvvxn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_save listeners for add_php_save_vvvvvxq function
|
||||
// #jform_add_php_save listeners for add_php_save_vvvvvxo function
|
||||
jQuery('#jform_add_php_save').on('keyup',function()
|
||||
{
|
||||
var add_php_save_vvvvvxq = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvxq(add_php_save_vvvvvxq);
|
||||
var add_php_save_vvvvvxo = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvxo(add_php_save_vvvvvxo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_save',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_save_vvvvvxq = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvxq(add_php_save_vvvvvxq);
|
||||
var add_php_save_vvvvvxo = jQuery("#jform_add_php_save input[type='radio']:checked").val();
|
||||
vvvvvxo(add_php_save_vvvvvxo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvxr function
|
||||
// #jform_add_php_postsavehook listeners for add_php_postsavehook_vvvvvxp function
|
||||
jQuery('#jform_add_php_postsavehook').on('keyup',function()
|
||||
{
|
||||
var add_php_postsavehook_vvvvvxr = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvxr(add_php_postsavehook_vvvvvxr);
|
||||
var add_php_postsavehook_vvvvvxp = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvxp(add_php_postsavehook_vvvvvxp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_postsavehook',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_postsavehook_vvvvvxr = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvxr(add_php_postsavehook_vvvvvxr);
|
||||
var add_php_postsavehook_vvvvvxp = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val();
|
||||
vvvvvxp(add_php_postsavehook_vvvvvxp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_allowadd listeners for add_php_allowadd_vvvvvxs function
|
||||
// #jform_add_php_allowadd listeners for add_php_allowadd_vvvvvxq function
|
||||
jQuery('#jform_add_php_allowadd').on('keyup',function()
|
||||
{
|
||||
var add_php_allowadd_vvvvvxs = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvxs(add_php_allowadd_vvvvvxs);
|
||||
var add_php_allowadd_vvvvvxq = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvxq(add_php_allowadd_vvvvvxq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_allowadd',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_allowadd_vvvvvxs = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvxs(add_php_allowadd_vvvvvxs);
|
||||
var add_php_allowadd_vvvvvxq = jQuery("#jform_add_php_allowadd input[type='radio']:checked").val();
|
||||
vvvvvxq(add_php_allowadd_vvvvvxq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvxt function
|
||||
// #jform_add_php_allowedit listeners for add_php_allowedit_vvvvvxr function
|
||||
jQuery('#jform_add_php_allowedit').on('keyup',function()
|
||||
{
|
||||
var add_php_allowedit_vvvvvxt = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvxt(add_php_allowedit_vvvvvxt);
|
||||
var add_php_allowedit_vvvvvxr = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvxr(add_php_allowedit_vvvvvxr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_allowedit',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_allowedit_vvvvvxt = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvxt(add_php_allowedit_vvvvvxt);
|
||||
var add_php_allowedit_vvvvvxr = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val();
|
||||
vvvvvxr(add_php_allowedit_vvvvvxr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_cancel listeners for add_php_before_cancel_vvvvvxu function
|
||||
// #jform_add_php_before_cancel listeners for add_php_before_cancel_vvvvvxs function
|
||||
jQuery('#jform_add_php_before_cancel').on('keyup',function()
|
||||
{
|
||||
var add_php_before_cancel_vvvvvxu = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvxu(add_php_before_cancel_vvvvvxu);
|
||||
var add_php_before_cancel_vvvvvxs = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvxs(add_php_before_cancel_vvvvvxs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_cancel',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_cancel_vvvvvxu = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvxu(add_php_before_cancel_vvvvvxu);
|
||||
var add_php_before_cancel_vvvvvxs = jQuery("#jform_add_php_before_cancel input[type='radio']:checked").val();
|
||||
vvvvvxs(add_php_before_cancel_vvvvvxs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_cancel listeners for add_php_after_cancel_vvvvvxv function
|
||||
// #jform_add_php_after_cancel listeners for add_php_after_cancel_vvvvvxt function
|
||||
jQuery('#jform_add_php_after_cancel').on('keyup',function()
|
||||
{
|
||||
var add_php_after_cancel_vvvvvxv = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvxv(add_php_after_cancel_vvvvvxv);
|
||||
var add_php_after_cancel_vvvvvxt = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvxt(add_php_after_cancel_vvvvvxt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_cancel',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_cancel_vvvvvxv = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvxv(add_php_after_cancel_vvvvvxv);
|
||||
var add_php_after_cancel_vvvvvxt = jQuery("#jform_add_php_after_cancel input[type='radio']:checked").val();
|
||||
vvvvvxt(add_php_after_cancel_vvvvvxt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvxw function
|
||||
// #jform_add_php_batchcopy listeners for add_php_batchcopy_vvvvvxu function
|
||||
jQuery('#jform_add_php_batchcopy').on('keyup',function()
|
||||
{
|
||||
var add_php_batchcopy_vvvvvxw = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvxw(add_php_batchcopy_vvvvvxw);
|
||||
var add_php_batchcopy_vvvvvxu = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvxu(add_php_batchcopy_vvvvvxu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_batchcopy',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_batchcopy_vvvvvxw = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvxw(add_php_batchcopy_vvvvvxw);
|
||||
var add_php_batchcopy_vvvvvxu = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val();
|
||||
vvvvvxu(add_php_batchcopy_vvvvvxu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvxx function
|
||||
// #jform_add_php_batchmove listeners for add_php_batchmove_vvvvvxv function
|
||||
jQuery('#jform_add_php_batchmove').on('keyup',function()
|
||||
{
|
||||
var add_php_batchmove_vvvvvxx = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvxx(add_php_batchmove_vvvvvxx);
|
||||
var add_php_batchmove_vvvvvxv = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvxv(add_php_batchmove_vvvvvxv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_batchmove',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_batchmove_vvvvvxx = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvxx(add_php_batchmove_vvvvvxx);
|
||||
var add_php_batchmove_vvvvvxv = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val();
|
||||
vvvvvxv(add_php_batchmove_vvvvvxv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvxy function
|
||||
// #jform_add_php_before_publish listeners for add_php_before_publish_vvvvvxw function
|
||||
jQuery('#jform_add_php_before_publish').on('keyup',function()
|
||||
{
|
||||
var add_php_before_publish_vvvvvxy = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvxy(add_php_before_publish_vvvvvxy);
|
||||
var add_php_before_publish_vvvvvxw = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvxw(add_php_before_publish_vvvvvxw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_publish',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_publish_vvvvvxy = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvxy(add_php_before_publish_vvvvvxy);
|
||||
var add_php_before_publish_vvvvvxw = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val();
|
||||
vvvvvxw(add_php_before_publish_vvvvvxw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvxz function
|
||||
// #jform_add_php_after_publish listeners for add_php_after_publish_vvvvvxx function
|
||||
jQuery('#jform_add_php_after_publish').on('keyup',function()
|
||||
{
|
||||
var add_php_after_publish_vvvvvxz = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvxz(add_php_after_publish_vvvvvxz);
|
||||
var add_php_after_publish_vvvvvxx = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvxx(add_php_after_publish_vvvvvxx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_publish',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_publish_vvvvvxz = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvxz(add_php_after_publish_vvvvvxz);
|
||||
var add_php_after_publish_vvvvvxx = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val();
|
||||
vvvvvxx(add_php_after_publish_vvvvvxx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvya function
|
||||
// #jform_add_php_before_delete listeners for add_php_before_delete_vvvvvxy function
|
||||
jQuery('#jform_add_php_before_delete').on('keyup',function()
|
||||
{
|
||||
var add_php_before_delete_vvvvvya = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvya(add_php_before_delete_vvvvvya);
|
||||
var add_php_before_delete_vvvvvxy = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvxy(add_php_before_delete_vvvvvxy);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_delete',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_delete_vvvvvya = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvya(add_php_before_delete_vvvvvya);
|
||||
var add_php_before_delete_vvvvvxy = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val();
|
||||
vvvvvxy(add_php_before_delete_vvvvvxy);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvyb function
|
||||
// #jform_add_php_after_delete listeners for add_php_after_delete_vvvvvxz function
|
||||
jQuery('#jform_add_php_after_delete').on('keyup',function()
|
||||
{
|
||||
var add_php_after_delete_vvvvvyb = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvyb(add_php_after_delete_vvvvvyb);
|
||||
var add_php_after_delete_vvvvvxz = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvxz(add_php_after_delete_vvvvvxz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_delete',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_delete_vvvvvyb = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvyb(add_php_after_delete_vvvvvyb);
|
||||
var add_php_after_delete_vvvvvxz = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val();
|
||||
vvvvvxz(add_php_after_delete_vvvvvxz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvyc function
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvya function
|
||||
jQuery('#jform_add_php_document').on('keyup',function()
|
||||
{
|
||||
var add_php_document_vvvvvyc = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyc(add_php_document_vvvvvyc);
|
||||
var add_php_document_vvvvvya = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvya(add_php_document_vvvvvya);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_document_vvvvvyc = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyc(add_php_document_vvvvvyc);
|
||||
var add_php_document_vvvvvya = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvya(add_php_document_vvvvvya);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvyd function
|
||||
// #jform_add_sql listeners for add_sql_vvvvvyb function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var add_sql_vvvvvyd = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyd(add_sql_vvvvvyd);
|
||||
var add_sql_vvvvvyb = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyb(add_sql_vvvvvyb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_sql_vvvvvyd = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyd(add_sql_vvvvvyd);
|
||||
var add_sql_vvvvvyb = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyb(add_sql_vvvvvyb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_vvvvvyc function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvyc = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyc = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyc(source_vvvvvyc,add_sql_vvvvvyc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvyc = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyc = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyc(source_vvvvvyc,add_sql_vvvvvyc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvyc function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvyc = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyc = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyc(source_vvvvvyc,add_sql_vvvvvyc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvyc = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyc = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyc(source_vvvvvyc,add_sql_vvvvvyc);
|
||||
|
||||
});
|
||||
|
||||
@ -645,82 +679,48 @@ jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_source listeners for source_vvvvvyg function
|
||||
jQuery('#jform_source').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvyg = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvyg = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_sql listeners for add_sql_vvvvvyg function
|
||||
jQuery('#jform_add_sql').on('keyup',function()
|
||||
{
|
||||
var source_vvvvvyg = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_sql',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var source_vvvvvyg = jQuery("#jform_source input[type='radio']:checked").val();
|
||||
var add_sql_vvvvvyg = jQuery("#jform_add_sql input[type='radio']:checked").val();
|
||||
vvvvvyg(source_vvvvvyg,add_sql_vvvvvyg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvvyi function
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvvyg function
|
||||
jQuery('#jform_add_custom_import').on('keyup',function()
|
||||
{
|
||||
var add_custom_import_vvvvvyi = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyi(add_custom_import_vvvvvyi);
|
||||
var add_custom_import_vvvvvyg = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyg(add_custom_import_vvvvvyg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_import_vvvvvyi = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyi(add_custom_import_vvvvvyi);
|
||||
var add_custom_import_vvvvvyg = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyg(add_custom_import_vvvvvyg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvvyj function
|
||||
// #jform_add_custom_import listeners for add_custom_import_vvvvvyh function
|
||||
jQuery('#jform_add_custom_import').on('keyup',function()
|
||||
{
|
||||
var add_custom_import_vvvvvyj = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyj(add_custom_import_vvvvvyj);
|
||||
var add_custom_import_vvvvvyh = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyh(add_custom_import_vvvvvyh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_import',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_import_vvvvvyj = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyj(add_custom_import_vvvvvyj);
|
||||
var add_custom_import_vvvvvyh = jQuery("#jform_add_custom_import input[type='radio']:checked").val();
|
||||
vvvvvyh(add_custom_import_vvvvvyh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvvyk function
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvvyi function
|
||||
jQuery('#jform_add_custom_button').on('keyup',function()
|
||||
{
|
||||
var add_custom_button_vvvvvyk = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyk(add_custom_button_vvvvvyk);
|
||||
var add_custom_button_vvvvvyi = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyi(add_custom_button_vvvvvyi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_button_vvvvvyk = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyk(add_custom_button_vvvvvyk);
|
||||
var add_custom_button_vvvvvyi = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyi(add_custom_button_vvvvvyi);
|
||||
|
||||
});
|
||||
|
||||
|
@ -110,18 +110,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_extension_type listeners for extension_type_vvvvwao function
|
||||
// #jform_extension_type listeners for extension_type_vvvvwam function
|
||||
jQuery('#jform_extension_type').on('keyup',function()
|
||||
{
|
||||
var extension_type_vvvvwao = jQuery("#jform_extension_type").val();
|
||||
vvvvwao(extension_type_vvvvwao);
|
||||
var extension_type_vvvvwam = jQuery("#jform_extension_type").val();
|
||||
vvvvwam(extension_type_vvvvwam);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_extension_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var extension_type_vvvvwao = jQuery("#jform_extension_type").val();
|
||||
vvvvwao(extension_type_vvvvwao);
|
||||
var extension_type_vvvvwam = jQuery("#jform_extension_type").val();
|
||||
vvvvwam(extension_type_vvvvwam);
|
||||
|
||||
});
|
||||
|
||||
|
@ -105,18 +105,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_extension_type listeners for extension_type_vvvvwan function
|
||||
// #jform_extension_type listeners for extension_type_vvvvwal function
|
||||
jQuery('#jform_extension_type').on('keyup',function()
|
||||
{
|
||||
var extension_type_vvvvwan = jQuery("#jform_extension_type").val();
|
||||
vvvvwan(extension_type_vvvvwan);
|
||||
var extension_type_vvvvwal = jQuery("#jform_extension_type").val();
|
||||
vvvvwal(extension_type_vvvvwal);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_extension_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var extension_type_vvvvwan = jQuery("#jform_extension_type").val();
|
||||
vvvvwan(extension_type_vvvvwan);
|
||||
var extension_type_vvvvwal = jQuery("#jform_extension_type").val();
|
||||
vvvvwal(extension_type_vvvvwal);
|
||||
|
||||
});
|
||||
|
||||
|
@ -162,153 +162,153 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvvyl function
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvvyj function
|
||||
jQuery('#jform_add_php_view').on('keyup',function()
|
||||
{
|
||||
var add_php_view_vvvvvyl = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyl(add_php_view_vvvvvyl);
|
||||
var add_php_view_vvvvvyj = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyj(add_php_view_vvvvvyj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_view_vvvvvyl = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyl(add_php_view_vvvvvyl);
|
||||
var add_php_view_vvvvvyj = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyj(add_php_view_vvvvvyj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_jview_display listeners for add_php_jview_display_vvvvvym function
|
||||
// #jform_add_php_jview_display listeners for add_php_jview_display_vvvvvyk function
|
||||
jQuery('#jform_add_php_jview_display').on('keyup',function()
|
||||
{
|
||||
var add_php_jview_display_vvvvvym = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvym(add_php_jview_display_vvvvvym);
|
||||
var add_php_jview_display_vvvvvyk = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyk(add_php_jview_display_vvvvvyk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_jview_display',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_jview_display_vvvvvym = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvym(add_php_jview_display_vvvvvym);
|
||||
var add_php_jview_display_vvvvvyk = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyk(add_php_jview_display_vvvvvyk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_jview listeners for add_php_jview_vvvvvyn function
|
||||
// #jform_add_php_jview listeners for add_php_jview_vvvvvyl function
|
||||
jQuery('#jform_add_php_jview').on('keyup',function()
|
||||
{
|
||||
var add_php_jview_vvvvvyn = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyn(add_php_jview_vvvvvyn);
|
||||
var add_php_jview_vvvvvyl = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyl(add_php_jview_vvvvvyl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_jview',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_jview_vvvvvyn = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyn(add_php_jview_vvvvvyn);
|
||||
var add_php_jview_vvvvvyl = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyl(add_php_jview_vvvvvyl);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvyo function
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvym function
|
||||
jQuery('#jform_add_php_document').on('keyup',function()
|
||||
{
|
||||
var add_php_document_vvvvvyo = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyo(add_php_document_vvvvvyo);
|
||||
var add_php_document_vvvvvym = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvym(add_php_document_vvvvvym);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_document_vvvvvyo = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyo(add_php_document_vvvvvyo);
|
||||
var add_php_document_vvvvvym = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvym(add_php_document_vvvvvym);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_document listeners for add_css_document_vvvvvyp function
|
||||
// #jform_add_css_document listeners for add_css_document_vvvvvyn function
|
||||
jQuery('#jform_add_css_document').on('keyup',function()
|
||||
{
|
||||
var add_css_document_vvvvvyp = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyp(add_css_document_vvvvvyp);
|
||||
var add_css_document_vvvvvyn = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyn(add_css_document_vvvvvyn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_document_vvvvvyp = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyp(add_css_document_vvvvvyp);
|
||||
var add_css_document_vvvvvyn = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyn(add_css_document_vvvvvyn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_file listeners for add_javascript_file_vvvvvyq function
|
||||
// #jform_add_javascript_file listeners for add_javascript_file_vvvvvyo function
|
||||
jQuery('#jform_add_javascript_file').on('keyup',function()
|
||||
{
|
||||
var add_javascript_file_vvvvvyq = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyq(add_javascript_file_vvvvvyq);
|
||||
var add_javascript_file_vvvvvyo = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyo(add_javascript_file_vvvvvyo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_file_vvvvvyq = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyq(add_javascript_file_vvvvvyq);
|
||||
var add_javascript_file_vvvvvyo = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyo(add_javascript_file_vvvvvyo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_js_document listeners for add_js_document_vvvvvyr function
|
||||
// #jform_add_js_document listeners for add_js_document_vvvvvyp function
|
||||
jQuery('#jform_add_js_document').on('keyup',function()
|
||||
{
|
||||
var add_js_document_vvvvvyr = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyr(add_js_document_vvvvvyr);
|
||||
var add_js_document_vvvvvyp = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyp(add_js_document_vvvvvyp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_js_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_js_document_vvvvvyr = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyr(add_js_document_vvvvvyr);
|
||||
var add_js_document_vvvvvyp = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyp(add_js_document_vvvvvyp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvvys function
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvvyq function
|
||||
jQuery('#jform_add_custom_button').on('keyup',function()
|
||||
{
|
||||
var add_custom_button_vvvvvys = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvys(add_custom_button_vvvvvys);
|
||||
var add_custom_button_vvvvvyq = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyq(add_custom_button_vvvvvyq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_button_vvvvvys = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvys(add_custom_button_vvvvvys);
|
||||
var add_custom_button_vvvvvyq = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvyq(add_custom_button_vvvvvyq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css listeners for add_css_vvvvvyt function
|
||||
// #jform_add_css listeners for add_css_vvvvvyr function
|
||||
jQuery('#jform_add_css').on('keyup',function()
|
||||
{
|
||||
var add_css_vvvvvyt = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyt(add_css_vvvvvyt);
|
||||
var add_css_vvvvvyr = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyr(add_css_vvvvvyr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_vvvvvyt = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyt(add_css_vvvvvyt);
|
||||
var add_css_vvvvvyr = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvyr(add_css_vvvvvyr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvyu function
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvys function
|
||||
jQuery('#jform_add_php_ajax').on('keyup',function()
|
||||
{
|
||||
var add_php_ajax_vvvvvyu = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyu(add_php_ajax_vvvvvyu);
|
||||
var add_php_ajax_vvvvvys = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvys(add_php_ajax_vvvvvys);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_ajax',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_ajax_vvvvvyu = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvyu(add_php_ajax_vvvvvyu);
|
||||
var add_php_ajax_vvvvvys = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvys(add_php_ajax_vvvvvys);
|
||||
|
||||
});
|
||||
|
||||
|
@ -114,101 +114,101 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_target listeners for target_vvvvwah function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwah(target_vvvvwah);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwah = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwah(target_vvvvwah);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwai function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwai = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwai(target_vvvvwai);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwai = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwai(target_vvvvwai);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwaj function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwaj = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwaj(target_vvvvwaj);
|
||||
var type_vvvvwaj = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwaj(target_vvvvwaj,type_vvvvwaj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwaj = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwaj(target_vvvvwaj);
|
||||
var type_vvvvwaj = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwaj(target_vvvvwaj,type_vvvvwaj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwaj function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwaj = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwaj = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwaj(target_vvvvwaj,type_vvvvwaj);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwaj = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwaj = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwaj(target_vvvvwaj,type_vvvvwaj);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwak function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwak = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwak = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwak(type_vvvvwak,target_vvvvwak);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwak = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwak = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwak(type_vvvvwak,target_vvvvwak);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwak function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwak = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwak = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwak(target_vvvvwak);
|
||||
vvvvwak(type_vvvvwak,target_vvvvwak);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwak = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwak = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwak(target_vvvvwak);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwal function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwal = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwal = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwal(target_vvvvwal,type_vvvvwal);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwal = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwal = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwal(target_vvvvwal,type_vvvvwal);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwal function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwal = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwal = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwal(target_vvvvwal,type_vvvvwal);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwal = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwal = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwal(target_vvvvwal,type_vvvvwal);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwam function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwam = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwam = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwam(type_vvvvwam,target_vvvvwam);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwam = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwam = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwam(type_vvvvwam,target_vvvvwam);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwam function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwam = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwam = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwam(type_vvvvwam,target_vvvvwam);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwam = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
var target_vvvvwam = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwam(type_vvvvwam,target_vvvvwam);
|
||||
vvvvwak(type_vvvvwak,target_vvvvwak);
|
||||
|
||||
});
|
||||
|
||||
|
@ -157,18 +157,48 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvvzi function
|
||||
// #jform_gettype listeners for gettype_vvvvvzg function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvvzi = jQuery("#jform_gettype").val();
|
||||
vvvvvzi(gettype_vvvvvzi);
|
||||
var gettype_vvvvvzg = jQuery("#jform_gettype").val();
|
||||
vvvvvzg(gettype_vvvvvzg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvvzi = jQuery("#jform_gettype").val();
|
||||
vvvvvzi(gettype_vvvvvzi);
|
||||
var gettype_vvvvvzg = jQuery("#jform_gettype").val();
|
||||
vvvvvzg(gettype_vvvvvzg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_main_source listeners for main_source_vvvvvzh function
|
||||
jQuery('#jform_main_source').on('keyup',function()
|
||||
{
|
||||
var main_source_vvvvvzh = jQuery("#jform_main_source").val();
|
||||
vvvvvzh(main_source_vvvvvzh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var main_source_vvvvvzh = jQuery("#jform_main_source").val();
|
||||
vvvvvzh(main_source_vvvvvzh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_main_source listeners for main_source_vvvvvzi function
|
||||
jQuery('#jform_main_source').on('keyup',function()
|
||||
{
|
||||
var main_source_vvvvvzi = jQuery("#jform_main_source").val();
|
||||
vvvvvzi(main_source_vvvvvzi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var main_source_vvvvvzi = jQuery("#jform_main_source").val();
|
||||
vvvvvzi(main_source_vvvvvzi);
|
||||
|
||||
});
|
||||
|
||||
@ -217,33 +247,52 @@ jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_main_source listeners for main_source_vvvvvzm function
|
||||
jQuery('#jform_main_source').on('keyup',function()
|
||||
// #jform_addcalculation listeners for addcalculation_vvvvvzm function
|
||||
jQuery('#jform_addcalculation').on('keyup',function()
|
||||
{
|
||||
var main_source_vvvvvzm = jQuery("#jform_main_source").val();
|
||||
vvvvvzm(main_source_vvvvvzm);
|
||||
var addcalculation_vvvvvzm = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
vvvvvzm(addcalculation_vvvvvzm);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var main_source_vvvvvzm = jQuery("#jform_main_source").val();
|
||||
vvvvvzm(main_source_vvvvvzm);
|
||||
var addcalculation_vvvvvzm = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
vvvvvzm(addcalculation_vvvvvzm);
|
||||
|
||||
});
|
||||
|
||||
// #jform_main_source listeners for main_source_vvvvvzn function
|
||||
jQuery('#jform_main_source').on('keyup',function()
|
||||
// #jform_addcalculation listeners for addcalculation_vvvvvzn function
|
||||
jQuery('#jform_addcalculation').on('keyup',function()
|
||||
{
|
||||
var main_source_vvvvvzn = jQuery("#jform_main_source").val();
|
||||
vvvvvzn(main_source_vvvvvzn);
|
||||
var addcalculation_vvvvvzn = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzn = jQuery("#jform_gettype").val();
|
||||
vvvvvzn(addcalculation_vvvvvzn,gettype_vvvvvzn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var main_source_vvvvvzn = jQuery("#jform_main_source").val();
|
||||
vvvvvzn(main_source_vvvvvzn);
|
||||
var addcalculation_vvvvvzn = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzn = jQuery("#jform_gettype").val();
|
||||
vvvvvzn(addcalculation_vvvvvzn,gettype_vvvvvzn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvvzn function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var addcalculation_vvvvvzn = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzn = jQuery("#jform_gettype").val();
|
||||
vvvvvzn(addcalculation_vvvvvzn,gettype_vvvvvzn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var addcalculation_vvvvvzn = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzn = jQuery("#jform_gettype").val();
|
||||
vvvvvzn(addcalculation_vvvvvzn,gettype_vvvvvzn);
|
||||
|
||||
});
|
||||
|
||||
@ -251,297 +300,278 @@ jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
jQuery('#jform_addcalculation').on('keyup',function()
|
||||
{
|
||||
var addcalculation_vvvvvzo = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
vvvvvzo(addcalculation_vvvvvzo);
|
||||
var gettype_vvvvvzo = jQuery("#jform_gettype").val();
|
||||
vvvvvzo(addcalculation_vvvvvzo,gettype_vvvvvzo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var addcalculation_vvvvvzo = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
vvvvvzo(addcalculation_vvvvvzo);
|
||||
var gettype_vvvvvzo = jQuery("#jform_gettype").val();
|
||||
vvvvvzo(addcalculation_vvvvvzo,gettype_vvvvvzo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_addcalculation listeners for addcalculation_vvvvvzp function
|
||||
jQuery('#jform_addcalculation').on('keyup',function()
|
||||
{
|
||||
var addcalculation_vvvvvzp = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzp = jQuery("#jform_gettype").val();
|
||||
vvvvvzp(addcalculation_vvvvvzp,gettype_vvvvvzp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var addcalculation_vvvvvzp = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzp = jQuery("#jform_gettype").val();
|
||||
vvvvvzp(addcalculation_vvvvvzp,gettype_vvvvvzp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvvzp function
|
||||
// #jform_gettype listeners for gettype_vvvvvzo function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var addcalculation_vvvvvzp = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzp = jQuery("#jform_gettype").val();
|
||||
vvvvvzp(addcalculation_vvvvvzp,gettype_vvvvvzp);
|
||||
var addcalculation_vvvvvzo = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzo = jQuery("#jform_gettype").val();
|
||||
vvvvvzo(addcalculation_vvvvvzo,gettype_vvvvvzo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var addcalculation_vvvvvzp = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzp = jQuery("#jform_gettype").val();
|
||||
vvvvvzp(addcalculation_vvvvvzp,gettype_vvvvvzp);
|
||||
var addcalculation_vvvvvzo = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzo = jQuery("#jform_gettype").val();
|
||||
vvvvvzo(addcalculation_vvvvvzo,gettype_vvvvvzo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_addcalculation listeners for addcalculation_vvvvvzq function
|
||||
jQuery('#jform_addcalculation').on('keyup',function()
|
||||
{
|
||||
var addcalculation_vvvvvzq = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzq = jQuery("#jform_gettype").val();
|
||||
vvvvvzq(addcalculation_vvvvvzq,gettype_vvvvvzq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_addcalculation',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var addcalculation_vvvvvzq = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzq = jQuery("#jform_gettype").val();
|
||||
vvvvvzq(addcalculation_vvvvvzq,gettype_vvvvvzq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvvzq function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var addcalculation_vvvvvzq = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzq = jQuery("#jform_gettype").val();
|
||||
vvvvvzq(addcalculation_vvvvvzq,gettype_vvvvvzq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var addcalculation_vvvvvzq = jQuery("#jform_addcalculation input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzq = jQuery("#jform_gettype").val();
|
||||
vvvvvzq(addcalculation_vvvvvzq,gettype_vvvvvzq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_main_source listeners for main_source_vvvvvzt function
|
||||
// #jform_main_source listeners for main_source_vvvvvzr function
|
||||
jQuery('#jform_main_source').on('keyup',function()
|
||||
{
|
||||
var main_source_vvvvvzt = jQuery("#jform_main_source").val();
|
||||
vvvvvzt(main_source_vvvvvzt);
|
||||
var main_source_vvvvvzr = jQuery("#jform_main_source").val();
|
||||
vvvvvzr(main_source_vvvvvzr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var main_source_vvvvvzt = jQuery("#jform_main_source").val();
|
||||
vvvvvzt(main_source_vvvvvzt);
|
||||
var main_source_vvvvvzr = jQuery("#jform_main_source").val();
|
||||
vvvvvzr(main_source_vvvvvzr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_main_source listeners for main_source_vvvvvzu function
|
||||
// #jform_main_source listeners for main_source_vvvvvzs function
|
||||
jQuery('#jform_main_source').on('keyup',function()
|
||||
{
|
||||
var main_source_vvvvvzu = jQuery("#jform_main_source").val();
|
||||
vvvvvzu(main_source_vvvvvzu);
|
||||
var main_source_vvvvvzs = jQuery("#jform_main_source").val();
|
||||
vvvvvzs(main_source_vvvvvzs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_main_source',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var main_source_vvvvvzu = jQuery("#jform_main_source").val();
|
||||
vvvvvzu(main_source_vvvvvzu);
|
||||
var main_source_vvvvvzs = jQuery("#jform_main_source").val();
|
||||
vvvvvzs(main_source_vvvvvzs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_getitem listeners for add_php_before_getitem_vvvvvzv function
|
||||
// #jform_add_php_before_getitem listeners for add_php_before_getitem_vvvvvzt function
|
||||
jQuery('#jform_add_php_before_getitem').on('keyup',function()
|
||||
{
|
||||
var add_php_before_getitem_vvvvvzv = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzv = jQuery("#jform_gettype").val();
|
||||
vvvvvzv(add_php_before_getitem_vvvvvzv,gettype_vvvvvzv);
|
||||
var add_php_before_getitem_vvvvvzt = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzt = jQuery("#jform_gettype").val();
|
||||
vvvvvzt(add_php_before_getitem_vvvvvzt,gettype_vvvvvzt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_getitem',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_getitem_vvvvvzv = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzv = jQuery("#jform_gettype").val();
|
||||
vvvvvzv(add_php_before_getitem_vvvvvzv,gettype_vvvvvzv);
|
||||
var add_php_before_getitem_vvvvvzt = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzt = jQuery("#jform_gettype").val();
|
||||
vvvvvzt(add_php_before_getitem_vvvvvzt,gettype_vvvvvzt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvvzv function
|
||||
// #jform_gettype listeners for gettype_vvvvvzt function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_before_getitem_vvvvvzv = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzv = jQuery("#jform_gettype").val();
|
||||
vvvvvzv(add_php_before_getitem_vvvvvzv,gettype_vvvvvzv);
|
||||
var add_php_before_getitem_vvvvvzt = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzt = jQuery("#jform_gettype").val();
|
||||
vvvvvzt(add_php_before_getitem_vvvvvzt,gettype_vvvvvzt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_getitem_vvvvvzv = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzv = jQuery("#jform_gettype").val();
|
||||
vvvvvzv(add_php_before_getitem_vvvvvzv,gettype_vvvvvzv);
|
||||
var add_php_before_getitem_vvvvvzt = jQuery("#jform_add_php_before_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzt = jQuery("#jform_gettype").val();
|
||||
vvvvvzt(add_php_before_getitem_vvvvvzt,gettype_vvvvvzt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_getitem listeners for add_php_after_getitem_vvvvvzw function
|
||||
// #jform_add_php_after_getitem listeners for add_php_after_getitem_vvvvvzu function
|
||||
jQuery('#jform_add_php_after_getitem').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitem_vvvvvzw = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
|
||||
vvvvvzw(add_php_after_getitem_vvvvvzw,gettype_vvvvvzw);
|
||||
var add_php_after_getitem_vvvvvzu = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzu = jQuery("#jform_gettype").val();
|
||||
vvvvvzu(add_php_after_getitem_vvvvvzu,gettype_vvvvvzu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_getitem',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitem_vvvvvzw = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
|
||||
vvvvvzw(add_php_after_getitem_vvvvvzw,gettype_vvvvvzw);
|
||||
var add_php_after_getitem_vvvvvzu = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzu = jQuery("#jform_gettype").val();
|
||||
vvvvvzu(add_php_after_getitem_vvvvvzu,gettype_vvvvvzu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvvzu function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitem_vvvvvzu = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzu = jQuery("#jform_gettype").val();
|
||||
vvvvvzu(add_php_after_getitem_vvvvvzu,gettype_vvvvvzu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitem_vvvvvzu = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzu = jQuery("#jform_gettype").val();
|
||||
vvvvvzu(add_php_after_getitem_vvvvvzu,gettype_vvvvvzu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvvzw function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitem_vvvvvzw = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
|
||||
vvvvvzw(add_php_after_getitem_vvvvvzw,gettype_vvvvvzw);
|
||||
vvvvvzw(gettype_vvvvvzw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitem_vvvvvzw = jQuery("#jform_add_php_after_getitem input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzw = jQuery("#jform_gettype").val();
|
||||
vvvvvzw(add_php_after_getitem_vvvvvzw,gettype_vvvvvzw);
|
||||
vvvvvzw(gettype_vvvvvzw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvzx function
|
||||
jQuery('#jform_add_php_getlistquery').on('keyup',function()
|
||||
{
|
||||
var add_php_getlistquery_vvvvvzx = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzx = jQuery("#jform_gettype").val();
|
||||
vvvvvzx(add_php_getlistquery_vvvvvzx,gettype_vvvvvzx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getlistquery_vvvvvzx = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzx = jQuery("#jform_gettype").val();
|
||||
vvvvvzx(add_php_getlistquery_vvvvvzx,gettype_vvvvvzx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvvzx function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_getlistquery_vvvvvzx = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzx = jQuery("#jform_gettype").val();
|
||||
vvvvvzx(add_php_getlistquery_vvvvvzx,gettype_vvvvvzx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getlistquery_vvvvvzx = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzx = jQuery("#jform_gettype").val();
|
||||
vvvvvzx(add_php_getlistquery_vvvvvzx,gettype_vvvvvzx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_getitems listeners for add_php_before_getitems_vvvvvzy function
|
||||
jQuery('#jform_add_php_before_getitems').on('keyup',function()
|
||||
{
|
||||
var add_php_before_getitems_vvvvvzy = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzy = jQuery("#jform_gettype").val();
|
||||
vvvvvzy(add_php_before_getitems_vvvvvzy,gettype_vvvvvzy);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_getitems',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_getitems_vvvvvzy = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzy = jQuery("#jform_gettype").val();
|
||||
vvvvvzy(add_php_before_getitems_vvvvvzy,gettype_vvvvvzy);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvvzy function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_before_getitems_vvvvvzy = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzy = jQuery("#jform_gettype").val();
|
||||
vvvvvzy(gettype_vvvvvzy);
|
||||
vvvvvzy(add_php_before_getitems_vvvvvzy,gettype_vvvvvzy);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_getitems_vvvvvzy = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzy = jQuery("#jform_gettype").val();
|
||||
vvvvvzy(gettype_vvvvvzy);
|
||||
vvvvvzy(add_php_before_getitems_vvvvvzy,gettype_vvvvvzy);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_getlistquery listeners for add_php_getlistquery_vvvvvzz function
|
||||
jQuery('#jform_add_php_getlistquery').on('keyup',function()
|
||||
// #jform_add_php_after_getitems listeners for add_php_after_getitems_vvvvvzz function
|
||||
jQuery('#jform_add_php_after_getitems').on('keyup',function()
|
||||
{
|
||||
var add_php_getlistquery_vvvvvzz = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var add_php_after_getitems_vvvvvzz = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzz = jQuery("#jform_gettype").val();
|
||||
vvvvvzz(add_php_getlistquery_vvvvvzz,gettype_vvvvvzz);
|
||||
vvvvvzz(add_php_after_getitems_vvvvvzz,gettype_vvvvvzz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_getlistquery',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_getitems',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getlistquery_vvvvvzz = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var add_php_after_getitems_vvvvvzz = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzz = jQuery("#jform_gettype").val();
|
||||
vvvvvzz(add_php_getlistquery_vvvvvzz,gettype_vvvvvzz);
|
||||
vvvvvzz(add_php_after_getitems_vvvvvzz,gettype_vvvvvzz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvvzz function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_getlistquery_vvvvvzz = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var add_php_after_getitems_vvvvvzz = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzz = jQuery("#jform_gettype").val();
|
||||
vvvvvzz(add_php_getlistquery_vvvvvzz,gettype_vvvvvzz);
|
||||
vvvvvzz(add_php_after_getitems_vvvvvzz,gettype_vvvvvzz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_getlistquery_vvvvvzz = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val();
|
||||
var add_php_after_getitems_vvvvvzz = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvvzz = jQuery("#jform_gettype").val();
|
||||
vvvvvzz(add_php_getlistquery_vvvvvzz,gettype_vvvvvzz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_before_getitems listeners for add_php_before_getitems_vvvvwaa function
|
||||
jQuery('#jform_add_php_before_getitems').on('keyup',function()
|
||||
{
|
||||
var add_php_before_getitems_vvvvwaa = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwaa = jQuery("#jform_gettype").val();
|
||||
vvvvwaa(add_php_before_getitems_vvvvwaa,gettype_vvvvwaa);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_before_getitems',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_getitems_vvvvwaa = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwaa = jQuery("#jform_gettype").val();
|
||||
vvvvwaa(add_php_before_getitems_vvvvwaa,gettype_vvvvwaa);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwaa function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_before_getitems_vvvvwaa = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwaa = jQuery("#jform_gettype").val();
|
||||
vvvvwaa(add_php_before_getitems_vvvvwaa,gettype_vvvvwaa);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_before_getitems_vvvvwaa = jQuery("#jform_add_php_before_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwaa = jQuery("#jform_gettype").val();
|
||||
vvvvwaa(add_php_before_getitems_vvvvwaa,gettype_vvvvwaa);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_after_getitems listeners for add_php_after_getitems_vvvvwab function
|
||||
jQuery('#jform_add_php_after_getitems').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitems_vvvvwab = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwab = jQuery("#jform_gettype").val();
|
||||
vvvvwab(add_php_after_getitems_vvvvwab,gettype_vvvvwab);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_after_getitems',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitems_vvvvwab = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwab = jQuery("#jform_gettype").val();
|
||||
vvvvwab(add_php_after_getitems_vvvvwab,gettype_vvvvwab);
|
||||
vvvvvzz(add_php_after_getitems_vvvvvzz,gettype_vvvvvzz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwab function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var add_php_after_getitems_vvvvwab = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwab = jQuery("#jform_gettype").val();
|
||||
vvvvwab(add_php_after_getitems_vvvvwab,gettype_vvvvwab);
|
||||
vvvvwab(gettype_vvvvwab);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_after_getitems_vvvvwab = jQuery("#jform_add_php_after_getitems input[type='radio']:checked").val();
|
||||
var gettype_vvvvwab = jQuery("#jform_gettype").val();
|
||||
vvvvwab(add_php_after_getitems_vvvvwab,gettype_vvvvwab);
|
||||
vvvvwab(gettype_vvvvwab);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwac function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwac = jQuery("#jform_gettype").val();
|
||||
vvvvwac(gettype_vvvvwac);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwac = jQuery("#jform_gettype").val();
|
||||
vvvvwac(gettype_vvvvwac);
|
||||
|
||||
});
|
||||
|
||||
@ -564,29 +594,33 @@ jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwae = jQuery("#jform_gettype").val();
|
||||
vvvvwae(gettype_vvvvwae);
|
||||
var add_php_router_parse_vvvvwae = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwae(gettype_vvvvwae,add_php_router_parse_vvvvwae);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwae = jQuery("#jform_gettype").val();
|
||||
vvvvwae(gettype_vvvvwae);
|
||||
var add_php_router_parse_vvvvwae = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwae(gettype_vvvvwae,add_php_router_parse_vvvvwae);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwaf function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
// #jform_add_php_router_parse listeners for add_php_router_parse_vvvvwae function
|
||||
jQuery('#jform_add_php_router_parse').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwaf = jQuery("#jform_gettype").val();
|
||||
vvvvwaf(gettype_vvvvwaf);
|
||||
var gettype_vvvvwae = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwae = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwae(gettype_vvvvwae,add_php_router_parse_vvvvwae);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_router_parse',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwaf = jQuery("#jform_gettype").val();
|
||||
vvvvwaf(gettype_vvvvwaf);
|
||||
var gettype_vvvvwae = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwae = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwae(gettype_vvvvwae,add_php_router_parse_vvvvwae);
|
||||
|
||||
});
|
||||
|
||||
@ -594,48 +628,14 @@ jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwag = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwag = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwag(gettype_vvvvwag,add_php_router_parse_vvvvwag);
|
||||
vvvvwag(gettype_vvvvwag);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwag = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwag = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwag(gettype_vvvvwag,add_php_router_parse_vvvvwag);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_router_parse listeners for add_php_router_parse_vvvvwag function
|
||||
jQuery('#jform_add_php_router_parse').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwag = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwag = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwag(gettype_vvvvwag,add_php_router_parse_vvvvwag);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_router_parse',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwag = jQuery("#jform_gettype").val();
|
||||
var add_php_router_parse_vvvvwag = jQuery("#jform_add_php_router_parse input[type='radio']:checked").val();
|
||||
vvvvwag(gettype_vvvvwag,add_php_router_parse_vvvvwag);
|
||||
|
||||
});
|
||||
|
||||
// #jform_gettype listeners for gettype_vvvvwai function
|
||||
jQuery('#jform_gettype').on('keyup',function()
|
||||
{
|
||||
var gettype_vvvvwai = jQuery("#jform_gettype").val();
|
||||
vvvvwai(gettype_vvvvwai);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_gettype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var gettype_vvvvwai = jQuery("#jform_gettype").val();
|
||||
vvvvwai(gettype_vvvvwai);
|
||||
vvvvwag(gettype_vvvvwag);
|
||||
|
||||
});
|
||||
|
||||
|
@ -145,63 +145,63 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_datalenght listeners for datalenght_vvvvwbh function
|
||||
// #jform_datalenght listeners for datalenght_vvvvwbf function
|
||||
jQuery('#jform_datalenght').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwbh = jQuery("#jform_datalenght").val();
|
||||
vvvvwbh(datalenght_vvvvwbh);
|
||||
var datalenght_vvvvwbf = jQuery("#jform_datalenght").val();
|
||||
vvvvwbf(datalenght_vvvvwbf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datalenght',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwbh = jQuery("#jform_datalenght").val();
|
||||
vvvvwbh(datalenght_vvvvwbh);
|
||||
var datalenght_vvvvwbf = jQuery("#jform_datalenght").val();
|
||||
vvvvwbf(datalenght_vvvvwbf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datadefault listeners for datadefault_vvvvwbi function
|
||||
// #jform_datadefault listeners for datadefault_vvvvwbg function
|
||||
jQuery('#jform_datadefault').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwbi = jQuery("#jform_datadefault").val();
|
||||
vvvvwbi(datadefault_vvvvwbi);
|
||||
var datadefault_vvvvwbg = jQuery("#jform_datadefault").val();
|
||||
vvvvwbg(datadefault_vvvvwbg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datadefault',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwbi = jQuery("#jform_datadefault").val();
|
||||
vvvvwbi(datadefault_vvvvwbi);
|
||||
var datadefault_vvvvwbg = jQuery("#jform_datadefault").val();
|
||||
vvvvwbg(datadefault_vvvvwbg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbj function
|
||||
// #jform_datatype listeners for datatype_vvvvwbh function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
vvvvwbj(datatype_vvvvwbj);
|
||||
var datatype_vvvvwbh = jQuery("#jform_datatype").val();
|
||||
vvvvwbh(datatype_vvvvwbh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbj = jQuery("#jform_datatype").val();
|
||||
vvvvwbj(datatype_vvvvwbj);
|
||||
var datatype_vvvvwbh = jQuery("#jform_datatype").val();
|
||||
vvvvwbh(datatype_vvvvwbh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbk function
|
||||
// #jform_datatype listeners for datatype_vvvvwbi function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(datatype_vvvvwbk);
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
vvvvwbi(datatype_vvvvwbi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwbk = jQuery("#jform_datatype").val();
|
||||
vvvvwbk(datatype_vvvvwbk);
|
||||
var datatype_vvvvwbi = jQuery("#jform_datatype").val();
|
||||
vvvvwbi(datatype_vvvvwbi);
|
||||
|
||||
});
|
||||
|
||||
@ -209,108 +209,74 @@ jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwbl = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbl = jQuery("#jform_datatype").val();
|
||||
vvvvwbl(store_vvvvwbl,datatype_vvvvwbl);
|
||||
vvvvwbl(store_vvvvwbl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwbl = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbl = jQuery("#jform_datatype").val();
|
||||
vvvvwbl(store_vvvvwbl,datatype_vvvvwbl);
|
||||
vvvvwbl(store_vvvvwbl);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbl function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwbl = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbl = jQuery("#jform_datatype").val();
|
||||
vvvvwbl(store_vvvvwbl,datatype_vvvvwbl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwbl = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwbl = jQuery("#jform_datatype").val();
|
||||
vvvvwbl(store_vvvvwbl,datatype_vvvvwbl);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwbn function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwbn = jQuery("#jform_store").val();
|
||||
vvvvwbn(store_vvvvwbn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwbn = jQuery("#jform_store").val();
|
||||
vvvvwbn(store_vvvvwbn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvwbo function
|
||||
// #jform_add_css_view listeners for add_css_view_vvvvwbm function
|
||||
jQuery('#jform_add_css_view').on('keyup',function()
|
||||
{
|
||||
var add_css_view_vvvvwbo = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwbo(add_css_view_vvvvwbo);
|
||||
var add_css_view_vvvvwbm = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwbm(add_css_view_vvvvwbm);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_view_vvvvwbo = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwbo(add_css_view_vvvvwbo);
|
||||
var add_css_view_vvvvwbm = jQuery("#jform_add_css_view input[type='radio']:checked").val();
|
||||
vvvvwbm(add_css_view_vvvvwbm);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvwbp function
|
||||
// #jform_add_css_views listeners for add_css_views_vvvvwbn function
|
||||
jQuery('#jform_add_css_views').on('keyup',function()
|
||||
{
|
||||
var add_css_views_vvvvwbp = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwbp(add_css_views_vvvvwbp);
|
||||
var add_css_views_vvvvwbn = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwbn(add_css_views_vvvvwbn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_views',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_views_vvvvwbp = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwbp(add_css_views_vvvvwbp);
|
||||
var add_css_views_vvvvwbn = jQuery("#jform_add_css_views input[type='radio']:checked").val();
|
||||
vvvvwbn(add_css_views_vvvvwbn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvwbq function
|
||||
// #jform_add_javascript_view_footer listeners for add_javascript_view_footer_vvvvwbo function
|
||||
jQuery('#jform_add_javascript_view_footer').on('keyup',function()
|
||||
{
|
||||
var add_javascript_view_footer_vvvvwbq = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwbq(add_javascript_view_footer_vvvvwbq);
|
||||
var add_javascript_view_footer_vvvvwbo = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwbo(add_javascript_view_footer_vvvvwbo);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_view_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_view_footer_vvvvwbq = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwbq(add_javascript_view_footer_vvvvwbq);
|
||||
var add_javascript_view_footer_vvvvwbo = jQuery("#jform_add_javascript_view_footer input[type='radio']:checked").val();
|
||||
vvvvwbo(add_javascript_view_footer_vvvvwbo);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvwbr function
|
||||
// #jform_add_javascript_views_footer listeners for add_javascript_views_footer_vvvvwbp function
|
||||
jQuery('#jform_add_javascript_views_footer').on('keyup',function()
|
||||
{
|
||||
var add_javascript_views_footer_vvvvwbr = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwbr(add_javascript_views_footer_vvvvwbr);
|
||||
var add_javascript_views_footer_vvvvwbp = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwbp(add_javascript_views_footer_vvvvwbp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_views_footer',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_views_footer_vvvvwbr = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwbr(add_javascript_views_footer_vvvvwbr);
|
||||
var add_javascript_views_footer_vvvvwbp = jQuery("#jform_add_javascript_views_footer input[type='radio']:checked").val();
|
||||
vvvvwbp(add_javascript_views_footer_vvvvwbp);
|
||||
|
||||
});
|
||||
|
||||
|
@ -134,71 +134,105 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_datalenght listeners for datalenght_vvvvwbs function
|
||||
// #jform_datalenght listeners for datalenght_vvvvwbq function
|
||||
jQuery('#jform_datalenght').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwbs = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwbs = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbs(datalenght_vvvvwbs,has_defaults_vvvvwbs);
|
||||
var datalenght_vvvvwbq = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwbq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbq(datalenght_vvvvwbq,has_defaults_vvvvwbq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datalenght',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwbs = jQuery("#jform_datalenght").val();
|
||||
var datalenght_vvvvwbq = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwbq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbq(datalenght_vvvvwbq,has_defaults_vvvvwbq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbq function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwbq = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwbq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbq(datalenght_vvvvwbq,has_defaults_vvvvwbq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwbq = jQuery("#jform_datalenght").val();
|
||||
var has_defaults_vvvvwbq = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbq(datalenght_vvvvwbq,has_defaults_vvvvwbq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datadefault listeners for datadefault_vvvvwbs function
|
||||
jQuery('#jform_datadefault').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwbs = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbs = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbs(datalenght_vvvvwbs,has_defaults_vvvvwbs);
|
||||
vvvvwbs(datadefault_vvvvwbs,has_defaults_vvvvwbs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datadefault',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwbs = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbs = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbs(datadefault_vvvvwbs,has_defaults_vvvvwbs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbs function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datalenght_vvvvwbs = jQuery("#jform_datalenght").val();
|
||||
var datadefault_vvvvwbs = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbs = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbs(datalenght_vvvvwbs,has_defaults_vvvvwbs);
|
||||
vvvvwbs(datadefault_vvvvwbs,has_defaults_vvvvwbs);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datalenght_vvvvwbs = jQuery("#jform_datalenght").val();
|
||||
var datadefault_vvvvwbs = jQuery("#jform_datadefault").val();
|
||||
var has_defaults_vvvvwbs = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbs(datalenght_vvvvwbs,has_defaults_vvvvwbs);
|
||||
vvvvwbs(datadefault_vvvvwbs,has_defaults_vvvvwbs);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datadefault listeners for datadefault_vvvvwbu function
|
||||
jQuery('#jform_datadefault').on('keyup',function()
|
||||
// #jform_datatype listeners for datatype_vvvvwbu function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwbu = jQuery("#jform_datadefault").val();
|
||||
var datatype_vvvvwbu = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbu = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbu(datadefault_vvvvwbu,has_defaults_vvvvwbu);
|
||||
vvvvwbu(datatype_vvvvwbu,has_defaults_vvvvwbu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datadefault',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwbu = jQuery("#jform_datadefault").val();
|
||||
var datatype_vvvvwbu = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbu = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbu(datadefault_vvvvwbu,has_defaults_vvvvwbu);
|
||||
vvvvwbu(datatype_vvvvwbu,has_defaults_vvvvwbu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbu function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datadefault_vvvvwbu = jQuery("#jform_datadefault").val();
|
||||
var datatype_vvvvwbu = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbu = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbu(datadefault_vvvvwbu,has_defaults_vvvvwbu);
|
||||
vvvvwbu(datatype_vvvvwbu,has_defaults_vvvvwbu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datadefault_vvvvwbu = jQuery("#jform_datadefault").val();
|
||||
var datatype_vvvvwbu = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwbu = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwbu(datadefault_vvvvwbu,has_defaults_vvvvwbu);
|
||||
vvvvwbu(datatype_vvvvwbu,has_defaults_vvvvwbu);
|
||||
|
||||
});
|
||||
|
||||
@ -236,6 +270,40 @@ jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbx function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbx = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbx = jQuery("#jform_datatype").val();
|
||||
vvvvwbx(has_defaults_vvvvwbx,datatype_vvvvwbx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbx = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbx = jQuery("#jform_datatype").val();
|
||||
vvvvwbx(has_defaults_vvvvwbx,datatype_vvvvwbx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbx function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbx = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbx = jQuery("#jform_datatype").val();
|
||||
vvvvwbx(has_defaults_vvvvwbx,datatype_vvvvwbx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbx = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbx = jQuery("#jform_datatype").val();
|
||||
vvvvwbx(has_defaults_vvvvwbx,datatype_vvvvwbx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwby function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
@ -270,257 +338,189 @@ jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwbz function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
// #jform_store listeners for store_vvvvwca function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbz = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbz = jQuery("#jform_datatype").val();
|
||||
vvvvwbz(has_defaults_vvvvwbz,datatype_vvvvwbz);
|
||||
var store_vvvvwca = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwca = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwca = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwca(store_vvvvwca,datatype_vvvvwca,has_defaults_vvvvwca);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbz = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbz = jQuery("#jform_datatype").val();
|
||||
vvvvwbz(has_defaults_vvvvwbz,datatype_vvvvwbz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwbz function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwbz = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbz = jQuery("#jform_datatype").val();
|
||||
vvvvwbz(has_defaults_vvvvwbz,datatype_vvvvwbz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwbz = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var datatype_vvvvwbz = jQuery("#jform_datatype").val();
|
||||
vvvvwbz(has_defaults_vvvvwbz,datatype_vvvvwbz);
|
||||
var store_vvvvwca = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwca = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwca = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwca(store_vvvvwca,datatype_vvvvwca,has_defaults_vvvvwca);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwca function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwca = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwca = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwca = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwca(datatype_vvvvwca,has_defaults_vvvvwca);
|
||||
vvvvwca(store_vvvvwca,datatype_vvvvwca,has_defaults_vvvvwca);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwca = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwca = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwca = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwca(datatype_vvvvwca,has_defaults_vvvvwca);
|
||||
vvvvwca(store_vvvvwca,datatype_vvvvwca,has_defaults_vvvvwca);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwca function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwca = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwca = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwca = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwca(datatype_vvvvwca,has_defaults_vvvvwca);
|
||||
vvvvwca(store_vvvvwca,datatype_vvvvwca,has_defaults_vvvvwca);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwca = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwca = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwca = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwca(datatype_vvvvwca,has_defaults_vvvvwca);
|
||||
vvvvwca(store_vvvvwca,datatype_vvvvwca,has_defaults_vvvvwca);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwcc function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwcc = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwcc = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcc(store_vvvvwcc,datatype_vvvvwcc,has_defaults_vvvvwcc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwcc = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwcc = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcc(store_vvvvwcc,datatype_vvvvwcc,has_defaults_vvvvwcc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwcc function
|
||||
// #jform_datatype listeners for datatype_vvvvwcb function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var store_vvvvwcc = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwcc = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcc(store_vvvvwcc,datatype_vvvvwcc,has_defaults_vvvvwcc);
|
||||
var datatype_vvvvwcb = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcb = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcb = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcb(datatype_vvvvwcb,store_vvvvwcb,has_defaults_vvvvwcb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var store_vvvvwcc = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwcc = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcc(store_vvvvwcc,datatype_vvvvwcc,has_defaults_vvvvwcc);
|
||||
var datatype_vvvvwcb = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcb = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcb = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcb(datatype_vvvvwcb,store_vvvvwcb,has_defaults_vvvvwcb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwcb function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwcb = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcb = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcb = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcb(datatype_vvvvwcb,store_vvvvwcb,has_defaults_vvvvwcb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwcb = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcb = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcb = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcb(datatype_vvvvwcb,store_vvvvwcb,has_defaults_vvvvwcb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwcb function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwcb = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcb = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcb = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcb(datatype_vvvvwcb,store_vvvvwcb,has_defaults_vvvvwcb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwcb = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcb = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcb = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcb(datatype_vvvvwcb,store_vvvvwcb,has_defaults_vvvvwcb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwcc function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwcc = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwcc = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcc(store_vvvvwcc,datatype_vvvvwcc,has_defaults_vvvvwcc);
|
||||
vvvvwcc(has_defaults_vvvvwcc,store_vvvvwcc,datatype_vvvvwcc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwcc = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwcc = jQuery("#jform_datatype").val();
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcc(store_vvvvwcc,datatype_vvvvwcc,has_defaults_vvvvwcc);
|
||||
vvvvwcc(has_defaults_vvvvwcc,store_vvvvwcc,datatype_vvvvwcc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwcd function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwcd = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcd = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcd = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcd(datatype_vvvvwcd,store_vvvvwcd,has_defaults_vvvvwcd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwcd = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcd = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcd = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcd(datatype_vvvvwcd,store_vvvvwcd,has_defaults_vvvvwcd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwcd function
|
||||
// #jform_store listeners for store_vvvvwcc function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwcd = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcd = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcd = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcd(datatype_vvvvwcd,store_vvvvwcd,has_defaults_vvvvwcd);
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwcc = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwcc = jQuery("#jform_datatype").val();
|
||||
vvvvwcc(has_defaults_vvvvwcc,store_vvvvwcc,datatype_vvvvwcc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwcd = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcd = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcd = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcd(datatype_vvvvwcd,store_vvvvwcd,has_defaults_vvvvwcd);
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwcc = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwcc = jQuery("#jform_datatype").val();
|
||||
vvvvwcc(has_defaults_vvvvwcc,store_vvvvwcc,datatype_vvvvwcc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwcc function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwcc = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwcc = jQuery("#jform_datatype").val();
|
||||
vvvvwcc(has_defaults_vvvvwcc,store_vvvvwcc,datatype_vvvvwcc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwcc = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwcc = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwcc = jQuery("#jform_datatype").val();
|
||||
vvvvwcc(has_defaults_vvvvwcc,store_vvvvwcc,datatype_vvvvwcc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwcd function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var datatype_vvvvwcd = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcd = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcd = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcd(datatype_vvvvwcd,store_vvvvwcd,has_defaults_vvvvwcd);
|
||||
vvvvwcd(has_defaults_vvvvwcd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var datatype_vvvvwcd = jQuery("#jform_datatype").val();
|
||||
var store_vvvvwcd = jQuery("#jform_store").val();
|
||||
var has_defaults_vvvvwcd = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcd(datatype_vvvvwcd,store_vvvvwcd,has_defaults_vvvvwcd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwce function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwce = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwce = jQuery("#jform_datatype").val();
|
||||
vvvvwce(has_defaults_vvvvwce,store_vvvvwce,datatype_vvvvwce);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwce = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwce = jQuery("#jform_datatype").val();
|
||||
vvvvwce(has_defaults_vvvvwce,store_vvvvwce,datatype_vvvvwce);
|
||||
|
||||
});
|
||||
|
||||
// #jform_store listeners for store_vvvvwce function
|
||||
jQuery('#jform_store').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwce = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwce = jQuery("#jform_datatype").val();
|
||||
vvvvwce(has_defaults_vvvvwce,store_vvvvwce,datatype_vvvvwce);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_store',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwce = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwce = jQuery("#jform_datatype").val();
|
||||
vvvvwce(has_defaults_vvvvwce,store_vvvvwce,datatype_vvvvwce);
|
||||
|
||||
});
|
||||
|
||||
// #jform_datatype listeners for datatype_vvvvwce function
|
||||
jQuery('#jform_datatype').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwce = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwce = jQuery("#jform_datatype").val();
|
||||
vvvvwce(has_defaults_vvvvwce,store_vvvvwce,datatype_vvvvwce);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_datatype',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwce = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
var store_vvvvwce = jQuery("#jform_store").val();
|
||||
var datatype_vvvvwce = jQuery("#jform_datatype").val();
|
||||
vvvvwce(has_defaults_vvvvwce,store_vvvvwce,datatype_vvvvwce);
|
||||
|
||||
});
|
||||
|
||||
// #jform_has_defaults listeners for has_defaults_vvvvwcf function
|
||||
jQuery('#jform_has_defaults').on('keyup',function()
|
||||
{
|
||||
var has_defaults_vvvvwcf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcf(has_defaults_vvvvwcf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_has_defaults',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var has_defaults_vvvvwcf = jQuery("#jform_has_defaults input[type='radio']:checked").val();
|
||||
vvvvwcf(has_defaults_vvvvwcf);
|
||||
vvvvwcd(has_defaults_vvvvwcd);
|
||||
|
||||
});
|
||||
|
||||
|
@ -71,7 +71,7 @@ class ComponentbuilderViewFieldtype extends HtmlView
|
||||
}
|
||||
|
||||
// Get Linked view data
|
||||
$this->vxtfields = $this->get('Vxtfields');
|
||||
$this->vxsfields = $this->get('Vxsfields');
|
||||
|
||||
// Set the toolbar
|
||||
$this->addToolBar();
|
||||
|
@ -95,33 +95,63 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_location listeners for location_vvvvwcq function
|
||||
// #jform_location listeners for location_vvvvwco function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
var location_vvvvwcq = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcq(location_vvvvwcq);
|
||||
var location_vvvvwco = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwco(location_vvvvwco);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var location_vvvvwcq = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcq(location_vvvvwcq);
|
||||
var location_vvvvwco = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwco(location_vvvvwco);
|
||||
|
||||
});
|
||||
|
||||
// #jform_location listeners for location_vvvvwcr function
|
||||
// #jform_location listeners for location_vvvvwcp function
|
||||
jQuery('#jform_location').on('keyup',function()
|
||||
{
|
||||
var location_vvvvwcr = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcr(location_vvvvwcr);
|
||||
var location_vvvvwcp = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcp(location_vvvvwcp);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_location',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var location_vvvvwcr = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcr(location_vvvvwcr);
|
||||
var location_vvvvwcp = jQuery("#jform_location input[type='radio']:checked").val();
|
||||
vvvvwcp(location_vvvvwcp);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwcq function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwcq = jQuery("#jform_type").val();
|
||||
vvvvwcq(type_vvvvwcq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwcq = jQuery("#jform_type").val();
|
||||
vvvvwcq(type_vvvvwcq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwcr function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwcr = jQuery("#jform_type").val();
|
||||
vvvvwcr(type_vvvvwcr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwcr = jQuery("#jform_type").val();
|
||||
vvvvwcr(type_vvvvwcr);
|
||||
|
||||
});
|
||||
|
||||
@ -140,48 +170,18 @@ jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwct function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwct = jQuery("#jform_type").val();
|
||||
vvvvwct(type_vvvvwct);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwct = jQuery("#jform_type").val();
|
||||
vvvvwct(type_vvvvwct);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwcu function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var type_vvvvwcu = jQuery("#jform_type").val();
|
||||
vvvvwcu(type_vvvvwcu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var type_vvvvwcu = jQuery("#jform_type").val();
|
||||
vvvvwcu(type_vvvvwcu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwcv function
|
||||
// #jform_target listeners for target_vvvvwct function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwcv = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcv(target_vvvvwcv);
|
||||
var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwct(target_vvvvwct);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwcv = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwcv(target_vvvvwcv);
|
||||
var target_vvvvwct = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwct(target_vvvvwct);
|
||||
|
||||
});
|
||||
|
||||
|
@ -238,33 +238,71 @@ jQuery('#adminForm').on('change', '#jform_emptycontributors',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_license listeners for add_license_vvvvvvw function
|
||||
jQuery('#jform_add_license').on('keyup',function()
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvvw function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var add_license_vvvvvvw = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvvw(add_license_vvvvvvw);
|
||||
var update_server_target_vvvvvvw = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvvw = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvvw(update_server_target_vvvvvvw,add_update_server_vvvvvvw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_license',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_license_vvvvvvw = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvvw(add_license_vvvvvvw);
|
||||
var update_server_target_vvvvvvw = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvvw = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvvw(update_server_target_vvvvvvw,add_update_server_vvvvvvw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_license listeners for add_license_vvvvvvx function
|
||||
jQuery('#jform_add_license').on('keyup',function()
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvvw function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var add_license_vvvvvvx = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvvx(add_license_vvvvvvx);
|
||||
var update_server_target_vvvvvvw = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvvw = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvvw(update_server_target_vvvvvvw,add_update_server_vvvvvvw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_license',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_license_vvvvvvx = jQuery("#jform_add_license input[type='radio']:checked").val();
|
||||
vvvvvvx(add_license_vvvvvvx);
|
||||
var update_server_target_vvvvvvw = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvvw = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvvw(update_server_target_vvvvvvw,add_update_server_vvvvvvw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvvx function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvvx = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvvx = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvvx(add_update_server_vvvvvvx,update_server_target_vvvvvvx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvvx = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvvx = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvvx(add_update_server_vvvvvvx,update_server_target_vvvvvvx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvvx function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvvx = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvvx = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvvx(add_update_server_vvvvvvx,update_server_target_vvvvvvx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvvx = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvvx = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvvx(add_update_server_vvvvvvx,update_server_target_vvvvvvx);
|
||||
|
||||
});
|
||||
|
||||
@ -302,40 +340,6 @@ jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvvz function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvvz = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvvz = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvvz(add_update_server_vvvvvvz,update_server_target_vvvvvvz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvvz = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvvz = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvvz(add_update_server_vvvvvvz,update_server_target_vvvvvvz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvvz function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvvz = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvvz = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvvz(add_update_server_vvvvvvz,update_server_target_vvvvvvz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvvz = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvvz = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvvz(add_update_server_vvvvvvz,update_server_target_vvvvvvz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwa function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
@ -370,112 +374,78 @@ jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwc function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var update_server_target_vvvvvwc = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwc = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwc(update_server_target_vvvvvwc,add_update_server_vvvvvwc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var update_server_target_vvvvvwc = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwc = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwc(update_server_target_vvvvvwc,add_update_server_vvvvvwc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvwc function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var update_server_target_vvvvvwc = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwc = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwc(update_server_target_vvvvvwc,add_update_server_vvvvvwc);
|
||||
vvvvvwc(add_update_server_vvvvvwc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var update_server_target_vvvvvwc = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwc = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwc(update_server_target_vvvvvwc,add_update_server_vvvvvwc);
|
||||
vvvvvwc(add_update_server_vvvvvwc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvwe function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvwe = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwe(add_update_server_vvvvvwe);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvwe = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwe(add_update_server_vvvvvwe);
|
||||
|
||||
});
|
||||
|
||||
// #jform_buildcomp listeners for buildcomp_vvvvvwf function
|
||||
// #jform_buildcomp listeners for buildcomp_vvvvvwd function
|
||||
jQuery('#jform_buildcomp').on('keyup',function()
|
||||
{
|
||||
var buildcomp_vvvvvwf = jQuery("#jform_buildcomp input[type='radio']:checked").val();
|
||||
vvvvvwf(buildcomp_vvvvvwf);
|
||||
var buildcomp_vvvvvwd = jQuery("#jform_buildcomp input[type='radio']:checked").val();
|
||||
vvvvvwd(buildcomp_vvvvvwd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_buildcomp',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var buildcomp_vvvvvwf = jQuery("#jform_buildcomp input[type='radio']:checked").val();
|
||||
vvvvvwf(buildcomp_vvvvvwf);
|
||||
var buildcomp_vvvvvwd = jQuery("#jform_buildcomp input[type='radio']:checked").val();
|
||||
vvvvvwd(buildcomp_vvvvvwd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_dashboard_type listeners for dashboard_type_vvvvvwg function
|
||||
// #jform_dashboard_type listeners for dashboard_type_vvvvvwe function
|
||||
jQuery('#jform_dashboard_type').on('keyup',function()
|
||||
{
|
||||
var dashboard_type_vvvvvwg = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwg(dashboard_type_vvvvvwg);
|
||||
var dashboard_type_vvvvvwe = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwe(dashboard_type_vvvvvwe);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_dashboard_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var dashboard_type_vvvvvwg = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwg(dashboard_type_vvvvvwg);
|
||||
var dashboard_type_vvvvvwe = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwe(dashboard_type_vvvvvwe);
|
||||
|
||||
});
|
||||
|
||||
// #jform_dashboard_type listeners for dashboard_type_vvvvvwh function
|
||||
// #jform_dashboard_type listeners for dashboard_type_vvvvvwf function
|
||||
jQuery('#jform_dashboard_type').on('keyup',function()
|
||||
{
|
||||
var dashboard_type_vvvvvwh = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwh(dashboard_type_vvvvvwh);
|
||||
var dashboard_type_vvvvvwf = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwf(dashboard_type_vvvvvwf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_dashboard_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var dashboard_type_vvvvvwh = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwh(dashboard_type_vvvvvwh);
|
||||
var dashboard_type_vvvvvwf = jQuery("#jform_dashboard_type input[type='radio']:checked").val();
|
||||
vvvvvwf(dashboard_type_vvvvvwf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_translation_tool listeners for translation_tool_vvvvvwi function
|
||||
// #jform_translation_tool listeners for translation_tool_vvvvvwg function
|
||||
jQuery('#jform_translation_tool').on('keyup',function()
|
||||
{
|
||||
var translation_tool_vvvvvwi = jQuery("#jform_translation_tool").val();
|
||||
vvvvvwi(translation_tool_vvvvvwi);
|
||||
var translation_tool_vvvvvwg = jQuery("#jform_translation_tool").val();
|
||||
vvvvvwg(translation_tool_vvvvvwg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_translation_tool',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var translation_tool_vvvvvwi = jQuery("#jform_translation_tool").val();
|
||||
vvvvvwi(translation_tool_vvvvvwi);
|
||||
var translation_tool_vvvvvwg = jQuery("#jform_translation_tool").val();
|
||||
vvvvvwg(translation_tool_vvvvvwg);
|
||||
|
||||
});
|
||||
|
||||
|
@ -189,52 +189,120 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_class_helper listeners for add_class_helper_vvvvvwj function
|
||||
// #jform_add_class_helper listeners for add_class_helper_vvvvvwh function
|
||||
jQuery('#jform_add_class_helper').on('keyup',function()
|
||||
{
|
||||
var add_class_helper_vvvvvwj = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwj(add_class_helper_vvvvvwj);
|
||||
var add_class_helper_vvvvvwh = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwh(add_class_helper_vvvvvwh);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_class_helper',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_class_helper_vvvvvwj = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwj(add_class_helper_vvvvvwj);
|
||||
var add_class_helper_vvvvvwh = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwh(add_class_helper_vvvvvwh);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_class_helper_header listeners for add_class_helper_header_vvvvvwk function
|
||||
// #jform_add_class_helper_header listeners for add_class_helper_header_vvvvvwi function
|
||||
jQuery('#jform_add_class_helper_header').on('keyup',function()
|
||||
{
|
||||
var add_class_helper_header_vvvvvwk = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvwk = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwk(add_class_helper_header_vvvvvwk,add_class_helper_vvvvvwk);
|
||||
var add_class_helper_header_vvvvvwi = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvwi = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwi(add_class_helper_header_vvvvvwi,add_class_helper_vvvvvwi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_class_helper_header',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_class_helper_header_vvvvvwk = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvwk = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwk(add_class_helper_header_vvvvvwk,add_class_helper_vvvvvwk);
|
||||
var add_class_helper_header_vvvvvwi = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvwi = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwi(add_class_helper_header_vvvvvwi,add_class_helper_vvvvvwi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_class_helper listeners for add_class_helper_vvvvvwk function
|
||||
// #jform_add_class_helper listeners for add_class_helper_vvvvvwi function
|
||||
jQuery('#jform_add_class_helper').on('keyup',function()
|
||||
{
|
||||
var add_class_helper_header_vvvvvwk = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvwk = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwk(add_class_helper_header_vvvvvwk,add_class_helper_vvvvvwk);
|
||||
var add_class_helper_header_vvvvvwi = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvwi = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwi(add_class_helper_header_vvvvvwi,add_class_helper_vvvvvwi);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_class_helper',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_class_helper_header_vvvvvwk = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvwk = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwk(add_class_helper_header_vvvvvwk,add_class_helper_vvvvvwk);
|
||||
var add_class_helper_header_vvvvvwi = jQuery("#jform_add_class_helper_header input[type='radio']:checked").val();
|
||||
var add_class_helper_vvvvvwi = jQuery("#jform_add_class_helper").val();
|
||||
vvvvvwi(add_class_helper_header_vvvvvwi,add_class_helper_vvvvvwi);
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwk function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var update_server_target_vvvvvwk = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwk = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwk(update_server_target_vvvvvwk,add_update_server_vvvvvwk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var update_server_target_vvvvvwk = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwk = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwk(update_server_target_vvvvvwk,add_update_server_vvvvvwk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvwk function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var update_server_target_vvvvvwk = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwk = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwk(update_server_target_vvvvvwk,add_update_server_vvvvvwk);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var update_server_target_vvvvvwk = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwk = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwk(update_server_target_vvvvvwk,add_update_server_vvvvvwk);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvwl function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvwl = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwl = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwl(add_update_server_vvvvvwl,update_server_target_vvvvvwl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvwl = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwl = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwl(add_update_server_vvvvvwl,update_server_target_vvvvvwl);
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwl function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvwl = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwl = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwl(add_update_server_vvvvvwl,update_server_target_vvvvvwl);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvwl = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwl = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwl(add_update_server_vvvvvwl,update_server_target_vvvvvwl);
|
||||
|
||||
});
|
||||
|
||||
@ -272,40 +340,6 @@ jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvwn function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvwn = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwn = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwn(add_update_server_vvvvvwn,update_server_target_vvvvvwn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvwn = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwn = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwn(add_update_server_vvvvvwn,update_server_target_vvvvvwn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwn function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvwn = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwn = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwn(add_update_server_vvvvvwn,update_server_target_vvvvvwn);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvwn = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwn = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwn(add_update_server_vvvvvwn,update_server_target_vvvvvwn);
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwo function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
@ -340,40 +374,6 @@ jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwq function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvwq function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var update_server_target_vvvvvwq = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwq = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwq(update_server_target_vvvvvwq,add_update_server_vvvvvwq);
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
jQuery('#jform_snippet').closest('.input-append').addClass('jform_snippet_input_width');
|
||||
|
@ -157,86 +157,154 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_class_extends listeners for class_extends_vvvvvwq function
|
||||
jQuery('#jform_class_extends').on('keyup',function()
|
||||
{
|
||||
var class_extends_vvvvvwq = jQuery("#jform_class_extends").val();
|
||||
var joomla_plugin_group_vvvvvwq = jQuery("#jform_joomla_plugin_group").val();
|
||||
vvvvvwq(class_extends_vvvvvwq,joomla_plugin_group_vvvvvwq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_class_extends',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var class_extends_vvvvvwq = jQuery("#jform_class_extends").val();
|
||||
var joomla_plugin_group_vvvvvwq = jQuery("#jform_joomla_plugin_group").val();
|
||||
vvvvvwq(class_extends_vvvvvwq,joomla_plugin_group_vvvvvwq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_joomla_plugin_group listeners for joomla_plugin_group_vvvvvwq function
|
||||
jQuery('#jform_joomla_plugin_group').on('keyup',function()
|
||||
{
|
||||
var class_extends_vvvvvwq = jQuery("#jform_class_extends").val();
|
||||
var joomla_plugin_group_vvvvvwq = jQuery("#jform_joomla_plugin_group").val();
|
||||
vvvvvwq(class_extends_vvvvvwq,joomla_plugin_group_vvvvvwq);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_joomla_plugin_group',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var class_extends_vvvvvwq = jQuery("#jform_class_extends").val();
|
||||
var joomla_plugin_group_vvvvvwq = jQuery("#jform_joomla_plugin_group").val();
|
||||
vvvvvwq(class_extends_vvvvvwq,joomla_plugin_group_vvvvvwq);
|
||||
|
||||
});
|
||||
|
||||
// #jform_joomla_plugin_group listeners for joomla_plugin_group_vvvvvwr function
|
||||
jQuery('#jform_joomla_plugin_group').on('keyup',function()
|
||||
{
|
||||
var joomla_plugin_group_vvvvvwr = jQuery("#jform_joomla_plugin_group").val();
|
||||
var class_extends_vvvvvwr = jQuery("#jform_class_extends").val();
|
||||
vvvvvwr(joomla_plugin_group_vvvvvwr,class_extends_vvvvvwr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_joomla_plugin_group',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var joomla_plugin_group_vvvvvwr = jQuery("#jform_joomla_plugin_group").val();
|
||||
var class_extends_vvvvvwr = jQuery("#jform_class_extends").val();
|
||||
vvvvvwr(joomla_plugin_group_vvvvvwr,class_extends_vvvvvwr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_class_extends listeners for class_extends_vvvvvwr function
|
||||
jQuery('#jform_class_extends').on('keyup',function()
|
||||
{
|
||||
var joomla_plugin_group_vvvvvwr = jQuery("#jform_joomla_plugin_group").val();
|
||||
var class_extends_vvvvvwr = jQuery("#jform_class_extends").val();
|
||||
vvvvvwr(joomla_plugin_group_vvvvvwr,class_extends_vvvvvwr);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_class_extends',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var joomla_plugin_group_vvvvvwr = jQuery("#jform_joomla_plugin_group").val();
|
||||
var class_extends_vvvvvwr = jQuery("#jform_class_extends").val();
|
||||
vvvvvwr(joomla_plugin_group_vvvvvwr,class_extends_vvvvvwr);
|
||||
|
||||
});
|
||||
|
||||
// #jform_class_extends listeners for class_extends_vvvvvws function
|
||||
jQuery('#jform_class_extends').on('keyup',function()
|
||||
{
|
||||
var class_extends_vvvvvws = jQuery("#jform_class_extends").val();
|
||||
var joomla_plugin_group_vvvvvws = jQuery("#jform_joomla_plugin_group").val();
|
||||
vvvvvws(class_extends_vvvvvws,joomla_plugin_group_vvvvvws);
|
||||
vvvvvws(class_extends_vvvvvws);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_class_extends',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var class_extends_vvvvvws = jQuery("#jform_class_extends").val();
|
||||
var joomla_plugin_group_vvvvvws = jQuery("#jform_joomla_plugin_group").val();
|
||||
vvvvvws(class_extends_vvvvvws,joomla_plugin_group_vvvvvws);
|
||||
vvvvvws(class_extends_vvvvvws);
|
||||
|
||||
});
|
||||
|
||||
// #jform_joomla_plugin_group listeners for joomla_plugin_group_vvvvvws function
|
||||
jQuery('#jform_joomla_plugin_group').on('keyup',function()
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwu function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var class_extends_vvvvvws = jQuery("#jform_class_extends").val();
|
||||
var joomla_plugin_group_vvvvvws = jQuery("#jform_joomla_plugin_group").val();
|
||||
vvvvvws(class_extends_vvvvvws,joomla_plugin_group_vvvvvws);
|
||||
var update_server_target_vvvvvwu = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwu = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwu(update_server_target_vvvvvwu,add_update_server_vvvvvwu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_joomla_plugin_group',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var class_extends_vvvvvws = jQuery("#jform_class_extends").val();
|
||||
var joomla_plugin_group_vvvvvws = jQuery("#jform_joomla_plugin_group").val();
|
||||
vvvvvws(class_extends_vvvvvws,joomla_plugin_group_vvvvvws);
|
||||
var update_server_target_vvvvvwu = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwu = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwu(update_server_target_vvvvvwu,add_update_server_vvvvvwu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_joomla_plugin_group listeners for joomla_plugin_group_vvvvvwt function
|
||||
jQuery('#jform_joomla_plugin_group').on('keyup',function()
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvwu function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var joomla_plugin_group_vvvvvwt = jQuery("#jform_joomla_plugin_group").val();
|
||||
var class_extends_vvvvvwt = jQuery("#jform_class_extends").val();
|
||||
vvvvvwt(joomla_plugin_group_vvvvvwt,class_extends_vvvvvwt);
|
||||
var update_server_target_vvvvvwu = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwu = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwu(update_server_target_vvvvvwu,add_update_server_vvvvvwu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_joomla_plugin_group',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var joomla_plugin_group_vvvvvwt = jQuery("#jform_joomla_plugin_group").val();
|
||||
var class_extends_vvvvvwt = jQuery("#jform_class_extends").val();
|
||||
vvvvvwt(joomla_plugin_group_vvvvvwt,class_extends_vvvvvwt);
|
||||
var update_server_target_vvvvvwu = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvwu = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvwu(update_server_target_vvvvvwu,add_update_server_vvvvvwu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_class_extends listeners for class_extends_vvvvvwt function
|
||||
jQuery('#jform_class_extends').on('keyup',function()
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvwv function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var joomla_plugin_group_vvvvvwt = jQuery("#jform_joomla_plugin_group").val();
|
||||
var class_extends_vvvvvwt = jQuery("#jform_class_extends").val();
|
||||
vvvvvwt(joomla_plugin_group_vvvvvwt,class_extends_vvvvvwt);
|
||||
var add_update_server_vvvvvwv = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwv = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwv(add_update_server_vvvvvwv,update_server_target_vvvvvwv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_class_extends',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var joomla_plugin_group_vvvvvwt = jQuery("#jform_joomla_plugin_group").val();
|
||||
var class_extends_vvvvvwt = jQuery("#jform_class_extends").val();
|
||||
vvvvvwt(joomla_plugin_group_vvvvvwt,class_extends_vvvvvwt);
|
||||
var add_update_server_vvvvvwv = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwv = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwv(add_update_server_vvvvvwv,update_server_target_vvvvvwv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_class_extends listeners for class_extends_vvvvvwu function
|
||||
jQuery('#jform_class_extends').on('keyup',function()
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwv function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var class_extends_vvvvvwu = jQuery("#jform_class_extends").val();
|
||||
vvvvvwu(class_extends_vvvvvwu);
|
||||
var add_update_server_vvvvvwv = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwv = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwv(add_update_server_vvvvvwv,update_server_target_vvvvvwv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_class_extends',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var class_extends_vvvvvwu = jQuery("#jform_class_extends").val();
|
||||
vvvvvwu(class_extends_vvvvvwu);
|
||||
var add_update_server_vvvvvwv = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwv = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwv(add_update_server_vvvvvwv,update_server_target_vvvvvwv);
|
||||
|
||||
});
|
||||
|
||||
@ -274,40 +342,6 @@ jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvwx function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvwx = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwx = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwx(add_update_server_vvvvvwx,update_server_target_vvvvvwx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvwx = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwx = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwx(add_update_server_vvvvvwx,update_server_target_vvvvvwx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwx function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var add_update_server_vvvvvwx = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwx = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwx(add_update_server_vvvvvwx,update_server_target_vvvvvwx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_update_server_vvvvvwx = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
var update_server_target_vvvvvwx = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
vvvvvwx(add_update_server_vvvvvwx,update_server_target_vvvvvwx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvwy function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
@ -342,40 +376,6 @@ jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_update_server_target listeners for update_server_target_vvvvvxa function
|
||||
jQuery('#jform_update_server_target').on('keyup',function()
|
||||
{
|
||||
var update_server_target_vvvvvxa = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvxa = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvxa(update_server_target_vvvvvxa,add_update_server_vvvvvxa);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_update_server_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var update_server_target_vvvvvxa = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvxa = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvxa(update_server_target_vvvvvxa,add_update_server_vvvvvxa);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_update_server listeners for add_update_server_vvvvvxa function
|
||||
jQuery('#jform_add_update_server').on('keyup',function()
|
||||
{
|
||||
var update_server_target_vvvvvxa = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvxa = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvxa(update_server_target_vvvvvxa,add_update_server_vvvvvxa);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_update_server',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var update_server_target_vvvvvxa = jQuery("#jform_update_server_target input[type='radio']:checked").val();
|
||||
var add_update_server_vvvvvxa = jQuery("#jform_add_update_server input[type='radio']:checked").val();
|
||||
vvvvvxa(update_server_target_vvvvvxa,add_update_server_vvvvvxa);
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
jQuery('#adminForm').on('change', '#jform_joomla_plugin_group',function (e)
|
||||
|
@ -128,18 +128,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvvzh function
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvvzf function
|
||||
jQuery('#jform_add_php_view').on('keyup',function()
|
||||
{
|
||||
var add_php_view_vvvvvzh = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzh(add_php_view_vvvvvzh);
|
||||
var add_php_view_vvvvvzf = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzf(add_php_view_vvvvvzf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_view_vvvvvzh = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzh(add_php_view_vvvvvzh);
|
||||
var add_php_view_vvvvvzf = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzf(add_php_view_vvvvvzf);
|
||||
|
||||
});
|
||||
|
||||
|
@ -144,6 +144,40 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_how listeners for how_vvvvwan function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwan = jQuery("#jform_how").val();
|
||||
var target_vvvvwan = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwan(how_vvvvwan,target_vvvvwan);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwan = jQuery("#jform_how").val();
|
||||
var target_vvvvwan = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwan(how_vvvvwan,target_vvvvwan);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwan function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwan = jQuery("#jform_how").val();
|
||||
var target_vvvvwan = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwan(how_vvvvwan,target_vvvvwan);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwan = jQuery("#jform_how").val();
|
||||
var target_vvvvwan = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwan(how_vvvvwan,target_vvvvwan);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwap function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
@ -280,6 +314,40 @@ jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwaw function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwaw = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwaw = jQuery("#jform_how").val();
|
||||
vvvvwaw(target_vvvvwaw,how_vvvvwaw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwaw = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwaw = jQuery("#jform_how").val();
|
||||
vvvvwaw(target_vvvvwaw,how_vvvvwaw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwaw function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwaw = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwaw = jQuery("#jform_how").val();
|
||||
vvvvwaw(target_vvvvwaw,how_vvvvwaw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwaw = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwaw = jQuery("#jform_how").val();
|
||||
vvvvwaw(target_vvvvwaw,how_vvvvwaw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwax function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
@ -416,71 +484,37 @@ jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwbb function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwbb = jQuery("#jform_how").val();
|
||||
var target_vvvvwbb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbb(how_vvvvwbb,target_vvvvwbb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwbb = jQuery("#jform_how").val();
|
||||
var target_vvvvwbb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbb(how_vvvvwbb,target_vvvvwbb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwbb function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var how_vvvvwbb = jQuery("#jform_how").val();
|
||||
var target_vvvvwbb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbb(how_vvvvwbb,target_vvvvwbb);
|
||||
var type_vvvvwbb = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwbb(target_vvvvwbb,type_vvvvwbb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var how_vvvvwbb = jQuery("#jform_how").val();
|
||||
var target_vvvvwbb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbb(how_vvvvwbb,target_vvvvwbb);
|
||||
var type_vvvvwbb = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwbb(target_vvvvwbb,type_vvvvwbb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwbc function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
// #jform_type listeners for type_vvvvwbb function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwbc = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwbc = jQuery("#jform_how").val();
|
||||
vvvvwbc(target_vvvvwbc,how_vvvvwbc);
|
||||
var target_vvvvwbb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwbb = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwbb(target_vvvvwbb,type_vvvvwbb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwbc = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwbc = jQuery("#jform_how").val();
|
||||
vvvvwbc(target_vvvvwbc,how_vvvvwbc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_how listeners for how_vvvvwbc function
|
||||
jQuery('#jform_how').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwbc = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwbc = jQuery("#jform_how").val();
|
||||
vvvvwbc(target_vvvvwbc,how_vvvvwbc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwbc = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var how_vvvvwbc = jQuery("#jform_how").val();
|
||||
vvvvwbc(target_vvvvwbc,how_vvvvwbc);
|
||||
var target_vvvvwbb = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwbb = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwbb(target_vvvvwbb,type_vvvvwbb);
|
||||
|
||||
});
|
||||
|
||||
@ -488,63 +522,29 @@ jQuery('#adminForm').on('change', '#jform_how',function (e)
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwbd = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwbd = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwbd(target_vvvvwbd,type_vvvvwbd);
|
||||
vvvvwbd(target_vvvvwbd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwbd = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwbd = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwbd(target_vvvvwbd,type_vvvvwbd);
|
||||
vvvvwbd(target_vvvvwbd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_type listeners for type_vvvvwbd function
|
||||
jQuery('#jform_type').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwbd = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwbd = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwbd(target_vvvvwbd,type_vvvvwbd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_type',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwbd = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
var type_vvvvwbd = jQuery("#jform_type input[type='radio']:checked").val();
|
||||
vvvvwbd(target_vvvvwbd,type_vvvvwbd);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwbf function
|
||||
// #jform_target listeners for target_vvvvwbe function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwbf = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbf(target_vvvvwbf);
|
||||
var target_vvvvwbe = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbe(target_vvvvwbe);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwbf = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbf(target_vvvvwbf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_target listeners for target_vvvvwbg function
|
||||
jQuery('#jform_target').on('keyup',function()
|
||||
{
|
||||
var target_vvvvwbg = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbg(target_vvvvwbg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_target',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var target_vvvvwbg = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbg(target_vvvvwbg);
|
||||
var target_vvvvwbe = jQuery("#jform_target input[type='radio']:checked").val();
|
||||
vvvvwbe(target_vvvvwbe);
|
||||
|
||||
});
|
||||
|
||||
|
@ -142,18 +142,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_head listeners for add_head_vvvvvxc function
|
||||
// #jform_add_head listeners for add_head_vvvvvxa function
|
||||
jQuery('#jform_add_head').on('keyup',function()
|
||||
{
|
||||
var add_head_vvvvvxc = jQuery("#jform_add_head input[type='radio']:checked").val();
|
||||
vvvvvxc(add_head_vvvvvxc);
|
||||
var add_head_vvvvvxa = jQuery("#jform_add_head input[type='radio']:checked").val();
|
||||
vvvvvxa(add_head_vvvvvxa);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_head',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_head_vvvvvxc = jQuery("#jform_add_head input[type='radio']:checked").val();
|
||||
vvvvvxc(add_head_vvvvvxc);
|
||||
var add_head_vvvvvxa = jQuery("#jform_add_head input[type='radio']:checked").val();
|
||||
vvvvvxa(add_head_vvvvvxa);
|
||||
|
||||
});
|
||||
|
||||
|
@ -226,7 +226,7 @@ class ComponentbuilderViewPower extends HtmlView
|
||||
// add var key
|
||||
$this->document->addScriptDeclaration("var vastDevMod = '" . $this->get('VDM') . "';");
|
||||
// add return_here
|
||||
$this->document->addScriptDeclaration("var return_here = '" . urlencode(base64_encode((string) Uri::getInstance())) . "';");
|
||||
$this->document->addScriptDeclaration("var return_here = '" . urlencode(base64_encode((string) \JUri::getInstance())) . "';");
|
||||
// set some lang
|
||||
Text::script('COM_COMPONENTBUILDER_ALREADY_SELECTED_TRY_ANOTHER');
|
||||
Text::script('COM_COMPONENTBUILDER_TYPE_OR_SELECT_SOME_OPTIONS');
|
||||
|
74
admin/views/repositories/tmpl/default.php
Normal file
74
admin/views/repositories/tmpl/default.php
Normal file
@ -0,0 +1,74 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
Html::_('behavior.multiselect');
|
||||
Html::_('dropdown.init');
|
||||
Html::_('formbehavior.chosen', 'select');
|
||||
Html::_('formbehavior.chosen', '.multipleAccessLevels', null, ['placeholder_text_multiple' => '- ' . Text::_('COM_COMPONENTBUILDER_FILTER_SELECT_ACCESS') . ' -']);
|
||||
|
||||
if ($this->saveOrder)
|
||||
{
|
||||
$saveOrderingUrl = 'index.php?option=com_componentbuilder&task=repositories.saveOrderAjax&tmpl=component';
|
||||
Html::_('sortablelist.sortable', 'repositoryList', 'adminForm', strtolower($this->listDirn), $saveOrderingUrl);
|
||||
}
|
||||
?>
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&view=repositories'); ?>" method="post" name="adminForm" id="adminForm">
|
||||
<?php if(!empty( $this->sidebar)): ?>
|
||||
<div id="j-sidebar-container" class="span2">
|
||||
<?php echo $this->sidebar; ?>
|
||||
</div>
|
||||
<div id="j-main-container" class="span10">
|
||||
<?php else : ?>
|
||||
<div id="j-main-container">
|
||||
<?php endif; ?>
|
||||
<?php
|
||||
// Add the trash helper layout
|
||||
echo LayoutHelper::render('trashhelper', $this);
|
||||
// Add the searchtools
|
||||
echo LayoutHelper::render('joomla.searchtools.default', array('view' => $this));
|
||||
?>
|
||||
<?php if (empty($this->items)): ?>
|
||||
<div class="alert alert-no-items">
|
||||
<?php echo Text::_('JGLOBAL_NO_MATCHING_RESULTS'); ?>
|
||||
</div>
|
||||
<?php else : ?>
|
||||
<table class="table table-striped" id="repositoryList">
|
||||
<thead><?php echo $this->loadTemplate('head');?></thead>
|
||||
<tfoot><?php echo $this->loadTemplate('foot');?></tfoot>
|
||||
<tbody><?php echo $this->loadTemplate('body');?></tbody>
|
||||
</table>
|
||||
<?php // Load the batch processing form. ?>
|
||||
<?php if ($this->canCreate && $this->canEdit) : ?>
|
||||
<?php echo Html::_(
|
||||
'bootstrap.renderModal',
|
||||
'collapseModal',
|
||||
array(
|
||||
'title' => Text::_('COM_COMPONENTBUILDER_REPOSITORIES_BATCH_OPTIONS'),
|
||||
'footer' => $this->loadTemplate('batch_footer')
|
||||
),
|
||||
$this->loadTemplate('batch_body')
|
||||
); ?>
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="boxchecked" value="0" />
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<input type="hidden" name="task" value="" />
|
||||
<?php echo Html::_('form.token'); ?>
|
||||
</form>
|
21
admin/views/repositories/tmpl/default_batch_body.php
Normal file
21
admin/views/repositories/tmpl/default_batch_body.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
|
||||
?>
|
||||
|
||||
<p><?php echo Text::_('COM_COMPONENTBUILDER_REPOSITORIES_BATCH_TIP'); ?></p>
|
||||
<?php echo $this->batchDisplay; ?>
|
25
admin/views/repositories/tmpl/default_batch_footer.php
Normal file
25
admin/views/repositories/tmpl/default_batch_footer.php
Normal file
@ -0,0 +1,25 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
|
||||
?>
|
||||
<!-- clear the batch values if cancel -->
|
||||
<button class="btn" type="button" onclick="" data-dismiss="modal">
|
||||
<?php echo Text::_('JCANCEL'); ?>
|
||||
</button>
|
||||
<!-- post the batch values if process -->
|
||||
<button class="btn btn-success" type="submit" onclick="Joomla.submitbutton('repository.batch');">
|
||||
<?php echo Text::_('JGLOBAL_BATCH_PROCESS'); ?>
|
||||
</button>
|
110
admin/views/repositories/tmpl/default_body.php
Normal file
110
admin/views/repositories/tmpl/default_body.php
Normal file
@ -0,0 +1,110 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
|
||||
$edit = "index.php?option=com_componentbuilder&view=repositories&task=repository.edit";
|
||||
|
||||
?>
|
||||
<?php foreach ($this->items as $i => $item): ?>
|
||||
<?php
|
||||
$canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0;
|
||||
$userChkOut = Factory::getUser($item->checked_out);
|
||||
$canDo = ComponentbuilderHelper::getActions('repository',$item,'repositories');
|
||||
?>
|
||||
<tr class="row<?php echo $i % 2; ?>">
|
||||
<td class="order nowrap center hidden-phone">
|
||||
<?php if ($canDo->get('repository.edit.state')): ?>
|
||||
<?php
|
||||
$iconClass = '';
|
||||
if (!$this->saveOrder)
|
||||
{
|
||||
$iconClass = ' inactive tip-top" hasTooltip" title="' . Html::tooltipText('JORDERINGDISABLED');
|
||||
}
|
||||
?>
|
||||
<span class="sortable-handler<?php echo $iconClass; ?>">
|
||||
<i class="icon-menu"></i>
|
||||
</span>
|
||||
<?php if ($this->saveOrder) : ?>
|
||||
<input type="text" style="display:none" name="order[]" size="5"
|
||||
value="<?php echo $item->ordering; ?>" class="width-20 text-area-order " />
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
⋮
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center">
|
||||
<?php if ($canDo->get('repository.edit')): ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
<?php else: ?>
|
||||
□
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo Html::_('grid.id', $i, $item->id); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
□
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap">
|
||||
<div class="name">
|
||||
<?php if ($canDo->get('repository.edit')): ?>
|
||||
<a href="<?php echo $edit; ?>&id=<?php echo $item->id; ?>"><?php echo $this->escape($item->system_name); ?></a>
|
||||
<?php if ($item->checked_out): ?>
|
||||
<?php echo Html::_('jgrid.checkedout', $i, $userChkOut->name, $item->checked_out_time, 'repositories.', $canCheckin); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo $this->escape($item->system_name); ?>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo $this->escape($item->organisation); ?>
|
||||
</td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo $this->escape($item->repository); ?>
|
||||
</td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo Text::_($item->target); ?>
|
||||
</td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo Text::_($item->type); ?>
|
||||
</td>
|
||||
<td class="hidden-phone">
|
||||
<?php echo $this->escape($item->base); ?>
|
||||
</td>
|
||||
<td class="center">
|
||||
<?php if ($canDo->get('repository.edit.state')) : ?>
|
||||
<?php if ($item->checked_out) : ?>
|
||||
<?php if ($canCheckin) : ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'repositories.', true, 'cb'); ?>
|
||||
<?php else: ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'repositories.', false, 'cb'); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'repositories.', true, 'cb'); ?>
|
||||
<?php endif; ?>
|
||||
<?php else: ?>
|
||||
<?php echo Html::_('jgrid.published', $item->published, $i, 'repositories.', false, 'cb'); ?>
|
||||
<?php endif; ?>
|
||||
</td>
|
||||
<td class="nowrap center hidden-phone">
|
||||
<?php echo $item->id; ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
18
admin/views/repositories/tmpl/default_foot.php
Normal file
18
admin/views/repositories/tmpl/default_foot.php
Normal file
@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<td colspan="10"><?php echo $this->pagination->getListFooter(); ?></td>
|
||||
</tr>
|
65
admin/views/repositories/tmpl/default_head.php
Normal file
65
admin/views/repositories/tmpl/default_head.php
Normal file
@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
|
||||
?>
|
||||
<tr>
|
||||
<?php if ($this->canEdit&& $this->canState): ?>
|
||||
<th width="1%" class="nowrap center hidden-phone">
|
||||
<?php echo Html::_('searchtools.sort', '', 'a.ordering', $this->listDirn, $this->listOrder, null, 'asc', 'JGRID_HEADING_ORDERING', 'icon-menu-2'); ?>
|
||||
</th>
|
||||
<th width="20" class="nowrap center">
|
||||
<?php echo Html::_('grid.checkall'); ?>
|
||||
</th>
|
||||
<?php else: ?>
|
||||
<th width="20" class="nowrap center hidden-phone">
|
||||
▾
|
||||
</th>
|
||||
<th width="20" class="nowrap center">
|
||||
■
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<th class="nowrap" >
|
||||
<?php echo Text::_('COM_COMPONENTBUILDER_REPOSITORY_SYSTEM_NAME_LABEL'); ?>
|
||||
</th>
|
||||
<th class="nowrap hidden-phone" >
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_REPOSITORY_ORGANISATION_LABEL', 'a.organisation', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap hidden-phone" >
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_REPOSITORY_REPOSITORY_LABEL', 'a.repository', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap hidden-phone" >
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_REPOSITORY_TARGET_LABEL', 'a.target', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap hidden-phone" >
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_REPOSITORY_TYPE_LABEL', 'a.type', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<th class="nowrap hidden-phone" >
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_REPOSITORY_BASE_LABEL', 'a.base', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<?php if ($this->canState): ?>
|
||||
<th width="10" class="nowrap center" >
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_REPOSITORY_STATUS', 'a.published', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
<?php else: ?>
|
||||
<th width="10" class="nowrap center" >
|
||||
<?php echo Text::_('COM_COMPONENTBUILDER_REPOSITORY_STATUS'); ?>
|
||||
</th>
|
||||
<?php endif; ?>
|
||||
<th width="5" class="nowrap center hidden-phone" >
|
||||
<?php echo Html::_('searchtools.sort', 'COM_COMPONENTBUILDER_REPOSITORY_ID', 'a.id', $this->listDirn, $this->listOrder); ?>
|
||||
</th>
|
||||
</tr>
|
48
admin/views/repositories/tmpl/default_toolbar.php
Normal file
48
admin/views/repositories/tmpl/default_toolbar.php
Normal file
@ -0,0 +1,48 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
|
||||
?>
|
||||
<div id="filter-bar" class="btn-toolbar">
|
||||
<div class="filter-search btn-group pull-left">
|
||||
<label for="filter_search" class="element-invisible"><?php echo Text::_('Search');?></label>
|
||||
<input type="text" name="filter_search" id="filter_search" placeholder="<?php echo Text::_('JSEARCH_FILTER'); ?>" value="<?php echo $this->escape($this->state->get('filter.search')); ?>" class="hasTooltip" title="<?php echo Html::tooltipText('Search Repositories'); ?>" />
|
||||
</div>
|
||||
<div class="btn-group pull-left">
|
||||
<button type="submit" class="btn hasTooltip" title="<?php echo Html::tooltipText('JSEARCH_FILTER_SUBMIT'); ?>"><i class="icon-search"></i></button>
|
||||
<button type="button" class="btn hasTooltip" title="<?php echo Html::tooltipText('JSEARCH_FILTER_CLEAR'); ?>" onclick="document.id('filter_search').value='';this.form.submit();"><i class="icon-remove"></i></button>
|
||||
</div>
|
||||
<div class="btn-group pull-right hidden-phone">
|
||||
<label for="limit" class="element-invisible"><?php echo Text::_('JFIELD_PLG_SEARCH_SEARCHLIMIT_DESC');?></label>
|
||||
<?php echo $this->pagination->getLimitBox(); ?>
|
||||
</div>
|
||||
<div class="btn-group pull-right hidden-phone">
|
||||
<label for="directionTable" class="element-invisible"><?php echo Text::_('JFIELD_ORDERING_DESC');?></label>
|
||||
<select name="directionTable" id="directionTable" class="input-medium" onchange="Joomla.orderTable()">
|
||||
<option value=""><?php echo Text::_('JFIELD_ORDERING_DESC');?></option>
|
||||
<option value="asc" <?php if ($this->listDirn == 'asc') echo 'selected="selected"'; ?>><?php echo Text::_('JGLOBAL_ORDER_ASCENDING');?></option>
|
||||
<option value="desc" <?php if ($this->listDirn == 'desc') echo 'selected="selected"'; ?>><?php echo Text::_('JGLOBAL_ORDER_DESCENDING');?></option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="btn-group pull-right">
|
||||
<label for="sortTable" class="element-invisible"><?php echo Text::_('JGLOBAL_SORT_BY');?></label>
|
||||
<select name="sortTable" id="sortTable" class="input-medium" onchange="Joomla.orderTable()">
|
||||
<option value=""><?php echo Text::_('JGLOBAL_SORT_BY');?></option>
|
||||
<?php echo Html::_('select.options', $this->getSortFields(), 'value', 'text', $this->listOrder);?>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clearfix"> </div>
|
328
admin/views/repositories/view.html.php
Normal file
328
admin/views/repositories/view.html.php
Normal file
@ -0,0 +1,328 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Form\FormHelper;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\CMS\Toolbar\Toolbar;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\FileLayout;
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
use Joomla\CMS\Plugin\PluginHelper;
|
||||
use Joomla\CMS\Toolbar\ToolbarHelper;
|
||||
use VDM\Joomla\Utilities\ArrayHelper;
|
||||
use VDM\Joomla\Utilities\StringHelper;
|
||||
|
||||
/**
|
||||
* Componentbuilder Html View class for the Repositories
|
||||
*/
|
||||
class ComponentbuilderViewRepositories extends HtmlView
|
||||
{
|
||||
/**
|
||||
* Repositories view display method
|
||||
* @return void
|
||||
*/
|
||||
function display($tpl = null)
|
||||
{
|
||||
if ($this->getLayout() !== 'modal')
|
||||
{
|
||||
// Include helper submenu
|
||||
ComponentbuilderHelper::addSubmenu('repositories');
|
||||
}
|
||||
|
||||
// Assign data to the view
|
||||
$this->items = $this->get('Items');
|
||||
$this->pagination = $this->get('Pagination');
|
||||
$this->state = $this->get('State');
|
||||
$this->user = Factory::getUser();
|
||||
// Load the filter form from xml.
|
||||
$this->filterForm = $this->get('FilterForm');
|
||||
// Load the active filters.
|
||||
$this->activeFilters = $this->get('ActiveFilters');
|
||||
// Add the list ordering clause.
|
||||
$this->listOrder = $this->escape($this->state->get('list.ordering', 'a.id'));
|
||||
$this->listDirn = $this->escape($this->state->get('list.direction', 'DESC'));
|
||||
$this->saveOrder = $this->listOrder == 'a.ordering';
|
||||
// set the return here value
|
||||
$this->return_here = urlencode(base64_encode((string) Uri::getInstance()));
|
||||
// get global action permissions
|
||||
$this->canDo = ComponentbuilderHelper::getActions('repository');
|
||||
$this->canEdit = $this->canDo->get('repository.edit');
|
||||
$this->canState = $this->canDo->get('repository.edit.state');
|
||||
$this->canCreate = $this->canDo->get('repository.create');
|
||||
$this->canDelete = $this->canDo->get('repository.delete');
|
||||
$this->canBatch = ($this->canDo->get('repository.batch') && $this->canDo->get('core.batch'));
|
||||
|
||||
// We don't need toolbar in the modal window.
|
||||
if ($this->getLayout() !== 'modal')
|
||||
{
|
||||
$this->addToolbar();
|
||||
$this->sidebar = JHtmlSidebar::render();
|
||||
// load the batch html
|
||||
if ($this->canCreate && $this->canEdit && $this->canState)
|
||||
{
|
||||
$this->batchDisplay = JHtmlBatch_::render();
|
||||
}
|
||||
}
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors')))
|
||||
{
|
||||
throw new Exception(implode("\n", $errors), 500);
|
||||
}
|
||||
|
||||
// Display the template
|
||||
parent::display($tpl);
|
||||
|
||||
// Set the document
|
||||
$this->setDocument();
|
||||
}
|
||||
|
||||
/**
|
||||
* Setting the toolbar
|
||||
*/
|
||||
protected function addToolBar()
|
||||
{
|
||||
JHtmlSidebar::setAction('index.php?option=com_componentbuilder&view=repositories');
|
||||
ToolbarHelper::title(Text::_('COM_COMPONENTBUILDER_REPOSITORIES'), 'share');
|
||||
FormHelper::addFieldPath(JPATH_COMPONENT . '/models/fields');
|
||||
|
||||
if ($this->canCreate)
|
||||
{
|
||||
ToolbarHelper::addNew('repository.add');
|
||||
}
|
||||
|
||||
// Only load if there are items
|
||||
if (ArrayHelper::check($this->items))
|
||||
{
|
||||
if ($this->canEdit)
|
||||
{
|
||||
ToolbarHelper::editList('repository.edit');
|
||||
}
|
||||
|
||||
if ($this->canState)
|
||||
{
|
||||
ToolbarHelper::publishList('repositories.publish');
|
||||
ToolbarHelper::unpublishList('repositories.unpublish');
|
||||
ToolbarHelper::archiveList('repositories.archive');
|
||||
|
||||
if ($this->canDo->get('core.admin'))
|
||||
{
|
||||
ToolbarHelper::checkin('repositories.checkin');
|
||||
}
|
||||
}
|
||||
|
||||
// Add a batch button
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit && $this->canState)
|
||||
{
|
||||
// Get the toolbar object instance
|
||||
$bar = Toolbar::getInstance('toolbar');
|
||||
// set the batch button name
|
||||
$title = Text::_('JTOOLBAR_BATCH');
|
||||
// Instantiate a new JLayoutFile instance and render the batch button
|
||||
$layout = new FileLayout('joomla.toolbar.batch');
|
||||
// add the button to the page
|
||||
$dhtml = $layout->render(array('title' => $title));
|
||||
$bar->appendButton('Custom', $dhtml, 'batch');
|
||||
}
|
||||
|
||||
if ($this->state->get('filter.published') == -2 && ($this->canState && $this->canDelete))
|
||||
{
|
||||
ToolbarHelper::deleteList('', 'repositories.delete', 'JTOOLBAR_EMPTY_TRASH');
|
||||
}
|
||||
elseif ($this->canState && $this->canDelete)
|
||||
{
|
||||
ToolbarHelper::trash('repositories.trash');
|
||||
}
|
||||
}
|
||||
|
||||
// set help url for this view if found
|
||||
$this->help_url = ComponentbuilderHelper::getHelpUrl('repositories');
|
||||
if (StringHelper::check($this->help_url))
|
||||
{
|
||||
ToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
|
||||
// add the options comp button
|
||||
if ($this->canDo->get('core.admin') || $this->canDo->get('core.options'))
|
||||
{
|
||||
ToolbarHelper::preferences('com_componentbuilder');
|
||||
}
|
||||
|
||||
// Only load published batch if state and batch is allowed
|
||||
if ($this->canState && $this->canBatch)
|
||||
{
|
||||
JHtmlBatch_::addListSelection(
|
||||
Text::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_STATE'),
|
||||
'batch[published]',
|
||||
Html::_('select.options', Html::_('jgrid.publishedOptions', array('all' => false)), 'value', 'text', '', true)
|
||||
);
|
||||
}
|
||||
|
||||
// Only load access batch if create, edit and batch is allowed
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit)
|
||||
{
|
||||
JHtmlBatch_::addListSelection(
|
||||
Text::_('COM_COMPONENTBUILDER_KEEP_ORIGINAL_ACCESS'),
|
||||
'batch[access]',
|
||||
Html::_('select.options', Html::_('access.assetgroups'), 'value', 'text')
|
||||
);
|
||||
}
|
||||
|
||||
// Only load Organisation batch if create, edit, and batch is allowed
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit)
|
||||
{
|
||||
// Set Organisation Selection
|
||||
$this->organisationOptions = FormHelper::loadFieldType('repositoriesfilterorganisation')->options;
|
||||
// We do some sanitation for Organisation filter
|
||||
if (ArrayHelper::check($this->organisationOptions) &&
|
||||
isset($this->organisationOptions[0]->value) &&
|
||||
!StringHelper::check($this->organisationOptions[0]->value))
|
||||
{
|
||||
unset($this->organisationOptions[0]);
|
||||
}
|
||||
// Organisation Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.Text::_('COM_COMPONENTBUILDER_REPOSITORY_ORGANISATION_LABEL').' -',
|
||||
'batch[organisation]',
|
||||
Html::_('select.options', $this->organisationOptions, 'value', 'text')
|
||||
);
|
||||
}
|
||||
|
||||
// Only load Repository batch if create, edit, and batch is allowed
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit)
|
||||
{
|
||||
// Set Repository Selection
|
||||
$this->repositoryOptions = FormHelper::loadFieldType('repositoriesfilterrepository')->options;
|
||||
// We do some sanitation for Repository filter
|
||||
if (ArrayHelper::check($this->repositoryOptions) &&
|
||||
isset($this->repositoryOptions[0]->value) &&
|
||||
!StringHelper::check($this->repositoryOptions[0]->value))
|
||||
{
|
||||
unset($this->repositoryOptions[0]);
|
||||
}
|
||||
// Repository Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.Text::_('COM_COMPONENTBUILDER_REPOSITORY_REPOSITORY_LABEL').' -',
|
||||
'batch[repository]',
|
||||
Html::_('select.options', $this->repositoryOptions, 'value', 'text')
|
||||
);
|
||||
}
|
||||
|
||||
// Only load Target batch if create, edit, and batch is allowed
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit)
|
||||
{
|
||||
// Set Target Selection
|
||||
$this->targetOptions = FormHelper::loadFieldType('repositoriesfiltertarget')->options;
|
||||
// We do some sanitation for Target filter
|
||||
if (ArrayHelper::check($this->targetOptions) &&
|
||||
isset($this->targetOptions[0]->value) &&
|
||||
!StringHelper::check($this->targetOptions[0]->value))
|
||||
{
|
||||
unset($this->targetOptions[0]);
|
||||
}
|
||||
// Target Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.Text::_('COM_COMPONENTBUILDER_REPOSITORY_TARGET_LABEL').' -',
|
||||
'batch[target]',
|
||||
Html::_('select.options', $this->targetOptions, 'value', 'text')
|
||||
);
|
||||
}
|
||||
|
||||
// Only load Base batch if create, edit, and batch is allowed
|
||||
if ($this->canBatch && $this->canCreate && $this->canEdit)
|
||||
{
|
||||
// Set Base Selection
|
||||
$this->baseOptions = FormHelper::loadFieldType('repositoriesfilterbase')->options;
|
||||
// We do some sanitation for Base filter
|
||||
if (ArrayHelper::check($this->baseOptions) &&
|
||||
isset($this->baseOptions[0]->value) &&
|
||||
!StringHelper::check($this->baseOptions[0]->value))
|
||||
{
|
||||
unset($this->baseOptions[0]);
|
||||
}
|
||||
// Base Batch Selection
|
||||
JHtmlBatch_::addListSelection(
|
||||
'- Keep Original '.Text::_('COM_COMPONENTBUILDER_REPOSITORY_BASE_LABEL').' -',
|
||||
'batch[base]',
|
||||
Html::_('select.options', $this->baseOptions, 'value', 'text')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to set up the document properties
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function setDocument()
|
||||
{
|
||||
if (!isset($this->document))
|
||||
{
|
||||
$this->document = Factory::getDocument();
|
||||
}
|
||||
$this->document->setTitle(Text::_('COM_COMPONENTBUILDER_REPOSITORIES'));
|
||||
Html::_('stylesheet', "administrator/components/com_componentbuilder/assets/css/repositories.css", ['version' => 'auto']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Escapes a value for output in a view script.
|
||||
*
|
||||
* @param mixed $var The output to escape.
|
||||
*
|
||||
* @return mixed The escaped value.
|
||||
*/
|
||||
public function escape($var)
|
||||
{
|
||||
if(strlen($var) > 50)
|
||||
{
|
||||
// use the helper htmlEscape method instead and shorten the string
|
||||
return StringHelper::html($var, $this->_charset, true);
|
||||
}
|
||||
// use the helper htmlEscape method instead.
|
||||
return StringHelper::html($var, $this->_charset);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array of fields the table can be sorted by
|
||||
*
|
||||
* @return array Array containing the field name to sort by as the key and display text as value
|
||||
*/
|
||||
protected function getSortFields()
|
||||
{
|
||||
return array(
|
||||
'a.ordering' => Text::_('JGRID_HEADING_ORDERING'),
|
||||
'a.published' => Text::_('JSTATUS'),
|
||||
'a.organisation' => Text::_('COM_COMPONENTBUILDER_REPOSITORY_ORGANISATION_LABEL'),
|
||||
'a.repository' => Text::_('COM_COMPONENTBUILDER_REPOSITORY_REPOSITORY_LABEL'),
|
||||
'a.target' => Text::_('COM_COMPONENTBUILDER_REPOSITORY_TARGET_LABEL'),
|
||||
'a.type' => Text::_('COM_COMPONENTBUILDER_REPOSITORY_TYPE_LABEL'),
|
||||
'a.base' => Text::_('COM_COMPONENTBUILDER_REPOSITORY_BASE_LABEL'),
|
||||
'a.id' => Text::_('JGRID_HEADING_ID')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Document (helper method toward Joomla 4 and 5)
|
||||
*/
|
||||
public function getDocument()
|
||||
{
|
||||
$this->document ??= JFactory::getDocument();
|
||||
|
||||
return $this->document;
|
||||
}
|
||||
}
|
25
admin/views/repository/submitbutton.js
Normal file
25
admin/views/repository/submitbutton.js
Normal file
@ -0,0 +1,25 @@
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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
|
||||
*/
|
||||
|
||||
Joomla.submitbutton = function(task)
|
||||
{
|
||||
if (task == ''){
|
||||
return false;
|
||||
} else {
|
||||
var action = task.split('.');
|
||||
if (action[1] == 'cancel' || action[1] == 'close' || document.formvalidator.isValid(document.getElementById("adminForm"))){
|
||||
Joomla.submitform(task, document.getElementById("adminForm"));
|
||||
return true;
|
||||
} else {
|
||||
alert(Joomla.JText._('repository, some values are not acceptable.','Some values are unacceptable'));
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
105
admin/views/repository/tmpl/edit.php
Normal file
105
admin/views/repository/tmpl/edit.php
Normal file
@ -0,0 +1,105 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\LayoutHelper;
|
||||
use Joomla\CMS\Router\Route;
|
||||
Html::addIncludePath(JPATH_COMPONENT.'/helpers/html');
|
||||
Html::_('behavior.formvalidator');
|
||||
Html::_('formbehavior.chosen', 'select');
|
||||
Html::_('behavior.keepalive');
|
||||
|
||||
$componentParams = $this->params; // will be removed just use $this->params instead
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
// waiting spinner
|
||||
var outerDiv = document.querySelector('body');
|
||||
var loadingDiv = document.createElement('div');
|
||||
loadingDiv.id = 'loading';
|
||||
loadingDiv.style.cssText = "background: rgba(255, 255, 255, .8) url('components/com_componentbuilder/assets/images/import.gif') 50% 15% no-repeat; top: " + (outerDiv.getBoundingClientRect().top + window.pageYOffset) + "px; left: " + (outerDiv.getBoundingClientRect().left + window.pageXOffset) + "px; width: " + outerDiv.offsetWidth + "px; height: " + outerDiv.offsetHeight + "px; position: fixed; opacity: 0.80; -ms-filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=80); filter: alpha(opacity=80); display: none;";
|
||||
outerDiv.appendChild(loadingDiv);
|
||||
loadingDiv.style.display = 'block';
|
||||
// when page is ready remove and show
|
||||
window.addEventListener('load', function() {
|
||||
var componentLoader = document.getElementById('componentbuilder_loader');
|
||||
if (componentLoader) componentLoader.style.display = 'block';
|
||||
loadingDiv.style.display = 'none';
|
||||
});
|
||||
</script>
|
||||
<div id="componentbuilder_loader" style="display: none;">
|
||||
<form action="<?php echo Route::_('index.php?option=com_componentbuilder&layout=edit&id='. (int) $this->item->id . $this->referral); ?>" method="post" name="adminForm" id="adminForm" class="form-validate" enctype="multipart/form-data">
|
||||
|
||||
<?php echo LayoutHelper::render('repository.details_above', $this); ?>
|
||||
<div class="form-horizontal">
|
||||
|
||||
<?php echo Html::_('bootstrap.startTabSet', 'repositoryTab', ['active' => 'details', 'recall' => true]); ?>
|
||||
|
||||
<?php echo Html::_('bootstrap.addTab', 'repositoryTab', 'details', Text::_('COM_COMPONENTBUILDER_REPOSITORY_DETAILS', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span6">
|
||||
<?php echo LayoutHelper::render('repository.details_left', $this); ?>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php echo LayoutHelper::render('repository.details_right', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo Html::_('bootstrap.endTab'); ?>
|
||||
|
||||
<?php $this->ignore_fieldsets = array('details','metadata','vdmmetadata','accesscontrol'); ?>
|
||||
<?php $this->tab_name = 'repositoryTab'; ?>
|
||||
<?php echo LayoutHelper::render('joomla.edit.params', $this); ?>
|
||||
|
||||
<?php if ($this->canDo->get('repository.edit.created_by') || $this->canDo->get('repository.edit.created') || $this->canDo->get('repository.edit.state') || ($this->canDo->get('repository.delete') && $this->canDo->get('repository.edit.state'))) : ?>
|
||||
<?php echo Html::_('bootstrap.addTab', 'repositoryTab', 'publishing', Text::_('COM_COMPONENTBUILDER_REPOSITORY_PUBLISHING', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span6">
|
||||
<?php echo LayoutHelper::render('repository.publishing', $this); ?>
|
||||
</div>
|
||||
<div class="span6">
|
||||
<?php echo LayoutHelper::render('repository.publlshing', $this); ?>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo Html::_('bootstrap.endTab'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($this->canDo->get('core.admin')) : ?>
|
||||
<?php echo Html::_('bootstrap.addTab', 'repositoryTab', 'permissions', Text::_('COM_COMPONENTBUILDER_REPOSITORY_PERMISSION', true)); ?>
|
||||
<div class="row-fluid form-horizontal-desktop">
|
||||
<div class="span12">
|
||||
<fieldset class="adminform">
|
||||
<div class="adminformlist">
|
||||
<?php foreach ($this->form->getFieldset('accesscontrol') as $field): ?>
|
||||
<div>
|
||||
<?php echo $field->label; echo $field->input;?>
|
||||
</div>
|
||||
<div class="clearfix"></div>
|
||||
<?php endforeach; ?>
|
||||
</div>
|
||||
</fieldset>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo Html::_('bootstrap.endTab'); ?>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php echo Html::_('bootstrap.endTabSet'); ?>
|
||||
|
||||
<div>
|
||||
<input type="hidden" name="task" value="repository.edit" />
|
||||
<?php echo Html::_('form.token'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
215
admin/views/repository/view.html.php
Normal file
215
admin/views/repository/view.html.php
Normal file
@ -0,0 +1,215 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 30th April, 2015
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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');
|
||||
|
||||
use Joomla\CMS\Factory;
|
||||
use Joomla\CMS\Language\Text;
|
||||
use Joomla\CMS\Form\FormHelper;
|
||||
use Joomla\CMS\Session\Session;
|
||||
use Joomla\CMS\Uri\Uri;
|
||||
use Joomla\CMS\Toolbar\Toolbar;
|
||||
use Joomla\CMS\Component\ComponentHelper;
|
||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||
use Joomla\CMS\Layout\FileLayout;
|
||||
use Joomla\CMS\MVC\View\HtmlView;
|
||||
use Joomla\CMS\Plugin\PluginHelper;
|
||||
use Joomla\CMS\Toolbar\ToolbarHelper;
|
||||
use VDM\Joomla\Utilities\StringHelper;
|
||||
|
||||
/**
|
||||
* Repository Html View class
|
||||
*/
|
||||
class ComponentbuilderViewRepository extends HtmlView
|
||||
{
|
||||
/**
|
||||
* display method of View
|
||||
* @return void
|
||||
*/
|
||||
public function display($tpl = null)
|
||||
{
|
||||
// set params
|
||||
$this->params = ComponentHelper::getParams('com_componentbuilder');
|
||||
// Assign the variables
|
||||
$this->form = $this->get('Form');
|
||||
$this->item = $this->get('Item');
|
||||
$this->script = $this->get('Script');
|
||||
$this->state = $this->get('State');
|
||||
// get action permissions
|
||||
$this->canDo = ComponentbuilderHelper::getActions('repository', $this->item);
|
||||
// get input
|
||||
$jinput = Factory::getApplication()->input;
|
||||
$this->ref = $jinput->get('ref', 0, 'word');
|
||||
$this->refid = $jinput->get('refid', 0, 'int');
|
||||
$return = $jinput->get('return', null, 'base64');
|
||||
// set the referral string
|
||||
$this->referral = '';
|
||||
if ($this->refid && $this->ref)
|
||||
{
|
||||
// return to the item that referred to this item
|
||||
$this->referral = '&ref=' . (string)$this->ref . '&refid=' . (int)$this->refid;
|
||||
}
|
||||
elseif($this->ref)
|
||||
{
|
||||
// return to the list view that referred to this item
|
||||
$this->referral = '&ref=' . (string)$this->ref;
|
||||
}
|
||||
// check return value
|
||||
if (!is_null($return))
|
||||
{
|
||||
// add the return value
|
||||
$this->referral .= '&return=' . (string)$return;
|
||||
}
|
||||
|
||||
// Set the toolbar
|
||||
$this->addToolBar();
|
||||
|
||||
// Check for errors.
|
||||
if (count($errors = $this->get('Errors')))
|
||||
{
|
||||
throw new Exception(implode("\n", $errors), 500);
|
||||
}
|
||||
|
||||
// Display the template
|
||||
parent::display($tpl);
|
||||
|
||||
// Set the document
|
||||
$this->setDocument();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Setting the toolbar
|
||||
*/
|
||||
protected function addToolBar()
|
||||
{
|
||||
Factory::getApplication()->input->set('hidemainmenu', true);
|
||||
$user = Factory::getUser();
|
||||
$userId = $user->id;
|
||||
$isNew = $this->item->id == 0;
|
||||
|
||||
ToolbarHelper::title( Text::_($isNew ? 'COM_COMPONENTBUILDER_REPOSITORY_NEW' : 'COM_COMPONENTBUILDER_REPOSITORY_EDIT'), 'pencil-2 article-add');
|
||||
// Built the actions for new and existing records.
|
||||
if (StringHelper::check($this->referral))
|
||||
{
|
||||
if ($this->canDo->get('repository.create') && $isNew)
|
||||
{
|
||||
// We can create the record.
|
||||
ToolbarHelper::save('repository.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
elseif ($this->canDo->get('repository.edit'))
|
||||
{
|
||||
// We can save the record.
|
||||
ToolbarHelper::save('repository.save', 'JTOOLBAR_SAVE');
|
||||
}
|
||||
if ($isNew)
|
||||
{
|
||||
// Do not creat but cancel.
|
||||
ToolbarHelper::cancel('repository.cancel', 'JTOOLBAR_CANCEL');
|
||||
}
|
||||
else
|
||||
{
|
||||
// We can close it.
|
||||
ToolbarHelper::cancel('repository.cancel', 'JTOOLBAR_CLOSE');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($isNew)
|
||||
{
|
||||
// For new records, check the create permission.
|
||||
if ($this->canDo->get('repository.create'))
|
||||
{
|
||||
ToolbarHelper::apply('repository.apply', 'JTOOLBAR_APPLY');
|
||||
ToolbarHelper::save('repository.save', 'JTOOLBAR_SAVE');
|
||||
ToolbarHelper::custom('repository.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
|
||||
};
|
||||
ToolbarHelper::cancel('repository.cancel', 'JTOOLBAR_CANCEL');
|
||||
}
|
||||
else
|
||||
{
|
||||
if ($this->canDo->get('repository.edit'))
|
||||
{
|
||||
// We can save the new record
|
||||
ToolbarHelper::apply('repository.apply', 'JTOOLBAR_APPLY');
|
||||
ToolbarHelper::save('repository.save', 'JTOOLBAR_SAVE');
|
||||
// We can save this record, but check the create permission to see
|
||||
// if we can return to make a new one.
|
||||
if ($this->canDo->get('repository.create'))
|
||||
{
|
||||
ToolbarHelper::custom('repository.save2new', 'save-new.png', 'save-new_f2.png', 'JTOOLBAR_SAVE_AND_NEW', false);
|
||||
}
|
||||
}
|
||||
$canVersion = ($this->canDo->get('core.version') && $this->canDo->get('repository.version'));
|
||||
if ($this->state->params->get('save_history', 1) && $this->canDo->get('repository.edit') && $canVersion)
|
||||
{
|
||||
ToolbarHelper::versions('com_componentbuilder.repository', $this->item->id);
|
||||
}
|
||||
if ($this->canDo->get('repository.create'))
|
||||
{
|
||||
ToolbarHelper::custom('repository.save2copy', 'save-copy.png', 'save-copy_f2.png', 'JTOOLBAR_SAVE_AS_COPY', false);
|
||||
}
|
||||
ToolbarHelper::cancel('repository.cancel', 'JTOOLBAR_CLOSE');
|
||||
}
|
||||
}
|
||||
ToolbarHelper::divider();
|
||||
// set help url for this view if found
|
||||
$this->help_url = ComponentbuilderHelper::getHelpUrl('repository');
|
||||
if (StringHelper::check($this->help_url))
|
||||
{
|
||||
ToolbarHelper::help('COM_COMPONENTBUILDER_HELP_MANAGER', false, $this->help_url);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Escapes a value for output in a view script.
|
||||
*
|
||||
* @param mixed $var The output to escape.
|
||||
*
|
||||
* @return mixed The escaped value.
|
||||
*/
|
||||
public function escape($var)
|
||||
{
|
||||
if(strlen($var) > 30)
|
||||
{
|
||||
// use the helper htmlEscape method instead and shorten the string
|
||||
return StringHelper::html($var, $this->_charset, true, 30);
|
||||
}
|
||||
// use the helper htmlEscape method instead.
|
||||
return StringHelper::html($var, $this->_charset);
|
||||
}
|
||||
|
||||
/**
|
||||
* Method to set up the document properties
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function setDocument()
|
||||
{
|
||||
$isNew = ($this->item->id < 1);
|
||||
$this->getDocument()->setTitle(Text::_($isNew ? 'COM_COMPONENTBUILDER_REPOSITORY_NEW' : 'COM_COMPONENTBUILDER_REPOSITORY_EDIT'));
|
||||
Html::_('stylesheet', "administrator/components/com_componentbuilder/assets/css/repository.css", ['version' => 'auto']);
|
||||
Html::_('script', $this->script, ['version' => 'auto']);
|
||||
Html::_('script', "administrator/components/com_componentbuilder/views/repository/submitbutton.js", ['version' => 'auto']);
|
||||
Text::script('view not acceptable. Error');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Document (helper method toward Joomla 4 and 5)
|
||||
*/
|
||||
public function getDocument()
|
||||
{
|
||||
$this->document ??= JFactory::getDocument();
|
||||
|
||||
return $this->document;
|
||||
}
|
||||
}
|
@ -111,33 +111,67 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwce function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwce = jQuery("#jform_protocol").val();
|
||||
vvvvwce(protocol_vvvvwce);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwce = jQuery("#jform_protocol").val();
|
||||
vvvvwce(protocol_vvvvwce);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwcf function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwcf = jQuery("#jform_protocol").val();
|
||||
vvvvwcf(protocol_vvvvwcf);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwcf = jQuery("#jform_protocol").val();
|
||||
vvvvwcf(protocol_vvvvwcf);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwcg function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwcg = jQuery("#jform_protocol").val();
|
||||
vvvvwcg(protocol_vvvvwcg);
|
||||
var authentication_vvvvwcg = jQuery("#jform_authentication").val();
|
||||
vvvvwcg(protocol_vvvvwcg,authentication_vvvvwcg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwcg = jQuery("#jform_protocol").val();
|
||||
vvvvwcg(protocol_vvvvwcg);
|
||||
var authentication_vvvvwcg = jQuery("#jform_authentication").val();
|
||||
vvvvwcg(protocol_vvvvwcg,authentication_vvvvwcg);
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwch function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
// #jform_authentication listeners for authentication_vvvvwcg function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwch = jQuery("#jform_protocol").val();
|
||||
vvvvwch(protocol_vvvvwch);
|
||||
var protocol_vvvvwcg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwcg = jQuery("#jform_authentication").val();
|
||||
vvvvwcg(protocol_vvvvwcg,authentication_vvvvwcg);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwch = jQuery("#jform_protocol").val();
|
||||
vvvvwch(protocol_vvvvwch);
|
||||
var protocol_vvvvwcg = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwcg = jQuery("#jform_authentication").val();
|
||||
vvvvwcg(protocol_vvvvwcg,authentication_vvvvwcg);
|
||||
|
||||
});
|
||||
|
||||
@ -243,38 +277,4 @@ jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
|
||||
});
|
||||
|
||||
// #jform_protocol listeners for protocol_vvvvwco function
|
||||
jQuery('#jform_protocol').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwco = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwco = jQuery("#jform_authentication").val();
|
||||
vvvvwco(protocol_vvvvwco,authentication_vvvvwco);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_protocol',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwco = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwco = jQuery("#jform_authentication").val();
|
||||
vvvvwco(protocol_vvvvwco,authentication_vvvvwco);
|
||||
|
||||
});
|
||||
|
||||
// #jform_authentication listeners for authentication_vvvvwco function
|
||||
jQuery('#jform_authentication').on('keyup',function()
|
||||
{
|
||||
var protocol_vvvvwco = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwco = jQuery("#jform_authentication").val();
|
||||
vvvvwco(protocol_vvvvwco,authentication_vvvvwco);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_authentication',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var protocol_vvvvwco = jQuery("#jform_protocol").val();
|
||||
var authentication_vvvvwco = jQuery("#jform_authentication").val();
|
||||
vvvvwco(protocol_vvvvwco,authentication_vvvvwco);
|
||||
|
||||
});
|
||||
|
||||
</script>
|
||||
|
@ -165,168 +165,168 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvvyv function
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvvyt function
|
||||
jQuery('#jform_add_php_view').on('keyup',function()
|
||||
{
|
||||
var add_php_view_vvvvvyv = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyv(add_php_view_vvvvvyv);
|
||||
var add_php_view_vvvvvyt = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyt(add_php_view_vvvvvyt);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_view_vvvvvyv = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyv(add_php_view_vvvvvyv);
|
||||
var add_php_view_vvvvvyt = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvyt(add_php_view_vvvvvyt);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_jview_display listeners for add_php_jview_display_vvvvvyw function
|
||||
// #jform_add_php_jview_display listeners for add_php_jview_display_vvvvvyu function
|
||||
jQuery('#jform_add_php_jview_display').on('keyup',function()
|
||||
{
|
||||
var add_php_jview_display_vvvvvyw = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyw(add_php_jview_display_vvvvvyw);
|
||||
var add_php_jview_display_vvvvvyu = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyu(add_php_jview_display_vvvvvyu);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_jview_display',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_jview_display_vvvvvyw = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyw(add_php_jview_display_vvvvvyw);
|
||||
var add_php_jview_display_vvvvvyu = jQuery("#jform_add_php_jview_display input[type='radio']:checked").val();
|
||||
vvvvvyu(add_php_jview_display_vvvvvyu);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_jview listeners for add_php_jview_vvvvvyx function
|
||||
// #jform_add_php_jview listeners for add_php_jview_vvvvvyv function
|
||||
jQuery('#jform_add_php_jview').on('keyup',function()
|
||||
{
|
||||
var add_php_jview_vvvvvyx = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyx(add_php_jview_vvvvvyx);
|
||||
var add_php_jview_vvvvvyv = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyv(add_php_jview_vvvvvyv);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_jview',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_jview_vvvvvyx = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyx(add_php_jview_vvvvvyx);
|
||||
var add_php_jview_vvvvvyv = jQuery("#jform_add_php_jview input[type='radio']:checked").val();
|
||||
vvvvvyv(add_php_jview_vvvvvyv);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvyy function
|
||||
// #jform_add_php_document listeners for add_php_document_vvvvvyw function
|
||||
jQuery('#jform_add_php_document').on('keyup',function()
|
||||
{
|
||||
var add_php_document_vvvvvyy = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyy(add_php_document_vvvvvyy);
|
||||
var add_php_document_vvvvvyw = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyw(add_php_document_vvvvvyw);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_document_vvvvvyy = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyy(add_php_document_vvvvvyy);
|
||||
var add_php_document_vvvvvyw = jQuery("#jform_add_php_document input[type='radio']:checked").val();
|
||||
vvvvvyw(add_php_document_vvvvvyw);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css_document listeners for add_css_document_vvvvvyz function
|
||||
// #jform_add_css_document listeners for add_css_document_vvvvvyx function
|
||||
jQuery('#jform_add_css_document').on('keyup',function()
|
||||
{
|
||||
var add_css_document_vvvvvyz = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyz(add_css_document_vvvvvyz);
|
||||
var add_css_document_vvvvvyx = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyx(add_css_document_vvvvvyx);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_document_vvvvvyz = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyz(add_css_document_vvvvvyz);
|
||||
var add_css_document_vvvvvyx = jQuery("#jform_add_css_document input[type='radio']:checked").val();
|
||||
vvvvvyx(add_css_document_vvvvvyx);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_javascript_file listeners for add_javascript_file_vvvvvza function
|
||||
// #jform_add_javascript_file listeners for add_javascript_file_vvvvvyy function
|
||||
jQuery('#jform_add_javascript_file').on('keyup',function()
|
||||
{
|
||||
var add_javascript_file_vvvvvza = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvza(add_javascript_file_vvvvvza);
|
||||
var add_javascript_file_vvvvvyy = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyy(add_javascript_file_vvvvvyy);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_javascript_file',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_javascript_file_vvvvvza = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvza(add_javascript_file_vvvvvza);
|
||||
var add_javascript_file_vvvvvyy = jQuery("#jform_add_javascript_file input[type='radio']:checked").val();
|
||||
vvvvvyy(add_javascript_file_vvvvvyy);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_js_document listeners for add_js_document_vvvvvzb function
|
||||
// #jform_add_js_document listeners for add_js_document_vvvvvyz function
|
||||
jQuery('#jform_add_js_document').on('keyup',function()
|
||||
{
|
||||
var add_js_document_vvvvvzb = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvzb(add_js_document_vvvvvzb);
|
||||
var add_js_document_vvvvvyz = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyz(add_js_document_vvvvvyz);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_js_document',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_js_document_vvvvvzb = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvzb(add_js_document_vvvvvzb);
|
||||
var add_js_document_vvvvvyz = jQuery("#jform_add_js_document input[type='radio']:checked").val();
|
||||
vvvvvyz(add_js_document_vvvvvyz);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_css listeners for add_css_vvvvvzc function
|
||||
// #jform_add_css listeners for add_css_vvvvvza function
|
||||
jQuery('#jform_add_css').on('keyup',function()
|
||||
{
|
||||
var add_css_vvvvvzc = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvzc(add_css_vvvvvzc);
|
||||
var add_css_vvvvvza = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvza(add_css_vvvvvza);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_css',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_css_vvvvvzc = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvzc(add_css_vvvvvzc);
|
||||
var add_css_vvvvvza = jQuery("#jform_add_css input[type='radio']:checked").val();
|
||||
vvvvvza(add_css_vvvvvza);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvzd function
|
||||
// #jform_add_php_ajax listeners for add_php_ajax_vvvvvzb function
|
||||
jQuery('#jform_add_php_ajax').on('keyup',function()
|
||||
{
|
||||
var add_php_ajax_vvvvvzd = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzd(add_php_ajax_vvvvvzd);
|
||||
var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzb(add_php_ajax_vvvvvzb);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_ajax',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_ajax_vvvvvzd = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzd(add_php_ajax_vvvvvzd);
|
||||
var add_php_ajax_vvvvvzb = jQuery("#jform_add_php_ajax input[type='radio']:checked").val();
|
||||
vvvvvzb(add_php_ajax_vvvvvzb);
|
||||
|
||||
});
|
||||
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvvze function
|
||||
// #jform_add_custom_button listeners for add_custom_button_vvvvvzc function
|
||||
jQuery('#jform_add_custom_button').on('keyup',function()
|
||||
{
|
||||
var add_custom_button_vvvvvze = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvze(add_custom_button_vvvvvze);
|
||||
var add_custom_button_vvvvvzc = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvzc(add_custom_button_vvvvvzc);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_custom_button',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_custom_button_vvvvvze = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvze(add_custom_button_vvvvvze);
|
||||
var add_custom_button_vvvvvzc = jQuery("#jform_add_custom_button input[type='radio']:checked").val();
|
||||
vvvvvzc(add_custom_button_vvvvvzc);
|
||||
|
||||
});
|
||||
|
||||
// #jform_button_position listeners for button_position_vvvvvzf function
|
||||
// #jform_button_position listeners for button_position_vvvvvzd function
|
||||
jQuery('#jform_button_position').on('keyup',function()
|
||||
{
|
||||
var button_position_vvvvvzf = jQuery("#jform_button_position").val();
|
||||
vvvvvzf(button_position_vvvvvzf);
|
||||
var button_position_vvvvvzd = jQuery("#jform_button_position").val();
|
||||
vvvvvzd(button_position_vvvvvzd);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_button_position',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var button_position_vvvvvzf = jQuery("#jform_button_position").val();
|
||||
vvvvvzf(button_position_vvvvvzf);
|
||||
var button_position_vvvvvzd = jQuery("#jform_button_position").val();
|
||||
vvvvvzd(button_position_vvvvvzd);
|
||||
|
||||
});
|
||||
|
||||
|
@ -128,18 +128,18 @@ $componentParams = $this->params; // will be removed just use $this->params inst
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvvzg function
|
||||
// #jform_add_php_view listeners for add_php_view_vvvvvze function
|
||||
jQuery('#jform_add_php_view').on('keyup',function()
|
||||
{
|
||||
var add_php_view_vvvvvzg = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzg(add_php_view_vvvvvzg);
|
||||
var add_php_view_vvvvvze = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvze(add_php_view_vvvvvze);
|
||||
|
||||
});
|
||||
jQuery('#adminForm').on('change', '#jform_add_php_view',function (e)
|
||||
{
|
||||
e.preventDefault();
|
||||
var add_php_view_vvvvvzg = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvzg(add_php_view_vvvvvzg);
|
||||
var add_php_view_vvvvvze = jQuery("#jform_add_php_view input[type='radio']:checked").val();
|
||||
vvvvvze(add_php_view_vvvvvze);
|
||||
|
||||
});
|
||||
|
||||
|
@ -1,15 +1,15 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<extension type="component" version="3.10" method="upgrade">
|
||||
<name>COM_COMPONENTBUILDER</name>
|
||||
<creationDate>7th June, 2024</creationDate>
|
||||
<creationDate>20th June, 2024</creationDate>
|
||||
<author>Llewellyn van der Merwe</author>
|
||||
<authorEmail>joomla@vdm.io</authorEmail>
|
||||
<authorUrl>https://dev.vdm.io</authorUrl>
|
||||
<copyright>Copyright (C) 2015 Vast Development Method. All rights reserved.</copyright>
|
||||
<license>GNU General Public License version 2 or later; see LICENSE.txt</license>
|
||||
<version>3.2.2-alpha4</version>
|
||||
<version>3.2.2-alpha5</version>
|
||||
<description><![CDATA[
|
||||
<h1>Component Builder (v.3.2.2-alpha4)</h1>
|
||||
<h1>Component Builder (v.3.2.2-alpha5)</h1>
|
||||
<div style="clear: both;"></div>
|
||||
<p>The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
|
||||
|
||||
|
@ -151,7 +151,7 @@
|
||||
<version>3.2.2-alpha</version>
|
||||
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
||||
<downloads>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.2-alpha4.zip</downloadurl>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.2-alpha5.zip</downloadurl>
|
||||
</downloads>
|
||||
<tags>
|
||||
<tag>alpha</tag>
|
||||
@ -166,10 +166,10 @@
|
||||
<element>pkg_component_builder</element>
|
||||
<type>package</type>
|
||||
<client>site</client>
|
||||
<version>3.2.2-alpha4</version>
|
||||
<version>3.2.2-alpha5</version>
|
||||
<infourl title="Component Builder!">https://dev.vdm.io</infourl>
|
||||
<downloads>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.2-alpha4.zip</downloadurl>
|
||||
<downloadurl type="full" format="zip">https://git.vdm.dev/api/v1/repos/joomla/pkg-component-builder/archive/v3.2.2-alpha5.zip</downloadurl>
|
||||
</downloads>
|
||||
<tags>
|
||||
<tag>alpha</tag>
|
||||
|
@ -189,16 +189,22 @@ abstract class Grep implements GrepInterface
|
||||
{
|
||||
foreach ($this->paths as $n => &$path)
|
||||
{
|
||||
if (isset($path->owner) && strlen($path->owner) > 1 &&
|
||||
isset($path->repo) && strlen($path->repo) > 1)
|
||||
if (isset($path->organisation) && strlen($path->organisation) > 1 &&
|
||||
isset($path->repository) && strlen($path->repository) > 1)
|
||||
{
|
||||
// build the path
|
||||
$path->path = trim($path->owner) . '/' . trim($path->repo);
|
||||
$path->path = trim($path->organisation) . '/' . trim($path->repository);
|
||||
|
||||
// update the branch
|
||||
if ($path->branch === 'default' || empty($path->branch))
|
||||
if ($path->read_branch === 'default' || empty($path->read_branch))
|
||||
{
|
||||
$path->branch = null;
|
||||
$path->read_branch = null;
|
||||
}
|
||||
|
||||
// only update the write branch if set
|
||||
if (isset($path->write_branch) && ($path->write_branch === 'default' || empty($path->write_branch)))
|
||||
{
|
||||
$path->write_branch = null;
|
||||
}
|
||||
|
||||
// set local path
|
||||
|
@ -15,6 +15,7 @@ namespace VDM\Joomla\Abstraction;
|
||||
use VDM\Joomla\Utilities\StringHelper;
|
||||
use VDM\Joomla\Utilities\ArrayHelper;
|
||||
use VDM\Joomla\Interfaces\Tableinterface as Table;
|
||||
use VDM\Joomla\Interfaces\ModelInterface;
|
||||
|
||||
|
||||
/**
|
||||
@ -22,7 +23,7 @@ use VDM\Joomla\Interfaces\Tableinterface as Table;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
abstract class Model
|
||||
abstract class Model implements ModelInterface
|
||||
{
|
||||
/**
|
||||
* Last ID
|
||||
@ -40,16 +41,57 @@ abstract class Model
|
||||
*/
|
||||
protected Table $table;
|
||||
|
||||
/**
|
||||
* Table Name
|
||||
*
|
||||
* @var string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected string $tableName;
|
||||
|
||||
/**
|
||||
* The switch to control the behaviour of empty values
|
||||
*
|
||||
* @var bool
|
||||
* @since 3.2.2
|
||||
*/
|
||||
protected bool $allowEmpty = true;
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*
|
||||
* @param Table $table The search table object.
|
||||
* @param string|null $tableName The table
|
||||
* @param bool|null $allowEmpty The switch to control the behaviour of empty values (default true)
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function __construct(Table $table)
|
||||
public function __construct(Table $table, ?string $tableName = null, bool $allowEmpty = null)
|
||||
{
|
||||
$this->table = $table;
|
||||
if ($tableName !== null)
|
||||
{
|
||||
$this->setTable($tableName);
|
||||
}
|
||||
if ($allowEmpty !== null)
|
||||
{
|
||||
$this->setAllowEmpty($allowEmpty);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the current active table
|
||||
*
|
||||
* @param string $table The table that should be active
|
||||
*
|
||||
* @return self
|
||||
* @since 3.2.2
|
||||
*/
|
||||
public function table(string $table): self
|
||||
{
|
||||
$this->setTable($table);
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -309,6 +351,54 @@ abstract class Model
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the current active table
|
||||
*
|
||||
* @param string $tableName The table name
|
||||
*
|
||||
* @return void
|
||||
* @since 3.2.2
|
||||
*/
|
||||
public function setTable(string $tableName): void
|
||||
{
|
||||
$this->tableName = $tableName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Set the switch to control the behaviour of empty values
|
||||
*
|
||||
* @param bool $allowEmpty The switch
|
||||
*
|
||||
* @return void
|
||||
* @since 3.2.2
|
||||
*/
|
||||
public function setAllowEmpty(bool $allowEmpty): void
|
||||
{
|
||||
$this->allowEmpty = $allowEmpty;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current active table
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getTable(): string
|
||||
{
|
||||
return $this->tableName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the switch to control the behaviour of empty values
|
||||
*
|
||||
* @return bool
|
||||
* @since 3.2.2
|
||||
*/
|
||||
protected function getAllowEmpty(): bool
|
||||
{
|
||||
return $this->allowEmpty;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the current active table's fields (including defaults)
|
||||
*
|
||||
@ -346,13 +436,5 @@ abstract class Model
|
||||
* @since 3.2.0
|
||||
*/
|
||||
abstract protected function validateAfter(&$value, ?string $field = null, ?string $table = null): bool;
|
||||
|
||||
/**
|
||||
* Get the current active table
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
abstract protected function getTable(): string;
|
||||
}
|
||||
|
||||
|
@ -14,8 +14,10 @@ namespace VDM\Joomla\Componentbuilder\Compiler;
|
||||
|
||||
use Joomla\Registry\Registry as JoomlaRegistry;
|
||||
use Joomla\CMS\Factory as JoomlaFactory;
|
||||
use Joomla\Input\Input;
|
||||
use VDM\Joomla\Utilities\GetHelper;
|
||||
use VDM\Joomla\Utilities\StringHelper;
|
||||
use VDM\Joomla\Componentbuilder\Utilities\RepoHelper;
|
||||
use VDM\Joomla\Componentbuilder\Abstraction\BaseConfig;
|
||||
|
||||
|
||||
@ -44,8 +46,8 @@ class Config extends BaseConfig
|
||||
* Constructor
|
||||
*
|
||||
* @param Input|null $input Input
|
||||
* @param Registry|null $params The component parameters
|
||||
* @param Registry|null $config The Joomla configuration
|
||||
* @param JoomlaRegistry|null $params The component parameters
|
||||
* @param JoomlaRegistry|null $config The Joomla configuration
|
||||
*
|
||||
* @throws \Exception
|
||||
* @since 3.2.0
|
||||
@ -65,7 +67,7 @@ class Config extends BaseConfig
|
||||
*/
|
||||
protected function getGiteausername(): ?string
|
||||
{
|
||||
return $this->custom_gitea_username ?? $this->params->get('gitea_username');
|
||||
return $this->params->get('gitea_username');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -76,66 +78,7 @@ class Config extends BaseConfig
|
||||
*/
|
||||
protected function getGiteatoken(): ?string
|
||||
{
|
||||
return $this->custom_gitea_token ?? $this->params->get('gitea_token');
|
||||
}
|
||||
|
||||
/**
|
||||
* get Add Custom Gitea URL
|
||||
*
|
||||
* @return int the add switch
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getAddcustomgiteaurl(): int
|
||||
{
|
||||
return $this->params->get('add_custom_gitea_url', 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* get Custom Gitea URL
|
||||
*
|
||||
* @return string the custom gitea url
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getCustomgiteaurl(): ?string
|
||||
{
|
||||
if ($this->add_custom_gitea_url == 2)
|
||||
{
|
||||
return $this->params->get('custom_gitea_url');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* get Custom Gitea Username
|
||||
*
|
||||
* @return string the custom access token
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getCustomgiteausername(): ?string
|
||||
{
|
||||
if ($this->add_custom_gitea_url == 2)
|
||||
{
|
||||
return $this->params->get('custom_gitea_username');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* get Custom Gitea Access Token
|
||||
*
|
||||
* @return string the custom access token
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getCustomgiteatoken(): ?string
|
||||
{
|
||||
if ($this->add_custom_gitea_url == 2)
|
||||
{
|
||||
return $this->params->get('custom_gitea_token');
|
||||
}
|
||||
|
||||
return null;
|
||||
return $this->params->get('gitea_token');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -149,11 +92,6 @@ class Config extends BaseConfig
|
||||
// the VDM default organisation is [joomla]
|
||||
$organisation = 'joomla';
|
||||
|
||||
if ($this->add_custom_gitea_url == 2)
|
||||
{
|
||||
return $this->params->get('super_powers_core_organisation', $organisation);
|
||||
}
|
||||
|
||||
return $organisation;
|
||||
}
|
||||
|
||||
@ -168,45 +106,66 @@ class Config extends BaseConfig
|
||||
// some defaults repos we need by JCB
|
||||
$repos = [];
|
||||
|
||||
// only add custom init with custom gitea
|
||||
$paths = null;
|
||||
if ($this->add_custom_gitea_url == 2)
|
||||
{
|
||||
$paths = $this->params->get('super_powers_core_repos');
|
||||
}
|
||||
|
||||
// get the users own power repo (can overwrite all)
|
||||
if (!empty($this->gitea_username))
|
||||
if ($this->gitea_username !== null)
|
||||
{
|
||||
$repos[$this->gitea_username . '.super-powers'] = (object) ['owner' => $this->gitea_username, 'repo' => 'super-powers', 'branch' => 'master'];
|
||||
$repos[$this->gitea_username . '.super-powers'] = (object) [
|
||||
'organisation' => $this->gitea_username,
|
||||
'repository' => 'super-powers',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
}
|
||||
|
||||
if (!empty($paths) && is_array($paths))
|
||||
{
|
||||
foreach ($paths as $path)
|
||||
{
|
||||
$owner = $path->owner ?? null;
|
||||
$repo = $path->repo ?? null;
|
||||
if ($owner !== null && $repo !== null)
|
||||
{
|
||||
// we make sure to get only the objects
|
||||
$repos = ["{$owner}.{$repo}" => $path] + $repos;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$repos[$this->super_powers_core_organisation . '.super-powers'] = (object) ['owner' => $this->super_powers_core_organisation, 'repo' => 'super-powers', 'branch' => 'master'];
|
||||
$repos[$this->super_powers_core_organisation . '.jcb-compiler'] = (object) ['owner' => $this->super_powers_core_organisation, 'repo' => 'jcb-compiler', 'branch' => 'master'];
|
||||
$repos[$this->super_powers_core_organisation . '.jcb-packager'] = (object) ['owner' => $this->super_powers_core_organisation, 'repo' => 'jcb-packager', 'branch' => 'master'];
|
||||
$repos[$this->super_powers_core_organisation . '.phpseclib'] = (object) ['owner' => $this->super_powers_core_organisation, 'repo' => 'phpseclib', 'branch' => 'master'];
|
||||
$repos[$this->super_powers_core_organisation . '.search'] = (object) ['owner' => $this->super_powers_core_organisation, 'repo' => 'search', 'branch' => 'master'];
|
||||
$repos[$this->super_powers_core_organisation . '.gitea'] = (object) ['owner' => $this->super_powers_core_organisation, 'repo' => 'gitea', 'branch' => 'master'];
|
||||
$repos[$this->super_powers_core_organisation . '.openai'] = (object) ['owner' => $this->super_powers_core_organisation, 'repo' => 'openai', 'branch' => 'master'];
|
||||
$repos[$this->super_powers_core_organisation . '.minify'] = (object) ['owner' => $this->super_powers_core_organisation, 'repo' => 'minify', 'branch' => 'master'];
|
||||
$repos[$this->super_powers_core_organisation . '.psr'] = (object) ['owner' => $this->super_powers_core_organisation, 'repo' => 'psr', 'branch' => 'master'];
|
||||
$repos[$this->super_powers_core_organisation . '.fof'] = (object) ['owner' => $this->super_powers_core_organisation, 'repo' => 'fof', 'branch' => 'master'];
|
||||
}
|
||||
$repos[$this->super_powers_core_organisation . '.super-powers'] = (object) [
|
||||
'organisation' => $this->super_powers_core_organisation,
|
||||
'repository' => 'super-powers',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
$repos[$this->super_powers_core_organisation . '.jcb-compiler'] = (object) [
|
||||
'organisation' => $this->super_powers_core_organisation,
|
||||
'repository' => 'jcb-compiler',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
$repos[$this->super_powers_core_organisation . '.jcb-packager'] = (object) [
|
||||
'organisation' => $this->super_powers_core_organisation,
|
||||
'repository' => 'jcb-packager',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
$repos[$this->super_powers_core_organisation . '.phpseclib'] = (object) [
|
||||
'organisation' => $this->super_powers_core_organisation,
|
||||
'repository' => 'phpseclib',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
$repos[$this->super_powers_core_organisation . '.search'] = (object) [
|
||||
'organisation' => $this->super_powers_core_organisation,
|
||||
'repository' => 'search',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
$repos[$this->super_powers_core_organisation . '.gitea'] = (object) [
|
||||
'organisation' => $this->super_powers_core_organisation,
|
||||
'repository' => 'gitea',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
$repos[$this->super_powers_core_organisation . '.openai'] = (object) [
|
||||
'organisation' => $this->super_powers_core_organisation,
|
||||
'repository' => 'openai',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
$repos[$this->super_powers_core_organisation . '.minify'] = (object) [
|
||||
'organisation' => $this->super_powers_core_organisation,
|
||||
'repository' => 'minify',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
$repos[$this->super_powers_core_organisation . '.psr'] = (object) [
|
||||
'organisation' => $this->super_powers_core_organisation,
|
||||
'repository' => 'psr',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
$repos[$this->super_powers_core_organisation . '.fof'] = (object) [
|
||||
'organisation' => $this->super_powers_core_organisation,
|
||||
'repository' => 'fof',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
|
||||
return $repos;
|
||||
}
|
||||
@ -830,19 +789,14 @@ class Config extends BaseConfig
|
||||
// some defaults repos we need by JCB
|
||||
$approved = $this->super_powers_core_repos;
|
||||
|
||||
if (!$this->add_own_powers)
|
||||
{
|
||||
return array_values($approved);
|
||||
}
|
||||
$paths = RepoHelper::get(1); // super powers = 1
|
||||
|
||||
$paths = $this->params->get('approved_paths');
|
||||
|
||||
if (!empty($paths))
|
||||
if ($paths !== null)
|
||||
{
|
||||
foreach ($paths as $path)
|
||||
{
|
||||
$owner = $path->owner ?? null;
|
||||
$repo = $path->repo ?? null;
|
||||
$owner = $path->organisation ?? null;
|
||||
$repo = $path->repository ?? null;
|
||||
if ($owner !== null && $repo !== null)
|
||||
{
|
||||
// we make sure to get only the objects
|
||||
@ -879,11 +833,19 @@ class Config extends BaseConfig
|
||||
// some defaults repos we need by JCB
|
||||
$repos = [];
|
||||
// get the users own power repo (can overwrite all)
|
||||
if (!empty($this->gitea_username))
|
||||
if ($this->gitea_username !== null)
|
||||
{
|
||||
$repos[$this->gitea_username . '.joomla-powers'] = (object) ['owner' => $this->gitea_username, 'repo' => 'joomla-powers', 'branch' => 'master'];
|
||||
$repos[$this->gitea_username . '.joomla-powers'] = (object) [
|
||||
'organisation' => $this->gitea_username,
|
||||
'repository' => 'joomla-powers',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
}
|
||||
$repos[$this->joomla_powers_core_organisation . '.joomla-powers'] = (object) ['owner' => $this->joomla_powers_core_organisation, 'repo' => 'joomla-powers', 'branch' => 'master'];
|
||||
$repos[$this->joomla_powers_core_organisation . '.joomla-powers'] = (object) [
|
||||
'organisation' => $this->joomla_powers_core_organisation,
|
||||
'repository' => 'joomla-powers',
|
||||
'read_branch' => 'master'
|
||||
];
|
||||
|
||||
return $repos;
|
||||
}
|
||||
|
@ -15,7 +15,9 @@ namespace VDM\Joomla\Componentbuilder\Compiler;
|
||||
use Joomla\DI\Container;
|
||||
use VDM\Joomla\Componentbuilder\Service\Crypt;
|
||||
use VDM\Joomla\Componentbuilder\Service\Server;
|
||||
use VDM\Joomla\Componentbuilder\Service\Database;
|
||||
use VDM\Joomla\Service\Database;
|
||||
use VDM\Joomla\Service\Model as BaseModel;
|
||||
use VDM\Joomla\Service\Data;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Service\Model;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Service\Compiler;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Service\Event;
|
||||
@ -149,6 +151,8 @@ abstract class Factory implements FactoryInterface
|
||||
->registerServiceProvider(new Crypt())
|
||||
->registerServiceProvider(new Server())
|
||||
->registerServiceProvider(new Database())
|
||||
->registerServiceProvider(new BaseModel())
|
||||
->registerServiceProvider(new Data())
|
||||
->registerServiceProvider(new Model())
|
||||
->registerServiceProvider(new Compiler())
|
||||
->registerServiceProvider(new Event())
|
||||
|
@ -21,7 +21,6 @@ use VDM\Joomla\Utilities\JsonHelper;
|
||||
use VDM\Joomla\Utilities\GuidHelper;
|
||||
use VDM\Joomla\Utilities\String\ClassfunctionHelper;
|
||||
use VDM\Joomla\Utilities\String\NamespaceHelper;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Factory as Compiler;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Config;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Placeholder;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Customcode;
|
||||
@ -102,43 +101,43 @@ class Power implements PowerInterface
|
||||
protected array $retry = [];
|
||||
|
||||
/**
|
||||
* Compiler Config
|
||||
* The Config Class.
|
||||
*
|
||||
* @var Config
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Config $config;
|
||||
|
||||
/**
|
||||
* Compiler Placeholder
|
||||
* The Placeholder Class.
|
||||
*
|
||||
* @var Placeholder
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Placeholder $placeholder;
|
||||
|
||||
/**
|
||||
* Compiler Customcode
|
||||
* The Customcode Class.
|
||||
*
|
||||
* @var Customcode
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Customcode $customcode;
|
||||
|
||||
/**
|
||||
* Compiler Customcode in Gui
|
||||
* The Gui Class.
|
||||
*
|
||||
* @var Gui
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Gui $gui;
|
||||
|
||||
/**
|
||||
* The JCB Superpower class
|
||||
* The Super Class.
|
||||
*
|
||||
* @var Superpower
|
||||
* @since 3.2.0
|
||||
**/
|
||||
*/
|
||||
protected Superpower $superpower;
|
||||
|
||||
/**
|
||||
@ -158,23 +157,22 @@ class Power implements PowerInterface
|
||||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @param Config|null $config The compiler config object.
|
||||
* @param Placeholder|null $placeholder The compiler placeholder object.
|
||||
* @param Customcode|null $customcode The compiler customcode object.
|
||||
* @param Gui|null $gui The compiler customcode gui object.
|
||||
* @param Superpower|null $superpower The JCB superpower object.
|
||||
* @param Config $config The Config Class.
|
||||
* @param Placeholder $placeholder The Placeholder Class.
|
||||
* @param Customcode $customcode The Customcode Class.
|
||||
* @param Gui $gui The Gui Class.
|
||||
* @param Superpower $superpower The Super Class.
|
||||
*
|
||||
* @throws \Exception
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function __construct(?Config $config = null, ?Placeholder $placeholder = null,
|
||||
?Customcode $customcode = null, ?Gui $gui = null, ?Superpower $superpower = null)
|
||||
public function __construct(Config $config, Placeholder $placeholder,
|
||||
Customcode $customcode, Gui $gui, Superpower $superpower)
|
||||
{
|
||||
$this->config = $config ?: Compiler::_('Config');
|
||||
$this->placeholder = $placeholder ?: Compiler::_('Placeholder');
|
||||
$this->customcode = $customcode ?: Compiler::_('Customcode');
|
||||
$this->gui = $gui ?: Compiler::_('Customcode.Gui');
|
||||
$this->superpower = $superpower ?: Compiler::_('Superpower');
|
||||
$this->config = $config;
|
||||
$this->placeholder = $placeholder;
|
||||
$this->customcode = $customcode;
|
||||
$this->gui = $gui;
|
||||
$this->superpower = $superpower;
|
||||
$this->db = Factory::getDbo();
|
||||
$this->app = Factory::getApplication();
|
||||
}
|
||||
|
@ -19,9 +19,6 @@ use VDM\Joomla\Componentbuilder\JoomlaPower\Grep;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Super as Superpower;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\JoomlaPower\Extractor;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\JoomlaPower\Injector;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Model\Upsert;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Database\Insert;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Database\Update;
|
||||
|
||||
|
||||
/**
|
||||
@ -55,15 +52,6 @@ class JoomlaPower implements ServiceProviderInterface
|
||||
|
||||
$container->alias(Injector::class, 'Joomla.Power.Injector')
|
||||
->share('Joomla.Power.Injector', [$this, 'getInjector'], true);
|
||||
|
||||
$container->alias(Upsert::class, 'Joomla.Power.Model.Upsert')
|
||||
->share('Joomla.Power.Model.Upsert', [$this, 'getModelUpsert'], true);
|
||||
|
||||
$container->alias(Insert::class, 'Joomla.Power.Insert')
|
||||
->share('Joomla.Power.Insert', [$this, 'getInsert'], true);
|
||||
|
||||
$container->alias(Update::class, 'Joomla.Power.Update')
|
||||
->share('Joomla.Power.Update', [$this, 'getUpdate'], true);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -97,8 +85,7 @@ class JoomlaPower implements ServiceProviderInterface
|
||||
{
|
||||
return new Superpower(
|
||||
$container->get('Joomla.Power.Grep'),
|
||||
$container->get('Joomla.Power.Insert'),
|
||||
$container->get('Joomla.Power.Update')
|
||||
$container->get('Data.Item')
|
||||
);
|
||||
}
|
||||
|
||||
@ -150,52 +137,5 @@ class JoomlaPower implements ServiceProviderInterface
|
||||
$container->get('Placeholder')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Power Model Upsert
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return Upsert
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getModelUpsert(Container $container): Upsert
|
||||
{
|
||||
return new Upsert(
|
||||
$container->get('Table')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Power Insert
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return Insert
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getInsert(Container $container): Insert
|
||||
{
|
||||
return new Insert(
|
||||
$container->get('Joomla.Power.Model.Upsert'),
|
||||
$container->get('Insert')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Power Update
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return Update
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getUpdate(Container $container): Update
|
||||
{
|
||||
return new Update(
|
||||
$container->get('Joomla.Power.Model.Upsert'),
|
||||
$container->get('Update')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -15,10 +15,10 @@ namespace VDM\Joomla\Componentbuilder\Compiler\Service;
|
||||
use Joomla\DI\Container;
|
||||
use Joomla\DI\ServiceProviderInterface;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power as Powers;
|
||||
use VDM\Joomla\Componentbuilder\Power\Grep;
|
||||
use VDM\Joomla\Componentbuilder\Power\Super as Superpower;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Infusion;
|
||||
use VDM\Joomla\Componentbuilder\Power\Grep;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Autoloader;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Infusion;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Structure;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Parser;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Plantuml;
|
||||
@ -26,9 +26,6 @@ use VDM\Joomla\Componentbuilder\Compiler\Power\Repo\Readme as RepoReadme;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Repos\Readme as ReposReadme;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Extractor;
|
||||
use VDM\Joomla\Componentbuilder\Compiler\Power\Injector;
|
||||
use VDM\Joomla\Componentbuilder\Power\Model\Upsert;
|
||||
use VDM\Joomla\Componentbuilder\Power\Database\Insert;
|
||||
use VDM\Joomla\Componentbuilder\Power\Database\Update;
|
||||
|
||||
|
||||
/**
|
||||
@ -83,19 +80,10 @@ class Power implements ServiceProviderInterface
|
||||
|
||||
$container->alias(Injector::class, 'Power.Injector')
|
||||
->share('Power.Injector', [$this, 'getInjector'], true);
|
||||
|
||||
$container->alias(Upsert::class, 'Power.Model.Upsert')
|
||||
->share('Power.Model.Upsert', [$this, 'getModelUpsert'], true);
|
||||
|
||||
$container->alias(Insert::class, 'Power.Insert')
|
||||
->share('Power.Insert', [$this, 'getInsert'], true);
|
||||
|
||||
$container->alias(Update::class, 'Power.Update')
|
||||
->share('Power.Update', [$this, 'getUpdate'], true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Powers
|
||||
* Get The Power Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -108,12 +96,13 @@ class Power implements ServiceProviderInterface
|
||||
$container->get('Config'),
|
||||
$container->get('Placeholder'),
|
||||
$container->get('Customcode'),
|
||||
$container->get('Customcode.Gui')
|
||||
$container->get('Customcode.Gui'),
|
||||
$container->get('Superpower')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Superpower
|
||||
* Get The Super Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -124,13 +113,12 @@ class Power implements ServiceProviderInterface
|
||||
{
|
||||
return new Superpower(
|
||||
$container->get('Power.Grep'),
|
||||
$container->get('Power.Insert'),
|
||||
$container->get('Power.Update')
|
||||
$container->get('Data.Item')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Grep
|
||||
* Get The Grep Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -147,7 +135,7 @@ class Power implements ServiceProviderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Autoloader
|
||||
* Get The Autoloader Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -164,7 +152,7 @@ class Power implements ServiceProviderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Power Infusion
|
||||
* Get The Infusion Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -187,7 +175,7 @@ class Power implements ServiceProviderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Power Structure Builder
|
||||
* Get The Structure Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -210,11 +198,11 @@ class Power implements ServiceProviderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Power Parser
|
||||
* Get The Parser Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return Structure
|
||||
* @return Parser
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getParser(Container $container): Parser
|
||||
@ -223,7 +211,7 @@ class Power implements ServiceProviderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Power Plantuml Builder
|
||||
* Get The Plantuml Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -236,7 +224,7 @@ class Power implements ServiceProviderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Power Repo Readme Builder
|
||||
* Get The Readme Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -252,7 +240,7 @@ class Power implements ServiceProviderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Power Repos Readme Builder
|
||||
* Get The Readme Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -268,7 +256,7 @@ class Power implements ServiceProviderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Power Extractor
|
||||
* Get The Extractor Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -281,7 +269,7 @@ class Power implements ServiceProviderInterface
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Compiler Power Injector
|
||||
* Get The Injector Class.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
@ -297,52 +285,5 @@ class Power implements ServiceProviderInterface
|
||||
$container->get('Placeholder')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Power Model Upsert
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return Upsert
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getModelUpsert(Container $container): Upsert
|
||||
{
|
||||
return new Upsert(
|
||||
$container->get('Table')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Power Insert
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return Insert
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getInsert(Container $container): Insert
|
||||
{
|
||||
return new Insert(
|
||||
$container->get('Power.Model.Upsert'),
|
||||
$container->get('Insert')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Power Update
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return Update
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getUpdate(Container $container): Update
|
||||
{
|
||||
return new Update(
|
||||
$container->get('Power.Model.Upsert'),
|
||||
$container->get('Update')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,52 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September, 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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
|
||||
*/
|
||||
|
||||
namespace VDM\Joomla\Componentbuilder\Interfaces;
|
||||
|
||||
|
||||
/**
|
||||
* Superpower of JCB
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
interface SuperInterface
|
||||
{
|
||||
/**
|
||||
* Init all power not found in database
|
||||
*
|
||||
* @return bool
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function init(): bool;
|
||||
|
||||
/**
|
||||
* Reset the powers
|
||||
*
|
||||
* @param array $powers The global unique ids of the powers
|
||||
*
|
||||
* @return bool
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function reset(array $powers): bool;
|
||||
|
||||
/**
|
||||
* Load a superpower
|
||||
*
|
||||
* @param string $guid The global unique id of the power
|
||||
* @param array $order The search order
|
||||
* @param string|null $action The action to load power
|
||||
*
|
||||
* @return bool
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function load(string $guid, array $order = ['remote', 'local'], ?string $action = null): bool;
|
||||
}
|
||||
|
@ -65,7 +65,7 @@ class Config extends BaseConfig
|
||||
*/
|
||||
protected function getGiteausername(): ?string
|
||||
{
|
||||
return $this->custom_gitea_username ?? $this->params->get('gitea_username');
|
||||
return $this->params->get('gitea_username');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -76,66 +76,7 @@ class Config extends BaseConfig
|
||||
*/
|
||||
protected function getGiteatoken(): ?string
|
||||
{
|
||||
return $this->custom_gitea_token ?? $this->params->get('gitea_token');
|
||||
}
|
||||
|
||||
/**
|
||||
* get Add Custom Gitea URL
|
||||
*
|
||||
* @return int the add switch
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getAddcustomgiteaurl(): int
|
||||
{
|
||||
return $this->params->get('add_custom_gitea_url', 1);
|
||||
}
|
||||
|
||||
/**
|
||||
* get Custom Gitea URL
|
||||
*
|
||||
* @return string the custom gitea url
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getCustomgiteaurl(): ?string
|
||||
{
|
||||
if ($this->add_custom_gitea_url == 2)
|
||||
{
|
||||
return $this->params->get('custom_gitea_url');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* get Custom Gitea Username
|
||||
*
|
||||
* @return string the custom access token
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getCustomgiteausername(): ?string
|
||||
{
|
||||
if ($this->add_custom_gitea_url == 2)
|
||||
{
|
||||
return $this->params->get('custom_gitea_username');
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* get Custom Gitea Access Token
|
||||
*
|
||||
* @return string the custom access token
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getCustomgiteatoken(): ?string
|
||||
{
|
||||
if ($this->add_custom_gitea_url == 2)
|
||||
{
|
||||
return $this->params->get('custom_gitea_token');
|
||||
}
|
||||
|
||||
return null;
|
||||
return $this->params->get('gitea_token');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -165,9 +106,9 @@ class Config extends BaseConfig
|
||||
// get the users own power repo (can overwrite all)
|
||||
if (!empty($this->gitea_username))
|
||||
{
|
||||
$repos[$this->gitea_username . '.joomla-powers'] = (object) ['owner' => $this->gitea_username, 'repo' => 'joomla-powers', 'branch' => 'master'];
|
||||
$repos[$this->gitea_username . '.joomla-powers'] = (object) ['organisation' => $this->gitea_username, 'repository' => 'joomla-powers', 'read_branch' => 'master'];
|
||||
}
|
||||
$repos[$this->joomla_powers_core_organisation . '.joomla-powers'] = (object) ['owner' => $this->joomla_powers_core_organisation, 'repo' => 'joomla-powers', 'branch' => 'master'];
|
||||
$repos[$this->joomla_powers_core_organisation . '.joomla-powers'] = (object) ['organisation' => $this->joomla_powers_core_organisation, 'repository' => 'joomla-powers', 'read_branch' => 'master'];
|
||||
|
||||
return $repos;
|
||||
}
|
||||
@ -183,7 +124,7 @@ class Config extends BaseConfig
|
||||
// some defaults repos we need by JCB
|
||||
if (!empty($this->gitea_username))
|
||||
{
|
||||
return (object) ['owner' => $this->gitea_username, 'repo' => 'joomla-powers', 'branch' => 'master'];
|
||||
return (object) ['organisation' => $this->gitea_username, 'repository' => 'joomla-powers', 'read_branch' => 'master'];
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September, 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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
|
||||
*/
|
||||
|
||||
namespace VDM\Joomla\Componentbuilder\JoomlaPower\Database;
|
||||
|
||||
|
||||
use VDM\Joomla\Componentbuilder\Interfaces\Database\InsertInterface;
|
||||
use VDM\Joomla\Componentbuilder\Power\Database\Insert as ExtendingInsert;
|
||||
|
||||
|
||||
/**
|
||||
* Joomla Power Database Insert
|
||||
*
|
||||
* @since 3.2.1
|
||||
*/
|
||||
final class Insert extends ExtendingInsert implements InsertInterface
|
||||
{
|
||||
/**
|
||||
* Table Name
|
||||
*
|
||||
* @var string
|
||||
* @since 3.2.1
|
||||
*/
|
||||
protected string $table = 'power';
|
||||
}
|
||||
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September, 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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
|
||||
*/
|
||||
|
||||
namespace VDM\Joomla\Componentbuilder\JoomlaPower\Database;
|
||||
|
||||
|
||||
use VDM\Joomla\Componentbuilder\Power\Database\LoadInterface;
|
||||
use VDM\Joomla\Componentbuilder\Power\Database\Load as ExtendingLoad;
|
||||
|
||||
|
||||
/**
|
||||
* Power Database Load
|
||||
*
|
||||
* @since 2.0.1
|
||||
*/
|
||||
final class Load extends ExtendingLoad implements LoadInterface
|
||||
{
|
||||
/**
|
||||
* Table Name
|
||||
*
|
||||
* @var string
|
||||
* @since 3.2.1
|
||||
*/
|
||||
protected string $table = 'joomla_power';
|
||||
}
|
||||
|
@ -1,34 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September, 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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
|
||||
*/
|
||||
|
||||
namespace VDM\Joomla\Componentbuilder\JoomlaPower\Database;
|
||||
|
||||
|
||||
use VDM\Joomla\Componentbuilder\Interfaces\Database\UpdateInterface;
|
||||
use VDM\Joomla\Componentbuilder\Power\Database\Update as ExtendingUpdate;
|
||||
|
||||
|
||||
/**
|
||||
* Joomla Power Database Update
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class Update extends ExtendingUpdate implements UpdateInterface
|
||||
{
|
||||
/**
|
||||
* Table Name
|
||||
*
|
||||
* @var string
|
||||
* @since 3.2.1
|
||||
*/
|
||||
protected string $table = 'joomla_power';
|
||||
}
|
||||
|
@ -14,8 +14,9 @@ namespace VDM\Joomla\Componentbuilder\JoomlaPower;
|
||||
|
||||
use Joomla\DI\Container;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Service\JoomlaPower as Power;
|
||||
use VDM\Joomla\Componentbuilder\Service\Database;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Service\Database as PowerDatabase;
|
||||
use VDM\Joomla\Service\Database;
|
||||
use VDM\Joomla\Service\Model;
|
||||
use VDM\Joomla\Service\Data;
|
||||
use VDM\Joomla\Componentbuilder\Service\Gitea;
|
||||
use VDM\Joomla\Componentbuilder\Power\Service\Gitea as GiteaPower;
|
||||
use VDM\Joomla\Gitea\Service\Utilities as GiteaUtilities;
|
||||
@ -77,7 +78,8 @@ abstract class Factory implements FactoryInterface
|
||||
return (new Container())
|
||||
->registerServiceProvider(new Power())
|
||||
->registerServiceProvider(new Database())
|
||||
->registerServiceProvider(new PowerDatabase())
|
||||
->registerServiceProvider(new Model())
|
||||
->registerServiceProvider(new Data())
|
||||
->registerServiceProvider(new Gitea())
|
||||
->registerServiceProvider(new GiteaPower())
|
||||
->registerServiceProvider(new GiteaUtilities());
|
||||
|
@ -56,7 +56,9 @@ final class Grep extends ExtendingGrep implements GrepInterface
|
||||
|
||||
try
|
||||
{
|
||||
$path->index = $this->contents->get($path->owner, $path->repo, 'joomla-powers.json', $path->branch);
|
||||
$this->contents->load_($path->base ?? null, $path->token ?? null);
|
||||
$path->index = $this->contents->get($path->organisation, $path->repository, 'joomla-powers.json', $path->read_branch);
|
||||
$this->contents->reset_();
|
||||
}
|
||||
catch (\Exception $e)
|
||||
{
|
||||
@ -108,46 +110,43 @@ final class Grep extends ExtendingGrep implements GrepInterface
|
||||
*/
|
||||
protected function getRemote(object $path, string $guid): ?object
|
||||
{
|
||||
$power = null;
|
||||
if (empty($path->index->{$guid}->settings))
|
||||
{
|
||||
return null;
|
||||
return $power;
|
||||
}
|
||||
|
||||
// get the settings
|
||||
if (($power = $this->loadRemoteFile($path->owner, $path->repo, $path->index->{$guid}->settings, $path->branch)) !== null &&
|
||||
$this->contents->load_($path->base ?? null, $path->token ?? null);
|
||||
if (($power = $this->loadRemoteFile($path->organisation, $path->repository, $path->index->{$guid}->settings, $path->read_branch)) !== null &&
|
||||
isset($power->guid))
|
||||
{
|
||||
// set the git details in params
|
||||
$power->params = (object) [
|
||||
'git' => [
|
||||
'owner' => $path->owner,
|
||||
'repo' => $path->repo,
|
||||
'branch' => $path->branch
|
||||
]
|
||||
'source' => ['guid' => $path->guid ?? null]
|
||||
];
|
||||
}
|
||||
$this->contents->reset_();
|
||||
|
||||
return $power;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Load the remote file
|
||||
*
|
||||
* @param string $owner The repository owner
|
||||
* @param string $repo The repository name
|
||||
* @param string $organisation The repository organisation
|
||||
* @param string $repository The repository name
|
||||
* @param string $path The repository path to file
|
||||
* @param string|null $branch The repository branch name
|
||||
*
|
||||
* @return mixed
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function loadRemoteFile(string $owner, string $repo, string $path, ?string $branch)
|
||||
protected function loadRemoteFile(string $organisation, string $repository, string $path, ?string $branch)
|
||||
{
|
||||
try
|
||||
{
|
||||
$data = $this->contents->get($owner, $repo, $path, $branch);
|
||||
$data = $this->contents->get($organisation, $repository, $path, $branch);
|
||||
}
|
||||
catch (\Exception $e)
|
||||
{
|
||||
|
@ -1,37 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September, 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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
|
||||
*/
|
||||
|
||||
namespace VDM\Joomla\Componentbuilder\JoomlaPower\Model;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\ModelInterface;
|
||||
use VDM\Joomla\Componentbuilder\Power\Model\Load as ExtendingLoad;
|
||||
|
||||
|
||||
/**
|
||||
* Joomla Power Model Load
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class Load extends ExtendingLoad implements ModelInterface
|
||||
{
|
||||
/**
|
||||
* Get the current active table
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getTable(): string
|
||||
{
|
||||
return 'joomla_power';
|
||||
}
|
||||
}
|
||||
|
@ -1,38 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September, 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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
|
||||
*/
|
||||
|
||||
namespace VDM\Joomla\Componentbuilder\JoomlaPower\Model;
|
||||
|
||||
|
||||
use VDM\Joomla\Interfaces\ModelInterface;
|
||||
use VDM\Joomla\Componentbuilder\Power\Model\Upsert as ExtendingUpsert;
|
||||
|
||||
|
||||
/**
|
||||
* Joomla Power Model Update or Insert
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class Upsert extends ExtendingUpsert implements ModelInterface
|
||||
{
|
||||
/**
|
||||
* Get the current active table
|
||||
*
|
||||
* @return string
|
||||
* @since 3.2.0
|
||||
*/
|
||||
protected function getTable(): string
|
||||
{
|
||||
return 'joomla_power';
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,135 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
* @package Joomla.Component.Builder
|
||||
*
|
||||
* @created 4th September, 2022
|
||||
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
||||
* @git Joomla Component Builder <https://git.vdm.dev/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
|
||||
*/
|
||||
|
||||
namespace VDM\Joomla\Componentbuilder\JoomlaPower\Service;
|
||||
|
||||
|
||||
use Joomla\DI\Container;
|
||||
use Joomla\DI\ServiceProviderInterface;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Model\Load as ModelLoad;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Model\Upsert as ModelUpsert;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Database\Load as LoadDatabase;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Database\Insert as InsertDatabase;
|
||||
use VDM\Joomla\Componentbuilder\JoomlaPower\Database\Update as UpdateDatabase;
|
||||
|
||||
|
||||
/**
|
||||
* Database Service Provider
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
class Database implements ServiceProviderInterface
|
||||
{
|
||||
/**
|
||||
* Registers the service provider with a DI container.
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return void
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function register(Container $container)
|
||||
{
|
||||
$container->alias(ModelLoad::class, 'Joomla.Power.Model.Load')
|
||||
->share('Joomla.Power.Model.Load', [$this, 'getModelLoad'], true);
|
||||
|
||||
$container->alias(ModelUpsert::class, 'Joomla.Power.Model.Upsert')
|
||||
->share('Joomla.Power.Model.Upsert', [$this, 'getModelUpsert'], true);
|
||||
|
||||
$container->alias(LoadDatabase::class, 'Joomla.Power.Database.Load')
|
||||
->share('Joomla.Power.Database.Load', [$this, 'getLoadDatabase'], true);
|
||||
|
||||
$container->alias(InsertDatabase::class, 'Joomla.Power.Database.Insert')
|
||||
->share('Joomla.Power.Database.Insert', [$this, 'getInsertDatabase'], true);
|
||||
|
||||
$container->alias(UpdateDatabase::class, 'Joomla.Power.Database.Update')
|
||||
->share('Joomla.Power.Database.Update', [$this, 'getUpdateDatabase'], true);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Power Model Load
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return ModelLoad
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getModelLoad(Container $container): ModelLoad
|
||||
{
|
||||
return new ModelLoad(
|
||||
$container->get('Table')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Power Model Update or Insert
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return ModelUpsert
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getModelUpsert(Container $container): ModelUpsert
|
||||
{
|
||||
return new ModelUpsert(
|
||||
$container->get('Table')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Load Database
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return LoadDatabase
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getLoadDatabase(Container $container): LoadDatabase
|
||||
{
|
||||
return new LoadDatabase(
|
||||
$container->get('Joomla.Power.Model.Load'),
|
||||
$container->get('Load')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Insert Database
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return InsertDatabase
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getInsertDatabase(Container $container): InsertDatabase
|
||||
{
|
||||
return new InsertDatabase(
|
||||
$container->get('Joomla.Power.Model.Upsert'),
|
||||
$container->get('Insert')
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the Update Database
|
||||
*
|
||||
* @param Container $container The DI container.
|
||||
*
|
||||
* @return UpdateDatabase
|
||||
* @since 3.2.0
|
||||
*/
|
||||
public function getUpdateDatabase(Container $container): UpdateDatabase
|
||||
{
|
||||
return new UpdateDatabase(
|
||||
$container->get('Joomla.Power.Model.Upsert'),
|
||||
$container->get('Update')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -108,8 +108,7 @@ class JoomlaPower implements ServiceProviderInterface
|
||||
{
|
||||
return new Superpower(
|
||||
$container->get('Joomla.Power.Grep'),
|
||||
$container->get('Joomla.Power.Database.Insert'),
|
||||
$container->get('Joomla.Power.Database.Update')
|
||||
$container->get('Data.Item')
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -12,8 +12,8 @@
|
||||
namespace VDM\Joomla\Componentbuilder\JoomlaPower;
|
||||
|
||||
|
||||
use VDM\Joomla\Componentbuilder\Interfaces\SuperInterface;
|
||||
use VDM\Joomla\Componentbuilder\Power\Super as ExtendingSuper;
|
||||
use VDM\Joomla\Interfaces\Data\RemoteInterface;
|
||||
use VDM\Joomla\Data\Remote;
|
||||
|
||||
|
||||
/**
|
||||
@ -21,7 +21,7 @@ use VDM\Joomla\Componentbuilder\Power\Super as ExtendingSuper;
|
||||
*
|
||||
* @since 3.2.0
|
||||
*/
|
||||
final class Super extends ExtendingSuper implements SuperInterface
|
||||
final class Super extends Remote implements RemoteInterface
|
||||
{
|
||||
/**
|
||||
* Table Name
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user