get('currency.edit')): ?>
- escape($item->name); ?>
+ escape($item->ext_number); ?>
checked_out): ?>
name, $item->checked_out_time, 'currencies.', $canCheckin); ?>
- escape($item->name); ?>
+ escape($item->ext_number); ?>
|
diff --git a/admin/layouts/country/details_above.php b/admin/layouts/country/details_above.php
index e6e6a61..6447281 100644
--- a/admin/layouts/country/details_above.php
+++ b/admin/layouts/country/details_above.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage details_above.php
diff --git a/admin/layouts/country/details_left.php b/admin/layouts/country/details_left.php
index c509420..e3d1d75 100644
--- a/admin/layouts/country/details_left.php
+++ b/admin/layouts/country/details_left.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage details_left.php
diff --git a/admin/layouts/country/details_right.php b/admin/layouts/country/details_right.php
index 290ea44..b0c0d40 100644
--- a/admin/layouts/country/details_right.php
+++ b/admin/layouts/country/details_right.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage details_right.php
diff --git a/admin/layouts/country/more_stuff_fullwidth.php b/admin/layouts/country/more_stuff_fullwidth.php
index da7e5f0..921783b 100644
--- a/admin/layouts/country/more_stuff_fullwidth.php
+++ b/admin/layouts/country/more_stuff_fullwidth.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage more_stuff_fullwidth.php
diff --git a/admin/layouts/country/publishing.php b/admin/layouts/country/publishing.php
index 9c574bf..4440d2d 100644
--- a/admin/layouts/country/publishing.php
+++ b/admin/layouts/country/publishing.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage publishing.php
diff --git a/admin/layouts/country/publlshing.php b/admin/layouts/country/publlshing.php
index e5013ab..1f2274b 100644
--- a/admin/layouts/country/publlshing.php
+++ b/admin/layouts/country/publlshing.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage publlshing.php
diff --git a/admin/layouts/currency/details_above.php b/admin/layouts/currency/details_above.php
index e6e6a61..2dfc438 100644
--- a/admin/layouts/currency/details_above.php
+++ b/admin/layouts/currency/details_above.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage details_above.php
@@ -35,7 +35,7 @@ $fields_tab_layout = 'fields_' . $layout_path_array[1];
// get the fields
$fields = $displayData->get($fields_tab_layout) ?: [
- 'name'
+ 'ext_number'
];
// Ensure $fields is treated as an array and count its size.
diff --git a/admin/layouts/currency/details_left.php b/admin/layouts/currency/details_left.php
index 592b157..08b1428 100644
--- a/admin/layouts/currency/details_left.php
+++ b/admin/layouts/currency/details_left.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage details_left.php
diff --git a/admin/layouts/currency/details_right.php b/admin/layouts/currency/details_right.php
index c2d983f..3e58b3c 100644
--- a/admin/layouts/currency/details_right.php
+++ b/admin/layouts/currency/details_right.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage details_right.php
diff --git a/admin/layouts/currency/publishing.php b/admin/layouts/currency/publishing.php
index 9c574bf..4440d2d 100644
--- a/admin/layouts/currency/publishing.php
+++ b/admin/layouts/currency/publishing.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage publishing.php
diff --git a/admin/layouts/currency/publlshing.php b/admin/layouts/currency/publlshing.php
index e5013ab..1f2274b 100644
--- a/admin/layouts/currency/publlshing.php
+++ b/admin/layouts/currency/publlshing.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage publlshing.php
diff --git a/admin/services/provider.php b/admin/services/provider.php
index f9f6d38..d529e2a 100644
--- a/admin/services/provider.php
+++ b/admin/services/provider.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage provider.php
diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql
index d62cd1f..4632ff6 100644
--- a/admin/sql/install.mysql.utf8.sql
+++ b/admin/sql/install.mysql.utf8.sql
@@ -37,8 +37,8 @@ CREATE TABLE IF NOT EXISTS `#__subformpower_currency` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`country` VARCHAR(36) NOT NULL DEFAULT '',
+ `ext_number` INT(10) NOT NULL DEFAULT 0,
`guid` VARCHAR(36) NOT NULL DEFAULT '',
- `name` VARCHAR(255) NOT NULL DEFAULT '',
`symbol` VARCHAR(255) NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NOT NULL DEFAULT 1,
@@ -53,7 +53,7 @@ CREATE TABLE IF NOT EXISTS `#__subformpower_currency` (
`access` INT(10) unsigned NOT NULL DEFAULT 0,
`ordering` INT(11) NOT NULL DEFAULT 0,
PRIMARY KEY (`id`),
- KEY `idx_name` (`name`),
+ KEY `idx_ext_number` (`ext_number`),
KEY `idx_country` (`country`),
KEY `idx_guid` (`guid`),
KEY `idx_access` (`access`),
diff --git a/admin/src/Controller/CountriesController.php b/admin/src/Controller/CountriesController.php
index ba98426..381379a 100644
--- a/admin/src/Controller/CountriesController.php
+++ b/admin/src/Controller/CountriesController.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CountriesController.php
diff --git a/admin/src/Controller/CountryController.php b/admin/src/Controller/CountryController.php
index 5b82f1a..0a86a9e 100644
--- a/admin/src/Controller/CountryController.php
+++ b/admin/src/Controller/CountryController.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CountryController.php
@@ -338,7 +338,7 @@ class CountryController extends FormController
* Function that allows child controller access to model data
* after the data has been saved.
*
- * @param BaseDatabaseModel &$model The data model object.
+ * @param BaseDatabaseModel $model The data model object.
* @param array $validData The validated data.
*
* @return void
diff --git a/admin/src/Controller/CurrenciesController.php b/admin/src/Controller/CurrenciesController.php
index 75f54a6..4619062 100644
--- a/admin/src/Controller/CurrenciesController.php
+++ b/admin/src/Controller/CurrenciesController.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CurrenciesController.php
diff --git a/admin/src/Controller/CurrencyController.php b/admin/src/Controller/CurrencyController.php
index 0b4230a..05bb25c 100644
--- a/admin/src/Controller/CurrencyController.php
+++ b/admin/src/Controller/CurrencyController.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CurrencyController.php
@@ -338,7 +338,7 @@ class CurrencyController extends FormController
* Function that allows child controller access to model data
* after the data has been saved.
*
- * @param BaseDatabaseModel &$model The data model object.
+ * @param BaseDatabaseModel $model The data model object.
* @param array $validData The validated data.
*
* @return void
diff --git a/admin/src/Controller/DisplayController.php b/admin/src/Controller/DisplayController.php
index fb8b8dd..057247b 100644
--- a/admin/src/Controller/DisplayController.php
+++ b/admin/src/Controller/DisplayController.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage DisplayController.php
diff --git a/admin/src/Controller/ImportController.php b/admin/src/Controller/ImportController.php
index a18c235..8a9d427 100644
--- a/admin/src/Controller/ImportController.php
+++ b/admin/src/Controller/ImportController.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage ImportController.php
diff --git a/admin/src/Controller/SubformpowerController.php b/admin/src/Controller/SubformpowerController.php
index 6059e1e..5c1ec44 100644
--- a/admin/src/Controller/SubformpowerController.php
+++ b/admin/src/Controller/SubformpowerController.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage SubformpowerController.php
diff --git a/admin/src/Extension/SubformpowerComponent.php b/admin/src/Extension/SubformpowerComponent.php
index 309dc8e..e053f90 100644
--- a/admin/src/Extension/SubformpowerComponent.php
+++ b/admin/src/Extension/SubformpowerComponent.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage SubformpowerComponent.php
diff --git a/admin/src/Field/CountriesField.php b/admin/src/Field/CountriesField.php
index 5fb8e48..41f9bbe 100644
--- a/admin/src/Field/CountriesField.php
+++ b/admin/src/Field/CountriesField.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CountriesField.php
diff --git a/admin/src/Field/CountriesfilterisoField.php b/admin/src/Field/CountriesfilterisoField.php
index 65669fd..aedf96e 100644
--- a/admin/src/Field/CountriesfilterisoField.php
+++ b/admin/src/Field/CountriesfilterisoField.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CountriesfilterisoField.php
diff --git a/admin/src/Field/CountriesfilterisothreeField.php b/admin/src/Field/CountriesfilterisothreeField.php
index 220b1c7..78e7840 100644
--- a/admin/src/Field/CountriesfilterisothreeField.php
+++ b/admin/src/Field/CountriesfilterisothreeField.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CountriesfilterisothreeField.php
diff --git a/admin/src/Field/CountriesfilternumcodeField.php b/admin/src/Field/CountriesfilternumcodeField.php
index b51f5bb..1f86520 100644
--- a/admin/src/Field/CountriesfilternumcodeField.php
+++ b/admin/src/Field/CountriesfilternumcodeField.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CountriesfilternumcodeField.php
diff --git a/admin/src/Field/CountriesfilterphonecodeField.php b/admin/src/Field/CountriesfilterphonecodeField.php
index 4a9ed91..16be64b 100644
--- a/admin/src/Field/CountriesfilterphonecodeField.php
+++ b/admin/src/Field/CountriesfilterphonecodeField.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CountriesfilterphonecodeField.php
diff --git a/admin/src/Field/CurrenciesfiltersymbolField.php b/admin/src/Field/CurrenciesfiltersymbolField.php
index 7f378e2..0343eb0 100644
--- a/admin/src/Field/CurrenciesfiltersymbolField.php
+++ b/admin/src/Field/CurrenciesfiltersymbolField.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CurrenciesfiltersymbolField.php
diff --git a/admin/src/Helper/HeaderCheck.php b/admin/src/Helper/HeaderCheck.php
index 7219962..f488095 100644
--- a/admin/src/Helper/HeaderCheck.php
+++ b/admin/src/Helper/HeaderCheck.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage HeaderCheck.php
diff --git a/admin/src/Helper/PowerloaderHelper.php b/admin/src/Helper/PowerloaderHelper.php
index a785851..a6827cc 100644
--- a/admin/src/Helper/PowerloaderHelper.php
+++ b/admin/src/Helper/PowerloaderHelper.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage PowerloaderHelper.php
diff --git a/admin/src/Helper/SubformpowerHelper.php b/admin/src/Helper/SubformpowerHelper.php
index 31ccc13..a52260e 100644
--- a/admin/src/Helper/SubformpowerHelper.php
+++ b/admin/src/Helper/SubformpowerHelper.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage SubformpowerHelper.php
@@ -31,7 +31,7 @@ use Joomla\CMS\Language\Text;
use Joomla\CMS\Access\Access;
use Joomla\CMS\Access\Rules as AccessRules;
use Joomla\CMS\Component\ComponentHelper;
-use Joomla\CMS\Filesystem\File;
+use Joomla\Filesystem\File;
use Joomla\CMS\Language\Language;
use Joomla\CMS\MVC\Model\BaseDatabaseModel;
use Joomla\CMS\Object\CMSObject;
@@ -43,9 +43,6 @@ use Joomla\Database\DatabaseInterface;
use Joomla\Registry\Registry;
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
-use PhpOffice\PhpSpreadsheet\IOFactory;
-use PhpOffice\PhpSpreadsheet\Spreadsheet;
-use PhpOffice\PhpSpreadsheet\Writer\Xlsx;
use JCB\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use JCB\Joomla\Utilities\ObjectHelper;
use JCB\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
diff --git a/admin/src/Model/CountriesModel.php b/admin/src/Model/CountriesModel.php
index a27b36e..04f0a70 100644
--- a/admin/src/Model/CountriesModel.php
+++ b/admin/src/Model/CountriesModel.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CountriesModel.php
@@ -421,6 +421,8 @@ class CountriesModel extends ListModel
{
$query->where('a.id IN (' . implode(',',$pks) . ')');
}
+ // Get global switch to activate text only export
+ $export_text_only = ComponentHelper::getParams('com_subformpower')->get('export_text_only', 0);
// Implement View Level Access
if (!$user->authorise('core.options', 'com_subformpower'))
{
diff --git a/admin/src/Model/CountryModel.php b/admin/src/Model/CountryModel.php
index 76449b9..69e81b5 100644
--- a/admin/src/Model/CountryModel.php
+++ b/admin/src/Model/CountryModel.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CountryModel.php
diff --git a/admin/src/Model/CurrenciesModel.php b/admin/src/Model/CurrenciesModel.php
index 46914e4..6e45598 100644
--- a/admin/src/Model/CurrenciesModel.php
+++ b/admin/src/Model/CurrenciesModel.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CurrenciesModel.php
@@ -350,6 +350,16 @@ class CurrenciesModel extends ListModel
{
$query->where('a.id IN (' . implode(',',$pks) . ')');
}
+ // Get global switch to activate text only export
+ $export_text_only = ComponentHelper::getParams('com_subformpower')->get('export_text_only', 0);
+ // Add these queries only if text only is required
+ if ($export_text_only)
+ {
+
+ // From the subformpower_country table.
+ $query->select($db->quoteName(['g.name','g.id'],['country','country_id']));
+ $query->join('LEFT', $db->quoteName('#__subformpower_country', 'g') . ' ON (' . $db->quoteName('a.country') . ' = ' . $db->quoteName('g.guid') . ')');
+ }
// Implement View Level Access
if (!$user->authorise('core.options', 'com_subformpower'))
{
diff --git a/admin/src/Model/CurrencyModel.php b/admin/src/Model/CurrencyModel.php
index 52f528c..d127ab8 100644
--- a/admin/src/Model/CurrencyModel.php
+++ b/admin/src/Model/CurrencyModel.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CurrencyModel.php
@@ -70,7 +70,7 @@ class CurrencyModel extends AdminModel
'country'
),
'above' => array(
- 'name'
+ 'ext_number'
)
)
);
@@ -697,9 +697,9 @@ class CurrencyModel extends AdminModel
}
// Only for strings
- if (UtilitiesStringHelper::check($this->table->name) && !is_numeric($this->table->name))
+ if (UtilitiesStringHelper::check($this->table->ext_number) && !is_numeric($this->table->ext_number))
{
- $this->table->name = $this->generateUnique('name',$this->table->name);
+ $this->table->ext_number = $this->generateUnique('ext_number',$this->table->ext_number);
}
// insert all set values
diff --git a/admin/src/Model/ImportModel.php b/admin/src/Model/ImportModel.php
index d385163..a17a3bc 100644
--- a/admin/src/Model/ImportModel.php
+++ b/admin/src/Model/ImportModel.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage ImportModel.php
@@ -21,8 +21,8 @@ namespace JCB\Component\Subformpower\Administrator\Model;
use Joomla\CMS\Factory;
use Joomla\CMS\Language\Text;
-use Joomla\CMS\Filesystem\File;
-use Joomla\CMS\Filesystem\Folder;
+use Joomla\Filesystem\File;
+use Joomla\Filesystem\Folder;
use Joomla\CMS\Filesystem\Path;
use Joomla\CMS\Filter\OutputFilter;
use Joomla\CMS\Installer\InstallerHelper;
diff --git a/admin/src/Model/SubformpowerModel.php b/admin/src/Model/SubformpowerModel.php
index 5a871ca..b061519 100644
--- a/admin/src/Model/SubformpowerModel.php
+++ b/admin/src/Model/SubformpowerModel.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage SubformpowerModel.php
diff --git a/admin/src/Rule/GuidRule.php b/admin/src/Rule/GuidRule.php
index a5d7e64..88e80ed 100644
--- a/admin/src/Rule/GuidRule.php
+++ b/admin/src/Rule/GuidRule.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage GuidRule.php
diff --git a/admin/src/Table/CountryTable.php b/admin/src/Table/CountryTable.php
index 2ed5c1f..e21feea 100644
--- a/admin/src/Table/CountryTable.php
+++ b/admin/src/Table/CountryTable.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CountryTable.php
diff --git a/admin/src/Table/CurrencyTable.php b/admin/src/Table/CurrencyTable.php
index 25be1a0..c411ad6 100644
--- a/admin/src/Table/CurrencyTable.php
+++ b/admin/src/Table/CurrencyTable.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage CurrencyTable.php
diff --git a/admin/src/View/Countries/HtmlView.php b/admin/src/View/Countries/HtmlView.php
index 0e897df..1cf2be8 100644
--- a/admin/src/View/Countries/HtmlView.php
+++ b/admin/src/View/Countries/HtmlView.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage HtmlView.php
@@ -25,6 +25,7 @@ use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Form\FormHelper;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
+use Joomla\CMS\User\User;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\FileLayout;
@@ -46,6 +47,62 @@ use JCB\Joomla\Utilities\StringHelper;
*/
class HtmlView extends BaseHtmlView
{
+ /**
+ * The items from the model
+ *
+ * @var mixed
+ * @since 3.10.11
+ */
+ public mixed $items;
+
+ /**
+ * The state object
+ *
+ * @var mixed
+ * @since 3.10.11
+ */
+ public mixed $state;
+
+ /**
+ * The styles url array
+ *
+ * @var array
+ * @since 5.0.0
+ */
+ protected array $styles;
+
+ /**
+ * The scripts url array
+ *
+ * @var array
+ * @since 5.0.0
+ */
+ protected array $scripts;
+
+ /**
+ * The actions object
+ *
+ * @var object
+ * @since 3.10.11
+ */
+ public object $canDo;
+
+ /**
+ * The return here base64 url
+ *
+ * @var string
+ * @since 3.10.11
+ */
+ public string $return_here;
+
+ /**
+ * The user object.
+ *
+ * @var User
+ * @since 3.10.11
+ */
+ public User $user;
+
/**
* Countries view display method
*
@@ -62,7 +119,7 @@ class HtmlView extends BaseHtmlView
$this->state = $this->get('State');
$this->styles = $this->get('Styles');
$this->scripts = $this->get('Scripts');
- $this->user ??= Factory::getApplication()->getIdentity();
+ $this->user ??= $this->getCurrentUser();
// Load the filter form from xml.
$this->filterForm = $this->get('FilterForm');
// Load the active filters.
diff --git a/admin/src/View/Country/HtmlView.php b/admin/src/View/Country/HtmlView.php
index 36be57f..348e4ca 100644
--- a/admin/src/View/Country/HtmlView.php
+++ b/admin/src/View/Country/HtmlView.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage HtmlView.php
@@ -25,6 +25,7 @@ use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Form\FormHelper;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
+use Joomla\CMS\User\User;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\FileLayout;
@@ -45,6 +46,86 @@ use JCB\Joomla\Utilities\StringHelper;
*/
class HtmlView extends BaseHtmlView
{
+ /**
+ * The item from the model
+ *
+ * @var mixed
+ * @since 3.10.11
+ */
+ public mixed $item;
+
+ /**
+ * The state object
+ *
+ * @var mixed
+ * @since 3.10.11
+ */
+ public mixed $state;
+
+ /**
+ * The form from the model
+ *
+ * @var mixed
+ * @since 3.10.11
+ */
+ public mixed $form;
+
+ /**
+ * The toolbar object
+ *
+ * @var Toolbar
+ * @since 3.10.11
+ */
+ public Toolbar $toolbar;
+
+ /**
+ * The styles url array
+ *
+ * @var array
+ * @since 5.0.0
+ */
+ protected array $styles;
+
+ /**
+ * The scripts url array
+ *
+ * @var array
+ * @since 5.0.0
+ */
+ protected array $scripts;
+
+ /**
+ * The actions object
+ *
+ * @var object
+ * @since 3.10.11
+ */
+ public object $canDo;
+
+ /**
+ * The origin referral view name
+ *
+ * @var string
+ * @since 3.10.11
+ */
+ public string $ref;
+
+ /**
+ * The origin referral item id
+ *
+ * @var int
+ * @since 3.10.11
+ */
+ public int $refid;
+
+ /**
+ * The referral url suffix values
+ *
+ * @var string
+ * @since 3.10.11
+ */
+ public string $referral;
+
/**
* Country view display method
*
@@ -59,7 +140,7 @@ class HtmlView extends BaseHtmlView
$this->params = ComponentHelper::getParams('com_subformpower');
$this->useCoreUI = true;
// Assign the variables
- $this->form = $this->get('Form');
+ $this->form ??= $this->get('Form');
$this->item = $this->get('Item');
$this->styles = $this->get('Styles');
$this->scripts = $this->get('Scripts');
diff --git a/admin/src/View/Currencies/HtmlView.php b/admin/src/View/Currencies/HtmlView.php
index 3c60f48..136cb31 100644
--- a/admin/src/View/Currencies/HtmlView.php
+++ b/admin/src/View/Currencies/HtmlView.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage HtmlView.php
@@ -25,6 +25,7 @@ use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Form\FormHelper;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
+use Joomla\CMS\User\User;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\FileLayout;
@@ -46,6 +47,62 @@ use JCB\Joomla\Utilities\StringHelper;
*/
class HtmlView extends BaseHtmlView
{
+ /**
+ * The items from the model
+ *
+ * @var mixed
+ * @since 3.10.11
+ */
+ public mixed $items;
+
+ /**
+ * The state object
+ *
+ * @var mixed
+ * @since 3.10.11
+ */
+ public mixed $state;
+
+ /**
+ * The styles url array
+ *
+ * @var array
+ * @since 5.0.0
+ */
+ protected array $styles;
+
+ /**
+ * The scripts url array
+ *
+ * @var array
+ * @since 5.0.0
+ */
+ protected array $scripts;
+
+ /**
+ * The actions object
+ *
+ * @var object
+ * @since 3.10.11
+ */
+ public object $canDo;
+
+ /**
+ * The return here base64 url
+ *
+ * @var string
+ * @since 3.10.11
+ */
+ public string $return_here;
+
+ /**
+ * The user object.
+ *
+ * @var User
+ * @since 3.10.11
+ */
+ public User $user;
+
/**
* Currencies view display method
*
@@ -62,7 +119,7 @@ class HtmlView extends BaseHtmlView
$this->state = $this->get('State');
$this->styles = $this->get('Styles');
$this->scripts = $this->get('Scripts');
- $this->user ??= Factory::getApplication()->getIdentity();
+ $this->user ??= $this->getCurrentUser();
// Load the filter form from xml.
$this->filterForm = $this->get('FilterForm');
// Load the active filters.
diff --git a/admin/src/View/Currency/HtmlView.php b/admin/src/View/Currency/HtmlView.php
index bba09a4..0387ecc 100644
--- a/admin/src/View/Currency/HtmlView.php
+++ b/admin/src/View/Currency/HtmlView.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage HtmlView.php
@@ -25,6 +25,7 @@ use Joomla\CMS\Toolbar\Toolbar;
use Joomla\CMS\Form\FormHelper;
use Joomla\CMS\Session\Session;
use Joomla\CMS\Uri\Uri;
+use Joomla\CMS\User\User;
use Joomla\CMS\Component\ComponentHelper;
use Joomla\CMS\HTML\HTMLHelper as Html;
use Joomla\CMS\Layout\FileLayout;
@@ -45,6 +46,86 @@ use JCB\Joomla\Utilities\StringHelper;
*/
class HtmlView extends BaseHtmlView
{
+ /**
+ * The item from the model
+ *
+ * @var mixed
+ * @since 3.10.11
+ */
+ public mixed $item;
+
+ /**
+ * The state object
+ *
+ * @var mixed
+ * @since 3.10.11
+ */
+ public mixed $state;
+
+ /**
+ * The form from the model
+ *
+ * @var mixed
+ * @since 3.10.11
+ */
+ public mixed $form;
+
+ /**
+ * The toolbar object
+ *
+ * @var Toolbar
+ * @since 3.10.11
+ */
+ public Toolbar $toolbar;
+
+ /**
+ * The styles url array
+ *
+ * @var array
+ * @since 5.0.0
+ */
+ protected array $styles;
+
+ /**
+ * The scripts url array
+ *
+ * @var array
+ * @since 5.0.0
+ */
+ protected array $scripts;
+
+ /**
+ * The actions object
+ *
+ * @var object
+ * @since 3.10.11
+ */
+ public object $canDo;
+
+ /**
+ * The origin referral view name
+ *
+ * @var string
+ * @since 3.10.11
+ */
+ public string $ref;
+
+ /**
+ * The origin referral item id
+ *
+ * @var int
+ * @since 3.10.11
+ */
+ public int $refid;
+
+ /**
+ * The referral url suffix values
+ *
+ * @var string
+ * @since 3.10.11
+ */
+ public string $referral;
+
/**
* Currency view display method
*
@@ -59,7 +140,7 @@ class HtmlView extends BaseHtmlView
$this->params = ComponentHelper::getParams('com_subformpower');
$this->useCoreUI = true;
// Assign the variables
- $this->form = $this->get('Form');
+ $this->form ??= $this->get('Form');
$this->item = $this->get('Item');
$this->styles = $this->get('Styles');
$this->scripts = $this->get('Scripts');
diff --git a/admin/src/View/Import/HtmlView.php b/admin/src/View/Import/HtmlView.php
index e712ae7..4fbac1a 100644
--- a/admin/src/View/Import/HtmlView.php
+++ b/admin/src/View/Import/HtmlView.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage HtmlView.php
diff --git a/admin/src/View/Subformpower/HtmlView.php b/admin/src/View/Subformpower/HtmlView.php
index 8636e8d..bf76612 100644
--- a/admin/src/View/Subformpower/HtmlView.php
+++ b/admin/src/View/Subformpower/HtmlView.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage HtmlView.php
diff --git a/admin/tmpl/countries/default.php b/admin/tmpl/countries/default.php
index 6f953bf..d7f42cb 100644
--- a/admin/tmpl/countries/default.php
+++ b/admin/tmpl/countries/default.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage default.php
diff --git a/admin/tmpl/countries/default_body.php b/admin/tmpl/countries/default_body.php
index 41d6fe1..961d8e6 100644
--- a/admin/tmpl/countries/default_body.php
+++ b/admin/tmpl/countries/default_body.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage default_body.php
diff --git a/admin/tmpl/countries/default_foot.php b/admin/tmpl/countries/default_foot.php
index 2aeba24..155c165 100644
--- a/admin/tmpl/countries/default_foot.php
+++ b/admin/tmpl/countries/default_foot.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage default_foot.php
diff --git a/admin/tmpl/countries/default_head.php b/admin/tmpl/countries/default_head.php
index 0f7914e..3b89d1c 100644
--- a/admin/tmpl/countries/default_head.php
+++ b/admin/tmpl/countries/default_head.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage default_head.php
diff --git a/admin/tmpl/countries/default_toolbar.php b/admin/tmpl/countries/default_toolbar.php
index f68b60e..e46e632 100644
--- a/admin/tmpl/countries/default_toolbar.php
+++ b/admin/tmpl/countries/default_toolbar.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage default_toolbar.php
diff --git a/admin/tmpl/countries/emptystate.php b/admin/tmpl/countries/emptystate.php
index c9879e9..7df10bc 100644
--- a/admin/tmpl/countries/emptystate.php
+++ b/admin/tmpl/countries/emptystate.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage emptystate.php
diff --git a/admin/tmpl/country/default.php b/admin/tmpl/country/default.php
index 1023c82..f43e75d 100644
--- a/admin/tmpl/country/default.php
+++ b/admin/tmpl/country/default.php
@@ -3,8 +3,8 @@
Nampharm
/-------------------------------------------------------------------------------------------------------/
- @version 1.0.0
- @build 28th June, 2024
+ @version 1.0.1
+ @build 20th August, 2024
@created 24th May, 2024
@package Subform Power
@subpackage default.php
@@ -111,14 +111,10 @@ defined('_JEXEC') or die;
- |