Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
44e9ef8b8f |
14
README.md
14
README.md
@@ -8,24 +8,24 @@ Demonstration of subform super power
|
|||||||
+ *Author*: [Oh Martin](mailto:oh@nampharm.com.na)
|
+ *Author*: [Oh Martin](mailto:oh@nampharm.com.na)
|
||||||
+ *Name*: [Subform Power](https://nampharm.com.na)
|
+ *Name*: [Subform Power](https://nampharm.com.na)
|
||||||
+ *First Build*: 24th May, 2024
|
+ *First Build*: 24th May, 2024
|
||||||
+ *Last Build*: 5th February, 2025
|
+ *Last Build*: 20th August, 2024
|
||||||
+ *Version*: 1.0.1
|
+ *Version*: 1.0.1
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
## Build Time
|
## Build Time
|
||||||
|
|
||||||
**72 Hours** or **9 Eight Hour Days** (actual time the author saved -
|
**71 Hours** or **9 Eight Hour Days** (actual time the author saved -
|
||||||
due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
|
due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
|
||||||
|
|
||||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||||
> never making one mistake or taking any coffee break.)
|
> never making one mistake or taking any coffee break.)
|
||||||
|
|
||||||
+ *Line count*: **25909**
|
+ *Line count*: **25284**
|
||||||
+ *File count*: **246**
|
+ *File count*: **234**
|
||||||
+ *Folder count*: **85**
|
+ *Folder count*: **81**
|
||||||
|
|
||||||
**48 Hours** or **6 Eight Hour Days** (the actual time the author spent)
|
**46 Hours** or **6 Eight Hour Days** (the actual time the author spent)
|
||||||
|
|
||||||
> (with the following break down:
|
> (with the following break down:
|
||||||
> **debugging @18hours** = codingtime / 4;
|
> **debugging @18hours** = codingtime / 4;
|
||||||
@@ -33,7 +33,7 @@ due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
|
|||||||
> **mapping @7hours** = codingtime / 10;
|
> **mapping @7hours** = codingtime / 10;
|
||||||
> **office @12hours** = codingtime / 6;)
|
> **office @12hours** = codingtime / 6;)
|
||||||
|
|
||||||
**120 Hours** or **15 Eight Hour Days**
|
**117 Hours** or **15 Eight Hour Days**
|
||||||
(a total of the realistic time frame for this project)
|
(a total of the realistic time frame for this project)
|
||||||
|
|
||||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage SubformpowerInstallerPowerloader.php
|
@subpackage SubformpowerInstallerPowerloader.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage SubformpowerInstallerScript.php
|
@subpackage SubformpowerInstallerScript.php
|
||||||
|
@@ -8,24 +8,24 @@ Demonstration of subform super power
|
|||||||
+ *Author*: [Oh Martin](mailto:oh@nampharm.com.na)
|
+ *Author*: [Oh Martin](mailto:oh@nampharm.com.na)
|
||||||
+ *Name*: [Subform Power](https://nampharm.com.na)
|
+ *Name*: [Subform Power](https://nampharm.com.na)
|
||||||
+ *First Build*: 24th May, 2024
|
+ *First Build*: 24th May, 2024
|
||||||
+ *Last Build*: 5th February, 2025
|
+ *Last Build*: 20th August, 2024
|
||||||
+ *Version*: 1.0.1
|
+ *Version*: 1.0.1
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
|
|
||||||
## Build Time
|
## Build Time
|
||||||
|
|
||||||
**72 Hours** or **9 Eight Hour Days** (actual time the author saved -
|
**71 Hours** or **9 Eight Hour Days** (actual time the author saved -
|
||||||
due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
|
due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
|
||||||
|
|
||||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||||
> never making one mistake or taking any coffee break.)
|
> never making one mistake or taking any coffee break.)
|
||||||
|
|
||||||
+ *Line count*: **25909**
|
+ *Line count*: **25284**
|
||||||
+ *File count*: **246**
|
+ *File count*: **234**
|
||||||
+ *Folder count*: **85**
|
+ *Folder count*: **81**
|
||||||
|
|
||||||
**48 Hours** or **6 Eight Hour Days** (the actual time the author spent)
|
**46 Hours** or **6 Eight Hour Days** (the actual time the author spent)
|
||||||
|
|
||||||
> (with the following break down:
|
> (with the following break down:
|
||||||
> **debugging @18hours** = codingtime / 4;
|
> **debugging @18hours** = codingtime / 4;
|
||||||
@@ -33,7 +33,7 @@ due to [Automated Component Builder](https://www.joomlacomponentbuilder.com))
|
|||||||
> **mapping @7hours** = codingtime / 10;
|
> **mapping @7hours** = codingtime / 10;
|
||||||
> **office @12hours** = codingtime / 6;)
|
> **office @12hours** = codingtime / 6;)
|
||||||
|
|
||||||
**120 Hours** or **15 Eight Hour Days**
|
**117 Hours** or **15 Eight Hour Days**
|
||||||
(a total of the realistic time frame for this project)
|
(a total of the realistic time frame for this project)
|
||||||
|
|
||||||
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage admin.css
|
@subpackage admin.css
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage countries.css
|
@subpackage countries.css
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage country.css
|
@subpackage country.css
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage currencies.css
|
@subpackage currencies.css
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage currency.css
|
@subpackage currency.css
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage dashboard.css
|
@subpackage dashboard.css
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage admin.js
|
@subpackage admin.js
|
||||||
|
@@ -122,7 +122,10 @@
|
|||||||
type="countries"
|
type="countries"
|
||||||
name="country"
|
name="country"
|
||||||
label="COM_SUBFORMPOWER_CURRENCY_COUNTRY_LABEL"
|
label="COM_SUBFORMPOWER_CURRENCY_COUNTRY_LABEL"
|
||||||
|
description="COM_SUBFORMPOWER_CURRENCY_COUNTRY_DESCRIPTION"
|
||||||
|
message="COM_SUBFORMPOWER_CURRENCY_COUNTRY_MESSAGE"
|
||||||
class="list_class"
|
class="list_class"
|
||||||
|
layout="joomla.form.field.list-fancy-select"
|
||||||
validate="guid"
|
validate="guid"
|
||||||
button="true"
|
button="true"
|
||||||
/>
|
/>
|
||||||
|
@@ -46,7 +46,7 @@ COM_SUBFORMPOWER_COUNTRIES_EDIT_STATE_DESC="Allows the users in this group to up
|
|||||||
COM_SUBFORMPOWER_COUNTRIES_EDIT_VERSION="Countries Edit Version"
|
COM_SUBFORMPOWER_COUNTRIES_EDIT_VERSION="Countries Edit Version"
|
||||||
COM_SUBFORMPOWER_COUNTRIES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version countries"
|
COM_SUBFORMPOWER_COUNTRIES_EDIT_VERSION_DESC="Allows the users in this group to edit versions of version countries"
|
||||||
COM_SUBFORMPOWER_COUNTRIES_EMPTYSTATE_BUTTON_ADD="Add your first country"
|
COM_SUBFORMPOWER_COUNTRIES_EMPTYSTATE_BUTTON_ADD="Add your first country"
|
||||||
COM_SUBFORMPOWER_COUNTRIES_EMPTYSTATE_CONTENT="country view"
|
COM_SUBFORMPOWER_COUNTRIES_EMPTYSTATE_CONTENT="country view (dynamic build)"
|
||||||
COM_SUBFORMPOWER_COUNTRIES_EMPTYSTATE_TITLE="No countries have been created yet."
|
COM_SUBFORMPOWER_COUNTRIES_EMPTYSTATE_TITLE="No countries have been created yet."
|
||||||
COM_SUBFORMPOWER_COUNTRIES_EXPORT="Countries Export"
|
COM_SUBFORMPOWER_COUNTRIES_EXPORT="Countries Export"
|
||||||
COM_SUBFORMPOWER_COUNTRIES_EXPORT_DESC="Allows the users in this group to export export countries"
|
COM_SUBFORMPOWER_COUNTRIES_EXPORT_DESC="Allows the users in this group to export export countries"
|
||||||
@@ -185,7 +185,9 @@ COM_SUBFORMPOWER_CURRENCIES_N_ITEMS_UNPUBLISHED_1="%s Currency unpublished."
|
|||||||
COM_SUBFORMPOWER_CURRENCIES_SUBMENU="Currencies Submenu"
|
COM_SUBFORMPOWER_CURRENCIES_SUBMENU="Currencies Submenu"
|
||||||
COM_SUBFORMPOWER_CURRENCIES_SUBMENU_DESC="Allows the users in this group to submenu of currency"
|
COM_SUBFORMPOWER_CURRENCIES_SUBMENU_DESC="Allows the users in this group to submenu of currency"
|
||||||
COM_SUBFORMPOWER_CURRENCY="Currency"
|
COM_SUBFORMPOWER_CURRENCY="Currency"
|
||||||
|
COM_SUBFORMPOWER_CURRENCY_COUNTRY_DESCRIPTION="The primary currency id is set here."
|
||||||
COM_SUBFORMPOWER_CURRENCY_COUNTRY_LABEL="Country"
|
COM_SUBFORMPOWER_CURRENCY_COUNTRY_LABEL="Country"
|
||||||
|
COM_SUBFORMPOWER_CURRENCY_COUNTRY_MESSAGE="Error! Please add some primary currency id here."
|
||||||
COM_SUBFORMPOWER_CURRENCY_CREATED_BY_DESC="The user that created this Currency."
|
COM_SUBFORMPOWER_CURRENCY_CREATED_BY_DESC="The user that created this Currency."
|
||||||
COM_SUBFORMPOWER_CURRENCY_CREATED_BY_LABEL="Created By"
|
COM_SUBFORMPOWER_CURRENCY_CREATED_BY_LABEL="Created By"
|
||||||
COM_SUBFORMPOWER_CURRENCY_CREATED_DATE_DESC="The date this Currency was created."
|
COM_SUBFORMPOWER_CURRENCY_CREATED_DATE_DESC="The date this Currency was created."
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage currencies_fullwidth.php
|
@subpackage currencies_fullwidth.php
|
||||||
@@ -24,7 +24,6 @@ use Joomla\CMS\HTML\HTMLHelper as Html;
|
|||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
||||||
use JCB\Joomla\Utilities\StringHelper;
|
use JCB\Joomla\Utilities\StringHelper;
|
||||||
use JCB\Joomla\Utilities\ArrayHelper;
|
use JCB\Joomla\Utilities\ArrayHelper;
|
||||||
use Joomla\CMS\User\UserFactoryInterface;
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
@@ -54,9 +53,9 @@ else
|
|||||||
$ref = ($id) ? "&ref=country&refid=" . $id : "";
|
$ref = ($id) ? "&ref=country&refid=" . $id : "";
|
||||||
}
|
}
|
||||||
// set the create new URL
|
// set the create new URL
|
||||||
$new = "index.php?option=com_subformpower&view=currencies&task=currency.add" . $ref;
|
$new = "index.php?option=com_subformpower&view=currencies&task=currency.edit" . $ref;
|
||||||
// set the create new and close URL
|
// set the create new and close URL
|
||||||
$close_new = "index.php?option=com_subformpower&view=currencies&task=currency.add";
|
$close_new = "index.php?option=com_subformpower&view=currencies&task=currency.edit";
|
||||||
// load the action object
|
// load the action object
|
||||||
$can = SubformpowerHelper::getActions('currency');
|
$can = SubformpowerHelper::getActions('currency');
|
||||||
|
|
||||||
@@ -94,8 +93,8 @@ $can = SubformpowerHelper::getActions('currency');
|
|||||||
<?php
|
<?php
|
||||||
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
|
$canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $user->id || $item->checked_out == 0;
|
||||||
$userChkOut = Factory::getContainer()->
|
$userChkOut = Factory::getContainer()->
|
||||||
get(UserFactoryInterface::class)->
|
get(\Joomla\CMS\User\UserFactoryInterface::class)->
|
||||||
loadUserById($item->checked_out ?? 0);
|
loadUserById($item->checked_out);
|
||||||
$canDo = SubformpowerHelper::getActions('currency',$item,'currencies');
|
$canDo = SubformpowerHelper::getActions('currency',$item,'currencies');
|
||||||
?>
|
?>
|
||||||
<tr>
|
<tr>
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage more_stuff_fullwidth.php
|
@subpackage more_stuff_fullwidth.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage details_above.php
|
@subpackage details_above.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage details_left.php
|
@subpackage details_left.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage details_right.php
|
@subpackage details_right.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage publishing.php
|
@subpackage publishing.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage publlshing.php
|
@subpackage publlshing.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage provider.php
|
@subpackage provider.php
|
||||||
|
@@ -3,7 +3,7 @@ SET time_zone = "+00:00";
|
|||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `#__subformpower_country` (
|
CREATE TABLE IF NOT EXISTS `#__subformpower_country` (
|
||||||
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||||
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
||||||
`guid` VARCHAR(36) NOT NULL DEFAULT '',
|
`guid` VARCHAR(36) NOT NULL DEFAULT '',
|
||||||
`iso` VARCHAR(255) NOT NULL DEFAULT '',
|
`iso` VARCHAR(255) NOT NULL DEFAULT '',
|
||||||
`isothree` VARCHAR(255) NOT NULL DEFAULT '',
|
`isothree` VARCHAR(255) NOT NULL DEFAULT '',
|
||||||
@@ -12,17 +12,17 @@ CREATE TABLE IF NOT EXISTS `#__subformpower_country` (
|
|||||||
`phonecode` VARCHAR(255) NOT NULL DEFAULT '',
|
`phonecode` VARCHAR(255) NOT NULL DEFAULT '',
|
||||||
`timezone` VARCHAR(255) NOT NULL DEFAULT '',
|
`timezone` VARCHAR(255) NOT NULL DEFAULT '',
|
||||||
`params` TEXT NULL,
|
`params` TEXT NULL,
|
||||||
`published` TINYINT(3) NULL DEFAULT 1,
|
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
||||||
`created_by` INT unsigned NULL,
|
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`modified_by` INT unsigned,
|
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`created` DATETIME DEFAULT CURRENT_TIMESTAMP,
|
`created` DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||||
`modified` DATETIME,
|
`modified` DATETIME DEFAULT NULL,
|
||||||
`checked_out` int unsigned,
|
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
|
||||||
`checked_out_time` DATETIME,
|
`checked_out_time` DATETIME DEFAULT NULL,
|
||||||
`version` INT(10) unsigned NULL DEFAULT 1,
|
`version` INT(10) unsigned NOT NULL DEFAULT 1,
|
||||||
`hits` INT(10) unsigned NULL DEFAULT 0,
|
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`access` INT(10) unsigned NULL DEFAULT 0,
|
`access` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`ordering` INT(11) NULL DEFAULT 0,
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `idx_name` (`name`),
|
KEY `idx_name` (`name`),
|
||||||
KEY `idx_guid` (`guid`),
|
KEY `idx_guid` (`guid`),
|
||||||
@@ -35,23 +35,23 @@ CREATE TABLE IF NOT EXISTS `#__subformpower_country` (
|
|||||||
|
|
||||||
CREATE TABLE IF NOT EXISTS `#__subformpower_currency` (
|
CREATE TABLE IF NOT EXISTS `#__subformpower_currency` (
|
||||||
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
`id` INT(11) NOT NULL AUTO_INCREMENT,
|
||||||
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
`asset_id` INT(10) unsigned NOT NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
|
||||||
`country` VARCHAR(36) NOT NULL DEFAULT '',
|
`country` VARCHAR(36) NOT NULL DEFAULT '',
|
||||||
`ext_number` INT(10) NOT NULL DEFAULT 0,
|
`ext_number` INT(10) NOT NULL DEFAULT 0,
|
||||||
`guid` VARCHAR(36) NOT NULL DEFAULT '',
|
`guid` VARCHAR(36) NOT NULL DEFAULT '',
|
||||||
`symbol` VARCHAR(255) NULL DEFAULT '',
|
`symbol` VARCHAR(255) NULL DEFAULT '',
|
||||||
`params` TEXT NULL,
|
`params` TEXT NULL,
|
||||||
`published` TINYINT(3) NULL DEFAULT 1,
|
`published` TINYINT(3) NOT NULL DEFAULT 1,
|
||||||
`created_by` INT unsigned NULL,
|
`created_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`modified_by` INT unsigned,
|
`modified_by` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`created` DATETIME DEFAULT CURRENT_TIMESTAMP,
|
`created` DATETIME DEFAULT CURRENT_TIMESTAMP,
|
||||||
`modified` DATETIME,
|
`modified` DATETIME DEFAULT NULL,
|
||||||
`checked_out` int unsigned,
|
`checked_out` int(11) unsigned NOT NULL DEFAULT 0,
|
||||||
`checked_out_time` DATETIME,
|
`checked_out_time` DATETIME DEFAULT NULL,
|
||||||
`version` INT(10) unsigned NULL DEFAULT 1,
|
`version` INT(10) unsigned NOT NULL DEFAULT 1,
|
||||||
`hits` INT(10) unsigned NULL DEFAULT 0,
|
`hits` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`access` INT(10) unsigned NULL DEFAULT 0,
|
`access` INT(10) unsigned NOT NULL DEFAULT 0,
|
||||||
`ordering` INT(11) NULL DEFAULT 0,
|
`ordering` INT(11) NOT NULL DEFAULT 0,
|
||||||
PRIMARY KEY (`id`),
|
PRIMARY KEY (`id`),
|
||||||
KEY `idx_ext_number` (`ext_number`),
|
KEY `idx_ext_number` (`ext_number`),
|
||||||
KEY `idx_country` (`country`),
|
KEY `idx_country` (`country`),
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CountriesController.php
|
@subpackage CountriesController.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CountryController.php
|
@subpackage CountryController.php
|
||||||
@@ -71,22 +71,6 @@ class CountryController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected $view_list = 'countries';
|
protected $view_list = 'countries';
|
||||||
|
|
||||||
/**
|
|
||||||
* Referral value
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 5.0
|
|
||||||
*/
|
|
||||||
protected string $ref;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Referral ID value
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 5.0
|
|
||||||
*/
|
|
||||||
protected int $refid;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method override to check if you can add a new record.
|
* Method override to check if you can add a new record.
|
||||||
*
|
*
|
||||||
@@ -186,22 +170,13 @@ class CountryController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get int-defaults (to int new items with default values dynamically)
|
// get the referral options (old method use return instead see parent)
|
||||||
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
|
||||||
|
|
||||||
// get the referral options (old method use init_defaults or return instead see parent)
|
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
// set int-defaults
|
|
||||||
if (!empty($init_defaults))
|
|
||||||
{
|
|
||||||
$append = '&init_defaults='. (string) $init_defaults . $append;
|
|
||||||
}
|
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CurrenciesController.php
|
@subpackage CurrenciesController.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CurrencyController.php
|
@subpackage CurrencyController.php
|
||||||
@@ -71,22 +71,6 @@ class CurrencyController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected $view_list = 'currencies';
|
protected $view_list = 'currencies';
|
||||||
|
|
||||||
/**
|
|
||||||
* Referral value
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 5.0
|
|
||||||
*/
|
|
||||||
protected string $ref;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Referral ID value
|
|
||||||
*
|
|
||||||
* @var int
|
|
||||||
* @since 5.0
|
|
||||||
*/
|
|
||||||
protected int $refid;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method override to check if you can add a new record.
|
* Method override to check if you can add a new record.
|
||||||
*
|
*
|
||||||
@@ -186,22 +170,13 @@ class CurrencyController extends FormController
|
|||||||
*/
|
*/
|
||||||
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
protected function getRedirectToItemAppend($recordId = null, $urlVar = 'id')
|
||||||
{
|
{
|
||||||
// get int-defaults (to int new items with default values dynamically)
|
// get the referral options (old method use return instead see parent)
|
||||||
$init_defaults = $this->input->get('init_defaults', null, 'STRING');
|
|
||||||
|
|
||||||
// get the referral options (old method use init_defaults or return instead see parent)
|
|
||||||
$ref = $this->input->get('ref', 0, 'string');
|
$ref = $this->input->get('ref', 0, 'string');
|
||||||
$refid = $this->input->get('refid', 0, 'int');
|
$refid = $this->input->get('refid', 0, 'int');
|
||||||
|
|
||||||
// get redirect info.
|
// get redirect info.
|
||||||
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
$append = parent::getRedirectToItemAppend($recordId, $urlVar);
|
||||||
|
|
||||||
// set int-defaults
|
|
||||||
if (!empty($init_defaults))
|
|
||||||
{
|
|
||||||
$append = '&init_defaults='. (string) $init_defaults . $append;
|
|
||||||
}
|
|
||||||
|
|
||||||
// set the referral options
|
// set the referral options
|
||||||
if ($refid && $ref)
|
if ($refid && $ref)
|
||||||
{
|
{
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage DisplayController.php
|
@subpackage DisplayController.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage ImportController.php
|
@subpackage ImportController.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage SubformpowerController.php
|
@subpackage SubformpowerController.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage SubformpowerComponent.php
|
@subpackage SubformpowerComponent.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CountriesField.php
|
@subpackage CountriesField.php
|
||||||
@@ -25,7 +25,6 @@ use Joomla\CMS\Language\Text;
|
|||||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||||
use Joomla\CMS\Component\ComponentHelper;
|
use Joomla\CMS\Component\ComponentHelper;
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
||||||
use Joomla\CMS\Uri\Uri;
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
\defined('_JEXEC') or die;
|
\defined('_JEXEC') or die;
|
||||||
@@ -80,7 +79,7 @@ class CountriesField extends ListField
|
|||||||
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
$ref = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||||
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
$refJ = '&ref=' . $values['view'] . '&refid=' . $values['id'];
|
||||||
// get the return value.
|
// get the return value.
|
||||||
$_uri = (string) Uri::getInstance();
|
$_uri = (string) \Joomla\CMS\Uri\Uri::getInstance();
|
||||||
$_return = urlencode(base64_encode($_uri));
|
$_return = urlencode(base64_encode($_uri));
|
||||||
// load return value.
|
// load return value.
|
||||||
$ref .= '&return=' . $_return;
|
$ref .= '&return=' . $_return;
|
||||||
@@ -111,14 +110,12 @@ class CountriesField extends ListField
|
|||||||
// build script
|
// build script
|
||||||
$script[] = "
|
$script[] = "
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
let ".$button_code_name."Field = document.getElementById('jform_".$button_code_name."');
|
document.getElementById('jform_".$button_code_name."').addEventListener('change', function(e) {
|
||||||
if (!".$button_code_name."Field) { return; }
|
|
||||||
".$button_code_name."Field.addEventListener('change', function(e) {
|
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
let ".$button_code_name."Value = this.value;
|
let ".$button_code_name."Value = this.value;
|
||||||
".$button_code_name."Button(".$button_code_name."Value);
|
".$button_code_name."Button(".$button_code_name."Value);
|
||||||
});
|
});
|
||||||
let ".$button_code_name."Value = ".$button_code_name."Field.value;
|
let ".$button_code_name."Value = document.getElementById('jform_".$button_code_name."').value;
|
||||||
".$button_code_name."Button(".$button_code_name."Value);
|
".$button_code_name."Button(".$button_code_name."Value);
|
||||||
});
|
});
|
||||||
function ".$button_code_name."Button(value) {
|
function ".$button_code_name."Button(value) {
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CountriesfilterisoField.php
|
@subpackage CountriesfilterisoField.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CountriesfilterisothreeField.php
|
@subpackage CountriesfilterisothreeField.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CountriesfilternumcodeField.php
|
@subpackage CountriesfilternumcodeField.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CountriesfilterphonecodeField.php
|
@subpackage CountriesfilterphonecodeField.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CurrenciesfiltersymbolField.php
|
@subpackage CurrenciesfiltersymbolField.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage HeaderCheck.php
|
@subpackage HeaderCheck.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage PowerloaderHelper.php
|
@subpackage PowerloaderHelper.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage SubformpowerHelper.php
|
@subpackage SubformpowerHelper.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CountriesModel.php
|
@subpackage CountriesModel.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CountryModel.php
|
@subpackage CountryModel.php
|
||||||
@@ -391,19 +391,6 @@ class CountryModel extends AdminModel
|
|||||||
// Now set the local-redirected field default value
|
// Now set the local-redirected field default value
|
||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
$initDefaults = $jinput->get('init_defaults', null, 'STRING');
|
|
||||||
if (!empty($initDefaults))
|
|
||||||
{
|
|
||||||
// Now check if this json values are valid
|
|
||||||
$initDefaults = json_decode(urldecode($initDefaults), true);
|
|
||||||
if (is_array($initDefaults))
|
|
||||||
{
|
|
||||||
foreach ($initDefaults as $field => $value)
|
|
||||||
{
|
|
||||||
$form->setValue($field, null, $value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only load the GUID if new item (or empty)
|
// Only load the GUID if new item (or empty)
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CurrenciesModel.php
|
@subpackage CurrenciesModel.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CurrencyModel.php
|
@subpackage CurrencyModel.php
|
||||||
@@ -281,19 +281,6 @@ class CurrencyModel extends AdminModel
|
|||||||
// Now set the local-redirected field default value
|
// Now set the local-redirected field default value
|
||||||
$form->setValue($redirectedField, null, $redirectedValue);
|
$form->setValue($redirectedField, null, $redirectedValue);
|
||||||
}
|
}
|
||||||
$initDefaults = $jinput->get('init_defaults', null, 'STRING');
|
|
||||||
if (!empty($initDefaults))
|
|
||||||
{
|
|
||||||
// Now check if this json values are valid
|
|
||||||
$initDefaults = json_decode(urldecode($initDefaults), true);
|
|
||||||
if (is_array($initDefaults))
|
|
||||||
{
|
|
||||||
foreach ($initDefaults as $field => $value)
|
|
||||||
{
|
|
||||||
$form->setValue($field, null, $value);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only load the GUID if new item (or empty)
|
// Only load the GUID if new item (or empty)
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage ImportModel.php
|
@subpackage ImportModel.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage SubformpowerModel.php
|
@subpackage SubformpowerModel.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage GuidRule.php
|
@subpackage GuidRule.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CountryTable.php
|
@subpackage CountryTable.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage CurrencyTable.php
|
@subpackage CurrencyTable.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage HtmlView.php
|
@subpackage HtmlView.php
|
||||||
@@ -45,7 +45,6 @@ use JCB\Joomla\Utilities\StringHelper;
|
|||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
#[\AllowDynamicProperties]
|
|
||||||
class HtmlView extends BaseHtmlView
|
class HtmlView extends BaseHtmlView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -110,10 +109,9 @@ class HtmlView extends BaseHtmlView
|
|||||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
* @throws \Exception
|
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function display($tpl = null): void
|
public function display($tpl = null)
|
||||||
{
|
{
|
||||||
// Assign data to the view
|
// Assign data to the view
|
||||||
$this->items = $this->get('Items');
|
$this->items = $this->get('Items');
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage HtmlView.php
|
@subpackage HtmlView.php
|
||||||
@@ -44,7 +44,6 @@ use JCB\Joomla\Utilities\StringHelper;
|
|||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
#[\AllowDynamicProperties]
|
|
||||||
class HtmlView extends BaseHtmlView
|
class HtmlView extends BaseHtmlView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -133,10 +132,9 @@ class HtmlView extends BaseHtmlView
|
|||||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
* @throws \Exception
|
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function display($tpl = null): void
|
public function display($tpl = null)
|
||||||
{
|
{
|
||||||
// set params
|
// set params
|
||||||
$this->params = ComponentHelper::getParams('com_subformpower');
|
$this->params = ComponentHelper::getParams('com_subformpower');
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage HtmlView.php
|
@subpackage HtmlView.php
|
||||||
@@ -45,7 +45,6 @@ use JCB\Joomla\Utilities\StringHelper;
|
|||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
#[\AllowDynamicProperties]
|
|
||||||
class HtmlView extends BaseHtmlView
|
class HtmlView extends BaseHtmlView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -110,10 +109,9 @@ class HtmlView extends BaseHtmlView
|
|||||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
* @throws \Exception
|
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function display($tpl = null): void
|
public function display($tpl = null)
|
||||||
{
|
{
|
||||||
// Assign data to the view
|
// Assign data to the view
|
||||||
$this->items = $this->get('Items');
|
$this->items = $this->get('Items');
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage HtmlView.php
|
@subpackage HtmlView.php
|
||||||
@@ -44,7 +44,6 @@ use JCB\Joomla\Utilities\StringHelper;
|
|||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
#[\AllowDynamicProperties]
|
|
||||||
class HtmlView extends BaseHtmlView
|
class HtmlView extends BaseHtmlView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
@@ -133,10 +132,9 @@ class HtmlView extends BaseHtmlView
|
|||||||
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
* @param string $tpl The name of the template file to parse; automatically searches through the template paths.
|
||||||
*
|
*
|
||||||
* @return void
|
* @return void
|
||||||
* @throws \Exception
|
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
public function display($tpl = null): void
|
public function display($tpl = null)
|
||||||
{
|
{
|
||||||
// set params
|
// set params
|
||||||
$this->params = ComponentHelper::getParams('com_subformpower');
|
$this->params = ComponentHelper::getParams('com_subformpower');
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage HtmlView.php
|
@subpackage HtmlView.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage HtmlView.php
|
@subpackage HtmlView.php
|
||||||
@@ -36,17 +36,13 @@ use JCB\Joomla\Utilities\StringHelper;
|
|||||||
*
|
*
|
||||||
* @since 1.6
|
* @since 1.6
|
||||||
*/
|
*/
|
||||||
#[\AllowDynamicProperties]
|
|
||||||
class HtmlView extends BaseHtmlView
|
class HtmlView extends BaseHtmlView
|
||||||
{
|
{
|
||||||
/**
|
/**
|
||||||
* View display method
|
* View display method
|
||||||
*
|
|
||||||
* @return void
|
* @return void
|
||||||
* @throws \Exception
|
|
||||||
* @since 1.6
|
|
||||||
*/
|
*/
|
||||||
function display($tpl = null): void
|
function display($tpl = null)
|
||||||
{
|
{
|
||||||
// Assign data to the view
|
// Assign data to the view
|
||||||
$this->icons = $this->get('Icons');
|
$this->icons = $this->get('Icons');
|
||||||
@@ -108,7 +104,7 @@ class HtmlView extends BaseHtmlView
|
|||||||
// set page title
|
// set page title
|
||||||
$this->getDocument()->setTitle(Text::_('COM_SUBFORMPOWER_DASHBOARD'));
|
$this->getDocument()->setTitle(Text::_('COM_SUBFORMPOWER_DASHBOARD'));
|
||||||
// add manifest to page JavaScript
|
// add manifest to page JavaScript
|
||||||
$this->getDocument()->addScriptDeclaration("var manifest = JSON.parse(" . json_encode($this->manifest) . ");", "text/javascript");
|
$this->getDocument()->addScriptDeclaration("var manifest = JSON.parse('" . json_encode($this->manifest) . "');", "text/javascript");
|
||||||
// add styles
|
// add styles
|
||||||
foreach ($this->styles as $style)
|
foreach ($this->styles as $style)
|
||||||
{
|
{
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default_body.php
|
@subpackage default_body.php
|
||||||
@@ -22,7 +22,6 @@ use Joomla\CMS\Factory;
|
|||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
||||||
use Joomla\CMS\User\UserFactoryInterface;
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
@@ -34,8 +33,8 @@ $edit = "index.php?option=com_subformpower&view=countries&task=country.edit";
|
|||||||
<?php
|
<?php
|
||||||
$canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0;
|
$canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0;
|
||||||
$userChkOut = Factory::getContainer()->
|
$userChkOut = Factory::getContainer()->
|
||||||
get(UserFactoryInterface::class)->
|
get(\Joomla\CMS\User\UserFactoryInterface::class)->
|
||||||
loadUserById($item->checked_out ?? 0);
|
loadUserById($item->checked_out);
|
||||||
$canDo = SubformpowerHelper::getActions('country',$item,'countries');
|
$canDo = SubformpowerHelper::getActions('country',$item,'countries');
|
||||||
?>
|
?>
|
||||||
<tr class="row<?php echo $i % 2; ?>">
|
<tr class="row<?php echo $i % 2; ?>">
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default_foot.php
|
@subpackage default_foot.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default_head.php
|
@subpackage default_head.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default_toolbar.php
|
@subpackage default_toolbar.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage emptystate.php
|
@subpackage emptystate.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default_body.php
|
@subpackage default_body.php
|
||||||
@@ -22,7 +22,6 @@ use Joomla\CMS\Factory;
|
|||||||
use Joomla\CMS\Language\Text;
|
use Joomla\CMS\Language\Text;
|
||||||
use Joomla\CMS\HTML\HTMLHelper as Html;
|
use Joomla\CMS\HTML\HTMLHelper as Html;
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
||||||
use Joomla\CMS\User\UserFactoryInterface;
|
|
||||||
|
|
||||||
// No direct access to this file
|
// No direct access to this file
|
||||||
defined('_JEXEC') or die;
|
defined('_JEXEC') or die;
|
||||||
@@ -34,8 +33,8 @@ $edit = "index.php?option=com_subformpower&view=currencies&task=currency.edit";
|
|||||||
<?php
|
<?php
|
||||||
$canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0;
|
$canCheckin = $this->user->authorise('core.manage', 'com_checkin') || $item->checked_out == $this->user->id || $item->checked_out == 0;
|
||||||
$userChkOut = Factory::getContainer()->
|
$userChkOut = Factory::getContainer()->
|
||||||
get(UserFactoryInterface::class)->
|
get(\Joomla\CMS\User\UserFactoryInterface::class)->
|
||||||
loadUserById($item->checked_out ?? 0);
|
loadUserById($item->checked_out);
|
||||||
$canDo = SubformpowerHelper::getActions('currency',$item,'currencies');
|
$canDo = SubformpowerHelper::getActions('currency',$item,'currencies');
|
||||||
?>
|
?>
|
||||||
<tr class="row<?php echo $i % 2; ?>">
|
<tr class="row<?php echo $i % 2; ?>">
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default_foot.php
|
@subpackage default_foot.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default_head.php
|
@subpackage default_head.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default_toolbar.php
|
@subpackage default_toolbar.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage emptystate.php
|
@subpackage emptystate.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default.php
|
@subpackage default.php
|
||||||
@@ -31,10 +31,18 @@ defined('_JEXEC') or die;
|
|||||||
<div class="main-card" style="padding: 20px;">
|
<div class="main-card" style="padding: 20px;">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-md-9">
|
<div class="col-md-9">
|
||||||
|
<?php echo Html::_('bootstrap.startAccordion', 'dashboard_left', array('active' => 'main')); ?>
|
||||||
|
<?php echo Html::_('bootstrap.addSlide', 'dashboard_left', 'cPanel', 'main'); ?>
|
||||||
<?php echo $this->loadTemplate('main');?>
|
<?php echo $this->loadTemplate('main');?>
|
||||||
|
<?php echo Html::_('bootstrap.endSlide'); ?>
|
||||||
|
<?php echo Html::_('bootstrap.endAccordion'); ?>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-3">
|
<div class="col-md-3">
|
||||||
|
<?php echo Html::_('bootstrap.startAccordion', 'dashboard_right', array('active' => 'vdm')); ?>
|
||||||
|
<?php echo Html::_('bootstrap.addSlide', 'dashboard_right', 'Nampharm', 'vdm'); ?>
|
||||||
<?php echo $this->loadTemplate('vdm');?>
|
<?php echo $this->loadTemplate('vdm');?>
|
||||||
|
<?php echo Html::_('bootstrap.endSlide'); ?>
|
||||||
|
<?php echo Html::_('bootstrap.endAccordion'); ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default_main.php
|
@subpackage default_main.php
|
||||||
|
@@ -4,7 +4,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage default_vdm.php
|
@subpackage default_vdm.php
|
||||||
|
@@ -1 +0,0 @@
|
|||||||
<html><body bgcolor="#FFFFFF"></body></html>
|
|
@@ -1,51 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
|
||||||
Nampharm
|
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.1
|
|
||||||
@build 5th February, 2025
|
|
||||||
@created 24th May, 2024
|
|
||||||
@package Subform Power
|
|
||||||
@subpackage CountriesController.php
|
|
||||||
@author Oh Martin <https://nampharm.com.na>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
|
||||||
namespace JCB\Component\Subformpower\Api\Controller;
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
|
||||||
use Joomla\CMS\MVC\Controller\ApiController;
|
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
\defined('_JEXEC') or die;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Countries Api Controller
|
|
||||||
*
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
class CountriesController extends ApiController
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The content type of the item.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
protected $contentType = 'countries';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The default view for the display method.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 3.0
|
|
||||||
*/
|
|
||||||
protected $default_view = 'countries';
|
|
||||||
}
|
|
@@ -1,138 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
|
||||||
Nampharm
|
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.1
|
|
||||||
@build 5th February, 2025
|
|
||||||
@created 24th May, 2024
|
|
||||||
@package Subform Power
|
|
||||||
@subpackage CountryController.php
|
|
||||||
@author Oh Martin <https://nampharm.com.na>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
|
||||||
namespace JCB\Component\Subformpower\Api\Controller;
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
|
||||||
use Joomla\CMS\MVC\Controller\ApiController;
|
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
\defined('_JEXEC') or die;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Country Api Controller
|
|
||||||
*
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
class CountryController extends ApiController
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The content type of the item.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
protected $contentType = 'country';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The default view for the display method.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 3.0
|
|
||||||
*/
|
|
||||||
protected $default_view = 'country';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 = $this->app->getIdentity();
|
|
||||||
// Access check.
|
|
||||||
$access = $user->authorise('country.access', 'com_subformpower');
|
|
||||||
if (!$access)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// In the absence of better information, revert to the component permissions.
|
|
||||||
return $user->authorise('country.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 = $this->app->getIdentity();
|
|
||||||
// get record id.
|
|
||||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
|
||||||
|
|
||||||
|
|
||||||
// Access check.
|
|
||||||
$access = ($user->authorise('country.access', 'com_subformpower.country.' . (int) $recordId) && $user->authorise('country.access', 'com_subformpower'));
|
|
||||||
if (!$access)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($recordId)
|
|
||||||
{
|
|
||||||
// The record has been set. Check the record permissions.
|
|
||||||
$permission = $user->authorise('country.edit', 'com_subformpower.country.' . (int) $recordId);
|
|
||||||
if (!$permission)
|
|
||||||
{
|
|
||||||
if ($user->authorise('country.edit.own', 'com_subformpower.country.' . $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('country.edit.own', 'com_subformpower'))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Since there is no permission, revert to the component permissions.
|
|
||||||
return $user->authorise('country.edit', $this->option);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,51 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
|
||||||
Nampharm
|
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.1
|
|
||||||
@build 5th February, 2025
|
|
||||||
@created 24th May, 2024
|
|
||||||
@package Subform Power
|
|
||||||
@subpackage CurrenciesController.php
|
|
||||||
@author Oh Martin <https://nampharm.com.na>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
|
||||||
namespace JCB\Component\Subformpower\Api\Controller;
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
|
||||||
use Joomla\CMS\MVC\Controller\ApiController;
|
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
\defined('_JEXEC') or die;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Currencies Api Controller
|
|
||||||
*
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
class CurrenciesController extends ApiController
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The content type of the item.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
protected $contentType = 'currencies';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The default view for the display method.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 3.0
|
|
||||||
*/
|
|
||||||
protected $default_view = 'currencies';
|
|
||||||
}
|
|
@@ -1,138 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
|
||||||
Nampharm
|
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.1
|
|
||||||
@build 5th February, 2025
|
|
||||||
@created 24th May, 2024
|
|
||||||
@package Subform Power
|
|
||||||
@subpackage CurrencyController.php
|
|
||||||
@author Oh Martin <https://nampharm.com.na>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
|
||||||
namespace JCB\Component\Subformpower\Api\Controller;
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
|
||||||
use Joomla\CMS\MVC\Controller\ApiController;
|
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
\defined('_JEXEC') or die;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Currency Api Controller
|
|
||||||
*
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
class CurrencyController extends ApiController
|
|
||||||
{
|
|
||||||
/**
|
|
||||||
* The content type of the item.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
protected $contentType = 'currency';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* The default view for the display method.
|
|
||||||
*
|
|
||||||
* @var string
|
|
||||||
* @since 3.0
|
|
||||||
*/
|
|
||||||
protected $default_view = 'currency';
|
|
||||||
|
|
||||||
/**
|
|
||||||
* 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 = $this->app->getIdentity();
|
|
||||||
// Access check.
|
|
||||||
$access = $user->authorise('currency.access', 'com_subformpower');
|
|
||||||
if (!$access)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
// In the absence of better information, revert to the component permissions.
|
|
||||||
return $user->authorise('currency.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 = $this->app->getIdentity();
|
|
||||||
// get record id.
|
|
||||||
$recordId = (int) isset($data[$key]) ? $data[$key] : 0;
|
|
||||||
|
|
||||||
|
|
||||||
// Access check.
|
|
||||||
$access = ($user->authorise('currency.access', 'com_subformpower.currency.' . (int) $recordId) && $user->authorise('currency.access', 'com_subformpower'));
|
|
||||||
if (!$access)
|
|
||||||
{
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($recordId)
|
|
||||||
{
|
|
||||||
// The record has been set. Check the record permissions.
|
|
||||||
$permission = $user->authorise('currency.edit', 'com_subformpower.currency.' . (int) $recordId);
|
|
||||||
if (!$permission)
|
|
||||||
{
|
|
||||||
if ($user->authorise('currency.edit.own', 'com_subformpower.currency.' . $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('currency.edit.own', 'com_subformpower'))
|
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// Since there is no permission, revert to the component permissions.
|
|
||||||
return $user->authorise('currency.edit', $this->option);
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1 +0,0 @@
|
|||||||
<html><body bgcolor="#FFFFFF"></body></html>
|
|
@@ -1,36 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
|
||||||
Nampharm
|
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.1
|
|
||||||
@build 5th February, 2025
|
|
||||||
@created 24th May, 2024
|
|
||||||
@package Subform Power
|
|
||||||
@subpackage JsonapiView.php
|
|
||||||
@author Oh Martin <https://nampharm.com.na>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
|
||||||
namespace JCB\Component\Subformpower\Api\View\Countries;
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
|
||||||
use Joomla\CMS\MVC\View\JsonApiView as BaseApiView;
|
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
\defined('_JEXEC') or die;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Subformpower Json View class for the Countries
|
|
||||||
*
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
class JsonapiView extends BaseApiView
|
|
||||||
{
|
|
||||||
}
|
|
@@ -1 +0,0 @@
|
|||||||
<html><body bgcolor="#FFFFFF"></body></html>
|
|
@@ -1,36 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
|
||||||
Nampharm
|
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.1
|
|
||||||
@build 5th February, 2025
|
|
||||||
@created 24th May, 2024
|
|
||||||
@package Subform Power
|
|
||||||
@subpackage JsonapiView.php
|
|
||||||
@author Oh Martin <https://nampharm.com.na>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
|
||||||
namespace JCB\Component\Subformpower\Api\View\Country;
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
|
||||||
use Joomla\CMS\MVC\View\JsonApiView as BaseApiView;
|
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
\defined('_JEXEC') or die;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Country Json View class
|
|
||||||
*
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
class JsonapiView extends BaseApiView
|
|
||||||
{
|
|
||||||
}
|
|
@@ -1 +0,0 @@
|
|||||||
<html><body bgcolor="#FFFFFF"></body></html>
|
|
@@ -1,36 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
|
||||||
Nampharm
|
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.1
|
|
||||||
@build 5th February, 2025
|
|
||||||
@created 24th May, 2024
|
|
||||||
@package Subform Power
|
|
||||||
@subpackage JsonapiView.php
|
|
||||||
@author Oh Martin <https://nampharm.com.na>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
|
||||||
namespace JCB\Component\Subformpower\Api\View\Currencies;
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
|
||||||
use Joomla\CMS\MVC\View\JsonApiView as BaseApiView;
|
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
\defined('_JEXEC') or die;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Subformpower Json View class for the Currencies
|
|
||||||
*
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
class JsonapiView extends BaseApiView
|
|
||||||
{
|
|
||||||
}
|
|
@@ -1 +0,0 @@
|
|||||||
<html><body bgcolor="#FFFFFF"></body></html>
|
|
@@ -1,36 +0,0 @@
|
|||||||
<?php
|
|
||||||
/*----------------------------------------------------------------------------------| www.vdm.io |----/
|
|
||||||
Nampharm
|
|
||||||
/-------------------------------------------------------------------------------------------------------/
|
|
||||||
|
|
||||||
@version 1.0.1
|
|
||||||
@build 5th February, 2025
|
|
||||||
@created 24th May, 2024
|
|
||||||
@package Subform Power
|
|
||||||
@subpackage JsonapiView.php
|
|
||||||
@author Oh Martin <https://nampharm.com.na>
|
|
||||||
@copyright Copyright (C) 2015. All Rights Reserved
|
|
||||||
@license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
|
||||||
____ _____ _____ __ __ __ __ ___ _____ __ __ ____ _____ _ _ ____ _ _ ____
|
|
||||||
(_ _)( _ )( _ )( \/ )( ) /__\ / __)( _ )( \/ )( _ \( _ )( \( )( ___)( \( )(_ _)
|
|
||||||
.-_)( )(_)( )(_)( ) ( )(__ /(__)\ ( (__ )(_)( ) ( )___/ )(_)( ) ( )__) ) ( )(
|
|
||||||
\____) (_____)(_____)(_/\/\_)(____)(__)(__) \___)(_____)(_/\/\_)(__) (_____)(_)\_)(____)(_)\_) (__)
|
|
||||||
|
|
||||||
/------------------------------------------------------------------------------------------------------*/
|
|
||||||
namespace JCB\Component\Subformpower\Api\View\Currency;
|
|
||||||
|
|
||||||
use Joomla\CMS\Factory;
|
|
||||||
use Joomla\CMS\MVC\View\JsonApiView as BaseApiView;
|
|
||||||
use JCB\Component\Subformpower\Administrator\Helper\SubformpowerHelper;
|
|
||||||
|
|
||||||
// No direct access to this file
|
|
||||||
\defined('_JEXEC') or die;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Currency Json View class
|
|
||||||
*
|
|
||||||
* @since 4.0.0
|
|
||||||
*/
|
|
||||||
class JsonapiView extends BaseApiView
|
|
||||||
{
|
|
||||||
}
|
|
@@ -1 +0,0 @@
|
|||||||
<html><body bgcolor="#FFFFFF"></body></html>
|
|
@@ -1 +0,0 @@
|
|||||||
<html><body bgcolor="#FFFFFF"></body></html>
|
|
@@ -1 +0,0 @@
|
|||||||
<html><body bgcolor="#FFFFFF"></body></html>
|
|
@@ -45,8 +45,8 @@ final class Load extends Model implements ModelInterface
|
|||||||
$table = $this->getTable();
|
$table = $this->getTable();
|
||||||
}
|
}
|
||||||
|
|
||||||
// check if this is a valid table (don't touch null)
|
// check if this is a valid table
|
||||||
if ($value !== null && ($store = $this->table->get($table, $field, 'store')) !== null)
|
if (($store = $this->table->get($table, $field, 'store')) !== null)
|
||||||
{
|
{
|
||||||
// open the value based on the store method
|
// open the value based on the store method
|
||||||
switch($store)
|
switch($store)
|
||||||
|
@@ -46,7 +46,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => true,
|
'key' => true,
|
||||||
],
|
],
|
||||||
'link' => NULL,
|
|
||||||
],
|
],
|
||||||
'phonecode' => [
|
'phonecode' => [
|
||||||
'name' => 'phonecode',
|
'name' => 'phonecode',
|
||||||
@@ -63,7 +62,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => false,
|
'key' => false,
|
||||||
],
|
],
|
||||||
'link' => NULL,
|
|
||||||
],
|
],
|
||||||
'isothree' => [
|
'isothree' => [
|
||||||
'name' => 'isothree',
|
'name' => 'isothree',
|
||||||
@@ -80,7 +78,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => false,
|
'key' => false,
|
||||||
],
|
],
|
||||||
'link' => NULL,
|
|
||||||
],
|
],
|
||||||
'timezone' => [
|
'timezone' => [
|
||||||
'name' => 'timezone',
|
'name' => 'timezone',
|
||||||
@@ -97,7 +94,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => false,
|
'key' => false,
|
||||||
],
|
],
|
||||||
'link' => NULL,
|
|
||||||
],
|
],
|
||||||
'numcode' => [
|
'numcode' => [
|
||||||
'name' => 'numcode',
|
'name' => 'numcode',
|
||||||
@@ -114,7 +110,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => false,
|
'key' => false,
|
||||||
],
|
],
|
||||||
'link' => NULL,
|
|
||||||
],
|
],
|
||||||
'iso' => [
|
'iso' => [
|
||||||
'name' => 'iso',
|
'name' => 'iso',
|
||||||
@@ -131,7 +126,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => false,
|
'key' => false,
|
||||||
],
|
],
|
||||||
'link' => NULL,
|
|
||||||
],
|
],
|
||||||
'guid' => [
|
'guid' => [
|
||||||
'name' => 'guid',
|
'name' => 'guid',
|
||||||
@@ -148,7 +142,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => true,
|
'key' => true,
|
||||||
],
|
],
|
||||||
'link' => NULL,
|
|
||||||
],
|
],
|
||||||
'access' => [
|
'access' => [
|
||||||
'name' => 'access',
|
'name' => 'access',
|
||||||
@@ -161,7 +154,7 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'type' => 'INT(10) unsigned',
|
'type' => 'INT(10) unsigned',
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'key' => true,
|
'key' => true,
|
||||||
'null_switch' => 'NULL',
|
'null_switch' => 'NOT NULL',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
@@ -181,7 +174,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => true,
|
'key' => true,
|
||||||
],
|
],
|
||||||
'link' => NULL,
|
|
||||||
],
|
],
|
||||||
'symbol' => [
|
'symbol' => [
|
||||||
'name' => 'symbol',
|
'name' => 'symbol',
|
||||||
@@ -198,7 +190,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => false,
|
'key' => false,
|
||||||
],
|
],
|
||||||
'link' => NULL,
|
|
||||||
],
|
],
|
||||||
'country' => [
|
'country' => [
|
||||||
'name' => 'country',
|
'name' => 'country',
|
||||||
@@ -215,14 +206,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => true,
|
'key' => true,
|
||||||
],
|
],
|
||||||
'link' => [
|
|
||||||
'type' => 1,
|
|
||||||
'table' => '#__subformpower_country',
|
|
||||||
'component' => 'com_subformpower',
|
|
||||||
'entity' => 'country',
|
|
||||||
'value' => 'name',
|
|
||||||
'key' => 'guid',
|
|
||||||
],
|
|
||||||
],
|
],
|
||||||
'guid' => [
|
'guid' => [
|
||||||
'name' => 'guid',
|
'name' => 'guid',
|
||||||
@@ -239,7 +222,6 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'unique_key' => false,
|
'unique_key' => false,
|
||||||
'key' => true,
|
'key' => true,
|
||||||
],
|
],
|
||||||
'link' => NULL,
|
|
||||||
],
|
],
|
||||||
'access' => [
|
'access' => [
|
||||||
'name' => 'access',
|
'name' => 'access',
|
||||||
@@ -252,7 +234,7 @@ final class Table extends BaseTable implements Tableinterface
|
|||||||
'type' => 'INT(10) unsigned',
|
'type' => 'INT(10) unsigned',
|
||||||
'default' => '0',
|
'default' => '0',
|
||||||
'key' => true,
|
'key' => true,
|
||||||
'null_switch' => 'NULL',
|
'null_switch' => 'NOT NULL',
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage country.js
|
@subpackage country.js
|
||||||
|
@@ -3,7 +3,7 @@
|
|||||||
/-------------------------------------------------------------------------------------------------------/
|
/-------------------------------------------------------------------------------------------------------/
|
||||||
|
|
||||||
@version 1.0.1
|
@version 1.0.1
|
||||||
@build 5th February, 2025
|
@build 20th August, 2024
|
||||||
@created 24th May, 2024
|
@created 24th May, 2024
|
||||||
@package Subform Power
|
@package Subform Power
|
||||||
@subpackage currency.js
|
@subpackage currency.js
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="5.0" method="upgrade">
|
<extension type="component" version="5.0" method="upgrade">
|
||||||
<name>COM_SUBFORMPOWER</name>
|
<name>COM_SUBFORMPOWER</name>
|
||||||
<creationDate>5th February, 2025</creationDate>
|
<creationDate>20th August, 2024</creationDate>
|
||||||
<author>Oh Martin</author>
|
<author>Oh Martin</author>
|
||||||
<authorEmail>oh@nampharm.com.na</authorEmail>
|
<authorEmail>oh@nampharm.com.na</authorEmail>
|
||||||
<authorUrl>https://nampharm.com.na</authorUrl>
|
<authorUrl>https://nampharm.com.na</authorUrl>
|
||||||
|
Reference in New Issue
Block a user