diff --git a/CHANGELOG.md b/CHANGELOG.md
index 01c713fb9..8d6b683bd 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,16 +1,20 @@
-# v3.2.5-alpha2
+# v3.2.5-alpha3
+- Fix Save failed issue in dynamicGet. #1148
+- Move all [TEXT, EDITOR, TEXTAREA] fields from [NOT NULL] to [NULL]
+- Add the DateHelper class and improve the date methods.
+- Add simple SessionHelper class.
+
+# v3.2.5-alpha
+
+- Add [AllowDynamicProperties] in the base view class for J5
+- Move the _prepareDocument above the display call in the base view class
- Remove all backward compatibility issues, so JCB will not need the [Backward Compatibility] plugin to run.
- Added new import powers for custom import of spreadsheets.
- Move the setDocument and _prepareDocument above the display in the site view and custom admin view.
- Update the trashhelper layout to work in Joomla 5.
- Add AllowDynamicProperties (Joomla 4+5) to view class to allow Custom Dynamic Get methods to work without issues.
-# v3.2.5-alpha
-
-- Add [AllowDynamicProperties] in the base view class for J5
-- Move the _prepareDocument above the display call in the base view class
-
# v3.2.4
- Add [push] option to Powers area.
diff --git a/README.md b/README.md
index df404a3b0..243eb7230 100644
--- a/README.md
+++ b/README.md
@@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
-You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.5-alpha2) with **ALL** its features and **ALL** concepts totally open-source and free!
+You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.5-alpha3) with **ALL** its features and **ALL** concepts totally open-source and free!
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
@@ -144,13 +144,13 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
+ *First Build*: 30th April, 2015
-+ *Last Build*: 7th October, 2024
-+ *Version*: 3.2.5-alpha2
++ *Last Build*: 13th October, 2024
++ *Version*: 3.2.5-alpha3
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
-+ *Line count*: **857064**
++ *Line count*: **859606**
+ *Field count*: **2098**
-+ *File count*: **5808**
++ *File count*: **5826**
+ *Folder count*: **505**
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
diff --git a/admin/README.txt b/admin/README.txt
index df404a3b0..243eb7230 100644
--- a/admin/README.txt
+++ b/admin/README.txt
@@ -9,7 +9,7 @@ The Component Builder for [Joomla](https://extensions.joomla.org/extension/compo
Whether you're a seasoned [Joomla](https://extensions.joomla.org/extension/component-builder/) developer, or have just started, Component Builder will save you lots of time and money. A real must have!
-You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.5-alpha2) with **ALL** its features and **ALL** concepts totally open-source and free!
+You can install it quite easily and with no limitations. On [gitea](https://git.vdm.dev/joomla/Component-Builder/tags) is the latest release (3.2.5-alpha3) with **ALL** its features and **ALL** concepts totally open-source and free!
> Watch Quick Build of a Hello World component in [JCB on Youtube](https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45)
@@ -144,13 +144,13 @@ TODO
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Component Builder](https://git.vdm.dev/joomla/Component-Builder)
+ *First Build*: 30th April, 2015
-+ *Last Build*: 7th October, 2024
-+ *Version*: 3.2.5-alpha2
++ *Last Build*: 13th October, 2024
++ *Version*: 3.2.5-alpha3
+ *Copyright*: Copyright (C) 2015 Vast Development Method. All rights reserved.
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
-+ *Line count*: **857064**
++ *Line count*: **859606**
+ *Field count*: **2098**
-+ *File count*: **5808**
++ *File count*: **5826**
+ *Folder count*: **505**
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](https://www.joomlacomponentbuilder.com).
diff --git a/admin/helpers/componentbuilder.php b/admin/helpers/componentbuilder.php
index 74aa35cd9..4627691ed 100644
--- a/admin/helpers/componentbuilder.php
+++ b/admin/helpers/componentbuilder.php
@@ -52,6 +52,7 @@
use VDM\Joomla\Componentbuilder\Compiler\Factory as CompilerFactory;
use VDM\Joomla\Utilities\Base64Helper;
use VDM\Joomla\FOF\Encrypt\AES;
+use VDM\Joomla\Utilities\DateHelper;
use VDM\Joomla\Utilities\String\ClassfunctionHelper;
use VDM\Joomla\Utilities\String\FieldHelper as StringFieldHelper;
use VDM\Joomla\Utilities\String\TypeHelper;
@@ -2164,7 +2165,7 @@ public static function loadSession()
{
if (!isset(self::$session) || !ObjectHelper::check(self::$session))
{
- self::$session = Factory::getSession();
+ self::$session = Factory::getApplication()->getSession();
}
// set the defaults
self::setSessionDefaults();
@@ -2177,7 +2178,7 @@ public static function set($key, $value)
{
if (!isset(self::$session) || !ObjectHelper::check(self::$session))
{
- self::$session = Factory::getSession();
+ self::$session = Factory::getApplication()->getSession();
}
// set to local memory to speed up program
self::$localSession[$key] = $value;
@@ -2192,7 +2193,7 @@ public static function get($key, $default = null)
{
if (!isset(self::$session) || !ObjectHelper::check(self::$session))
{
- self::$session = Factory::getSession();
+ self::$session = Factory::getApplication()->getSession();
}
// check if in local memory
if (!isset(self::$localSession[$key]))
@@ -5228,193 +5229,245 @@ public static function setSubformTable($head, $rows, $idName)
/**
- * Change to nice fancy date
+ * Convert a date to a human-readable fancy format (e.g., "1st of January 2024").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Formatted date.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::fancyDate($date, $checkStamp);
*/
- public static function fancyDate($date, $check_stamp = true)
+ public static function fancyDate($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('jS \o\f F Y',$date);
+ return DateHelper::fancyDate($date, $checkStamp);
}
/**
- * get date based in period past
+ * Get a formatted date based on the time period (dynamic format based on age of the date).
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Formatted date.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::fancyDynamicDate($date, $checkStamp);
*/
- public static function fancyDynamicDate($date, $check_stamp = true)
+ public static function fancyDynamicDate($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- // older then year
- $lastyear = date("Y", strtotime("-1 year"));
- $tragetyear = date("Y", $date);
- if ($tragetyear <= $lastyear)
- {
- return date('m/d/y', $date);
- }
- // same day
- $yesterday = strtotime("-1 day");
- if ($date > $yesterday)
- {
- return date('g:i A', $date);
- }
- // just month day
- return date('M j', $date);
+ return DateHelper::fancyDynamicDate($date, $checkStamp);
}
/**
- * Change to nice fancy day time and date
+ * Convert a date to a human-readable day, time, and date format (e.g., "Mon 12am 1st of January 2024").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Formatted day, time, and date.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::fancyDayTimeDate($date, $checkStamp);
*/
- public static function fancyDayTimeDate($time, $check_stamp = true)
+ public static function fancyDayTimeDate($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($time))
- {
- $time = strtotime($time);
- }
- return date('D ga jS \o\f F Y',$time);
+ return DateHelper::fancyDayTimeDate($date, $checkStamp);
}
/**
- * Change to nice fancy time and date
+ * Convert a date to a human-readable time and date format (e.g., "(12:00) 1st of January 2024").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Formatted time and date.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::fancyDateTime($date, $checkStamp);
*/
- public static function fancyDateTime($time, $check_stamp = true)
+ public static function fancyDateTime($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($time))
- {
- $time = strtotime($time);
- }
- return date('(G:i) jS \o\f F Y',$time);
+ return DateHelper::fancyDateTime($date, $checkStamp);
}
/**
- * Change to nice hour:minutes time
+ * Convert a time to a human-readable format (e.g., "12:00").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Formatted time.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::fancyTime($date, $checkStamp);
*/
- public static function fancyTime($time, $check_stamp = true)
+ public static function fancyTime($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($time))
- {
- $time = strtotime($time);
- }
- return date('G:i',$time);
+ return DateHelper::fancyTime($date, $checkStamp);
}
/**
- * set the date day as Sunday through Saturday
+ * Convert a date to the day name (e.g., "Sunday").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Day name.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setDayName($date, $checkStamp);
*/
- public static function setDayName($date, $check_stamp = true)
+ public static function setDayName($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('l', $date);
+ return DateHelper::setDayName($date, $checkStamp);
}
/**
- * set the date month as January through December
+ * Convert a date to the month name (e.g., "January").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Month name.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setMonthName($date, $checkStamp);
*/
- public static function setMonthName($date, $check_stamp = true)
+ public static function setMonthName($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('F', $date);
+ return DateHelper::setMonthName($date, $checkStamp);
}
/**
- * set the date day as 1st
+ * Convert a date to the day with suffix (e.g., "1st").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Day with suffix.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setDay($date, $checkStamp);
*/
- public static function setDay($date, $check_stamp = true)
+ public static function setDay($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('jS', $date);
+ return DateHelper::setDay($date, $checkStamp);
}
/**
- * set the date month as 5
+ * Convert a date to the numeric month (e.g., "5").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Numeric month.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setMonth($date, $checkStamp);
*/
- public static function setMonth($date, $check_stamp = true)
+ public static function setMonth($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('n', $date);
+ return DateHelper::setMonth($date, $checkStamp);
}
/**
- * set the date year as 2004 (for charts)
+ * Convert a date to the full year (e.g., "2024").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Full year.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setYear($date, $checkStamp);
*/
- public static function setYear($date, $check_stamp = true)
+ public static function setYear($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('Y', $date);
+ return DateHelper::setYear($date, $checkStamp);
}
/**
- * set the date as 2004/05 (for charts)
+ * Convert a date to a year/month format (e.g., "2024/05").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param string $spacer The spacer between year and month.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Year/Month format.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setYearMonth($date, $spacer, $checkStamp);
*/
- public static function setYearMonth($date, $spacer = '/', $check_stamp = true)
+ public static function setYearMonth($date, string $spacer = '/', bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('Y' . $spacer . 'm', $date);
+ return DateHelper::setYearMonth($date, $spacer, $checkStamp);
}
/**
- * set the date as 2004/05/03 (for charts)
+ * Convert a date to a year/month/day format (e.g., "2024/05/03").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param string $spacer The spacer between year and month.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Year/Month/Day format.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setYearMonthDay($date, $spacer, $checkStamp);
*/
- public static function setYearMonthDay($date, $spacer = '/', $check_stamp = true)
+ public static function setYearMonthDay($date, string $spacer = '/', bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('Y' . $spacer . 'm' . $spacer . 'd', $date);
+ return DateHelper::setYearMonthDay($date, $spacer, $checkStamp);
}
/**
- * set the date as 03/05/2004
+ * Convert a date to a day/month/year format (e.g., "03/05/2024").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param string $spacer The spacer between year and month.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Day/Month/Year format.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setDayMonthYear($date, $spacer, $checkStamp);
*/
- public static function setDayMonthYear($date, $spacer = '/', $check_stamp = true)
+ public static function setDayMonthYear($date, string $spacer = '/', bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('d' . $spacer . 'm' . $spacer . 'Y', $date);
+ return DateHelper::setDayMonthYear($date, $spacer, $checkStamp);
+ }
+
+ /**
+ * Convert a date string to a valid timestamp.
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return int The valid timestamp.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::getValidTimestamp($date, $checkStamp);
+ */
+ public static function getValidTimestamp($date, bool $checkStamp): int
+ {
+ return DateHelper::getValidTimestamp($date, $checkStamp);
}
/**
- * Check if string is a valid time stamp
+ * Check if the input is a valid Unix timestamp.
+ *
+ * @param mixed $timestamp The timestamp to validate.
+ *
+ * @return bool True if valid timestamp, false otherwise.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::isValidTimeStamp($timestamp);
*/
- public static function isValidTimeStamp($timestamp)
+ public static function isValidTimeStamp($timestamp): bool
{
- return ((int) $timestamp === $timestamp)
- && ($timestamp <= PHP_INT_MAX)
- && ($timestamp >= ~PHP_INT_MAX);
+ return DateHelper::isValidTimeStamp($timestamp);
}
/**
- * Check if string is a valid date
- * https://www.php.net/manual/en/function.checkdate.php#113205
+ * Check if a string is a valid date according to the specified format.
+ *
+ * @param string $date The date string to validate.
+ * @param string $format The format to check against (default is 'Y-m-d H:i:s').
+ *
+ * @return bool True if valid date, false otherwise.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::isValidateDate($date, $format);
*/
- public static function isValidateDate($date, $format = 'Y-m-d H:i:s')
+ public static function isValidateDate($date, string $format = 'Y-m-d H:i:s'): bool
{
- $d = DateTime::createFromFormat($format, $date);
- return $d && $d->format($format) == $date;
+ return DateHelper::isValidateDate($date, $format);
}
/**
diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini
index c8b1f3530..5655c0c01 100644
--- a/admin/language/en-GB/en-GB.com_componentbuilder.ini
+++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini
@@ -4126,9 +4126,9 @@ COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_DESCRIPTION="The end hash target
COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_HINT="autogenerated md5 hash"
COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_LABEL="End Hash Target"
COM_COMPONENTBUILDER_CUSTOM_CODE_HASHENDTARGET_MESSAGE="Error! Please add some text here."
-COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_DESCRIPTION="The start hash target to help insert the code at the correct place, if the line position change. This hash is the md5 of a few lines above the custom code"
+COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_DESCRIPTION="The end hash target to help insert the code until the correct place, if the line position change. This hash is the md5 of a few lines below the custom code"
COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_HINT="autogenerated md5 hash"
-COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_LABEL="Start Hash Target"
+COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_LABEL="End Hash Target"
COM_COMPONENTBUILDER_CUSTOM_CODE_HASHTARGET_MESSAGE="Error! Please add some text here."
COM_COMPONENTBUILDER_CUSTOM_CODE_HASH_AUTOMATION="Hash (automation)"
COM_COMPONENTBUILDER_CUSTOM_CODE_HTML="HTML"
diff --git a/admin/models/admin_fields_relations.php b/admin/models/admin_fields_relations.php
index 690362934..eb22992fe 100644
--- a/admin/models/admin_fields_relations.php
+++ b/admin/models/admin_fields_relations.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -114,7 +115,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('admin_fields_relations__'.$id))
+ if (($vdm = SessionHelper::get('admin_fields_relations__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -122,17 +123,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'admin_fields_relations__'.$id);
- ComponentbuilderHelper::set('admin_fields_relations__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'admin_fields_relations__'.$id);
+ SessionHelper::set('admin_fields_relations__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -187,7 +188,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('admin_fields_relations__'.$id))
+ if (($vdm = SessionHelper::get('admin_fields_relations__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -195,17 +196,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'admin_fields_relations__'.$id);
- ComponentbuilderHelper::set('admin_fields_relations__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'admin_fields_relations__'.$id);
+ SessionHelper::set('admin_fields_relations__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/models/admin_view.php b/admin/models/admin_view.php
index 5003d9b16..3e54c5179 100644
--- a/admin/models/admin_view.php
+++ b/admin/models/admin_view.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -263,7 +264,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('admin_view__'.$id))
+ if (($vdm = SessionHelper::get('admin_view__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -271,17 +272,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'admin_view__'.$id);
- ComponentbuilderHelper::set('admin_view__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'admin_view__'.$id);
+ SessionHelper::set('admin_view__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -612,7 +613,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('admin_view__'.$id))
+ if (($vdm = SessionHelper::get('admin_view__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -620,17 +621,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'admin_view__'.$id);
- ComponentbuilderHelper::set('admin_view__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'admin_view__'.$id);
+ SessionHelper::set('admin_view__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
// update the fields
@@ -1016,7 +1017,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/ajax.php b/admin/models/ajax.php
index e683c7cb6..b0b7f1db6 100644
--- a/admin/models/ajax.php
+++ b/admin/models/ajax.php
@@ -28,6 +28,7 @@
use VDM\Joomla\Utilities\ArrayHelper as UtilitiesArrayHelper;
use VDM\Joomla\Utilities\GetHelper;
use VDM\Joomla\Utilities\GuidHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\Base64Helper;
use VDM\Joomla\Componentbuilder\Compiler\Utilities\FieldHelper;
use Joomla\CMS\Uri\Uri;
@@ -1595,7 +1596,7 @@ protected function linkedGuid($guid, $setGuid): bool
* @var array
* @since 3.0.13
*/
- protected $viewid = [];
+ protected array $viewid = [];
/**
* Get the view details via the session
@@ -1615,7 +1616,7 @@ protected function getViewID($call = 'table')
if ($vdm)
{
// set view and id
- if ($view = ComponentbuilderHelper::get($vdm))
+ if (($view = SessionHelper::get($vdm)) !== null)
{
$current = (array) explode('__', $view);
if (StringHelper::check($current[0]) && isset($current[1]) && is_numeric($current[1]))
@@ -1628,7 +1629,7 @@ protected function getViewID($call = 'table')
}
}
// set GUID if found
- if (($guid = ComponentbuilderHelper::get($vdm . '__guid')) !== false)
+ if (($guid = SessionHelper::get($vdm . '__guid')) !== null)
{
if (GuidHelper::valid($guid))
{
@@ -1636,7 +1637,7 @@ protected function getViewID($call = 'table')
}
}
// set return if found
- if (($return = ComponentbuilderHelper::get($vdm . '__return')) !== false)
+ if (($return = SessionHelper::get($vdm . '__return')) !== null)
{
if (StringHelper::check($return))
{
diff --git a/admin/models/class_extends.php b/admin/models/class_extends.php
index 5d71980ff..5f3378e8d 100644
--- a/admin/models/class_extends.php
+++ b/admin/models/class_extends.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -118,7 +119,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('class_extends__'.$id))
+ if (($vdm = SessionHelper::get('class_extends__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -126,17 +127,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'class_extends__'.$id);
- ComponentbuilderHelper::set('class_extends__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'class_extends__'.$id);
+ SessionHelper::set('class_extends__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -195,7 +196,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('class_extends__'.$id))
+ if (($vdm = SessionHelper::get('class_extends__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -203,17 +204,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'class_extends__'.$id);
- ComponentbuilderHelper::set('class_extends__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'class_extends__'.$id);
+ SessionHelper::set('class_extends__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/models/class_method.php b/admin/models/class_method.php
index 94873d00f..aa5b861fa 100644
--- a/admin/models/class_method.php
+++ b/admin/models/class_method.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -122,7 +123,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('class_method__'.$id))
+ if (($vdm = SessionHelper::get('class_method__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -130,17 +131,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'class_method__'.$id);
- ComponentbuilderHelper::set('class_method__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'class_method__'.$id);
+ SessionHelper::set('class_method__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -205,7 +206,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('class_method__'.$id))
+ if (($vdm = SessionHelper::get('class_method__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -213,17 +214,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'class_method__'.$id);
- ComponentbuilderHelper::set('class_method__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'class_method__'.$id);
+ SessionHelper::set('class_method__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -554,7 +555,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/class_property.php b/admin/models/class_property.php
index adc402f07..2a62da943 100644
--- a/admin/models/class_property.php
+++ b/admin/models/class_property.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -119,7 +120,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('class_property__'.$id))
+ if (($vdm = SessionHelper::get('class_property__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -127,17 +128,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'class_property__'.$id);
- ComponentbuilderHelper::set('class_property__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'class_property__'.$id);
+ SessionHelper::set('class_property__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -196,7 +197,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('class_property__'.$id))
+ if (($vdm = SessionHelper::get('class_property__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -204,17 +205,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'class_property__'.$id);
- ComponentbuilderHelper::set('class_property__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'class_property__'.$id);
+ SessionHelper::set('class_property__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -545,7 +546,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/component_dashboard.php b/admin/models/component_dashboard.php
index d18a12351..009e55938 100644
--- a/admin/models/component_dashboard.php
+++ b/admin/models/component_dashboard.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -122,7 +123,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('component_dashboard__'.$id))
+ if (($vdm = SessionHelper::get('component_dashboard__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -130,17 +131,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'component_dashboard__'.$id);
- ComponentbuilderHelper::set('component_dashboard__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'component_dashboard__'.$id);
+ SessionHelper::set('component_dashboard__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -201,7 +202,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('component_dashboard__'.$id))
+ if (($vdm = SessionHelper::get('component_dashboard__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -209,17 +210,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'component_dashboard__'.$id);
- ComponentbuilderHelper::set('component_dashboard__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'component_dashboard__'.$id);
+ SessionHelper::set('component_dashboard__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
// update the fields
diff --git a/admin/models/component_router.php b/admin/models/component_router.php
index 873e90b9e..1b26d1ef6 100644
--- a/admin/models/component_router.php
+++ b/admin/models/component_router.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -123,7 +124,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('component_router__'.$id))
+ if (($vdm = SessionHelper::get('component_router__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -131,17 +132,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'component_router__'.$id);
- ComponentbuilderHelper::set('component_router__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'component_router__'.$id);
+ SessionHelper::set('component_router__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -214,7 +215,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('component_router__'.$id))
+ if (($vdm = SessionHelper::get('component_router__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -222,17 +223,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'component_router__'.$id);
- ComponentbuilderHelper::set('component_router__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'component_router__'.$id);
+ SessionHelper::set('component_router__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/models/custom_admin_view.php b/admin/models/custom_admin_view.php
index 026ec2d2c..7cbb3a869 100644
--- a/admin/models/custom_admin_view.php
+++ b/admin/models/custom_admin_view.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -180,7 +181,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('custom_admin_view__'.$id))
+ if (($vdm = SessionHelper::get('custom_admin_view__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -188,17 +189,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'custom_admin_view__'.$id);
- ComponentbuilderHelper::set('custom_admin_view__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'custom_admin_view__'.$id);
+ SessionHelper::set('custom_admin_view__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -349,7 +350,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('custom_admin_view__'.$id))
+ if (($vdm = SessionHelper::get('custom_admin_view__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -357,17 +358,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'custom_admin_view__'.$id);
- ComponentbuilderHelper::set('custom_admin_view__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'custom_admin_view__'.$id);
+ SessionHelper::set('custom_admin_view__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
diff --git a/admin/models/custom_code.php b/admin/models/custom_code.php
index 2c166fd10..acd4d599a 100644
--- a/admin/models/custom_code.php
+++ b/admin/models/custom_code.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -134,7 +135,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('custom_code__'.$id))
+ if (($vdm = SessionHelper::get('custom_code__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -142,17 +143,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'custom_code__'.$id);
- ComponentbuilderHelper::set('custom_code__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'custom_code__'.$id);
+ SessionHelper::set('custom_code__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -205,7 +206,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('custom_code__'.$id))
+ if (($vdm = SessionHelper::get('custom_code__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -213,17 +214,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'custom_code__'.$id);
- ComponentbuilderHelper::set('custom_code__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'custom_code__'.$id);
+ SessionHelper::set('custom_code__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -547,7 +548,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/dynamic_get.php b/admin/models/dynamic_get.php
index 2f98e999d..cf4e52e0f 100644
--- a/admin/models/dynamic_get.php
+++ b/admin/models/dynamic_get.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -174,7 +175,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('dynamic_get__'.$id))
+ if (($vdm = SessionHelper::get('dynamic_get__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -182,17 +183,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'dynamic_get__'.$id);
- ComponentbuilderHelper::set('dynamic_get__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'dynamic_get__'.$id);
+ SessionHelper::set('dynamic_get__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -349,7 +350,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('dynamic_get__'.$id))
+ if (($vdm = SessionHelper::get('dynamic_get__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -357,17 +358,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'dynamic_get__'.$id);
- ComponentbuilderHelper::set('dynamic_get__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'dynamic_get__'.$id);
+ SessionHelper::set('dynamic_get__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
@@ -738,7 +739,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/field.php b/admin/models/field.php
index 5ca3e1068..80c65f942 100644
--- a/admin/models/field.php
+++ b/admin/models/field.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -167,7 +168,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('field__'.$id))
+ if (($vdm = SessionHelper::get('field__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -175,17 +176,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'field__'.$id);
- ComponentbuilderHelper::set('field__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'field__'.$id);
+ SessionHelper::set('field__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -286,7 +287,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('field__'.$id))
+ if (($vdm = SessionHelper::get('field__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -294,17 +295,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'field__'.$id);
- ComponentbuilderHelper::set('field__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'field__'.$id);
+ SessionHelper::set('field__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -633,7 +634,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php
index 8b59c067b..c22511b08 100644
--- a/admin/models/fieldtype.php
+++ b/admin/models/fieldtype.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -141,7 +142,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('fieldtype__'.$id))
+ if (($vdm = SessionHelper::get('fieldtype__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -149,17 +150,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'fieldtype__'.$id);
- ComponentbuilderHelper::set('fieldtype__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'fieldtype__'.$id);
+ SessionHelper::set('fieldtype__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -214,7 +215,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('fieldtype__'.$id))
+ if (($vdm = SessionHelper::get('fieldtype__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -222,17 +223,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'fieldtype__'.$id);
- ComponentbuilderHelper::set('fieldtype__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'fieldtype__'.$id);
+ SessionHelper::set('fieldtype__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
// check what type of properties array we have here (should be subform... but just incase)
@@ -813,7 +814,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/forms/component_admin_views.xml b/admin/models/forms/component_admin_views.xml
index 6b5918279..23f32a035 100644
--- a/admin/models/forms/component_admin_views.xml
+++ b/admin/models/forms/component_admin_views.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ADMIN_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
diff --git a/admin/models/forms/component_config.xml b/admin/models/forms/component_config.xml
index ddff1a830..775b661d4 100644
--- a/admin/models/forms/component_config.xml
+++ b/admin/models/forms/component_config.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CONFIG_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CONFIG_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
diff --git a/admin/models/forms/component_custom_admin_menus.xml b/admin/models/forms/component_custom_admin_menus.xml
index 99333d5dd..585e94652 100644
--- a/admin/models/forms/component_custom_admin_menus.xml
+++ b/admin/models/forms/component_custom_admin_menus.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_MENUS_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
diff --git a/admin/models/forms/component_custom_admin_views.xml b/admin/models/forms/component_custom_admin_views.xml
index 038364a6c..284fbdac5 100644
--- a/admin/models/forms/component_custom_admin_views.xml
+++ b/admin/models/forms/component_custom_admin_views.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_CUSTOM_ADMIN_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
diff --git a/admin/models/forms/component_dashboard.xml b/admin/models/forms/component_dashboard.xml
index ff51c4435..a2d60bd2c 100644
--- a/admin/models/forms/component_dashboard.xml
+++ b/admin/models/forms/component_dashboard.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
@@ -171,7 +170,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HTML_LABEL"
rows="20"
cols="30"
- default=""
class="text_area tab_html"
filter="raw"
hint="COM_COMPONENTBUILDER_COMPONENT_DASHBOARD_HTML_HINT"
diff --git a/admin/models/forms/component_files_folders.xml b/admin/models/forms/component_files_folders.xml
index e760cc7a4..b2a3facd7 100644
--- a/admin/models/forms/component_files_folders.xml
+++ b/admin/models/forms/component_files_folders.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_FILES_FOLDERS_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
diff --git a/admin/models/forms/component_modules.xml b/admin/models/forms/component_modules.xml
index 0f2508281..fa16c1bfc 100644
--- a/admin/models/forms/component_modules.xml
+++ b/admin/models/forms/component_modules.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_MODULES_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MODULES_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
diff --git a/admin/models/forms/component_mysql_tweaks.xml b/admin/models/forms/component_mysql_tweaks.xml
index 7c99c3bb8..e2188b867 100644
--- a/admin/models/forms/component_mysql_tweaks.xml
+++ b/admin/models/forms/component_mysql_tweaks.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
@@ -184,7 +183,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_IDS_LABEL"
rows="20"
cols="40"
- default=""
description="COM_COMPONENTBUILDER_COMPONENT_MYSQL_TWEAKS_IDS_DESCRIPTION"
class="text_area ids_selection"
filter="raw"
diff --git a/admin/models/forms/component_placeholders.xml b/admin/models/forms/component_placeholders.xml
index b1bc62968..d49a04a8b 100644
--- a/admin/models/forms/component_placeholders.xml
+++ b/admin/models/forms/component_placeholders.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_PLACEHOLDERS_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
diff --git a/admin/models/forms/component_plugins.xml b/admin/models/forms/component_plugins.xml
index 03d3d43bb..91664e40c 100644
--- a/admin/models/forms/component_plugins.xml
+++ b/admin/models/forms/component_plugins.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_PLUGINS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_PLUGINS_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
diff --git a/admin/models/forms/component_router.xml b/admin/models/forms/component_router.xml
index 7507fa7a6..93acb3790 100644
--- a/admin/models/forms/component_router.xml
+++ b/admin/models/forms/component_router.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_ROUTER_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_ROUTER_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
diff --git a/admin/models/forms/component_site_views.xml b/admin/models/forms/component_site_views.xml
index 2737e3b21..7de8832f4 100644
--- a/admin/models/forms/component_site_views.xml
+++ b/admin/models/forms/component_site_views.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_SITE_VIEWS_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
diff --git a/admin/models/forms/component_updates.xml b/admin/models/forms/component_updates.xml
index c751c0c64..a7099f57c 100644
--- a/admin/models/forms/component_updates.xml
+++ b/admin/models/forms/component_updates.xml
@@ -101,7 +101,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_JOOMLA_COMPONENT_LABEL"
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_JOOMLA_COMPONENT_DESCRIPTION"
class="list_class"
- layout="joomla.form.field.list-fancy-select"
multiple="false"
required="true"
readonly="true"
@@ -156,7 +155,6 @@
label="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MYSQL_LABEL"
rows="30"
cols="15"
- default=""
description="COM_COMPONENTBUILDER_COMPONENT_UPDATES_MYSQL_DESCRIPTION"
class="text_area mysql_update"
filter="raw"
diff --git a/admin/models/forms/fieldtype.xml b/admin/models/forms/fieldtype.xml
index 959cdac4c..f377c9201 100644
--- a/admin/models/forms/fieldtype.xml
+++ b/admin/models/forms/fieldtype.xml
@@ -329,7 +329,6 @@
label="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_LABEL"
rows="2"
cols="15"
- default=""
description="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_DESCRIPTION"
message="COM_COMPONENTBUILDER_FIELDTYPE_EXAMPLE_MESSAGE"
class="text_area span12"
diff --git a/admin/models/forms/joomla_module_updates.xml b/admin/models/forms/joomla_module_updates.xml
index a665d89af..b7bea260f 100644
--- a/admin/models/forms/joomla_module_updates.xml
+++ b/admin/models/forms/joomla_module_updates.xml
@@ -140,7 +140,6 @@
label="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_LABEL"
rows="30"
cols="15"
- default=""
description="COM_COMPONENTBUILDER_JOOMLA_MODULE_UPDATES_MYSQL_DESCRIPTION"
class="text_area mysql_update"
filter="raw"
diff --git a/admin/models/forms/joomla_plugin_updates.xml b/admin/models/forms/joomla_plugin_updates.xml
index 43a146bea..5d87fc072 100644
--- a/admin/models/forms/joomla_plugin_updates.xml
+++ b/admin/models/forms/joomla_plugin_updates.xml
@@ -140,7 +140,6 @@
label="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MYSQL_LABEL"
rows="30"
cols="15"
- default=""
description="COM_COMPONENTBUILDER_JOOMLA_PLUGIN_UPDATES_MYSQL_DESCRIPTION"
class="text_area mysql_update"
filter="raw"
diff --git a/admin/models/forms/server.xml b/admin/models/forms/server.xml
index 4d742c6a2..cacab4f67 100644
--- a/admin/models/forms/server.xml
+++ b/admin/models/forms/server.xml
@@ -163,7 +163,6 @@
label="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_LABEL"
rows="15"
cols="5"
- default=""
description="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_DESCRIPTION"
class="input-xxlarge span12"
hint="COM_COMPONENTBUILDER_SERVER_PRIVATE_KEY_HINT"
diff --git a/admin/models/help_document.php b/admin/models/help_document.php
index 01c88dca9..aca28507f 100644
--- a/admin/models/help_document.php
+++ b/admin/models/help_document.php
@@ -433,7 +433,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/joomla_component.php b/admin/models/joomla_component.php
index b9686e5f8..1d25ab91f 100644
--- a/admin/models/joomla_component.php
+++ b/admin/models/joomla_component.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -298,7 +299,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('joomla_component__'.$id))
+ if (($vdm = SessionHelper::get('joomla_component__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -306,17 +307,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'joomla_component__'.$id);
- ComponentbuilderHelper::set('joomla_component__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'joomla_component__'.$id);
+ SessionHelper::set('joomla_component__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -528,7 +529,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('joomla_component__'.$id))
+ if (($vdm = SessionHelper::get('joomla_component__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -536,17 +537,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'joomla_component__'.$id);
- ComponentbuilderHelper::set('joomla_component__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'joomla_component__'.$id);
+ SessionHelper::set('joomla_component__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
@@ -919,7 +920,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/joomla_module.php b/admin/models/joomla_module.php
index 8a92aea54..5f1227ec7 100644
--- a/admin/models/joomla_module.php
+++ b/admin/models/joomla_module.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -204,7 +205,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('joomla_module__'.$id))
+ if (($vdm = SessionHelper::get('joomla_module__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -212,17 +213,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'joomla_module__'.$id);
- ComponentbuilderHelper::set('joomla_module__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'joomla_module__'.$id);
+ SessionHelper::set('joomla_module__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -377,7 +378,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('joomla_module__'.$id))
+ if (($vdm = SessionHelper::get('joomla_module__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -385,17 +386,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'joomla_module__'.$id);
- ComponentbuilderHelper::set('joomla_module__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'joomla_module__'.$id);
+ SessionHelper::set('joomla_module__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/models/joomla_plugin.php b/admin/models/joomla_plugin.php
index 03cc13dbc..c8f65d0aa 100644
--- a/admin/models/joomla_plugin.php
+++ b/admin/models/joomla_plugin.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -181,7 +182,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('joomla_plugin__'.$id))
+ if (($vdm = SessionHelper::get('joomla_plugin__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -189,17 +190,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'joomla_plugin__'.$id);
- ComponentbuilderHelper::set('joomla_plugin__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'joomla_plugin__'.$id);
+ SessionHelper::set('joomla_plugin__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -342,7 +343,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('joomla_plugin__'.$id))
+ if (($vdm = SessionHelper::get('joomla_plugin__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -350,17 +351,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'joomla_plugin__'.$id);
- ComponentbuilderHelper::set('joomla_plugin__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'joomla_plugin__'.$id);
+ SessionHelper::set('joomla_plugin__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/models/language_translation.php b/admin/models/language_translation.php
index fbe6f3cdd..3fa3b5c67 100644
--- a/admin/models/language_translation.php
+++ b/admin/models/language_translation.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -114,7 +115,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('language_translation__'.$id))
+ if (($vdm = SessionHelper::get('language_translation__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -122,17 +123,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'language_translation__'.$id);
- ComponentbuilderHelper::set('language_translation__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'language_translation__'.$id);
+ SessionHelper::set('language_translation__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -193,7 +194,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('language_translation__'.$id))
+ if (($vdm = SessionHelper::get('language_translation__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -201,17 +202,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'language_translation__'.$id);
- ComponentbuilderHelper::set('language_translation__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'language_translation__'.$id);
+ SessionHelper::set('language_translation__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/models/layout.php b/admin/models/layout.php
index f892b7a99..0d927c22c 100644
--- a/admin/models/layout.php
+++ b/admin/models/layout.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -136,7 +137,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('layout__'.$id))
+ if (($vdm = SessionHelper::get('layout__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -144,17 +145,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'layout__'.$id);
- ComponentbuilderHelper::set('layout__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'layout__'.$id);
+ SessionHelper::set('layout__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -221,7 +222,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('layout__'.$id))
+ if (($vdm = SessionHelper::get('layout__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -229,17 +230,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'layout__'.$id);
- ComponentbuilderHelper::set('layout__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'layout__'.$id);
+ SessionHelper::set('layout__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/models/library.php b/admin/models/library.php
index 44b4aa9c0..7e6f93f11 100644
--- a/admin/models/library.php
+++ b/admin/models/library.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -152,7 +153,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('library__'.$id))
+ if (($vdm = SessionHelper::get('library__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -160,17 +161,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'library__'.$id);
- ComponentbuilderHelper::set('library__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'library__'.$id);
+ SessionHelper::set('library__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -239,7 +240,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('library__'.$id))
+ if (($vdm = SessionHelper::get('library__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -247,17 +248,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'library__'.$id);
- ComponentbuilderHelper::set('library__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'library__'.$id);
+ SessionHelper::set('library__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -569,7 +570,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/placeholder.php b/admin/models/placeholder.php
index 69ea74539..30c0b5e2a 100644
--- a/admin/models/placeholder.php
+++ b/admin/models/placeholder.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -116,7 +117,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('placeholder__'.$id))
+ if (($vdm = SessionHelper::get('placeholder__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -124,17 +125,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'placeholder__'.$id);
- ComponentbuilderHelper::set('placeholder__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'placeholder__'.$id);
+ SessionHelper::set('placeholder__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -187,7 +188,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('placeholder__'.$id))
+ if (($vdm = SessionHelper::get('placeholder__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -195,17 +196,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'placeholder__'.$id);
- ComponentbuilderHelper::set('placeholder__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'placeholder__'.$id);
+ SessionHelper::set('placeholder__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/models/power.php b/admin/models/power.php
index cb8847b30..82b056fca 100644
--- a/admin/models/power.php
+++ b/admin/models/power.php
@@ -25,6 +25,7 @@
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
use VDM\Joomla\Componentbuilder\Power\Factory as PowerFactory;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -162,7 +163,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('power__'.$id))
+ if (($vdm = SessionHelper::get('power__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -170,17 +171,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'power__'.$id);
- ComponentbuilderHelper::set('power__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'power__'.$id);
+ SessionHelper::set('power__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -307,7 +308,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('power__'.$id))
+ if (($vdm = SessionHelper::get('power__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -315,17 +316,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'power__'.$id);
- ComponentbuilderHelper::set('power__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'power__'.$id);
+ SessionHelper::set('power__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/models/server.php b/admin/models/server.php
index af43c4e41..0ef192565 100644
--- a/admin/models/server.php
+++ b/admin/models/server.php
@@ -490,7 +490,7 @@ public function validate($form, $data, $group = null)
// change to false
$form->setFieldAttribute($requiredField, 'required', 'false');
// also clear the data set
- $data[$requiredField] = '';
+ unset($data[$requiredField]);
}
}
}
diff --git a/admin/models/site_view.php b/admin/models/site_view.php
index d44b22a9d..b8ba9cece 100644
--- a/admin/models/site_view.php
+++ b/admin/models/site_view.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -183,7 +184,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('site_view__'.$id))
+ if (($vdm = SessionHelper::get('site_view__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -191,17 +192,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'site_view__'.$id);
- ComponentbuilderHelper::set('site_view__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'site_view__'.$id);
+ SessionHelper::set('site_view__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -352,7 +353,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('site_view__'.$id))
+ if (($vdm = SessionHelper::get('site_view__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -360,17 +361,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'site_view__'.$id);
- ComponentbuilderHelper::set('site_view__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'site_view__'.$id);
+ SessionHelper::set('site_view__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
diff --git a/admin/models/template.php b/admin/models/template.php
index 87cb42f15..047babc24 100644
--- a/admin/models/template.php
+++ b/admin/models/template.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -136,7 +137,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('template__'.$id))
+ if (($vdm = SessionHelper::get('template__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -144,17 +145,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'template__'.$id);
- ComponentbuilderHelper::set('template__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'template__'.$id);
+ SessionHelper::set('template__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -221,7 +222,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('template__'.$id))
+ if (($vdm = SessionHelper::get('template__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -229,17 +230,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'template__'.$id);
- ComponentbuilderHelper::set('template__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'template__'.$id);
+ SessionHelper::set('template__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/models/validation_rule.php b/admin/models/validation_rule.php
index b2ab94f0b..8043ec3c0 100644
--- a/admin/models/validation_rule.php
+++ b/admin/models/validation_rule.php
@@ -24,6 +24,7 @@
use Joomla\String\StringHelper;
use Joomla\Utilities\ArrayHelper;
use Joomla\CMS\Helper\TagsHelper;
+use VDM\Joomla\Utilities\SessionHelper;
use VDM\Joomla\Utilities\StringHelper as UtilitiesStringHelper;
use VDM\Joomla\Utilities\ObjectHelper;
use VDM\Joomla\Utilities\GuidHelper;
@@ -119,7 +120,7 @@ public function getVDM()
$id = $_id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('validation_rule__'.$id))
+ if (($vdm = SessionHelper::get('validation_rule__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -127,17 +128,17 @@ public function getVDM()
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'validation_rule__'.$id);
- ComponentbuilderHelper::set('validation_rule__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'validation_rule__'.$id);
+ SessionHelper::set('validation_rule__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
@@ -190,7 +191,7 @@ public function getItem($pk = null)
$id = $item->id;
}
// set the id and view name to session
- if ($vdm = ComponentbuilderHelper::get('validation_rule__'.$id))
+ if (($vdm = SessionHelper::get('validation_rule__'.$id)) !== null)
{
$this->vastDevMod = $vdm;
}
@@ -198,17 +199,17 @@ public function getItem($pk = null)
{
// set the vast development method key
$this->vastDevMod = UtilitiesStringHelper::random(50);
- ComponentbuilderHelper::set($this->vastDevMod, 'validation_rule__'.$id);
- ComponentbuilderHelper::set('validation_rule__'.$id, $this->vastDevMod);
+ SessionHelper::set($this->vastDevMod, 'validation_rule__'.$id);
+ SessionHelper::set('validation_rule__'.$id, $this->vastDevMod);
// set a return value if found
$jinput = Factory::getApplication()->input;
$return = $jinput->get('return', null, 'base64');
- ComponentbuilderHelper::set($this->vastDevMod . '__return', $return);
+ SessionHelper::set($this->vastDevMod . '__return', $return);
// set a GUID value if found
if (isset($item) && ObjectHelper::check($item) && isset($item->guid)
&& GuidHelper::valid($item->guid))
{
- ComponentbuilderHelper::set($this->vastDevMod . '__guid', $item->guid);
+ SessionHelper::set($this->vastDevMod . '__guid', $item->guid);
}
}
}
diff --git a/admin/sql/install.mysql.utf8.sql b/admin/sql/install.mysql.utf8.sql
index 18e5316b9..ea2de56fb 100644
--- a/admin/sql/install.mysql.utf8.sql
+++ b/admin/sql/install.mysql.utf8.sql
@@ -27,69 +27,69 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_component` (
`add_sql` TINYINT(1) NOT NULL DEFAULT 0,
`add_sql_uninstall` TINYINT(1) NOT NULL DEFAULT 0,
`add_update_server` TINYINT(1) NOT NULL DEFAULT 0,
- `addcontributors` TEXT NOT NULL,
+ `addcontributors` TEXT NULL,
`addfootable` TINYINT(1) NOT NULL DEFAULT 0,
`addreadme` TINYINT(1) NOT NULL DEFAULT 0,
`adduikit` TINYINT(1) NOT NULL DEFAULT 0,
`assets_table_fix` TINYINT(1) NOT NULL DEFAULT 3,
- `author` VARCHAR(255) NOT NULL DEFAULT '',
- `backup_folder_path` VARCHAR(255) NOT NULL DEFAULT '',
+ `author` VARCHAR(255) NULL DEFAULT '',
+ `backup_folder_path` VARCHAR(255) NULL DEFAULT '',
`bom` CHAR(64) NOT NULL DEFAULT '',
`buildcomp` TINYINT(1) NOT NULL DEFAULT 0,
- `buildcompsql` MEDIUMTEXT NOT NULL,
- `companyname` CHAR(64) NOT NULL DEFAULT '',
- `component_version` CHAR(64) NOT NULL DEFAULT '',
- `copyright` VARCHAR(255) NOT NULL DEFAULT '',
+ `buildcompsql` MEDIUMTEXT NULL,
+ `companyname` CHAR(64) NULL DEFAULT '',
+ `component_version` CHAR(64) NULL DEFAULT '',
+ `copyright` VARCHAR(255) NULL DEFAULT '',
`created` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`creatuserhelper` TINYINT(1) NOT NULL DEFAULT 0,
- `crowdin_account_api_key` TEXT NOT NULL,
- `crowdin_project_api_key` TEXT NOT NULL,
- `crowdin_project_identifier` VARCHAR(255) NOT NULL DEFAULT '',
- `crowdin_username` TEXT NOT NULL,
- `css_admin` TEXT NOT NULL,
- `css_site` TEXT NOT NULL,
+ `crowdin_account_api_key` TEXT NULL,
+ `crowdin_project_api_key` TEXT NULL,
+ `crowdin_project_identifier` VARCHAR(255) NULL DEFAULT '',
+ `crowdin_username` TEXT NULL,
+ `css_admin` TEXT NULL,
+ `css_site` TEXT NULL,
`dashboard` VARCHAR(64) NOT NULL DEFAULT '',
`dashboard_type` TINYINT(1) NOT NULL DEFAULT 1,
`debug_linenr` TINYINT(1) NOT NULL DEFAULT 0,
`description` TEXT NULL,
- `email` VARCHAR(255) NOT NULL DEFAULT '',
+ `email` VARCHAR(255) NULL DEFAULT '',
`emptycontributors` TINYINT(1) NOT NULL DEFAULT 0,
`export_buy_link` VARCHAR(255) NOT NULL DEFAULT '',
- `export_key` TEXT NOT NULL,
- `git_folder_path` VARCHAR(255) NOT NULL DEFAULT '',
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `export_key` TEXT NULL,
+ `git_folder_path` VARCHAR(255) NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`image` VARCHAR(255) NOT NULL DEFAULT '',
- `javascript` TEXT NOT NULL,
- `jcb_powers_path` VARCHAR(255) NOT NULL DEFAULT '',
+ `javascript` TEXT NULL,
+ `jcb_powers_path` VARCHAR(255) NULL DEFAULT '',
`joomla_source_link` VARCHAR(255) NOT NULL DEFAULT '',
- `license` VARCHAR(255) NOT NULL DEFAULT '',
- `menu_prefix` VARCHAR(100) NOT NULL DEFAULT '',
+ `license` VARCHAR(255) NULL DEFAULT '',
+ `menu_prefix` VARCHAR(100) NULL DEFAULT '',
`modified` DATETIME NOT NULL DEFAULT '0000-00-00 00:00:00',
`mvc_versiondate` TINYINT(1) NOT NULL DEFAULT 0,
- `name` CHAR(64) NOT NULL DEFAULT '',
- `name_code` VARCHAR(255) NOT NULL DEFAULT '',
- `namespace_prefix` VARCHAR(255) NOT NULL DEFAULT '',
+ `name` CHAR(64) NULL DEFAULT '',
+ `name_code` VARCHAR(255) NULL DEFAULT '',
+ `namespace_prefix` VARCHAR(255) NULL DEFAULT '',
`number` INT(11) NOT NULL DEFAULT 0,
- `php_admin_event` MEDIUMTEXT NOT NULL,
- `php_helper_admin` MEDIUMTEXT NOT NULL,
- `php_helper_both` MEDIUMTEXT NOT NULL,
- `php_helper_site` MEDIUMTEXT NOT NULL,
- `php_method_install` MEDIUMTEXT NOT NULL,
- `php_method_uninstall` MEDIUMTEXT NOT NULL,
- `php_postflight_install` MEDIUMTEXT NOT NULL,
- `php_postflight_update` MEDIUMTEXT NOT NULL,
- `php_preflight_install` MEDIUMTEXT NOT NULL,
- `php_preflight_update` MEDIUMTEXT NOT NULL,
- `php_site_event` MEDIUMTEXT NOT NULL,
+ `php_admin_event` MEDIUMTEXT NULL,
+ `php_helper_admin` MEDIUMTEXT NULL,
+ `php_helper_both` MEDIUMTEXT NULL,
+ `php_helper_site` MEDIUMTEXT NULL,
+ `php_method_install` MEDIUMTEXT NULL,
+ `php_method_uninstall` MEDIUMTEXT NULL,
+ `php_postflight_install` MEDIUMTEXT NULL,
+ `php_postflight_update` MEDIUMTEXT NULL,
+ `php_preflight_install` MEDIUMTEXT NULL,
+ `php_preflight_update` MEDIUMTEXT NULL,
+ `php_site_event` MEDIUMTEXT NULL,
`preferred_joomla_version` INT(11) NOT NULL DEFAULT 3,
- `readme` TEXT NOT NULL,
+ `readme` TEXT NULL,
`remove_line_breaks` TINYINT(1) NOT NULL DEFAULT 1,
`sales_server` INT(11) NOT NULL DEFAULT 0,
- `short_description` VARCHAR(255) NOT NULL DEFAULT '',
- `sql` MEDIUMTEXT NOT NULL,
- `sql_uninstall` MEDIUMTEXT NOT NULL,
- `system_name` VARCHAR(255) NOT NULL DEFAULT '',
- `toignore` TEXT NOT NULL,
+ `short_description` VARCHAR(255) NULL DEFAULT '',
+ `sql` MEDIUMTEXT NULL,
+ `sql_uninstall` MEDIUMTEXT NULL,
+ `system_name` VARCHAR(255) NULL DEFAULT '',
+ `toignore` TEXT NULL,
`translation_tool` TINYINT(1) NOT NULL DEFAULT 0,
`update_server` INT(11) NOT NULL DEFAULT 0,
`update_server_target` TINYINT(1) NOT NULL DEFAULT 0,
@@ -175,30 +175,30 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module` (
`add_sql_uninstall` TINYINT(1) NOT NULL DEFAULT 0,
`add_update_server` TINYINT(1) NOT NULL DEFAULT 0,
`addreadme` TINYINT(1) NOT NULL DEFAULT 0,
- `class_helper_code` MEDIUMTEXT NOT NULL,
- `class_helper_header` TEXT NOT NULL,
- `custom_get` TEXT NOT NULL,
- `default` MEDIUMTEXT NOT NULL,
+ `class_helper_code` MEDIUMTEXT NULL,
+ `class_helper_header` TEXT NULL,
+ `custom_get` TEXT NULL,
+ `default` MEDIUMTEXT NULL,
`description` TEXT NULL,
`fields` TEXT NOT NULL,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`libraries` TEXT NOT NULL,
- `mod_code` TEXT NOT NULL,
- `module_version` CHAR(64) NOT NULL DEFAULT '',
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `php_method_uninstall` MEDIUMTEXT NOT NULL,
- `php_postflight_install` MEDIUMTEXT NOT NULL,
- `php_postflight_update` MEDIUMTEXT NOT NULL,
- `php_preflight_install` MEDIUMTEXT NOT NULL,
- `php_preflight_uninstall` MEDIUMTEXT NOT NULL,
- `php_preflight_update` MEDIUMTEXT NOT NULL,
- `php_script_construct` MEDIUMTEXT NOT NULL,
- `readme` TEXT NOT NULL,
+ `mod_code` TEXT NULL,
+ `module_version` CHAR(64) NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `php_method_uninstall` MEDIUMTEXT NULL,
+ `php_postflight_install` MEDIUMTEXT NULL,
+ `php_postflight_update` MEDIUMTEXT NULL,
+ `php_preflight_install` MEDIUMTEXT NULL,
+ `php_preflight_uninstall` MEDIUMTEXT NULL,
+ `php_preflight_update` MEDIUMTEXT NULL,
+ `php_script_construct` MEDIUMTEXT NULL,
+ `readme` TEXT NULL,
`sales_server` INT(11) NOT NULL DEFAULT 0,
`snippet` INT(11) NOT NULL DEFAULT 0,
- `sql` MEDIUMTEXT NOT NULL,
- `sql_uninstall` MEDIUMTEXT NOT NULL,
- `system_name` VARCHAR(255) NOT NULL DEFAULT '',
+ `sql` MEDIUMTEXT NULL,
+ `sql_uninstall` MEDIUMTEXT NULL,
+ `system_name` VARCHAR(255) NULL DEFAULT '',
`target` TINYINT(1) NOT NULL DEFAULT 0,
`update_server` INT(11) NOT NULL DEFAULT 0,
`update_server_target` TINYINT(1) NOT NULL DEFAULT 0,
@@ -258,26 +258,26 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin` (
`class_extends` INT(11) NOT NULL DEFAULT 0,
`description` TEXT NULL,
`fields` TEXT NOT NULL,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`head` TEXT NULL,
`joomla_plugin_group` INT(11) NOT NULL DEFAULT 0,
- `main_class_code` MEDIUMTEXT NOT NULL,
+ `main_class_code` MEDIUMTEXT NULL,
`method_selection` TEXT NOT NULL,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `php_method_uninstall` MEDIUMTEXT NOT NULL,
- `php_postflight_install` MEDIUMTEXT NOT NULL,
- `php_postflight_update` MEDIUMTEXT NOT NULL,
- `php_preflight_install` MEDIUMTEXT NOT NULL,
- `php_preflight_uninstall` MEDIUMTEXT NOT NULL,
- `php_preflight_update` MEDIUMTEXT NOT NULL,
- `php_script_construct` MEDIUMTEXT NOT NULL,
- `plugin_version` CHAR(64) NOT NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `php_method_uninstall` MEDIUMTEXT NULL,
+ `php_postflight_install` MEDIUMTEXT NULL,
+ `php_postflight_update` MEDIUMTEXT NULL,
+ `php_preflight_install` MEDIUMTEXT NULL,
+ `php_preflight_uninstall` MEDIUMTEXT NULL,
+ `php_preflight_update` MEDIUMTEXT NULL,
+ `php_script_construct` MEDIUMTEXT NULL,
+ `plugin_version` CHAR(64) NULL DEFAULT '',
`property_selection` TEXT NOT NULL,
- `readme` TEXT NOT NULL,
+ `readme` TEXT NULL,
`sales_server` INT(11) NOT NULL DEFAULT 0,
- `sql` MEDIUMTEXT NOT NULL,
- `sql_uninstall` MEDIUMTEXT NOT NULL,
- `system_name` VARCHAR(255) NOT NULL DEFAULT '',
+ `sql` MEDIUMTEXT NULL,
+ `sql_uninstall` MEDIUMTEXT NULL,
+ `system_name` VARCHAR(255) NULL DEFAULT '',
`update_server` INT(11) NOT NULL DEFAULT 0,
`update_server_target` TINYINT(1) NOT NULL DEFAULT 0,
`update_server_url` VARCHAR(255) NOT NULL DEFAULT '',
@@ -323,9 +323,9 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_power` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`description` TEXT NULL,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`settings` TEXT NOT NULL,
- `system_name` VARCHAR(255) NOT NULL DEFAULT '',
+ `system_name` VARCHAR(255) NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -361,19 +361,19 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_power` (
`extends_custom` VARCHAR(64) NULL DEFAULT '',
`extendsinterfaces` TEXT NULL,
`extendsinterfaces_custom` TEXT NULL,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`head` TEXT NULL,
`implements` TEXT NULL,
- `implements_custom` VARCHAR(1024) NOT NULL DEFAULT '',
+ `implements_custom` VARCHAR(1024) NULL DEFAULT '',
`licensing_template` TEXT NULL,
`load_selection` TEXT NULL,
- `main_class_code` MEDIUMTEXT NOT NULL,
+ `main_class_code` MEDIUMTEXT NULL,
`method_selection` TEXT NULL,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `namespace` VARCHAR(255) NOT NULL DEFAULT '',
- `power_version` CHAR(64) NOT NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `namespace` VARCHAR(255) NULL DEFAULT '',
+ `power_version` CHAR(64) NULL DEFAULT '',
`property_selection` TEXT NULL,
- `system_name` VARCHAR(255) NOT NULL DEFAULT '',
+ `system_name` VARCHAR(255) NULL DEFAULT '',
`type` VARCHAR(64) NOT NULL DEFAULT '',
`use_selection` TEXT NULL,
`params` TEXT NULL,
@@ -438,66 +438,66 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_view` (
`add_php_postsavehook` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_save` TINYINT(1) NOT NULL DEFAULT 0,
`add_sql` TINYINT(1) NOT NULL DEFAULT 0,
- `addlinked_views` TEXT NOT NULL,
- `addpermissions` TEXT NOT NULL,
- `addtables` TEXT NOT NULL,
- `addtabs` TEXT NOT NULL,
- `ajax_input` TEXT NOT NULL,
+ `addlinked_views` TEXT NULL,
+ `addpermissions` TEXT NULL,
+ `addtables` TEXT NULL,
+ `addtabs` TEXT NULL,
+ `ajax_input` TEXT NULL,
`alias_builder` VARCHAR(255) NOT NULL DEFAULT '',
`alias_builder_type` TINYINT(1) NOT NULL DEFAULT 0,
- `css_view` TEXT NOT NULL,
- `css_views` TEXT NOT NULL,
- `custom_button` TEXT NOT NULL,
+ `css_view` TEXT NULL,
+ `css_views` TEXT NULL,
+ `custom_button` TEXT NULL,
`description` TEXT NULL,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
- `html_import_view` MEDIUMTEXT NOT NULL,
+ `guid` VARCHAR(36) NULL DEFAULT '',
+ `html_import_view` MEDIUMTEXT NULL,
`icon` VARCHAR(255) NOT NULL DEFAULT '',
`icon_add` VARCHAR(255) NOT NULL DEFAULT '',
`icon_category` VARCHAR(255) NOT NULL DEFAULT '',
- `javascript_view_file` TEXT NOT NULL,
- `javascript_view_footer` TEXT NOT NULL,
- `javascript_views_file` TEXT NOT NULL,
- `javascript_views_footer` TEXT NOT NULL,
+ `javascript_view_file` TEXT NULL,
+ `javascript_view_footer` TEXT NULL,
+ `javascript_views_file` TEXT NULL,
+ `javascript_views_footer` TEXT NULL,
`mysql_table_charset` VARCHAR(64) NOT NULL DEFAULT 1,
`mysql_table_collate` VARCHAR(64) NOT NULL DEFAULT 1,
`mysql_table_engine` VARCHAR(64) NOT NULL DEFAULT 1,
`mysql_table_row_format` VARCHAR(64) NOT NULL DEFAULT 0,
- `name_list` CHAR(64) NOT NULL DEFAULT '',
- `name_single` CHAR(64) NOT NULL DEFAULT '',
- `php_after_cancel` MEDIUMTEXT NOT NULL,
- `php_after_delete` MEDIUMTEXT NOT NULL,
- `php_after_publish` MEDIUMTEXT NOT NULL,
- `php_ajaxmethod` MEDIUMTEXT NOT NULL,
- `php_allowadd` MEDIUMTEXT NOT NULL,
- `php_allowedit` MEDIUMTEXT NOT NULL,
- `php_batchcopy` MEDIUMTEXT NOT NULL,
- `php_batchmove` MEDIUMTEXT NOT NULL,
- `php_before_cancel` MEDIUMTEXT NOT NULL,
- `php_before_delete` MEDIUMTEXT NOT NULL,
- `php_before_publish` MEDIUMTEXT NOT NULL,
- `php_before_save` MEDIUMTEXT NOT NULL,
- `php_controller` MEDIUMTEXT NOT NULL,
- `php_controller_list` MEDIUMTEXT NOT NULL,
- `php_document` MEDIUMTEXT NOT NULL,
- `php_getform` MEDIUMTEXT NOT NULL,
- `php_getitem` MEDIUMTEXT NOT NULL,
- `php_getitems` MEDIUMTEXT NOT NULL,
- `php_getitems_after_all` MEDIUMTEXT NOT NULL,
- `php_getlistquery` MEDIUMTEXT NOT NULL,
- `php_import` MEDIUMTEXT NOT NULL,
- `php_import_display` MEDIUMTEXT NOT NULL,
- `php_import_ext` MEDIUMTEXT NOT NULL,
- `php_import_headers` MEDIUMTEXT NOT NULL,
- `php_import_save` MEDIUMTEXT NOT NULL,
- `php_import_setdata` MEDIUMTEXT NOT NULL,
- `php_model` MEDIUMTEXT NOT NULL,
- `php_model_list` MEDIUMTEXT NOT NULL,
- `php_postsavehook` MEDIUMTEXT NOT NULL,
- `php_save` MEDIUMTEXT NOT NULL,
- `short_description` VARCHAR(255) NOT NULL DEFAULT '',
+ `name_list` CHAR(64) NULL DEFAULT '',
+ `name_single` CHAR(64) NULL DEFAULT '',
+ `php_after_cancel` MEDIUMTEXT NULL,
+ `php_after_delete` MEDIUMTEXT NULL,
+ `php_after_publish` MEDIUMTEXT NULL,
+ `php_ajaxmethod` MEDIUMTEXT NULL,
+ `php_allowadd` MEDIUMTEXT NULL,
+ `php_allowedit` MEDIUMTEXT NULL,
+ `php_batchcopy` MEDIUMTEXT NULL,
+ `php_batchmove` MEDIUMTEXT NULL,
+ `php_before_cancel` MEDIUMTEXT NULL,
+ `php_before_delete` MEDIUMTEXT NULL,
+ `php_before_publish` MEDIUMTEXT NULL,
+ `php_before_save` MEDIUMTEXT NULL,
+ `php_controller` MEDIUMTEXT NULL,
+ `php_controller_list` MEDIUMTEXT NULL,
+ `php_document` MEDIUMTEXT NULL,
+ `php_getform` MEDIUMTEXT NULL,
+ `php_getitem` MEDIUMTEXT NULL,
+ `php_getitems` MEDIUMTEXT NULL,
+ `php_getitems_after_all` MEDIUMTEXT NULL,
+ `php_getlistquery` MEDIUMTEXT NULL,
+ `php_import` MEDIUMTEXT NULL,
+ `php_import_display` MEDIUMTEXT NULL,
+ `php_import_ext` MEDIUMTEXT NULL,
+ `php_import_headers` MEDIUMTEXT NULL,
+ `php_import_save` MEDIUMTEXT NULL,
+ `php_import_setdata` MEDIUMTEXT NULL,
+ `php_model` MEDIUMTEXT NULL,
+ `php_model_list` MEDIUMTEXT NULL,
+ `php_postsavehook` MEDIUMTEXT NULL,
+ `php_save` MEDIUMTEXT NULL,
+ `short_description` VARCHAR(255) NULL DEFAULT '',
`source` TINYINT(1) NOT NULL DEFAULT 0,
- `sql` MEDIUMTEXT NOT NULL,
- `system_name` VARCHAR(255) NOT NULL DEFAULT '',
+ `sql` MEDIUMTEXT NULL,
+ `system_name` VARCHAR(255) NULL DEFAULT '',
`type` INT(11) NOT NULL DEFAULT 0,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -572,32 +572,32 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_admin_view` (
`add_php_jview` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_jview_display` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_view` TINYINT(1) NOT NULL DEFAULT 0,
- `ajax_input` TEXT NOT NULL,
- `codename` VARCHAR(255) NOT NULL DEFAULT '',
- `context` VARCHAR(255) NOT NULL DEFAULT '',
- `css` TEXT NOT NULL,
- `css_document` TEXT NOT NULL,
- `custom_button` TEXT NOT NULL,
- `custom_get` TEXT NOT NULL,
- `default` MEDIUMTEXT NOT NULL,
- `description` VARCHAR(255) NOT NULL DEFAULT '',
+ `ajax_input` TEXT NULL,
+ `codename` VARCHAR(255) NULL DEFAULT '',
+ `context` VARCHAR(255) NULL DEFAULT '',
+ `css` TEXT NULL,
+ `css_document` TEXT NULL,
+ `custom_button` TEXT NULL,
+ `custom_get` TEXT NULL,
+ `default` MEDIUMTEXT NULL,
+ `description` VARCHAR(255) NULL DEFAULT '',
`dynamic_get` INT(11) NOT NULL DEFAULT 0,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`icon` VARCHAR(255) NOT NULL DEFAULT '',
- `javascript_file` TEXT NOT NULL,
- `js_document` TEXT NOT NULL,
+ `javascript_file` TEXT NULL,
+ `js_document` TEXT NULL,
`libraries` TEXT NOT NULL,
`main_get` INT(11) NOT NULL DEFAULT 0,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `php_ajaxmethod` MEDIUMTEXT NOT NULL,
- `php_controller` MEDIUMTEXT NOT NULL,
- `php_document` MEDIUMTEXT NOT NULL,
- `php_jview` MEDIUMTEXT NOT NULL,
- `php_jview_display` MEDIUMTEXT NOT NULL,
- `php_model` MEDIUMTEXT NOT NULL,
- `php_view` MEDIUMTEXT NOT NULL,
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `php_ajaxmethod` MEDIUMTEXT NULL,
+ `php_controller` MEDIUMTEXT NULL,
+ `php_document` MEDIUMTEXT NULL,
+ `php_jview` MEDIUMTEXT NULL,
+ `php_jview_display` MEDIUMTEXT NULL,
+ `php_model` MEDIUMTEXT NULL,
+ `php_view` MEDIUMTEXT NULL,
`snippet` INT(11) NOT NULL DEFAULT 0,
- `system_name` VARCHAR(255) NOT NULL DEFAULT '',
+ `system_name` VARCHAR(255) NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -647,32 +647,32 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_site_view` (
`add_php_jview` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_jview_display` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_view` TINYINT(1) NOT NULL DEFAULT 0,
- `ajax_input` TEXT NOT NULL,
+ `ajax_input` TEXT NULL,
`button_position` TINYINT(1) NOT NULL DEFAULT 1,
- `codename` VARCHAR(255) NOT NULL DEFAULT '',
- `context` VARCHAR(255) NOT NULL DEFAULT '',
- `css` TEXT NOT NULL,
- `css_document` TEXT NOT NULL,
- `custom_button` TEXT NOT NULL,
- `custom_get` TEXT NOT NULL,
- `default` MEDIUMTEXT NOT NULL,
- `description` VARCHAR(255) NOT NULL DEFAULT '',
+ `codename` VARCHAR(255) NULL DEFAULT '',
+ `context` VARCHAR(255) NULL DEFAULT '',
+ `css` TEXT NULL,
+ `css_document` TEXT NULL,
+ `custom_button` TEXT NULL,
+ `custom_get` TEXT NULL,
+ `default` MEDIUMTEXT NULL,
+ `description` VARCHAR(255) NULL DEFAULT '',
`dynamic_get` INT(11) NOT NULL DEFAULT 0,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
- `javascript_file` TEXT NOT NULL,
- `js_document` TEXT NOT NULL,
+ `guid` VARCHAR(36) NULL DEFAULT '',
+ `javascript_file` TEXT NULL,
+ `js_document` TEXT NULL,
`libraries` TEXT NOT NULL,
`main_get` INT(11) NOT NULL DEFAULT 0,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `php_ajaxmethod` MEDIUMTEXT NOT NULL,
- `php_controller` MEDIUMTEXT NOT NULL,
- `php_document` MEDIUMTEXT NOT NULL,
- `php_jview` MEDIUMTEXT NOT NULL,
- `php_jview_display` MEDIUMTEXT NOT NULL,
- `php_model` MEDIUMTEXT NOT NULL,
- `php_view` MEDIUMTEXT NOT NULL,
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `php_ajaxmethod` MEDIUMTEXT NULL,
+ `php_controller` MEDIUMTEXT NULL,
+ `php_document` MEDIUMTEXT NULL,
+ `php_jview` MEDIUMTEXT NULL,
+ `php_jview_display` MEDIUMTEXT NULL,
+ `php_model` MEDIUMTEXT NULL,
+ `php_view` MEDIUMTEXT NULL,
`snippet` INT(11) NOT NULL DEFAULT 0,
- `system_name` VARCHAR(255) NOT NULL DEFAULT '',
+ `system_name` VARCHAR(255) NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -714,14 +714,14 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_template` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_php_view` TINYINT(1) NOT NULL DEFAULT 0,
- `alias` VARCHAR(255) NOT NULL DEFAULT '',
- `description` VARCHAR(255) NOT NULL DEFAULT '',
+ `alias` VARCHAR(255) NULL DEFAULT '',
+ `description` VARCHAR(255) NULL DEFAULT '',
`dynamic_get` INT(11) NOT NULL DEFAULT 0,
`libraries` TEXT NOT NULL,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `php_view` MEDIUMTEXT NOT NULL,
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `php_view` MEDIUMTEXT NULL,
`snippet` INT(11) NOT NULL DEFAULT 0,
- `template` TEXT NOT NULL,
+ `template` TEXT NULL,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -750,13 +750,13 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_layout` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`add_php_view` TINYINT(1) NOT NULL DEFAULT 0,
- `alias` VARCHAR(255) NOT NULL DEFAULT '',
- `description` VARCHAR(255) NOT NULL DEFAULT '',
+ `alias` VARCHAR(255) NULL DEFAULT '',
+ `description` VARCHAR(255) NULL DEFAULT '',
`dynamic_get` INT(11) NOT NULL DEFAULT 0,
- `layout` TEXT NOT NULL,
+ `layout` TEXT NULL,
`libraries` TEXT NOT NULL,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `php_view` MEDIUMTEXT NOT NULL,
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `php_view` MEDIUMTEXT NULL,
`snippet` INT(11) NOT NULL DEFAULT 0,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -792,33 +792,33 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_dynamic_get` (
`add_php_getlistquery` TINYINT(1) NOT NULL DEFAULT 0,
`add_php_router_parse` TINYINT(1) NOT NULL DEFAULT 0,
`addcalculation` TINYINT(1) NOT NULL DEFAULT 0,
- `db_selection` TEXT NOT NULL,
+ `db_selection` TEXT NULL,
`db_table_main` VARCHAR(255) NOT NULL DEFAULT '',
- `filter` TEXT NOT NULL,
- `getcustom` VARCHAR(255) NOT NULL DEFAULT '',
+ `filter` TEXT NULL,
+ `getcustom` VARCHAR(255) NULL DEFAULT '',
`gettype` TINYINT(1) NOT NULL DEFAULT 0,
- `global` TEXT NOT NULL,
+ `global` TEXT NULL,
`group` TEXT NOT NULL,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
- `join_db_table` TEXT NOT NULL,
- `join_view_table` TEXT NOT NULL,
+ `guid` VARCHAR(36) NULL DEFAULT '',
+ `join_db_table` TEXT NULL,
+ `join_view_table` TEXT NULL,
`main_source` TINYINT(1) NOT NULL DEFAULT 0,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `order` TEXT NOT NULL,
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `order` TEXT NULL,
`pagination` TINYINT(1) NOT NULL DEFAULT 1,
- `php_after_getitem` MEDIUMTEXT NOT NULL,
- `php_after_getitems` MEDIUMTEXT NOT NULL,
- `php_before_getitem` MEDIUMTEXT NOT NULL,
- `php_before_getitems` MEDIUMTEXT NOT NULL,
- `php_calculation` MEDIUMTEXT NOT NULL,
- `php_custom_get` MEDIUMTEXT NOT NULL,
- `php_getlistquery` MEDIUMTEXT NOT NULL,
- `php_router_parse` MEDIUMTEXT NOT NULL,
+ `php_after_getitem` MEDIUMTEXT NULL,
+ `php_after_getitems` MEDIUMTEXT NULL,
+ `php_before_getitem` MEDIUMTEXT NULL,
+ `php_before_getitems` MEDIUMTEXT NULL,
+ `php_calculation` MEDIUMTEXT NULL,
+ `php_custom_get` MEDIUMTEXT NULL,
+ `php_getlistquery` MEDIUMTEXT NULL,
+ `php_router_parse` MEDIUMTEXT NULL,
`plugin_events` VARCHAR(255) NOT NULL DEFAULT '',
`select_all` TINYINT(1) NOT NULL DEFAULT 0,
- `view_selection` TEXT NOT NULL,
+ `view_selection` TEXT NULL,
`view_table_main` INT(11) NOT NULL DEFAULT 0,
- `where` TEXT NOT NULL,
+ `where` TEXT NULL,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -855,18 +855,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_dynamic_get` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_code` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `code` MEDIUMTEXT NOT NULL,
+ `code` MEDIUMTEXT NULL,
`comment_type` TINYINT(1) NOT NULL DEFAULT 1,
`component` INT(11) NOT NULL DEFAULT 0,
- `from_line` VARCHAR(100) NOT NULL DEFAULT '',
- `function_name` VARCHAR(255) NOT NULL DEFAULT '',
- `hashendtarget` VARCHAR(64) NOT NULL DEFAULT '',
- `hashtarget` VARCHAR(64) NOT NULL DEFAULT '',
+ `from_line` VARCHAR(100) NULL DEFAULT '',
+ `function_name` VARCHAR(255) NULL DEFAULT '',
+ `hashendtarget` VARCHAR(64) NULL DEFAULT '',
+ `hashtarget` VARCHAR(64) NULL DEFAULT '',
`joomla_version` INT(11) NOT NULL DEFAULT 3,
- `path` TEXT NOT NULL,
- `system_name` VARCHAR(255) NOT NULL DEFAULT '',
+ `path` TEXT NULL,
+ `system_name` VARCHAR(255) NULL DEFAULT '',
`target` TINYINT(1) NOT NULL DEFAULT 0,
- `to_line` VARCHAR(100) NOT NULL DEFAULT '',
+ `to_line` VARCHAR(100) NULL DEFAULT '',
`type` TINYINT(1) NULL DEFAULT 0,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -897,12 +897,12 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_custom_code` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_class_property` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `comment` TEXT NOT NULL,
- `default` TEXT NOT NULL,
+ `comment` TEXT NULL,
+ `default` TEXT NULL,
`extension_type` VARCHAR(64) NOT NULL DEFAULT '',
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`joomla_plugin_group` INT(11) NOT NULL DEFAULT 0,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
`visibility` VARCHAR(255) NOT NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -931,13 +931,13 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_class_property` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_class_method` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `arguments` TEXT NOT NULL,
- `code` MEDIUMTEXT NOT NULL,
- `comment` TEXT NOT NULL,
+ `arguments` TEXT NULL,
+ `code` MEDIUMTEXT NULL,
+ `comment` TEXT NULL,
`extension_type` VARCHAR(64) NOT NULL DEFAULT '',
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`joomla_plugin_group` INT(11) NOT NULL DEFAULT 0,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
`visibility` VARCHAR(255) NOT NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -966,8 +966,8 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_class_method` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_placeholder` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `target` VARCHAR(255) NOT NULL DEFAULT '',
- `value` TEXT NOT NULL,
+ `target` VARCHAR(255) NULL DEFAULT '',
+ `value` TEXT NULL,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -993,12 +993,12 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_library` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`addconditions` MEDIUMTEXT NOT NULL,
- `description` VARCHAR(255) NOT NULL DEFAULT '',
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `description` VARCHAR(255) NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`how` TINYINT(1) NOT NULL DEFAULT 1,
`libraries` TEXT NOT NULL,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `php_setdocument` MEDIUMTEXT NOT NULL,
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `php_setdocument` MEDIUMTEXT NULL,
`target` TINYINT(1) NOT NULL DEFAULT 1,
`type` TINYINT(1) NOT NULL DEFAULT 0,
`params` TEXT NULL,
@@ -1027,19 +1027,19 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_library` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `contributor_company` VARCHAR(255) NOT NULL DEFAULT '',
- `contributor_email` VARCHAR(255) NOT NULL DEFAULT '',
- `contributor_name` VARCHAR(255) NOT NULL DEFAULT '',
- `contributor_website` VARCHAR(255) NOT NULL DEFAULT '',
+ `contributor_company` VARCHAR(255) NULL DEFAULT '',
+ `contributor_email` VARCHAR(255) NULL DEFAULT '',
+ `contributor_name` VARCHAR(255) NULL DEFAULT '',
+ `contributor_website` VARCHAR(255) NULL DEFAULT '',
`description` TEXT NULL,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
- `heading` VARCHAR(255) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
+ `heading` VARCHAR(255) NULL DEFAULT '',
`library` INT(11) NOT NULL DEFAULT 0,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `snippet` TEXT NOT NULL,
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `snippet` TEXT NULL,
`type` INT(11) NOT NULL DEFAULT 0,
`url` VARCHAR(255) NOT NULL DEFAULT '',
- `usage` TEXT NOT NULL,
+ `usage` TEXT NULL,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -1068,9 +1068,9 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_validation_rule` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`inherit` CHAR(64) NOT NULL DEFAULT '',
- `name` VARCHAR(255) NOT NULL DEFAULT '',
- `php` MEDIUMTEXT NOT NULL,
- `short_description` VARCHAR(255) NOT NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
+ `php` MEDIUMTEXT NULL,
+ `short_description` VARCHAR(255) NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -1100,26 +1100,26 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_field` (
`add_javascript_view_footer` TINYINT(1) NOT NULL DEFAULT 0,
`add_javascript_views_footer` TINYINT(1) NOT NULL DEFAULT 0,
`catid` INT(11) NOT NULL DEFAULT 0,
- `css_view` TEXT NOT NULL,
- `css_views` TEXT NOT NULL,
+ `css_view` TEXT NULL,
+ `css_views` TEXT NULL,
`datadefault` CHAR(64) NOT NULL DEFAULT '',
- `datadefault_other` CHAR(64) NOT NULL DEFAULT '',
+ `datadefault_other` CHAR(64) NULL DEFAULT '',
`datalenght` CHAR(64) NOT NULL DEFAULT '',
- `datalenght_other` CHAR(64) NOT NULL DEFAULT '',
+ `datalenght_other` CHAR(64) NULL DEFAULT '',
`datatype` CHAR(64) NOT NULL DEFAULT '',
`fieldtype` INT(11) NOT NULL DEFAULT 0,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`indexes` CHAR(64) NOT NULL DEFAULT '',
- `initiator_on_get_model` TEXT NOT NULL,
- `initiator_on_save_model` TEXT NOT NULL,
- `javascript_view_footer` TEXT NOT NULL,
- `javascript_views_footer` TEXT NOT NULL,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
+ `initiator_on_get_model` TEXT NULL,
+ `initiator_on_save_model` TEXT NULL,
+ `javascript_view_footer` TEXT NULL,
+ `javascript_views_footer` TEXT NULL,
+ `name` VARCHAR(255) NULL DEFAULT '',
`null_switch` CHAR(64) NOT NULL DEFAULT '',
- `on_get_model_field` TEXT NOT NULL,
- `on_save_model_field` TEXT NOT NULL,
+ `on_get_model_field` TEXT NULL,
+ `on_save_model_field` TEXT NULL,
`store` INT(11) NOT NULL DEFAULT 0,
- `xml` TEXT NOT NULL,
+ `xml` TEXT NULL,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -1160,18 +1160,18 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_fieldtype` (
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`catid` INT(11) NOT NULL DEFAULT 0,
`datadefault` CHAR(64) NOT NULL DEFAULT '',
- `datadefault_other` CHAR(64) NOT NULL DEFAULT '',
+ `datadefault_other` CHAR(64) NULL DEFAULT '',
`datalenght` CHAR(64) NOT NULL DEFAULT '',
- `datalenght_other` CHAR(64) NOT NULL DEFAULT '',
+ `datalenght_other` CHAR(64) NULL DEFAULT '',
`datatype` CHAR(64) NOT NULL DEFAULT '',
`description` TEXT NULL,
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
`has_defaults` TINYINT(1) NOT NULL DEFAULT 0,
`indexes` CHAR(64) NOT NULL DEFAULT '',
- `name` VARCHAR(255) NOT NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
`null_switch` CHAR(64) NOT NULL DEFAULT '',
- `properties` TEXT NOT NULL,
- `short_description` VARCHAR(255) NOT NULL DEFAULT '',
+ `properties` TEXT NULL,
+ `short_description` VARCHAR(255) NULL DEFAULT '',
`store` INT(11) NOT NULL DEFAULT 0,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -1210,7 +1210,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_language_translation` (
`components` TEXT NULL,
`modules` TEXT NULL,
`plugins` TEXT NULL,
- `source` MEDIUMTEXT NOT NULL,
+ `source` MEDIUMTEXT NULL,
`translation` TEXT NULL,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -1235,8 +1235,8 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_language_translation` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_language` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `langtag` VARCHAR(64) NOT NULL DEFAULT '',
- `name` VARCHAR(255) NOT NULL DEFAULT '',
+ `langtag` VARCHAR(64) NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -1262,17 +1262,17 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_server` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`authentication` TINYINT(1) NOT NULL DEFAULT 0,
- `host` TEXT NOT NULL,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
+ `host` TEXT NULL,
+ `name` VARCHAR(255) NULL DEFAULT '',
`password` TEXT NOT NULL,
- `path` TEXT NOT NULL,
- `port` TEXT NOT NULL,
- `private` TEXT NOT NULL,
- `private_key` TEXT NOT NULL,
+ `path` TEXT NULL,
+ `port` TEXT NULL,
+ `private` TEXT NULL,
+ `private_key` TEXT NULL,
`protocol` TINYINT(1) NOT NULL DEFAULT 0,
`secret` TEXT NOT NULL,
- `signature` TEXT NOT NULL,
- `username` TEXT NOT NULL,
+ `signature` TEXT NULL,
+ `username` TEXT NULL,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -1301,11 +1301,11 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_repository` (
`access_repo` TINYINT(1) NULL DEFAULT 0,
`addplaceholders` TEXT NULL,
`base` VARCHAR(255) NOT NULL DEFAULT '',
- `guid` VARCHAR(36) NOT NULL DEFAULT '',
- `organisation` VARCHAR(255) NOT NULL DEFAULT '',
+ `guid` VARCHAR(36) NULL DEFAULT '',
+ `organisation` VARCHAR(255) NULL DEFAULT '',
`read_branch` VARCHAR(255) NULL DEFAULT '',
- `repository` VARCHAR(255) NOT NULL DEFAULT '',
- `system_name` VARCHAR(255) NOT NULL DEFAULT '',
+ `repository` VARCHAR(255) NULL DEFAULT '',
+ `system_name` VARCHAR(255) NULL DEFAULT '',
`target` TINYINT(7) NOT NULL DEFAULT 1,
`token` VARCHAR(255) NULL DEFAULT '',
`type` TINYINT(1) NOT NULL DEFAULT 1,
@@ -1346,14 +1346,14 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_help_document` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`admin_view` CHAR(255) NOT NULL DEFAULT '',
- `alias` CHAR(64) NOT NULL DEFAULT '',
+ `alias` CHAR(64) NULL DEFAULT '',
`article` TINYINT(1) NOT NULL DEFAULT 0,
- `content` TEXT NOT NULL,
- `groups` TEXT NOT NULL,
+ `content` TEXT NULL,
+ `groups` TEXT NULL,
`location` TINYINT(1) NOT NULL DEFAULT 0,
`site_view` CHAR(255) NOT NULL DEFAULT '',
`target` TINYINT(1) NOT NULL DEFAULT 0,
- `title` CHAR(64) NOT NULL DEFAULT '',
+ `title` CHAR(64) NULL DEFAULT '',
`type` TINYINT(1) NOT NULL DEFAULT 0,
`url` VARCHAR(255) NOT NULL DEFAULT '',
`params` TEXT NULL,
@@ -1487,7 +1487,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_admin_custom_tabs` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_admin_views` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `addadmin_views` TEXT NOT NULL,
+ `addadmin_views` TEXT NULL,
`joomla_component` INT(11) NOT NULL DEFAULT 0,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -1513,7 +1513,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_admin_views` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_site_views` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `addsite_views` TEXT NOT NULL,
+ `addsite_views` TEXT NULL,
`joomla_component` INT(11) NOT NULL DEFAULT 0,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -1539,7 +1539,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_site_views` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_custom_admin_views` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `addcustom_admin_views` TEXT NOT NULL,
+ `addcustom_admin_views` TEXT NULL,
`joomla_component` INT(11) NOT NULL DEFAULT 0,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -1617,7 +1617,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_mysql_tweaks` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_custom_admin_menus` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `addcustommenus` TEXT NOT NULL,
+ `addcustommenus` TEXT NULL,
`joomla_component` INT(11) NOT NULL DEFAULT 0,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -1643,11 +1643,11 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_custom_admin_menus` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_router` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `constructor_after_parent_code` MEDIUMTEXT NOT NULL,
- `constructor_before_parent_code` MEDIUMTEXT NOT NULL,
+ `constructor_after_parent_code` MEDIUMTEXT NULL,
+ `constructor_before_parent_code` MEDIUMTEXT NULL,
`constructor_before_parent_manual` TEXT NOT NULL,
`joomla_component` INT(11) NOT NULL DEFAULT 0,
- `methods_code` MEDIUMTEXT NOT NULL,
+ `methods_code` MEDIUMTEXT NULL,
`mode_constructor_after_parent` TINYINT(1) NOT NULL DEFAULT 0,
`mode_constructor_before_parent` TINYINT(1) NOT NULL DEFAULT 0,
`mode_methods` TINYINT(1) NOT NULL DEFAULT 0,
@@ -1675,7 +1675,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_router` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_config` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `addconfig` TEXT NOT NULL,
+ `addconfig` TEXT NULL,
`joomla_component` INT(11) NOT NULL DEFAULT 0,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -1701,9 +1701,9 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_config` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_dashboard` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `dashboard_tab` TEXT NOT NULL,
+ `dashboard_tab` TEXT NULL,
`joomla_component` INT(11) NOT NULL DEFAULT 0,
- `php_dashboard_methods` MEDIUMTEXT NOT NULL,
+ `php_dashboard_methods` MEDIUMTEXT NULL,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -1728,9 +1728,9 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_dashboard` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_files_folders` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `addfiles` TEXT NOT NULL,
+ `addfiles` TEXT NULL,
`addfilesfullpath` TEXT NOT NULL,
- `addfolders` TEXT NOT NULL,
+ `addfolders` TEXT NULL,
`addfoldersfullpath` TEXT NOT NULL,
`joomla_component` INT(11) NOT NULL DEFAULT 0,
`params` TEXT NULL,
@@ -1835,8 +1835,8 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_component_modules` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet_type` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `description` VARCHAR(255) NOT NULL DEFAULT '',
- `name` VARCHAR(255) NOT NULL DEFAULT '',
+ `description` VARCHAR(255) NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -1861,7 +1861,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_snippet_type` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_library_config` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `addconfig` TEXT NOT NULL,
+ `addconfig` TEXT NULL,
`library` INT(11) NOT NULL DEFAULT 0,
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
@@ -1887,9 +1887,9 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_library_config` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_library_files_folders_urls` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `addfiles` TEXT NOT NULL,
+ `addfiles` TEXT NULL,
`addfilesfullpath` TEXT NOT NULL,
- `addfolders` TEXT NOT NULL,
+ `addfolders` TEXT NULL,
`addfoldersfullpath` TEXT NOT NULL,
`addurls` TEXT NOT NULL,
`library` INT(11) NOT NULL DEFAULT 0,
@@ -1917,10 +1917,10 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_library_files_folders_urls` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_class_extends` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `comment` TEXT NOT NULL,
+ `comment` TEXT NULL,
`extension_type` VARCHAR(64) NOT NULL DEFAULT '',
`head` TEXT NULL,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -1971,9 +1971,9 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module_updates` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_module_files_folders_urls` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `addfiles` TEXT NOT NULL,
+ `addfiles` TEXT NULL,
`addfilesfullpath` TEXT NOT NULL,
- `addfolders` TEXT NOT NULL,
+ `addfolders` TEXT NULL,
`addfoldersfullpath` TEXT NOT NULL,
`addurls` TEXT NOT NULL,
`joomla_module` INT(11) NOT NULL DEFAULT 0,
@@ -2002,7 +2002,7 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin_group` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
`class_extends` INT(11) NOT NULL DEFAULT 0,
- `name` VARCHAR(255) NOT NULL DEFAULT '',
+ `name` VARCHAR(255) NULL DEFAULT '',
`params` TEXT NULL,
`published` TINYINT(3) NULL DEFAULT 1,
`created_by` INT(10) unsigned NULL DEFAULT 0,
@@ -2054,9 +2054,9 @@ CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin_updates` (
CREATE TABLE IF NOT EXISTS `#__componentbuilder_joomla_plugin_files_folders_urls` (
`id` INT(11) NOT NULL AUTO_INCREMENT,
`asset_id` INT(10) unsigned NULL DEFAULT 0 COMMENT 'FK to the #__assets table.',
- `addfiles` TEXT NOT NULL,
+ `addfiles` TEXT NULL,
`addfilesfullpath` TEXT NOT NULL,
- `addfolders` TEXT NOT NULL,
+ `addfolders` TEXT NULL,
`addfoldersfullpath` TEXT NOT NULL,
`addurls` TEXT NOT NULL,
`joomla_plugin` INT(11) NOT NULL DEFAULT 0,
@@ -2142,7 +2142,7 @@ INSERT INTO `#__componentbuilder_dynamic_get` (`id`, `add_php_after_getitem`, `a
--
INSERT INTO `#__componentbuilder_custom_code` (`id`, `code`, `component`, `comment_type`, `from_line`, `function_name`, `hashtarget`, `hashendtarget`, `path`, `system_name`, `target`, `to_line`, `type`, `params`, `published`, `created`, `modified`, `version`, `hits`, `ordering`) VALUES
-(5, 'CS8qKg0KCSAqIENoYW5nZSB0byBuaWNlIGZhbmN5IGRhdGUNCgkgKi8NCglwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGZhbmN5RGF0ZSgkZGF0ZSwgJGNoZWNrX3N0YW1wID0gdHJ1ZSkNCgl7DQoJCWlmICgkY2hlY2tfc3RhbXAgJiYgIXNlbGY6OmlzVmFsaWRUaW1lU3RhbXAoJGRhdGUpKQ0KCQl7DQoJCQkkZGF0ZSA9IHN0cnRvdGltZSgkZGF0ZSk7DQoJCX0NCgkJcmV0dXJuIGRhdGUoJ2pTIFxvXGYgRiBZJywkZGF0ZSk7DQoJfQ0KDQoJLyoqDQoJICogZ2V0IGRhdGUgYmFzZWQgaW4gcGVyaW9kIHBhc3QNCgkgKi8NCglwdWJsaWMgc3RhdGljIGZ1bmN0aW9uIGZhbmN5R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cG9uc29yLzE3L2F2YXRhci5zdmcpXShodHRwczovL29wZW5jb2xsZWN0aXZlLmNvbS9Kb29tbGEtQ29tcG9uZW50LUJ1aWxkZXIvc3BvbnNvci8xNy93ZWJzaXRlKQ0KWyFbU3BvbnNvcl0oaHR0cHM6Ly9vcGVuY29sbGVjdGl2ZS5jb20vSm9vbWxhLUNvbXBvbmVudC1CdWlsZGVyL3Nwb25zb3IvMTgvYXZhdGFyLnN2ZyldKGh0dHBzOi8vb3BlbmNvbGxlY3RpdmUuY29tL0pvb21sYS1Db21wb25lbnQtQnVpbGRlci9zcG9uc29yLzE4L3dlYnNpdGUpDQpbIVtTcG9uc29yXShodHRwczovL29wZW5jb2xsZWN0aXZlLmNvbS9Kb29tbGEtQ29tcG9uZW50LUJ1aWxkZXIvc3BvbnNvci8xOS9hdmF0YXIuc3ZnKV0oaHR0cHM6Ly9vcGVuY29sbGVjdGl2ZS5jb20vSm9vbWxhLUNvbXBvbmVudC1CdWlsZGVyL3Nwb25zb3IvMTkvd2Vic2l0ZSkNClshW1Nwb25zb3JdKGh0dHBzOi8vb3BlbmNvbGxlY3RpdmUuY29tL0pvb21sYS1Db21wb25lbnQtQnVpbGRlci9zcG9uc29yLzIwL2F2YXRhci5zdmcpXShodHRwczovL29wZW5jb2xsZWN0aXZlLmNvbS9Kb29tbGEtQ29tcG9uZW50LUJ1aWxkZXIvc3BvbnNvci8yMC93ZWJzaXRlKQ==', '', 1, '', 'readMEcontributors', '', '', '', 'README - Contributors 2 JCB', 2, '', '', '', 1, '2020-11-17 17:16:23', '2020-11-17 17:26:34', 3, '', 182),
(400, 'CQkJLy8gR2V0IEFwcGxpY2F0aW9uIG9iamVjdA0KCQkJJHRoaXMtPmFwcCA/Pz0gSm9vbWxhX19fMzk0MDMwNjJfODRmYl80NmUwX2JhYzRfMDAyM2Y3NjZlODI3X19fUG93ZXI6OmdldEFwcGxpY2F0aW9uKCk7DQoJCQkkdGhpcy0+YXBwLT5lbnF1ZXVlTWVzc2FnZSgnPGgzPlVubG9jayB0aGUgUG93ZXIgb2YgSm9vbWxhISBEZXZlbG9wbWVudDwvaDM+PHA+Q3VyaW91cyBhYm91dCBob3cgdGhpcyA8Yj5bW1thcmcwXV1dPC9iPiBjb21wb25lbnQgd2FzIGJ1aWx0PyBEaXNjb3ZlciB0aGUgcG93ZXJmdWwgSm9vbWxhISBDb21wb25lbnQgQnVpbGRlciAoPGEgaHJlZj0iaHR0cDovL3ZkbS5iei9jb21wb25lbnQtYnVpbGRlciIgdGFyZ2V0PSJfYmxhbmsiIHRpdGxlPSJKb29tbGEhIENvbXBvbmVudCBCdWlsZGVyIj5KQ0I8L2E+KSwgYSB0b29sIHRoYXQgc2ltcGxpZmllcyBhbmQgZW5oYW5jZXMgY29tcG9uZW50IGRldmVsb3BtZW50LiBKb2luIHVzIG9uIDxhIGhyZWY9Imh0dHBzOi8vZ2l0LnZkbS5kZXYvam9vbWxhIiB0YXJnZXQ9Il9ibGFuayIgdGl0bGU9Ikpvb21sYSEgQ29tcG9uZW50IEJ1aWxkZXIiPkdJVkVEPC9hPiB0byBleHBsb3JlIG1vcmUgYW5kIHNlZSBob3cgeW91IGNhbiBjcmVhdGUgeW91ciBvd24gY3VzdG9tIGNvbXBvbmVudHMuIFRoZSBmdXR1cmUgb2YgPGEgaHJlZj0iaHR0cDovL3ZkbS5iei9jb21wb25lbnQtYnVpbGRlciIgdGFyZ2V0PSJfYmxhbmsiIHRpdGxlPSJKb29tbGEgQ29tcG9uZW50IEJ1aWxkZXIiPkpvb21sYSEgRGV2ZWxvcG1lbnQ8L2E+IHN0YXJ0cyBoZXJlITwvcD4nLCAnSW5mbycpOw0K', '', 1, '', 'unlockThePowerOfJoomlaDevelopment', '', '', '', 'Unlock the Power of Joomla! Development', 2, '', '', '', 1, '2024-09-16 00:00:42', '2024-09-16 16:17:20', 5, '', 218);
@@ -2520,8 +2520,8 @@ INSERT INTO `#__componentbuilder_validation_rule` (`id`, `inherit`, `name`, `php
--
INSERT INTO `#__componentbuilder_field` (`id`, `add_css_view`, `add_css_views`, `add_javascript_view_footer`, `add_javascript_views_footer`, `css_view`, `css_views`, `datadefault`, `datadefault_other`, `datalenght`, `datalenght_other`, `datatype`, `indexes`, `javascript_view_footer`, `javascript_views_footer`, `name`, `null_switch`, `store`, `fieldtype`, `xml`, `published`, `created`, `modified`, `version`, `hits`, `ordering`, `guid`, `on_get_model_field`, `on_save_model_field`, `initiator_on_get_model`, `initiator_on_save_model`, `params`) VALUES
-(23, '', '', '', '', '', '', '', '', 64, '', 'CHAR', 2, '', '', 'Alias', 'NOT NULL', '', 24, '\"
The Component Builder for [Joomla](https://extensions.joomla.org/extension/component-builder/) is highly advanced tool that is truly able to build extremely complex components in a fraction of the time.
diff --git a/componentbuilder_update_server.xml b/componentbuilder_update_server.xml
index 4635988b8..4efa25ff8 100644
--- a/componentbuilder_update_server.xml
+++ b/componentbuilder_update_server.xml
@@ -205,7 +205,7 @@
Upgrade to Version 3.2.5-alpha2 Was Successful! Let us know if anything is not working as expected.
Upgrade to Version 3.2.5-alpha3 Was Successful! Let us know if anything is not working as expected.
';
// Set db if not set already.
if (!isset($db))
diff --git a/site/helpers/componentbuilder.php b/site/helpers/componentbuilder.php
index c5c573208..595c01ee3 100644
--- a/site/helpers/componentbuilder.php
+++ b/site/helpers/componentbuilder.php
@@ -49,6 +49,7 @@
use VDM\Joomla\Componentbuilder\Compiler\Factory as CompilerFactory;
use VDM\Joomla\Utilities\Base64Helper;
use VDM\Joomla\FOF\Encrypt\AES;
+use VDM\Joomla\Utilities\DateHelper;
use VDM\Joomla\Utilities\String\ClassfunctionHelper;
use VDM\Joomla\Utilities\String\FieldHelper as StringFieldHelper;
use VDM\Joomla\Utilities\String\TypeHelper;
@@ -2161,7 +2162,7 @@ public static function loadSession()
{
if (!isset(self::$session) || !ObjectHelper::check(self::$session))
{
- self::$session = Factory::getSession();
+ self::$session = Factory::getApplication()->getSession();
}
// set the defaults
self::setSessionDefaults();
@@ -2174,7 +2175,7 @@ public static function set($key, $value)
{
if (!isset(self::$session) || !ObjectHelper::check(self::$session))
{
- self::$session = Factory::getSession();
+ self::$session = Factory::getApplication()->getSession();
}
// set to local memory to speed up program
self::$localSession[$key] = $value;
@@ -2189,7 +2190,7 @@ public static function get($key, $default = null)
{
if (!isset(self::$session) || !ObjectHelper::check(self::$session))
{
- self::$session = Factory::getSession();
+ self::$session = Factory::getApplication()->getSession();
}
// check if in local memory
if (!isset(self::$localSession[$key]))
@@ -5225,193 +5226,245 @@ public static function setSubformTable($head, $rows, $idName)
/**
- * Change to nice fancy date
+ * Convert a date to a human-readable fancy format (e.g., "1st of January 2024").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Formatted date.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::fancyDate($date, $checkStamp);
*/
- public static function fancyDate($date, $check_stamp = true)
+ public static function fancyDate($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('jS \o\f F Y',$date);
+ return DateHelper::fancyDate($date, $checkStamp);
}
/**
- * get date based in period past
+ * Get a formatted date based on the time period (dynamic format based on age of the date).
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Formatted date.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::fancyDynamicDate($date, $checkStamp);
*/
- public static function fancyDynamicDate($date, $check_stamp = true)
+ public static function fancyDynamicDate($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- // older then year
- $lastyear = date("Y", strtotime("-1 year"));
- $tragetyear = date("Y", $date);
- if ($tragetyear <= $lastyear)
- {
- return date('m/d/y', $date);
- }
- // same day
- $yesterday = strtotime("-1 day");
- if ($date > $yesterday)
- {
- return date('g:i A', $date);
- }
- // just month day
- return date('M j', $date);
+ return DateHelper::fancyDynamicDate($date, $checkStamp);
}
/**
- * Change to nice fancy day time and date
+ * Convert a date to a human-readable day, time, and date format (e.g., "Mon 12am 1st of January 2024").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Formatted day, time, and date.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::fancyDayTimeDate($date, $checkStamp);
*/
- public static function fancyDayTimeDate($time, $check_stamp = true)
+ public static function fancyDayTimeDate($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($time))
- {
- $time = strtotime($time);
- }
- return date('D ga jS \o\f F Y',$time);
+ return DateHelper::fancyDayTimeDate($date, $checkStamp);
}
/**
- * Change to nice fancy time and date
+ * Convert a date to a human-readable time and date format (e.g., "(12:00) 1st of January 2024").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Formatted time and date.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::fancyDateTime($date, $checkStamp);
*/
- public static function fancyDateTime($time, $check_stamp = true)
+ public static function fancyDateTime($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($time))
- {
- $time = strtotime($time);
- }
- return date('(G:i) jS \o\f F Y',$time);
+ return DateHelper::fancyDateTime($date, $checkStamp);
}
/**
- * Change to nice hour:minutes time
+ * Convert a time to a human-readable format (e.g., "12:00").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Formatted time.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::fancyTime($date, $checkStamp);
*/
- public static function fancyTime($time, $check_stamp = true)
+ public static function fancyTime($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($time))
- {
- $time = strtotime($time);
- }
- return date('G:i',$time);
+ return DateHelper::fancyTime($date, $checkStamp);
}
/**
- * set the date day as Sunday through Saturday
+ * Convert a date to the day name (e.g., "Sunday").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Day name.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setDayName($date, $checkStamp);
*/
- public static function setDayName($date, $check_stamp = true)
+ public static function setDayName($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('l', $date);
+ return DateHelper::setDayName($date, $checkStamp);
}
/**
- * set the date month as January through December
+ * Convert a date to the month name (e.g., "January").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Month name.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setMonthName($date, $checkStamp);
*/
- public static function setMonthName($date, $check_stamp = true)
+ public static function setMonthName($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('F', $date);
+ return DateHelper::setMonthName($date, $checkStamp);
}
/**
- * set the date day as 1st
+ * Convert a date to the day with suffix (e.g., "1st").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Day with suffix.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setDay($date, $checkStamp);
*/
- public static function setDay($date, $check_stamp = true)
+ public static function setDay($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('jS', $date);
+ return DateHelper::setDay($date, $checkStamp);
}
/**
- * set the date month as 5
+ * Convert a date to the numeric month (e.g., "5").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Numeric month.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setMonth($date, $checkStamp);
*/
- public static function setMonth($date, $check_stamp = true)
+ public static function setMonth($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('n', $date);
+ return DateHelper::setMonth($date, $checkStamp);
}
/**
- * set the date year as 2004 (for charts)
+ * Convert a date to the full year (e.g., "2024").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Full year.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setYear($date, $checkStamp);
*/
- public static function setYear($date, $check_stamp = true)
+ public static function setYear($date, bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('Y', $date);
+ return DateHelper::setYear($date, $checkStamp);
}
/**
- * set the date as 2004/05 (for charts)
+ * Convert a date to a year/month format (e.g., "2024/05").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param string $spacer The spacer between year and month.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Year/Month format.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setYearMonth($date, $spacer, $checkStamp);
*/
- public static function setYearMonth($date, $spacer = '/', $check_stamp = true)
+ public static function setYearMonth($date, string $spacer = '/', bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('Y' . $spacer . 'm', $date);
+ return DateHelper::setYearMonth($date, $spacer, $checkStamp);
}
/**
- * set the date as 2004/05/03 (for charts)
+ * Convert a date to a year/month/day format (e.g., "2024/05/03").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param string $spacer The spacer between year and month.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Year/Month/Day format.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setYearMonthDay($date, $spacer, $checkStamp);
*/
- public static function setYearMonthDay($date, $spacer = '/', $check_stamp = true)
+ public static function setYearMonthDay($date, string $spacer = '/', bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('Y' . $spacer . 'm' . $spacer . 'd', $date);
+ return DateHelper::setYearMonthDay($date, $spacer, $checkStamp);
}
/**
- * set the date as 03/05/2004
+ * Convert a date to a day/month/year format (e.g., "03/05/2024").
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param string $spacer The spacer between year and month.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return string Day/Month/Year format.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::setDayMonthYear($date, $spacer, $checkStamp);
*/
- public static function setDayMonthYear($date, $spacer = '/', $check_stamp = true)
+ public static function setDayMonthYear($date, string $spacer = '/', bool $checkStamp = true): string
{
- if ($check_stamp && !self::isValidTimeStamp($date))
- {
- $date = strtotime($date);
- }
- return date('d' . $spacer . 'm' . $spacer . 'Y', $date);
+ return DateHelper::setDayMonthYear($date, $spacer, $checkStamp);
+ }
+
+ /**
+ * Convert a date string to a valid timestamp.
+ *
+ * @param string|int $date The date as a string or timestamp.
+ * @param bool $checkStamp Whether to check if the input is a timestamp.
+ *
+ * @return int The valid timestamp.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::getValidTimestamp($date, $checkStamp);
+ */
+ public static function getValidTimestamp($date, bool $checkStamp): int
+ {
+ return DateHelper::getValidTimestamp($date, $checkStamp);
}
/**
- * Check if string is a valid time stamp
+ * Check if the input is a valid Unix timestamp.
+ *
+ * @param mixed $timestamp The timestamp to validate.
+ *
+ * @return bool True if valid timestamp, false otherwise.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::isValidTimeStamp($timestamp);
*/
- public static function isValidTimeStamp($timestamp)
+ public static function isValidTimeStamp($timestamp): bool
{
- return ((int) $timestamp === $timestamp)
- && ($timestamp <= PHP_INT_MAX)
- && ($timestamp >= ~PHP_INT_MAX);
+ return DateHelper::isValidTimeStamp($timestamp);
}
/**
- * Check if string is a valid date
- * https://www.php.net/manual/en/function.checkdate.php#113205
+ * Check if a string is a valid date according to the specified format.
+ *
+ * @param string $date The date string to validate.
+ * @param string $format The format to check against (default is 'Y-m-d H:i:s').
+ *
+ * @return bool True if valid date, false otherwise.
+ * @since 3.0.0
+ * @deprecated 4.0.0 Use DateHelper::isValidateDate($date, $format);
*/
- public static function isValidateDate($date, $format = 'Y-m-d H:i:s')
+ public static function isValidateDate($date, string $format = 'Y-m-d H:i:s'): bool
{
- $d = DateTime::createFromFormat($format, $date);
- return $d && $d->format($format) == $date;
+ return DateHelper::isValidateDate($date, $format);
}
/**