diff --git a/README.md b/README.md index 57d06d7cf..4f4af5ca4 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 safe you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.8.0) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.8.2) 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) @@ -125,13 +125,13 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 30th May, 2018 -+ *Version*: 2.8.0 ++ *Last Build*: 7th July, 2018 ++ *Version*: 2.8.2 + *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **185584** -+ *Field count*: **1054** -+ *File count*: **1236** ++ *Line count*: **186287** ++ *Field count*: **1058** ++ *File count*: **1238** + *Folder count*: **197** > This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com). @@ -140,6 +140,6 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo ## Donations Come on buy VDM a coffee :) - * PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief) + * PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief) (Asseblief = Please) in Afrikaans * Bitcoin: 18vURxYpPFjvNk8BnUy1ovCAyQmY3MzkSf * Ethereum: 0x9548144662b47327c954f3e214edb96662d51218 \ No newline at end of file diff --git a/admin/README.txt b/admin/README.txt index 57d06d7cf..4f4af5ca4 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 safe you lots of time and money. A real must have! -You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.8.0) with **ALL** its features and **ALL** concepts totally open-source and free! +You can install it quite easily and with no limitations. On [github](https://github.com/vdm-io/Joomla-Component-Builder/releases) is the latest release (2.8.2) 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) @@ -125,13 +125,13 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo + *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com) + *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder) + *First Build*: 30th April, 2015 -+ *Last Build*: 30th May, 2018 -+ *Version*: 2.8.0 ++ *Last Build*: 7th July, 2018 ++ *Version*: 2.8.2 + *Copyright*: Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved. + *License*: GNU General Public License version 2 or later; see LICENSE.txt -+ *Line count*: **185584** -+ *Field count*: **1054** -+ *File count*: **1236** ++ *Line count*: **186287** ++ *Field count*: **1058** ++ *File count*: **1238** + *Folder count*: **197** > This **component** was build with a Joomla [Automated Component Builder](http://joomlacomponentbuilder.com). @@ -140,6 +140,6 @@ Watch the [proposed development workflow](https://vdm.bz/proposed-development-wo ## Donations Come on buy VDM a coffee :) - * PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief) + * PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief) (Asseblief = Please) in Afrikaans * Bitcoin: 18vURxYpPFjvNk8BnUy1ovCAyQmY3MzkSf * Ethereum: 0x9548144662b47327c954f3e214edb96662d51218 \ No newline at end of file diff --git a/admin/assets/images/ajax-loader.gif b/admin/assets/images/ajax-loader.gif index 0bcd5978b..2190cf849 100644 Binary files a/admin/assets/images/ajax-loader.gif and b/admin/assets/images/ajax-loader.gif differ diff --git a/admin/compiler/joomla_3/Helper_email.php b/admin/compiler/joomla_3/Helper_email.php index 370b827a2..91448563f 100644 --- a/admin/compiler/joomla_3/Helper_email.php +++ b/admin/compiler/joomla_3/Helper_email.php @@ -45,6 +45,13 @@ abstract class ###Component###Email */ public static $mailer = null; + /** + * Custom Headers + * + * @var array + */ + protected static $header = array(); + /** * Get a configuration object * @@ -58,7 +65,7 @@ abstract class ###Component###Email return self::$config; } - + /** * Get a mailer object. * @@ -164,6 +171,17 @@ abstract class ###Component###Email return $mail; } + /** + * Set a Mail custom header. + * + * @return void + */ + public static function setHeader($target, $value) + { + // set the header + self::$header[$target] = $value; + } + /** * Send an email * @@ -172,7 +190,6 @@ abstract class ###Component###Email */ public static function send($recipient, $subject, $body, $textonly, $mode = 0, $bounce_email = null, $idsession = null, $mailreply = null, $replyname = null , $mailfrom = null, $fromname = null, $cc = null, $bcc = null, $attachment = null, $embeded = null , $embeds = null) { - // Get a JMail instance $mail = self::getMailer(); @@ -199,7 +216,16 @@ abstract class ###Component###Email { $mail->addCustomHeader('X-VDMmethodID:'.$idsession); } - + + // set headers if found + if (isset(self::$header) && is_array(self::$header) && count((array)self::$header) > 0) + { + foreach (self::$header as $_target => $_value) + { + $mail->addCustomHeader($_target.':'.$_value); + } + } + // set the subject & Body $mail->setSubject($subject); $mail->setBody($body); @@ -243,7 +269,7 @@ abstract class ###Component###Email $mail->ClearReplyTos(); $mail->addReplyTo($mailreply, $replyname); } - + // check if we can add the DKIM to email if ($conf->get('enable_dkim')) { @@ -261,20 +287,20 @@ abstract class ###Component###Email $mail->DKIM_private = $tmp; } } - + $sendmail = $mail->Send(); if ($conf->get('enable_dkim') && !empty($conf->get('dkim_domain')) && !empty($conf->get('dkim_selector')) && !empty($conf->get('dkim_private')) && !empty($conf->get('dkim_public'))) { @unlink($tmp); } - + if (method_exists('###Component###Helper','storeMessage')) { // store the massage if the method is set ###Component###Helper::storeMessage($sendmail, $recipient, $subject, $body, $textonly, $mode, 'email'); } - + return $sendmail; } diff --git a/admin/config.xml b/admin/config.xml index b05392b0d..c9f56729e 100644 --- a/admin/config.xml +++ b/admin/config.xml @@ -47,6 +47,20 @@ /> + + + + + + COM_COMPONENTBUILDER_CONFIG_JCB_COMMUNITY_PACKAGES - - + + - - + + COM_COMPONENTBUILDER_CONFIG_NO - - + + COM_COMPONENTBUILDER_CONFIG_NEVER_UPDATE - - + + @@ -208,8 +222,8 @@ max="100" step="10" /> - - + + COM_COMPONENTBUILDER_CONFIG_SIMPLEXMLELEMENT_CLASS - - + + - - + + {'add_' . $scripter}) && $view->{'add_' . $scripter} == 1) diff --git a/admin/helpers/compiler/c_Fields.php b/admin/helpers/compiler/c_Fields.php index f01c17726..c5d0d4da1 100644 --- a/admin/helpers/compiler/c_Fields.php +++ b/admin/helpers/compiler/c_Fields.php @@ -1295,8 +1295,8 @@ class Fields extends Structure else { $optionArray = false; - $field .= PHP_EOL . $this->_t(3) . $taber . ""; $field .= PHP_EOL . $this->_t(2) . $taber . "/>"; + $field .= PHP_EOL . $this->_t(2) . $taber . "" . PHP_EOL; } } elseif ($setType === 'plain') diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index 5dee21f97..c1ac790cb 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -191,8 +191,7 @@ class Interpretation extends Fields * * @param int $nr The line number * - * @return void - * + * @return string */ private function setLine($nr) { @@ -254,7 +253,10 @@ class Interpretation extends Fields } /** - * @param $view + * set Lock License Per + * + * @param type $view + * @param type $target */ public function setLockLicensePer(&$view, $target) { @@ -280,6 +282,14 @@ class Interpretation extends Fields } } + /** + * Check statment license locked + * + * @param type $boolMethod + * @param type $thIIS + * + * @return string + */ public function checkStatmentLicenseLocked($boolMethod, $thIIS = '$this') { $statment[] = PHP_EOL . $this->_t(2) . "if (!" . $thIIS . "->" . $boolMethod . "())"; @@ -293,6 +303,14 @@ class Interpretation extends Fields return implode(PHP_EOL, $statment); } + /** + * set Bool License Lock + * + * @param type $boolMethod + * @param type $globalbool + * + * @return string + */ public function setBoolLicenseLock($boolMethod, $globalbool) { $bool[] = PHP_EOL . PHP_EOL . $this->_t(1) . "/**"; @@ -325,6 +343,14 @@ class Interpretation extends Fields return implode(PHP_EOL, $bool); } + /** + * set Helper License Lock + * + * @param type $_VDM + * @param type $target + * + * @return string + */ public function setHelperLicenseLock($_VDM, $target) { $helper[] = PHP_EOL . PHP_EOL . $this->_t(1) . "/**"; @@ -348,6 +374,13 @@ class Interpretation extends Fields return implode(PHP_EOL, $helper); } + /** + * set Init License Lock + * + * @param type $_VDM + * + * @return string + */ public function setInitLicenseLock($_VDM) { $init[] = PHP_EOL . "if (!defined('" . $_VDM . "'))"; @@ -362,6 +395,11 @@ class Interpretation extends Fields return implode(PHP_EOL, $init); } + /** + * set WHMCS Cryption + * + * @return string + */ public function setWHMCSCryption() { // make sure we have the correct file @@ -549,6 +587,11 @@ class Interpretation extends Fields return ''; } + /** + * set Get Crypt Key + * + * @return string + */ public function setGetCryptKey() { // ENCRYPT_FILE @@ -714,6 +757,9 @@ class Interpretation extends Fields return ''; } + /** + * set Version Controller + */ public function setVersionController() { if (ComponentbuilderHelper::checkArray($this->componentData->version_update) || ComponentbuilderHelper::checkArray($this->updateSQLBuilder)) @@ -821,6 +867,12 @@ class Interpretation extends Fields } } + /** + * set Dynamic Update XML SQL + * + * @param array $updateXML + * @param bool $current_version + */ public function setDynamicUpdateXMLSQL(&$updateXML, $current_version = false) { // start building the update @@ -864,6 +916,13 @@ class Interpretation extends Fields $this->setUpdateXMLSQL($update_, $updateXML, $addDynamicSQL); } + /** + * set Update XML SQL + * + * @param array $update + * @param array $updateXML + * @param boolean $addDynamicSQL + */ public function setUpdateXMLSQL(&$update, &$updateXML, &$addDynamicSQL) { // ensure version naming is correct @@ -931,6 +990,11 @@ class Interpretation extends Fields } } + /** + * no Help + * + * @return string + */ public function noHelp() { $help = array(); @@ -1353,6 +1417,11 @@ class Interpretation extends Fields $method[] = $this->_t(3) . "'password1' => \$password, // First password field"; $method[] = $this->_t(3) . "'password2' => \$password2, // Confirm password field"; $method[] = $this->_t(3) . "'block' => 0 );"; + $method[] = $this->_t(2) . "// set groups if found"; + $method[] = $this->_t(2) . "if (isset(\$new['groups']) && self::checkArray(\$new['groups']))"; + $method[] = $this->_t(2) . "{"; + $method[] = $this->_t(3) . "\$data['groups'] = \$new['groups'];"; + $method[] = $this->_t(2) . "}"; $method[] = $this->_t(2) . "// register the new user"; $method[] = $this->_t(2) . "\$done = \$model->save(\$data);"; $method[] = $this->_t(2) . "// if user is updated"; @@ -6496,23 +6565,36 @@ class Interpretation extends Fields { // set the fields array $field = array(); + // use custom code + $useCustomCode = (isset($this->fieldRelations[$viewName_list][(int) $item['id']]['join_type']) && $this->fieldRelations[$viewName_list][(int) $item['id']]['join_type'] == 2 && + isset($this->fieldRelations[$viewName_list][(int) $item['id']]['set']) && ComponentbuilderHelper::checkString($this->fieldRelations[$viewName_list][(int) $item['id']]['set'])); // load the main list view field $field['[field=' . (int) $item['id'] . ']'] = $this->getListItem($item, $viewName_single, $viewName_list, $itemClass, $doNotEscape, $coreLoad, $core, false, $ref, $escape, $user, $refview); + // code name + if (isset($item['code']) && $useCustomCode) + { + $field['$item->{' . (int) $item['id'] . '}'] = '$item->' . $item['code']; + } // now load the relations foreach ($this->fieldRelations[$viewName_list][(int) $item['id']]['joinfields'] as $join) { $blankClass = ''; if (isset($this->listJoinBuilder[$viewName_list]) && isset($this->listJoinBuilder[$viewName_list][(int) $join])) { + // code block $field['[field=' . (int) $join . ']'] = $this->getListItem($this->listJoinBuilder[$viewName_list][(int) $join], $viewName_single, $viewName_list, $blankClass, $doNotEscape, $coreLoad, $core, false, $ref, $escape, $user, $refview); + // code name + if (isset($this->listJoinBuilder[$viewName_list][(int) $join]['code']) && $useCustomCode) + { + $field['$item->{' . (int) $join . '}'] = '$item->' . $this->listJoinBuilder[$viewName_list][(int) $join]['code']; + } } } // join based on join type - if (isset($this->fieldRelations[$viewName_list][(int) $item['id']]['join_type']) && $this->fieldRelations[$viewName_list][(int) $item['id']]['join_type'] == 2 && - isset($this->fieldRelations[$viewName_list][(int) $item['id']]['set']) && ComponentbuilderHelper::checkString($this->fieldRelations[$viewName_list][(int) $item['id']]['set'])) + if ($useCustomCode) { // custom code - return PHP_EOL . $this->_t(3) . "
" . str_replace(array_keys($field), array_values($field), $this->fieldRelations[$viewName_list][(int) $item['id']]['set']) . PHP_EOL . $this->_t(3) . "
"; + return PHP_EOL . $this->_t(3) . "
" . $this->setPlaceholders(str_replace(array_keys($field), array_values($field), $this->fieldRelations[$viewName_list][(int) $item['id']]['set']), $this->placeholders) . PHP_EOL . $this->_t(3) . "
"; } elseif (isset($this->fieldRelations[$viewName_list][(int) $item['id']]['set']) && ComponentbuilderHelper::checkString($this->fieldRelations[$viewName_list][(int) $item['id']]['set'])) { @@ -6520,7 +6602,7 @@ class Interpretation extends Fields return PHP_EOL . $this->_t(3) . "
" . implode($this->fieldRelations[$viewName_list][(int) $item['id']]['set'], $field) . PHP_EOL . $this->_t(3) . "
"; } // default - return PHP_EOL . $this->_t(3) . "
" . implode(' ', $field) . PHP_EOL . $this->_t(3) . "
"; + return PHP_EOL . $this->_t(3) . "
" . implode('', $field) . PHP_EOL . $this->_t(3) . "
"; } return $this->getListItem($item, $viewName_single, $viewName_list, $itemClass, $doNotEscape, $coreLoad, $core, $class, $ref, $escape, $user, $refview); } @@ -10854,9 +10936,10 @@ class Interpretation extends Fields $allow[] = $this->_t(4) . "//" . $this->setLine(__LINE__) . " Now set the local-redirected field default value"; $allow[] = $this->_t(4) . "\$form->setValue(\$redirectedField, null, \$redirectedValue);"; $allow[] = $this->_t(3) . "}"; - $allow[] = $this->_t(2) . "}"; + // load custom script if found + $allow[] = $this->_t(2) . "}" . $this->getCustomScriptBuilder('php_getform', $viewName_single, PHP_EOL); // setup the default script - $allow[] = PHP_EOL . $this->_t(2) . "return \$form;"; + $allow[] = $this->_t(2) . "return \$form;"; return implode(PHP_EOL, $allow); } @@ -11982,7 +12065,7 @@ class Interpretation extends Fields } } // close the foreach if needed - if (ComponentbuilderHelper::checkString($fix)) + if (ComponentbuilderHelper::checkString($fix) || $export) { // start the loop $forEachStart = PHP_EOL . PHP_EOL . $this->_t(1) . $tab . $this->_t(1) . "//" . $this->setLine(__LINE__) . " set values to display correctly."; diff --git a/admin/helpers/componentbuilderemail.php b/admin/helpers/componentbuilderemail.php index 22956ff92..ea1f40999 100644 --- a/admin/helpers/componentbuilderemail.php +++ b/admin/helpers/componentbuilderemail.php @@ -28,6 +28,13 @@ abstract class ComponentbuilderEmail */ public static $mailer = null; + /** + * Custom Headers + * + * @var array + */ + protected static $header = array(); + /** * Get a configuration object * @@ -41,7 +48,7 @@ abstract class ComponentbuilderEmail return self::$config; } - + /** * Get a mailer object. * @@ -147,6 +154,17 @@ abstract class ComponentbuilderEmail return $mail; } + /** + * Set a Mail custom header. + * + * @return void + */ + public static function setHeader($target, $value) + { + // set the header + self::$header[$target] = $value; + } + /** * Send an email * @@ -155,7 +173,6 @@ abstract class ComponentbuilderEmail */ public static function send($recipient, $subject, $body, $textonly, $mode = 0, $bounce_email = null, $idsession = null, $mailreply = null, $replyname = null , $mailfrom = null, $fromname = null, $cc = null, $bcc = null, $attachment = null, $embeded = null , $embeds = null) { - // Get a JMail instance $mail = self::getMailer(); @@ -182,7 +199,16 @@ abstract class ComponentbuilderEmail { $mail->addCustomHeader('X-VDMmethodID:'.$idsession); } - + + // set headers if found + if (isset(self::$header) && is_array(self::$header) && count((array)self::$header) > 0) + { + foreach (self::$header as $_target => $_value) + { + $mail->addCustomHeader($_target.':'.$_value); + } + } + // set the subject & Body $mail->setSubject($subject); $mail->setBody($body); @@ -226,7 +252,7 @@ abstract class ComponentbuilderEmail $mail->ClearReplyTos(); $mail->addReplyTo($mailreply, $replyname); } - + // check if we can add the DKIM to email if ($conf->get('enable_dkim')) { @@ -244,20 +270,20 @@ abstract class ComponentbuilderEmail $mail->DKIM_private = $tmp; } } - + $sendmail = $mail->Send(); if ($conf->get('enable_dkim') && !empty($conf->get('dkim_domain')) && !empty($conf->get('dkim_selector')) && !empty($conf->get('dkim_private')) && !empty($conf->get('dkim_public'))) { @unlink($tmp); } - + if (method_exists('ComponentbuilderHelper','storeMessage')) { // store the massage if the method is set ComponentbuilderHelper::storeMessage($sendmail, $recipient, $subject, $body, $textonly, $mode, 'email'); } - + return $sendmail; } diff --git a/admin/helpers/extrusion/a_mapping.php b/admin/helpers/extrusion/a_mapping.php index 701060f48..c9908193c 100644 --- a/admin/helpers/extrusion/a_mapping.php +++ b/admin/helpers/extrusion/a_mapping.php @@ -55,32 +55,33 @@ class Mapping /** * The needed set of keys needed to set */ - protected $setting = array('id' => 'default', 'buildcompsql' => 'base64', 'addadmin_views' => 'json', 'name_code' => 'safeString'); + protected $setting = array('id' => 'default', 'buildcompsql' => 'base64', 'name_code' => 'safeString'); /** * The needed set of keys needed to set */ protected $notRequiered = array('id', 'asset_id', 'published', - 'created_by', 'modified_by', 'created', 'modified', 'checked_out','checked_out_time', - 'version', 'hits', 'access', 'ordering', - 'metakey', 'metadesc', 'metadata', 'params'); + 'created_by', 'modified_by', 'created', 'modified', 'checked_out','checked_out_time', + 'version', 'hits', 'access', 'ordering', + 'metakey', 'metadesc', 'metadata', 'params'); /** * The datatypes and it linked field types (basic) * (TODO) We may need to set this dynamicly */ protected $dataTypes = array( 'VARCHAR' => 'Text', 'CHAR' => 'Text', - 'MEDIUMTEXT' => 'Textarea', 'LONGTEXT' => 'Textarea', - 'TEXT' => 'Textarea', 'DATETIME' => 'Calendar', - 'DATE' => 'Text', 'TIME' => 'Text', 'TINYINT' => 'Text', - 'BIGINT' => 'Text', 'INT' => 'Text', 'FLOAT' => 'Text', - 'DECIMAL' => 'Text', 'DOUBLE' => 'Text'); + 'MEDIUMTEXT' => 'Textarea', 'LONGTEXT' => 'Textarea', + 'TEXT' => 'Textarea', 'DATETIME' => 'Calendar', + 'DATE' => 'Text', 'TIME' => 'Text', 'TINYINT' => 'Text', + 'BIGINT' => 'Text', 'INT' => 'Text', 'FLOAT' => 'Text', + 'DECIMAL' => 'Text', 'DOUBLE' => 'Text'); /** * The datasize identifiers */ - protected $dataSize = array( 'CHAR', 'VARCHAR', 'INT', 'TINYINT', - 'BIGINT', 'FLOAT', 'DECIMAL', 'DOUBLE'); + protected $dataSize = array( + 'CHAR', 'VARCHAR', 'INT', 'TINYINT', + 'BIGINT', 'FLOAT', 'DECIMAL', 'DOUBLE'); /** * The default identifiers @@ -98,10 +99,7 @@ class Mapping */ public function __construct($data = false) { - // set the app to insure messages can be set - $this->app = JFactory::getApplication(); - - if ($data) + if (ComponentbuilderHelper::checkArray($data)) { if (isset($data['buildcomp']) && 1 == $data['buildcomp'] && isset($data['buildcompsql'])) { @@ -129,6 +127,12 @@ class Mapping } } } + // get linked admin views + $addadmin_views = ComponentbuilderHelper::getVar('component_admin_views', $data['id'], 'joomla_component', 'addadmin_views'); + if (ComponentbuilderHelper::checkJson($addadmin_views)) + { + $this->addadmin_views = json_decode($addadmin_views, true); + } // set the map of the views needed if ($this->setMap()) { @@ -148,7 +152,7 @@ class Mapping ); return false; } - + /** * The mapping function * To Map the views and fields that are needed @@ -162,7 +166,8 @@ class Mapping foreach ($queries as $query) { // only use create table queries - if (strpos($query, 'CREATE TABLE IF NOT EXISTS `') !== false) + if (strpos($query, 'CREATE TABLE IF NOT EXISTS') !== false || + strpos($query, 'CREATE TABLE') !== false) { if ($tableName = $this->getTableName($query)) { @@ -198,15 +203,24 @@ class Mapping } return false; } - + /** * Get the table name */ protected function getTableName(&$query) { - $tableName = ComponentbuilderHelper::getBetween($query, '`#__', "`"); + if (strpos($query, '`#__') !== false) + { + // get table name + $tableName = ComponentbuilderHelper::getBetween($query, '`#__', "`"); + } + elseif (strpos($query, "'#__") !== false) + { + // get table name + $tableName = ComponentbuilderHelper::getBetween($query, "'#__", "'"); + } // if it still was not found - if (!ComponentbuilderHelper::checkString($tableName)) + if (!isset($tableName) || !ComponentbuilderHelper::checkString($tableName)) { // skip this query return false; @@ -224,13 +238,13 @@ class Mapping // skip this query return false; } - + /** * Get the field details */ protected function getFields(&$query) { - $rows = array_map('trim', explode("\n", $query)); + $rows = array_map('trim', explode(PHP_EOL, $query)); $fields = array(); foreach ($rows as $row) { @@ -299,7 +313,7 @@ class Mapping } return false; } - + /** * Get the field types */ @@ -318,7 +332,7 @@ class Mapping } return false; } - + /** * Get the field size */ @@ -330,7 +344,7 @@ class Mapping } return ''; } - + /** * Get the field default */ @@ -348,7 +362,7 @@ class Mapping } return ''; } - + /** * Get the field Null Value */ @@ -366,7 +380,7 @@ class Mapping } return 'NULL'; } - + /** * Get the field key status */ diff --git a/admin/helpers/extrusion/b_builder.php b/admin/helpers/extrusion/b_builder.php index 9d4ad070f..cd5f53c05 100644 --- a/admin/helpers/extrusion/b_builder.php +++ b/admin/helpers/extrusion/b_builder.php @@ -37,12 +37,13 @@ class Builder extends Mapping public $user; public $today; public $db; - public $views = array(); - protected $fields = array(); - protected $title = array(); - protected $description = array(); - protected $alias = array(); - protected $list = array(); + public $views = array(); + public $admin_fields = array(); + protected $fields = array(); + protected $title = array(); + protected $description = array(); + protected $alias = array(); + protected $list = array(); /** * Field that should not be used in name, alias, disc, and list view @@ -62,10 +63,10 @@ class Builder extends Mapping $data['buildcomp'] = 0; $data['buildcompsql'] = ''; // set some globals - $this->db = JFactory::getDbo(); - $this->user = JFactory::getUser(); - $this->today = JFactory::getDate()->toSql(); - + $this->db = JFactory::getDbo(); + $this->user = JFactory::getUser(); + $this->today = JFactory::getDate()->toSql(); + // no start the building of the views and fields if ($this->setBuild()) { @@ -100,22 +101,21 @@ class Builder extends Mapping protected function setView(&$name) { // set the view object - $object = new stdClass(); - $object->system_name = ComponentbuilderHelper::safeString($name, 'W') . ' (dynamic build)'; - $object->name_single = $name; - $object->name_list = $name. 's'; - $object->short_description = $name. ' view (dynamic build)'; - $object->type = 1; - $object->description = $name. ' view (dynamic build)'; - $object->add_fadein = 1; - $object->add_sql = (isset($this->addSql[$name])) ? $this->addSql[$name]: 0; - $object->source = (isset($this->source[$name])) ? $this->source[$name]: 0; - $object->sql = (isset($this->sql[$name])) ? base64_encode($this->sql[$name]): ''; - $object->addpermissions = '{"action":["view.edit","view.edit.own","view.edit.state","view.create","view.delete","view.access"],"implementation":["3","3","3","3","3","3"]}'; - $object->addfields = $this->addFields($name); - $object->created = $this->today; - $object->created_by = $this->user->id; - $object->published = 1; + $object = new stdClass(); + $object->system_name = ComponentbuilderHelper::safeString($name, 'W') . ' (dynamic build)'; + $object->name_single = $name; + $object->name_list = $name. 's'; + $object->short_description = $name. ' view (dynamic build)'; + $object->type = 1; + $object->description = $name. ' view (dynamic build)'; + $object->add_fadein = 1; + $object->add_sql = (isset($this->addSql[$name])) ? $this->addSql[$name]: 0; + $object->source = (isset($this->source[$name])) ? $this->source[$name]: 0; + $object->sql = (isset($this->sql[$name])) ? base64_encode($this->sql[$name]): ''; + $object->addpermissions = '{"action":["view.edit","view.edit.own","view.edit.state","view.create","view.delete","view.access"],"implementation":["3","3","3","3","3","3"]}'; + $object->created = $this->today; + $object->created_by = $this->user->id; + $object->published = 1; // add to data base if ($this->db->insertObject('#__componentbuilder_admin_view', $object)) { @@ -124,7 +124,8 @@ class Builder extends Mapping ComponentbuilderHelper::setAsset($id, 'admin_view'); // load the views $this->views[] = $id; - return true; + // load the admin view fields + return $this->addFields($name, $id); } return false; } @@ -132,26 +133,12 @@ class Builder extends Mapping /** * Add the fields to the view */ - protected function addFields(&$view) + protected function addFields(&$view, &$view_id) { if (isset($this->fields[$view])) { // set some defaults - $addField = array ( - 'field' => array(), - 'list' => array(), - 'order_list' => array(), - 'title' => array(), - 'alias' => array(), - 'sort' => array(), - 'search' => array(), - 'filter' => array(), - 'link' => array(), - 'tab' => array(), - 'alignment' => array(), - 'order_edit' => array(), - 'permission' => array() - ); + $addField = array (); $fixLink = (isset($this->title[$view])) ? 0 : 1; // build the field data... hmmm foreach ($this->fields[$view] as $nr => $id) @@ -171,23 +158,32 @@ class Builder extends Mapping $fixLink = 0; } // load the field values - $addField['field'][] = $id; - $addField['list'][] = $isList; - $addField['order_list'][] = ($key) ? $key : 0; - $addField['title'][] = $isTitle; - $addField['alias'][] = $isAlias; - $addField['sort'][] = $isList; - $addField['search'][] = $isList; - $addField['filter'][] = $isList; - $addField['link'][] = $isLink; - $addField['tab'][] = 1; - $addField['alignment'][] = ($isTitle || $isAlias) ? 4 : $alignment; - $addField['order_edit'][] = $nr; - $addField['permission'][] = 0; + $addField['addfields'.$nr]['field'] = $id; + $addField['addfields'.$nr]['list'] = $isList; + $addField['addfields'.$nr]['order_list'] = ($key) ? $key : 0; + $addField['addfields'.$nr]['title'] = $isTitle; + $addField['addfields'.$nr]['alias'] = $isAlias; + $addField['addfields'.$nr]['sort'] = $isList; + $addField['addfields'.$nr]['search'] = $isList; + $addField['addfields'.$nr]['filter'] = $isList; + $addField['addfields'.$nr]['link'] = $isLink; + $addField['addfields'.$nr]['tab'] = 1; + $addField['addfields'.$nr]['alignment'] = ($isTitle || $isAlias) ? 4 : $alignment; + $addField['addfields'.$nr]['order_edit'] = $nr; + $addField['addfields'.$nr]['permission'] = 0; } - return json_encode($addField); + + // set the field object + $object = new stdClass(); + $object->admin_view = $view_id; + $object->addfields = json_encode($addField, JSON_FORCE_OBJECT); + $object->created = $this->today; + $object->created_by = $this->user->id; + $object->published = 1; + // add to data base + return $this->db->insertObject('#__componentbuilder_admin_fields', $object); } - return ''; + return false; } /** @@ -198,21 +194,21 @@ class Builder extends Mapping if ($fieldType = $this->getFieldType($field['fieldType'])) { // set the field object - $object = new stdClass(); - $object->name = $field['label'] . ' (dynamic build)'; - $object->fieldtype = $fieldType; - $object->datatype = $field['dataType']; - $object->indexes = $field['key']; - $object->null_switch = $field['null']; - $object->datalenght = $field['size']; - $object->datalenght_other = $field['sizeOther']; - $object->datadefault = $field['default']; - $object->datadefault_other = $field['defaultOther']; - $object->created = $this->today; - $object->created_by = $this->user->id; - $object->published = 1; - $object->store = 0; - $object->xml = $this->setFieldXML($field, $fieldType); + $object = new stdClass(); + $object->name = $field['label'] . ' (dynamic build)'; + $object->fieldtype = $fieldType; + $object->datatype = $field['dataType']; + $object->indexes = $field['key']; + $object->null_switch = $field['null']; + $object->datalenght = $field['size']; + $object->datalenght_other = $field['sizeOther']; + $object->datadefault = $field['default']; + $object->datadefault_other = $field['defaultOther']; + $object->created = $this->today; + $object->created_by = $this->user->id; + $object->published = 1; + $object->store = 0; + $object->xml = $this->setFieldXML($field, $fieldType); // add to data base if ($this->db->insertObject('#__componentbuilder_field', $object)) { diff --git a/admin/helpers/extrusion/c_extrusion.php b/admin/helpers/extrusion/c_extrusion.php index 01c8c0512..fc0660fee 100644 --- a/admin/helpers/extrusion/c_extrusion.php +++ b/admin/helpers/extrusion/c_extrusion.php @@ -36,106 +36,84 @@ class Extrusion extends Builder */ public function __construct(&$data) { - // first we run the perent constructor - if (parent::__construct($data)) + // set the app to insure messages can be set + $this->app = JFactory::getApplication(); + // make sure we have an id + if (isset($data['id']) && $data['id'] > 0) { - // link the view data to the component - $data['addadmin_views'] = $this->linkAdminViews(); - if (ComponentbuilderHelper::checkJson($data['addadmin_views'])) + // first we run the perent constructor + if (parent::__construct($data)) { - $this->app->enqueueMessage( - JText::_('All the fields and views from your sql dump has been created and linked to this component.'), - 'Success' - ); - return true; + // link the view data to the component + if ($this->setAdminViews($data['id'])) + { + $this->app->enqueueMessage( + JText::_('All the fields and views from your sql dump has been created and linked to this component.'), + 'Success' + ); + return true; + } } + return false; } + $this->app->enqueueMessage( + JText::_('Please try again, this error usualy happens if it is a new component, beacues we need a component ID to do this build with your sql dump.'), + 'Error' + ); return false; } /** * link the build views to the component */ - protected function linkAdminViews() + protected function setAdminViews(&$component_id) { // check if views were set if (ComponentbuilderHelper::checkArray($this->views)) { - // insure arrays are set - if (!isset($this->addadmin_views['adminview'])) + $count = 0; + if (ComponentbuilderHelper::checkArray($this->addadmin_views)) { - $this->addadmin_views['adminview'] = array(); - } - if (!isset($this->addadmin_views['icomoon'])) - { - $this->addadmin_views['icomoon'] = array(); - } - if (!isset($this->addadmin_views['mainmenu'])) - { - $this->addadmin_views['mainmenu'] = array(); - } - if (!isset($this->addadmin_views['dashboard_add'])) - { - $this->addadmin_views['dashboard_add'] = array(); - } - if (!isset($this->addadmin_views['dashboard_list'])) - { - $this->addadmin_views['dashboard_list'] = array(); - } - if (!isset($this->addadmin_views['submenu'])) - { - $this->addadmin_views['submenu'] = array(); - } - if (!isset($this->addadmin_views['checkin'])) - { - $this->addadmin_views['checkin'] = array(); - } - if (!isset($this->addadmin_views['history'])) - { - $this->addadmin_views['history'] = array(); - } - if (!isset($this->addadmin_views['metadata'])) - { - $this->addadmin_views['metadata'] = array(); - } - if (!isset($this->addadmin_views['access'])) - { - $this->addadmin_views['access'] = array(); - } - if (!isset($this->addadmin_views['port'])) - { - $this->addadmin_views['port'] = array(); - } - if (!isset($this->addadmin_views['edit_create_site_view'])) - { - $this->addadmin_views['edit_create_site_view'] = array(); - } - if (!isset($this->addadmin_views['order'])) - { - $this->addadmin_views['order'] = array(); + $count = (int) count((array)$this->addadmin_views) + 3; } // set the admin view data linking - foreach ($this->views as $id) + foreach ($this->views as $nr => $id) { - $this->addadmin_views['adminview'][] = $id; - $this->addadmin_views['icomoon'][] = 'joomla'; - $this->addadmin_views['mainmenu'][] = 1; - $this->addadmin_views['dashboard_add'][] = 1; - $this->addadmin_views['dashboard_list'][] = 1; - $this->addadmin_views['submenu'][] = 1; - $this->addadmin_views['checkin'][] = 1; - $this->addadmin_views['history'][] = 1; - $this->addadmin_views['metadata'][] = 1; - $this->addadmin_views['access'][] = 1; - $this->addadmin_views['port'][] = 1; - $this->addadmin_views['edit_create_site_view'][] = 0; - $this->addadmin_views['order'][] = count($this->addadmin_views['order']) + 1; + $pointer = $count + $nr; + $this->addadmin_views['addadmin_views'.$pointer]['adminview'] = $id; + $this->addadmin_views['addadmin_views'.$pointer]['icomoon'] = 'joomla'; + $this->addadmin_views['addadmin_views'.$pointer]['mainmenu'] = 1; + $this->addadmin_views['addadmin_views'.$pointer]['dashboard_add'] = 1; + $this->addadmin_views['addadmin_views'.$pointer]['dashboard_list'] = 1; + $this->addadmin_views['addadmin_views'.$pointer]['submenu'] = 1; + $this->addadmin_views['addadmin_views'.$pointer]['checkin'] = 1; + $this->addadmin_views['addadmin_views'.$pointer]['history'] = 1; + $this->addadmin_views['addadmin_views'.$pointer]['metadata'] = 1; + $this->addadmin_views['addadmin_views'.$pointer]['access'] = 1; + $this->addadmin_views['addadmin_views'.$pointer]['port'] = 1; + $this->addadmin_views['addadmin_views'.$pointer]['edit_create_site_view'] = 0; + $this->addadmin_views['addadmin_views'.$pointer]['order'] = $pointer + 1; } } if (isset($this->addadmin_views) && ComponentbuilderHelper::checkArray($this->addadmin_views)) { - return json_encode($this->addadmin_views); + // set the field object + $object = new stdClass(); + $object->joomla_component = $component_id; + $object->addadmin_views = json_encode($this->addadmin_views, JSON_FORCE_OBJECT); + $object->created = $this->today; + $object->created_by = $this->user->id; + $object->published = 1; + // check if it is already set + if ($item_id = ComponentbuilderHelper::getVar('component_admin_views', $component_id, 'joomla_component', 'id')) + { + // set ID + $object->id = (int) $item_id; + return $this->db->updateObject('#__componentbuilder_component_admin_views', $object, 'id'); + } + // add to data base + return $this->db->insertObject('#__componentbuilder_component_admin_views', $object); } - return ''; + return false; } } diff --git a/admin/language/en-GB/en-GB.com_componentbuilder.ini b/admin/language/en-GB/en-GB.com_componentbuilder.ini index 6e5b5b4be..7829e8509 100644 --- a/admin/language/en-GB/en-GB.com_componentbuilder.ini +++ b/admin/language/en-GB/en-GB.com_componentbuilder.ini @@ -424,6 +424,8 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_SAVE="Add Php Before Save" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_BEFORE_SAVE_LABEL="Add PHP (save Method - before data modeling)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_DOCUMENT="Add Php Document" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_DOCUMENT_LABEL="Add PHP (custom document script)" +COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETFORM="Add Php Getform" +COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETFORM_LABEL="Add PHP (getForm Method)" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEM="Add Php Getitem" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS="Add Php Getitems" COM_COMPONENTBUILDER_ADMIN_VIEW_ADD_PHP_GETITEMS_AFTER_ALL="Add Php Getitems After All" @@ -525,11 +527,9 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_CREDIT_TWO="Credit 2" COM_COMPONENTBUILDER_ADMIN_VIEW_CSS="CSS" COM_COMPONENTBUILDER_ADMIN_VIEW_CSS_VIEW="Css View" COM_COMPONENTBUILDER_ADMIN_VIEW_CSS_VIEWS="Css Views" -COM_COMPONENTBUILDER_ADMIN_VIEW_CSS_VIEWS_DESCRIPTION="Add your CSS here! [Do not add the style tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_CSS_VIEWS_HINT="// CSS for the list view" +COM_COMPONENTBUILDER_ADMIN_VIEW_CSS_VIEWS_DESCRIPTION="Add CSS for the list view. Do not add the style tags." COM_COMPONENTBUILDER_ADMIN_VIEW_CSS_VIEWS_LABEL="CSS" -COM_COMPONENTBUILDER_ADMIN_VIEW_CSS_VIEW_DESCRIPTION="Add your CSS here! [Do not add the style tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_CSS_VIEW_HINT="// CSS for the edit view" +COM_COMPONENTBUILDER_ADMIN_VIEW_CSS_VIEW_DESCRIPTION="Add CSS for the edit view. Do not add the style tags." COM_COMPONENTBUILDER_ADMIN_VIEW_CSS_VIEW_LABEL="CSS" COM_COMPONENTBUILDER_ADMIN_VIEW_CUBE="Cube" COM_COMPONENTBUILDER_ADMIN_VIEW_CUSTOM="Custom" @@ -626,21 +626,17 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_IN_RELATION_TO_EACH_RECORD="In Relation to each COM_COMPONENTBUILDER_ADMIN_VIEW_IN_RELATION_TO_THE_WHOLE_VIEW="In Relation to the Whole View" COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT="JavaScript" COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FILE="Javascript Views File" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FILE_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FILE_HINT="// JavaScript for the list view that is loaded in the header via a JS file" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FILE_LABEL="Javascript" +COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FILE_DESCRIPTION="Add JavaScript for the list view that is loaded in the header of the document via a JS file. Do not add the script tags. PHP does not work in this field/area/file." +COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FILE_LABEL="Javascript (list view file)" COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FOOTER="Javascript Views Footer" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FOOTER_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FOOTER_HINT="// JavaScript for the list view that is loaded in the footer inside script tags" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FOOTER_LABEL="Javascript" +COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FOOTER_DESCRIPTION="Add JavaScript for the list view that is loaded in the footer inside script tags. Do not add the script tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEWS_FOOTER_LABEL="Javascript (list view footer)" COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FILE="Javascript View File" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FILE_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FILE_HINT="// JavaScript for the edit view that is loaded in the header via a JS file" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FILE_LABEL="Javascript" +COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FILE_DESCRIPTION="Add JavaScript for the edit view that is loaded in the header of the document via a JS file. Do not add the script tags. PHP does not work in this field/area/file." +COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FILE_LABEL="Javascript (edit view file)" COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FOOTER="Javascript View Footer" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FOOTER_HINT="// JavaScript for the edit view that is loaded in the footer inside script tags" -COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FOOTER_LABEL="Javascript" +COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION="Add JavaScript for the edit view that is loaded in the footer inside script tags. Do not add the script tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_JAVASCRIPT_VIEW_FOOTER_LABEL="Javascript (edit view footer)" COM_COMPONENTBUILDER_ADMIN_VIEW_JOOMLA="Joomla" COM_COMPONENTBUILDER_ADMIN_VIEW_KEY="Key" COM_COMPONENTBUILDER_ADMIN_VIEW_KEY_DESCRIPTION="The key to use to link the child view." @@ -748,69 +744,56 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_PHONE="Phone" COM_COMPONENTBUILDER_ADMIN_VIEW_PHONE_TWO="Phone 2" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP="PHP" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE="Php After Delete" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_HINT="// PHP Here that should run in the delete Method after items were deleted. Array $pks is an array of record primary keys." -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_DESCRIPTION="Add PHP Here that should run in the delete Method after items were deleted. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_DELETE_LABEL="PHP delete Method after
Target (array) $pks is an array of record primary keys." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_PUBLISH="Php After Publish" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_PUBLISH_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_PUBLISH_HINT="// PHP Here that should run in the publish Method after the item's published state has been changed. Array $pks is an array of record primary keys and $value is the published state." -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_PUBLISH_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_PUBLISH_DESCRIPTION="Add PHP Here that should run in the publish Method after the item's published state has been changed. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AFTER_PUBLISH_LABEL="PHP publish Method afterTarget (array) $pks is an array of record primary keys and $value is the published state." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD="Php Ajaxmethod" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_HINT="// PHP Method that should run in the AJAX Model" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_LABEL="php Ajax Method" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_DESCRIPTION="Add PHP Methods that should run in the AJAX Model. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_AJAXMETHOD_LABEL="PHP Ajax Methods" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT="Php Allowedit" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_HINT="// PHP Here that should run in the allowEdit Method (to add custom access control) The record ID => ($recordId) and the user object => ($user) are already set." -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_DESCRIPTION="Add PHP Here that should run in the allowEdit Method to add custom access control. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_ALLOWEDIT_LABEL="PHP allowEdit Method
The record ID => ($recordId) and the user object => ($user) are already set." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY="Php Batchcopy" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_HINT="// PHP Here that should run in the batchCopy Method (submitted values are in $values, id's are in $pks)" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_DESCRIPTION="Add PHP Here that should run in the batchCopy Method. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHCOPY_LABEL="PHP batchCopy Method
Submitted values are in $values, id's are in $pks" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE="Php Batchmove" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_HINT="// PHP Here that should run in the batchMove Method (submitted values are in $values, id's are in $pks)" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_DESCRIPTION="Add PHP Here that should run in the batchMove Method. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BATCHMOVE_LABEL="PHP batchMove Method
submitted values are in $values, id's are in $pks" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE="Php Before Delete" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_HINT="// PHP Here that should run in the delete Method before items are deleted. Array $pks is an array of record primary keys." -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_DESCRIPTION="Add PHP Here that should run in the delete Method before items are deleted. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_DELETE_LABEL="PHP delete Method
Target (array) $pks is an array of record primary keys." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_PUBLISH="Php Before Publish" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_PUBLISH_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_PUBLISH_HINT="// PHP Here that should run in the publish Method before items published state is changed. Array $pks is an array of record primary keys and $value is the published state." -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_PUBLISH_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_PUBLISH_DESCRIPTION="Add PHP Here that should run in the publish Method before items published state is changed. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_PUBLISH_LABEL="PHP publish Method before
Target (array) $pks is an array of record primary keys and $value is the published state." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_SAVE="Php Before Save" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_SAVE_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_SAVE_HINT="// PHP Here that should run in the save Method (array) $data is where all values are" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_SAVE_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_SAVE_DESCRIPTION="Add PHP Here that should run in the save Method. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_BEFORE_SAVE_LABEL="PHP save Method before
Target (array) $data values" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER="Php Controller" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_HINT="// PHP methods for the controller that the button will target" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION="Add PHP methods for the controller that the button/s will target. Do not add the php tags." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_LABEL="PHP (controller methods)" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_LIST="Php Controller List" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_LIST_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_LIST_HINT="// PHP methods for the controller that the button will target" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_LIST_DESCRIPTION="Add PHP methods for the controller that the button will target. Do not add the php tags." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_CONTROLLER_LIST_LABEL="PHP List view (controller methods)" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT="Php Document" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION="PHP script to the document method." -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_HINT="// add custom PHP script to the document method." -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_LABEL="Custom Script (Document)" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION="Add PHP to the document method in the view.html.php file of this view. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_DOCUMENT_LABEL="PHP document method" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETFORM="Php Getform" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETFORM_DESCRIPTION="Add PHP Here that should run in the getForm Method. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETFORM_LABEL="PHP getForm Method
Target (array) $data values & (bool) $loadData & (object) $form. " COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM="Php Getitem" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS="Php Getitems" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_AFTER_ALL="Php Getitems After All" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_AFTER_ALL_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_AFTER_ALL_HINT="// PHP Here that should run in the getItems Method (array) $items is where all values are" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_AFTER_ALL_LABEL="PHP" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_HINT="// PHP Here that should run in the getItems Method (array) $items is where all values are" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_LABEL="PHP" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_HINT="// PHP Here that should run in the getItem Method (object) $item is where all values are" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_AFTER_ALL_DESCRIPTION="Add PHP Here that should run in the getItems Method after all. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_AFTER_ALL_LABEL="PHP getItems Method
Target (array) $items values" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_DESCRIPTION="Add PHP Here that should run in the getItems Method. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEMS_LABEL="PHP getItems Method
Target (array) $items values." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_DESCRIPTION="Add PHP Here that should run in the getItem Method. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETITEM_LABEL="PHP getItem Method
Target (object) $item values." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY="Php Getlistquery" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_HINT="// PHP Here that should run in the getlistquery Method (to add custom filtering)" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_DESCRIPTION="Add PHP Here that should run in the getlistquery Method of the model of this view. Do not add the php tags" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_GETLISTQUERY_LABEL="PHP getlistquery Method
used to add custom filtering" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT="Php Import" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DESCRIPTION="Add your PHP here! [Do not add the php tags]" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_DISPLAY="Php Import Display" @@ -836,21 +819,17 @@ COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SETDATA_DESCRIPTION="Add your PHP her COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SETDATA_HINT="// PHP Here that should run in the setData Method, $package,$table,$target_headers" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_IMPORT_SETDATA_LABEL="setData Method PHP" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL="Php Model" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL_HINT="// PHP methods for the model that the controller will use" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL_DESCRIPTION="Add PHP methods for the model that the controller will use. Do not add the php tags." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL_LABEL="PHP (model methods)" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL_LIST="Php Model List" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL_LIST_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL_LIST_HINT="// PHP methods for the model that the controller will use" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL_LIST_DESCRIPTION="Add PHP methods for the model that the controller will use. Do not add the php tags." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_MODEL_LIST_LABEL="PHP List view (model methods)" COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK="Php Postsavehook" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_HINT="// PHP Here that should run in the postSaveHook Method (object) $model is the data model object and (array) $validData is the validated data." -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_DESCRIPTION="Add PHP Here that should run in the postSaveHook Method. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_POSTSAVEHOOK_LABEL="PHP postSaveHook Method
Target (object) $model for the data model object and (array) $validData for the validated data." COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE="Php Save" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_HINT="// PHP Here that should run in the save Method (array) $data is where all values are" -COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_LABEL="PHP" +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_DESCRIPTION="Add PHP Here that should run in the save Method. Do not add the php tags." +COM_COMPONENTBUILDER_ADMIN_VIEW_PHP_SAVE_LABEL="PHP save Method
Target (array) $data values" COM_COMPONENTBUILDER_ADMIN_VIEW_PIE="Pie" COM_COMPONENTBUILDER_ADMIN_VIEW_PIN="Pin" COM_COMPONENTBUILDER_ADMIN_VIEW_PLAY="Play" @@ -1020,6 +999,7 @@ COM_COMPONENTBUILDER_BACKUP_FAILED_PLEASE_TRY_AGAIN_IF_THE_ERROR_CONTINUE_PLEASE COM_COMPONENTBUILDER_BACKUP_LOCAL_DATA_FIRST="Backup Local Data First" COM_COMPONENTBUILDER_BACKUP_WAS_DONE_SUCCESSFULLY="Backup was done successfully" COM_COMPONENTBUILDER_BACK_TO_LIBRARIES="Back to Libraries" +COM_COMPONENTBUILDER_BADMIN_FIELDS_RELATIONSB_IDS_MISMATCH_IN_BFIELDSB_AND_WAS_NOT_UPDATED_IN_THE_CUSTOM_CODE="Admin fields relations id:%s mismatch in field:%s, and was not updated in the custom code." COM_COMPONENTBUILDER_BASIC_TUTORIAL_ON_GIT_BSB="Basic Tutorial on git: %s" COM_COMPONENTBUILDER_BBEST_TO_NOT_CONTINUEBBR_THIS_PACKAGE_BFAILEDB_CHECKSUM_VALIDATION_THIS_COULD_BE_A_SERIOUS_SECURITY_BREACH_DO_NOT_CONTINUE="Best to not continue!
This package FAILED checksum validation, this could be a serious security breach! DO NOT CONTINUE!!!" COM_COMPONENTBUILDER_BBEST_TO_NOT_CONTINUEBBR_WE_COULD_NOT_LOAD_THE_CHECKSUM_FOR_THIS_PACKAGE_AND_SO_NO_VALIDATION_WAS_POSSIBLE_THIS_MAY_BE_DUE_TO_YOUR_NETWORK_OR_A_CHANGE_TO_THAT_PACKAGE_NAME="Best to not continue!
We could not load the checksum for this package, and so no validation was possible. This may be due to your network, or a change to that package name." @@ -2453,6 +2433,8 @@ COM_COMPONENTBUILDER_CONFIG_DKIM_VALUE_DESCRIPTION="This is the TXT value to use COM_COMPONENTBUILDER_CONFIG_DKIM_VALUE_HINT="v=DKIM1;k=rsa;g=*;s=email;h=sha1;t=s;p=PUBLICKEY" COM_COMPONENTBUILDER_CONFIG_DKIM_VALUE_LABEL="Value" COM_COMPONENTBUILDER_CONFIG_DONT_LOAD="Not" +COM_COMPONENTBUILDER_CONFIG_EDITOR_DESCRIPTION="Select the editor you would like to use as the JCB global editor for all custom coding areas." +COM_COMPONENTBUILDER_CONFIG_EDITOR_LABEL="Select an editor" COM_COMPONENTBUILDER_CONFIG_EMAILFROM_DESCRIPTION="The global email address that will be used to send system email." COM_COMPONENTBUILDER_CONFIG_EMAILFROM_HINT="Email Address Here" COM_COMPONENTBUILDER_CONFIG_EMAILFROM_LABEL=" From Email" @@ -2821,12 +2803,10 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CREATED_DATE_LABEL="Created Date" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CREDIT="Credit" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CREDIT_TWO="Credit 2" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS="Css" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DESCRIPTION="Add your CSS here! [Do not add the style tags]" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DESCRIPTION="Add CSS to the view.css file that will be included in the header of the view. Do not add the style tags." COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT="Css Document" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION="CSS script to the document method." -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_HINT="// add custom CSS script to the document method. You can add in PHP like this: ".$var." " +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_DESCRIPTION="CSS script to the document method. You can add in PHP like this: ".$var."" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_DOCUMENT_LABEL="Custom Script (Document)" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_HINT="// CSS to the view.css" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CSS_LABEL="CSS" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUBE="Cube" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_BUTTON="Custom Button" @@ -2838,7 +2818,7 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_CUSTOM_GET_LABEL="Custom Gets" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DASHBOARD="Dashboard" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DATABASE="Database" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT="Default" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_HINT="// Add the code here." +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_DESCRIPTION="Add the code here." COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DEFAULT_LABEL="Default View" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DELETE="Delete" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_DESCRIPTION="Description" @@ -2918,14 +2898,12 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INPUT_FILTER_LABEL="Select a Filter" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_INT="INT" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_CSS="JavaScript & CSS" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE="Javascript File" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_HINT="// JavaScript for the view that is loaded in the header via a JS file" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_LABEL="Javascript" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_DESCRIPTION="Add JavaScript for the edit view that is loaded in the header of the document via a JS file. Do not add the script tags. PHP does not work in this field/area/file." +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JAVASCRIPT_FILE_LABEL="Javascript (JS file)" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JOOMLA="Joomla" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT="Js Document" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_DESCRIPTION="JS script to the document method." -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_HINT="// add custom JS script to the document method. You can add in PHP like this: ".$var." " -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL="Custom Script (Document)" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_JS_DOCUMENT_LABEL="Custom Script (Document)
add custom JS script to the document method. You can add in PHP like this: ".$var."" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_KEY="Key" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LAMP="Lamp" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_LAST="Last" @@ -3000,32 +2978,25 @@ COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHONE="Phone" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHONE_TWO="Phone 2" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP="PHP" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD="Php Ajaxmethod" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_HINT="// PHP Method that should run in the AJAX Model" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_LABEL="php Ajax Method" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_DESCRIPTION="Add PHP Methods that should run in the AJAX Model. Do not add the php tags." +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_AJAXMETHOD_LABEL="PHP Ajax Methods" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER="Php Controller" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_HINT="// PHP methods for the controller that the button will target" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_DESCRIPTION="Add PHP methods for the controller that the button/s will target. Do not add the php tags." COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_CONTROLLER_LABEL="PHP (controller methods)" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT="Php Document" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION="PHP script to the document method." -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_HINT="// add custom PHP script to the document method." -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL="Custom Script (Document)" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_DESCRIPTION="Add PHP to the document method in the view.html.php file of this view. Do not add the php tags." +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_DOCUMENT_LABEL="PHP document method" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW="Php Jview" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DESCRIPTION="PHP methods for the JViewLegacy class." COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY="Php Jview Display" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION="PHP script for the JViewLegacy display method." -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_HINT="// add custom PHP script to the JViewLegacy display method." +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION="Add custom PHP script to the JViewLegacy display method." COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_DISPLAY_LABEL="Custom Script (JViewLegacy display)" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_HINT="// add custom PHP methods to the JViewLegacy class." -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL="Custom Script (JViewLegacy)" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_JVIEW_LABEL="Custom Methods (JViewLegacy)" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL="Php Model" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_HINT="// PHP methods for the model that the controller will use" +COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_DESCRIPTION="Add PHP methods for the model that the controller will use. Do not add the php tags." COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_MODEL_LABEL="PHP (model methods)" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW="Php View" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_DESCRIPTION="the PHP script that must run in the head of the file." -COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_HINT="// add custom PHP script to head of the file." COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PHP_VIEW_LABEL="Custom Script" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PIE="Pie" COM_COMPONENTBUILDER_CUSTOM_ADMIN_VIEW_PIN="Pin" @@ -3183,8 +3154,7 @@ COM_COMPONENTBUILDER_CUSTOM_CODES_N_ITEMS_UNPUBLISHED_1="%s Custom Code unpublis COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU="Custom Codes Submenu" COM_COMPONENTBUILDER_CUSTOM_CODES_SUBMENU_DESC="Allows the users in this group to update the submenu of the custom code" COM_COMPONENTBUILDER_CUSTOM_CODE_CODE="Code" -COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_DESCRIPTION="Add your code here! [Do not add the placeholders here]" -COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_HINT="// Add your custom code here **Do Not Add The Placeholders Here** it will be added to the code dynamically!" +COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_DESCRIPTION="Add your custom code here. Do Not Add The Placeholders Here, it will be added to the code dynamically!" COM_COMPONENTBUILDER_CUSTOM_CODE_CODE_LABEL="Custom code" COM_COMPONENTBUILDER_CUSTOM_CODE_COMMENT_TYPE="Comment Type" COM_COMPONENTBUILDER_CUSTOM_CODE_COMMENT_TYPE_DESCRIPTION="Select what type of comment is used to mark the placement of this code." @@ -3632,32 +3602,25 @@ COM_COMPONENTBUILDER_DYNAMIC_GET_PAGINATION_LABEL="Add Pagination" COM_COMPONENTBUILDER_DYNAMIC_GET_PERMISSION="Permissions" COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM="Php After Getitem" COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS="Php After Getitems" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS_HINT="// PHP Here that should run in the getItems Method (array) $items is where all values are" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS_LABEL="PHP" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM_HINT="// PHP Here that should run in the getItem Method (Object) $this->_item[$pk] is the item" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM_LABEL="PHP" +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS_DESCRIPTION="Add PHP Here that should run in the getItems Method. Do not add the php tags]" +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEMS_LABEL="PHP getItems Method
Target (array) $items values" +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM_DESCRIPTION="Add PHP Here that should run in the getItem Method. Do not add the php tags." +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_AFTER_GETITEM_LABEL="PHP getItem Method
Target (Object) $this->_item[$pk] is the item" COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM="Php Before Getitem" COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS="Php Before Getitems" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS_HINT="// PHP Here that should run in the getItems Method before the items are loaded." -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS_LABEL="PHP" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM_HINT="// PHP Here that should run in the getItem Method (int) $pk is the item id" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM_LABEL="PHP" +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS_DESCRIPTION="Add PHP Here that should run in the getItems Method before the items are loaded. Do not add the php tags." +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEMS_LABEL="PHP getItems Method" +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM_DESCRIPTION="Add PHP Here that should run in the getItem Method. Do not add the php tags." +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_BEFORE_GETITEM_LABEL="PHP getItem Method
Target (int) $pk is the item id" COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CALCULATION="Php Calculation" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CALCULATION_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CALCULATION_HINT="// PHP to do the calculation on any field." +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CALCULATION_DESCRIPTION="Add PHP to do the calculation on any field. Do not add the php tags." COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CALCULATION_LABEL="get Calculation (Place all calculated/new values in variables with the following naming convention $cal__xxxxxxx)" COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET="Php Custom Get" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_HINT="// Custom PHP that will be added to the method selected above as type." +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_DESCRIPTION="Add Custom PHP that will be added to the method selected above as type. Do not add the php tags." COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_CUSTOM_GET_LABEL="Custom get" COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY="Php Getlistquery" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY_HINT="// PHP Here that should run in the getlistquery Method (to add custom filtering)" -COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY_LABEL="PHP" +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY_DESCRIPTION="Add PHP Here that should run in the getlistquery Method of the model of this view. Do not add the php tags" +COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_GETLISTQUERY_LABEL="PHP getlistquery Method
used to add custom filtering" COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_ROUTER_PARSE="Php Router Parse" COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_ROUTER_PARSE_DESCRIPTION="Add your PHP here! [Do not add the php tags]
Add the php code to override the default JCB implementation of the router parse method for the related view where this dynamicGet is added." COM_COMPONENTBUILDER_DYNAMIC_GET_PHP_ROUTER_PARSE_HINT="// PHP Here that should run in the parse Method -> switch | (array) $segments - the segments of the URL to parse | (array) $vars - the URL attributes to be used by the application." @@ -3933,6 +3896,7 @@ COM_COMPONENTBUILDER_FIELD_ADD_JAVASCRIPT_VIEW_FOOTER_LABEL="Add JavaScript (vie COM_COMPONENTBUILDER_FIELD_BASESIXTY_FOUR="base64" COM_COMPONENTBUILDER_FIELD_BASIC_ENCRYPTION_LOCALDBKEY="Basic Encryption (local-DB-key)" COM_COMPONENTBUILDER_FIELD_BIGINT="BIGINT" +COM_COMPONENTBUILDER_FIELD_BSB_NOT_FOUND_IN_LOCAL_DATABASE_TABLE_S_SO_IMPORTED_OF_ITS_VALUES_FAILED_PLEASE_UPDATE_YOUR_JCB_INSTALL_AND_TRY_AGAIN="Field %s not found in local database table (%s) so imported of its values failed, please update your JCB install and try again." COM_COMPONENTBUILDER_FIELD_CATID_DESCRIPTION="select one of the following categories" COM_COMPONENTBUILDER_FIELD_CATID_LABEL="Category" COM_COMPONENTBUILDER_FIELD_CHAR="CHAR" @@ -3942,11 +3906,9 @@ COM_COMPONENTBUILDER_FIELD_CREATED_DATE_DESC="The date this Field was created." COM_COMPONENTBUILDER_FIELD_CREATED_DATE_LABEL="Created Date" COM_COMPONENTBUILDER_FIELD_CSS_VIEW="Css View" COM_COMPONENTBUILDER_FIELD_CSS_VIEWS="Css Views" -COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_DESCRIPTION="Add your CSS here! [Do not add the style tags]" -COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_HINT="// CSS for the list view" +COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_DESCRIPTION="Add CSS for the list view. Do not add the style tags." COM_COMPONENTBUILDER_FIELD_CSS_VIEWS_LABEL="CSS" -COM_COMPONENTBUILDER_FIELD_CSS_VIEW_DESCRIPTION="Add your CSS here! [Do not add the style tags]" -COM_COMPONENTBUILDER_FIELD_CSS_VIEW_HINT="// CSS for the edit view" +COM_COMPONENTBUILDER_FIELD_CSS_VIEW_DESCRIPTION="Add CSS for the edit view. Do not add the style tags." COM_COMPONENTBUILDER_FIELD_CSS_VIEW_LABEL="CSS" COM_COMPONENTBUILDER_FIELD_CURRENT_TIMESTAMP="CURRENT_TIMESTAMP" COM_COMPONENTBUILDER_FIELD_DATADEFAULT="Datadefault" @@ -3989,13 +3951,11 @@ COM_COMPONENTBUILDER_FIELD_INDEXES="Indexes" COM_COMPONENTBUILDER_FIELD_INDEXES_LABEL="Indexes Type" COM_COMPONENTBUILDER_FIELD_INT="INT" COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER="Javascript Views Footer" -COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]" -COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_HINT="// JavaScript for the list view that is loaded in the footer inside script tags" -COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_LABEL="Javascript" +COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_DESCRIPTION="Add JavaScript for the list view that is loaded in the footer inside script tags. Do not add the script tags." +COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEWS_FOOTER_LABEL="Javascript (list view footer)" COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER="Javascript View Footer" -COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]" -COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_HINT="// JavaScript for the edit view that is loaded in the footer inside script tags" -COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL="Javascript" +COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_DESCRIPTION="Add JavaScript for the edit view that is loaded in the footer inside script tags. Do not add the script tags." +COM_COMPONENTBUILDER_FIELD_JAVASCRIPT_VIEW_FOOTER_LABEL="Javascript (edit view footer)" COM_COMPONENTBUILDER_FIELD_JSON="JSON" COM_COMPONENTBUILDER_FIELD_KEY="KEY" COM_COMPONENTBUILDER_FIELD_LONGTEXT="LONGTEXT" @@ -4531,12 +4491,10 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATED_DATE_LABEL="Created Date" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATUSERHELPER="Creatuserhelper" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CREATUSERHELPER_LABEL="Add Create User Helper Method" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN="Css Admin" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_DESCRIPTION="Add your CSS here! [Do not add the style tags]" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_HINT="// CSS for the entire back-end of your component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_DESCRIPTION="Add CSS for the entire back-end of your component. Do not add the style tags." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_ADMIN_LABEL="CSS (admin)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE="Css Site" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_DESCRIPTION="Add your CSS here! [Do not add the style tags]" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_HINT="// CSS for the entire front-end of your component" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_DESCRIPTION="Add CSS for the entire front-end of your component. Do not add the style tags." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CSS_SITE_LABEL="CSS (site)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_ADMIN_VIEWS="Custom Admin Views" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_CUSTOM_USED_IN_CUSTOM_CODE="Custom (used in custom code)" @@ -4589,8 +4547,7 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMAGE_LABEL="Component Image" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS="Joomla Component Import JCB Packages Button Access" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_IMPORT_JCB_PACKAGES_BUTTON_ACCESS_DESC=" Allows the users in this group to access the import jcb packages button." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT="Javascript" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT_HINT="// JavaScript for the entire back-end" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT_DESCRIPTION="Add JavaScript for the entire back-end. Do not add the script tags." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JAVASCRIPT_LABEL="Javascript" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JCB_EXPORT_PACKAGE_NOTE_DESCRIPTION="The settings below are used when you export this component as a JCB Package, for more info on how this works please review the following tutorial (https://youtu.be/lkE0ZiSWufg)." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_JCB_EXPORT_PACKAGE_NOTE_LABEL="JCB Package Export Settings" @@ -4707,7 +4664,7 @@ Project duration: **###projectWeekTime### weeks** or **###projectMonthTime### mo ## Donations

If you want to support this project, please consider donating:
- * PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief)
+ * PayPal: [paypal.me/asseblief](https://www.paypal.me/asseblief) (Asseblief = Please) in Afrikaans
* Bitcoin: 18vURxYpPFjvNk8BnUy1ovCAyQmY3MzkSf
* Ethereum: 0x9548144662b47327c954f3e214edb96662d51218 " @@ -4731,44 +4688,34 @@ COM_COMPONENTBUILDER_JOOMLA_COMPONENT_OTHER="Other" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PERMISSION="Permissions" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT="Php Admin Event" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_DESCRIPTION="PHP script for the global helper admin event method." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_HINT="// add custom PHP script to the global helper admin event method." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_LABEL="Global Helper Admin Event" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_ADMIN_EVENT_LABEL="Global Helper Admin Event (method)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN="Php Helper Admin" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN_HINT="// The PHP abstract Methods to add to the component helper class. Only Methods! as it will directly be add as methods to the helper class!" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN_LABEL="PHP" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN_DESCRIPTION="Add the PHP abstract Methods to add to the component helper class. Only Methods! as it will directly be add as methods to the helper class! Do not add the php tags." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_ADMIN_LABEL="PHP (admin helper)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_BOTH="Php Helper Both" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_BOTH_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_BOTH_HINT="// The PHP abstract Methods to add to the component helper class. Only Methods! as it will directly be add as methods to the helper class!" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_BOTH_DESCRIPTION="Add The PHP abstract Methods to add to the component helper class. Only Methods! as it will directly be add as methods to the helper class! Do not add the php tags." COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_BOTH_LABEL="PHP (for both admin & site)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE="Php Helper Site" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE_HINT="// The PHP abstract Methods to add to the component helper class. Only Methods! as it will directly be add as methods to the helper class!" -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE_LABEL="PHP" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE_DESCRIPTION="Add the PHP abstract Methods to add to the component helper class. Only Methods! as it will directly be add as methods to the helper class! Do not add the php tags." +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_HELPER_SITE_LABEL="PHP (site helper)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL="Php Method Uninstall" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_DESCRIPTION="PHP script that should run during uninstall." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_HINT="// add custom PHP script that should run during uninstall" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_METHOD_UNINSTALL_LABEL="PHP Method (uninstall)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL="Php Postflight Install" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_DESCRIPTION="PHP script that should run postflight during install." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_HINT="// add custom PHP script that should run during postflight install" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_INSTALL_LABEL="PHP Postflight (install)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE="Php Postflight Update" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_DESCRIPTION="PHP script that should run postflight during update." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_HINT="// add custom PHP script that should run during postflight update" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_POSTFLIGHT_UPDATE_LABEL="PHP Postflight (update)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL="Php Preflight Install" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_DESCRIPTION="PHP script that should run preflight during install." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_HINT="// add custom PHP script that should run during preflight install" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_INSTALL_LABEL="PHP Preflight (install)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE="Php Preflight Update" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_DESCRIPTION="PHP script that should run preflight during update." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_HINT="// add custom PHP script that should run during preflight update" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_PREFLIGHT_UPDATE_LABEL="PHP Preflight (update)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_SITE_EVENT="Php Site Event" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_SITE_EVENT_DESCRIPTION="PHP script for the global helper site event method." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_SITE_EVENT_HINT="// add custom PHP script to the global helper site event method." -COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_SITE_EVENT_LABEL="Global Helper Site Event" +COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PHP_SITE_EVENT_LABEL="Global Helper Site Event (method)" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_PUBLISHING="Publishing" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README="Readme" COM_COMPONENTBUILDER_JOOMLA_COMPONENT_README_LABEL="README.md" @@ -5091,8 +5038,8 @@ COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS="Layout Get Snippets Butt COM_COMPONENTBUILDER_LAYOUT_GET_SNIPPETS_BUTTON_ACCESS_DESC=" Allows the users in this group to access the get snippets button." COM_COMPONENTBUILDER_LAYOUT_ID="Id" COM_COMPONENTBUILDER_LAYOUT_LAYOUT="Layout" -COM_COMPONENTBUILDER_LAYOUT_LAYOUT_HINT="// Add the layout code here. $displayData is the Object that is used inside the layout file to build displayed output" -COM_COMPONENTBUILDER_LAYOUT_LAYOUT_LABEL="Layout" +COM_COMPONENTBUILDER_LAYOUT_LAYOUT_DESCRIPTION="Add the layout code here." +COM_COMPONENTBUILDER_LAYOUT_LAYOUT_LABEL="Layout
$displayData is the Object that is used inside the layout file to build displayed output" COM_COMPONENTBUILDER_LAYOUT_LIBRARIES="Libraries" COM_COMPONENTBUILDER_LAYOUT_LIBRARIES_DESCRIPTION="Select the libraries you want to use here." COM_COMPONENTBUILDER_LAYOUT_LIBRARIES_LABEL="Libraries" @@ -5118,7 +5065,6 @@ COM_COMPONENTBUILDER_LAYOUT_ORDERING_LABEL="Ordering" COM_COMPONENTBUILDER_LAYOUT_PERMISSION="Permissions" COM_COMPONENTBUILDER_LAYOUT_PHP_VIEW="Php View" COM_COMPONENTBUILDER_LAYOUT_PHP_VIEW_DESCRIPTION="the PHP script that must run in the head of the file." -COM_COMPONENTBUILDER_LAYOUT_PHP_VIEW_HINT="// add custom PHP script to head of the file." COM_COMPONENTBUILDER_LAYOUT_PHP_VIEW_LABEL="Custom Script" COM_COMPONENTBUILDER_LAYOUT_PUBLISHING="Publishing" COM_COMPONENTBUILDER_LAYOUT_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Layout to customise the alias." @@ -5542,6 +5488,7 @@ COM_COMPONENTBUILDER_NEW_NOTICE="New Notice" COM_COMPONENTBUILDER_NO="No" COM_COMPONENTBUILDER_NONE_DB="None DB" COM_COMPONENTBUILDER_NONE_SELECTED="None selected" +COM_COMPONENTBUILDER_NOTICE_BOARD="Notice Board" COM_COMPONENTBUILDER_NOTRANSLATION="no-translation" COM_COMPONENTBUILDER_NOT_FOUND_OR_ACCESS_DENIED="Not found or access denied!" COM_COMPONENTBUILDER_NOT_SET="not set" @@ -5941,12 +5888,10 @@ COM_COMPONENTBUILDER_SITE_VIEW_CREATED_DATE_LABEL="Created Date" COM_COMPONENTBUILDER_SITE_VIEW_CREDIT="Credit" COM_COMPONENTBUILDER_SITE_VIEW_CREDIT_TWO="Credit 2" COM_COMPONENTBUILDER_SITE_VIEW_CSS="Css" -COM_COMPONENTBUILDER_SITE_VIEW_CSS_DESCRIPTION="Add your CSS here! [Do not add the style tags]" +COM_COMPONENTBUILDER_SITE_VIEW_CSS_DESCRIPTION="Add CSS to the view.css file that will be included in the header of the view. Do not add the style tags." COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT="Css Document" -COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_DESCRIPTION="CSS script to the document method." -COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_HINT="// add custom CSS script to the document method. You can add in PHP like this: ".$var." " +COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_DESCRIPTION="CSS script to the document method. You can add in PHP like this: ".$var."" COM_COMPONENTBUILDER_SITE_VIEW_CSS_DOCUMENT_LABEL="Custom Script (Document)" -COM_COMPONENTBUILDER_SITE_VIEW_CSS_HINT="// CSS to the view.css" COM_COMPONENTBUILDER_SITE_VIEW_CSS_LABEL="CSS" COM_COMPONENTBUILDER_SITE_VIEW_CUBE="Cube" COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM="Custom" @@ -5959,7 +5904,7 @@ COM_COMPONENTBUILDER_SITE_VIEW_CUSTOM_GET_LABEL="Custom Gets" COM_COMPONENTBUILDER_SITE_VIEW_DASHBOARD="Dashboard" COM_COMPONENTBUILDER_SITE_VIEW_DATABASE="Database" COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT="Default" -COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_HINT="// Add the code here." +COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_DESCRIPTION="Add the code here." COM_COMPONENTBUILDER_SITE_VIEW_DEFAULT_LABEL="Default View" COM_COMPONENTBUILDER_SITE_VIEW_DELETE="Delete" COM_COMPONENTBUILDER_SITE_VIEW_DESCRIPTION="Description" @@ -6036,14 +5981,12 @@ COM_COMPONENTBUILDER_SITE_VIEW_INPUT_FILTER_LABEL="Select a Filter" COM_COMPONENTBUILDER_SITE_VIEW_INT="INT" COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_CSS="JavaScript & CSS" COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE="Javascript File" -COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_DESCRIPTION="Add your JavaScript here! [Do not add the script tags]" -COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_HINT="// JavaScript for the view that is loaded in the header via a JS file" -COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_LABEL="Javascript" +COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_DESCRIPTION="Add JavaScript for the edit view that is loaded in the header of the document via a JS file. Do not add the script tags. PHP does not work in this field/area/file." +COM_COMPONENTBUILDER_SITE_VIEW_JAVASCRIPT_FILE_LABEL="Javascript (JS file)" COM_COMPONENTBUILDER_SITE_VIEW_JOOMLA="Joomla" COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT="Js Document" COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_DESCRIPTION="JS script to the document method." -COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_HINT="// add custom JS script to the document method. You can add in PHP like this: ".$var." " -COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_LABEL="Custom Script (Document)" +COM_COMPONENTBUILDER_SITE_VIEW_JS_DOCUMENT_LABEL="Custom Script (Document)
add custom JS script to the document method. You can add in PHP like this: ".$var."" COM_COMPONENTBUILDER_SITE_VIEW_KEY="Key" COM_COMPONENTBUILDER_SITE_VIEW_LAMP="Lamp" COM_COMPONENTBUILDER_SITE_VIEW_LAST="Last" @@ -6120,32 +6063,25 @@ COM_COMPONENTBUILDER_SITE_VIEW_PHONE="Phone" COM_COMPONENTBUILDER_SITE_VIEW_PHONE_TWO="Phone 2" COM_COMPONENTBUILDER_SITE_VIEW_PHP="PHP" COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD="Php Ajaxmethod" -COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_HINT="// PHP Method that should run in the AJAX Model" -COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_LABEL="php Ajax Method" +COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_DESCRIPTION="Add PHP Methods that should run in the AJAX Model. Do not add the php tags." +COM_COMPONENTBUILDER_SITE_VIEW_PHP_AJAXMETHOD_LABEL="PHP Ajax Methods" COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER="Php Controller" -COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_HINT="// PHP methods for the controller that the button will target" +COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_DESCRIPTION="Add PHP methods for the controller that the button/s will target. Do not add the php tags." COM_COMPONENTBUILDER_SITE_VIEW_PHP_CONTROLLER_LABEL="PHP (controller methods)" COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT="Php Document" -COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_DESCRIPTION="PHP script to the document method." -COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_HINT="// add custom PHP script to the document method." -COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_LABEL="Custom Script (Document)" +COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_DESCRIPTION="Add PHP to the document method in the view.html.php file of this view. Do not add the php tags." +COM_COMPONENTBUILDER_SITE_VIEW_PHP_DOCUMENT_LABEL="PHP document method" COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW="Php Jview" COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DESCRIPTION="PHP methods for the JViewLegacy class." COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY="Php Jview Display" -COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION="PHP script for the JViewLegacy display method." -COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_HINT="// add custom PHP script to the JViewLegacy display method." +COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_DESCRIPTION="Add custom PHP script to the JViewLegacy display method." COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_DISPLAY_LABEL="Custom Script (JViewLegacy display)" -COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_HINT="// add custom PHP methods to the JViewLegacy class." -COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_LABEL="Custom Script (JViewLegacy)" +COM_COMPONENTBUILDER_SITE_VIEW_PHP_JVIEW_LABEL="Custom Methods (JViewLegacy)" COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL="Php Model" -COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_DESCRIPTION="Add your PHP here! [Do not add the php tags]" -COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_HINT="// PHP methods for the model that the controller will use" +COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_DESCRIPTION="Add PHP methods for the model that the controller will use. Do not add the php tags." COM_COMPONENTBUILDER_SITE_VIEW_PHP_MODEL_LABEL="PHP (model methods)" COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW="Php View" COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_DESCRIPTION="the PHP script that must run in the head of the file." -COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_HINT="// add custom PHP script to head of the file." COM_COMPONENTBUILDER_SITE_VIEW_PHP_VIEW_LABEL="Custom Script" COM_COMPONENTBUILDER_SITE_VIEW_PIE="Pie" COM_COMPONENTBUILDER_SITE_VIEW_PIN="Pin" @@ -6481,6 +6417,7 @@ COM_COMPONENTBUILDER_S_BEING_IMPORTED="%s Being Imported" COM_COMPONENTBUILDER_S_NOT_LINKED="%s Not Linked" COM_COMPONENTBUILDER_S_PLEASE_WAIT_THE_COMPONENT_IS_BEING_COMPILED="%s, please wait! The component is being compiled" COM_COMPONENTBUILDER_TAB="Tab" +COM_COMPONENTBUILDER_TABLE_BSB_NOT_FOUND_IN_THE_LOCAL_DATABASE_SO_ITS_VALUES_COULD_NOT_BE_IMPORTED_PLEASE_UPDATE_YOUR_JCB_INSTALL_AND_TRY_AGAIN="Table %s not found in the local database so its values could not be imported, please update your JCB install and try again." COM_COMPONENTBUILDER_TARGET_BEHAVIOUR="Target Behaviour" COM_COMPONENTBUILDER_TARGET_FIELDS="Target Field/s" COM_COMPONENTBUILDER_TARGET_PATH="Target Path" @@ -6586,7 +6523,6 @@ COM_COMPONENTBUILDER_TEMPLATE_ORDERING_LABEL="Ordering" COM_COMPONENTBUILDER_TEMPLATE_PERMISSION="Permissions" COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW="Php View" COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_DESCRIPTION="the PHP script that must run in the head of the file." -COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_HINT="// add custom PHP script to head of the file." COM_COMPONENTBUILDER_TEMPLATE_PHP_VIEW_LABEL="Custom Script" COM_COMPONENTBUILDER_TEMPLATE_PUBLISHING="Publishing" COM_COMPONENTBUILDER_TEMPLATE_SAVE_WARNING="Alias already existed so a number was added at the end. You can re-edit the Template to customise the alias." @@ -6595,7 +6531,7 @@ COM_COMPONENTBUILDER_TEMPLATE_SNIPPET_DESCRIPTION="Select a snippet you would li COM_COMPONENTBUILDER_TEMPLATE_SNIPPET_LABEL="Select a Snippet" COM_COMPONENTBUILDER_TEMPLATE_STATUS="Status" COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE="Template" -COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_HINT="// Add the Template code here." +COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_DESCRIPTION="Add the Template code here." COM_COMPONENTBUILDER_TEMPLATE_TEMPLATE_LABEL="Template" COM_COMPONENTBUILDER_TEMPLATE_VERSION_DESC="A count of the number of times this Template has been revised." COM_COMPONENTBUILDER_TEMPLATE_VERSION_LABEL="Revision" @@ -6796,8 +6732,8 @@ COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_ACCESS_THE_SERVER_DETAILS_BS_ COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_CLONE_A_COMPONENT_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP="You do not have permission to clone a component, please contact your system administrator for more help." COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_IMPORT_A_COMPONENT_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP="You do not have permission to import a component, please contact your system administrator for more help." COM_COMPONENTBUILDER_YOU_DO_NOT_HAVE_PERMISSION_TO_SHARE_THE_SNIPPETS_PLEASE_CONTACT_YOUR_SYSTEM_ADMINISTRATOR_FOR_MORE_HELP="You do not have permission to share the snippets, please contact your system administrator for more help." -COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE="You have %s %s. Adding more then 50 %s is considered bad practice." -COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S="You have %s %s. Adding more then 50 %s is considered bad practice. Your %s page load in JCB will slowdown. You should consider decoupling some of these %s." +COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_S_S_IS_CONSIDERED_BAD_PRACTICE="You have %s %s. Adding more then %s %s is considered bad practice." +COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_S_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S="You have %s %s. Adding more then %s %s is considered bad practice. Your %s page load in JCB will slowdown. You should consider decoupling some of these %s." COM_COMPONENTBUILDER_YOU_MUST_ADD_AN_UNIQUE_FUNCTION_NAME="You must add an unique function name." COM_COMPONENTBUILDER_YOU_MUST_ADD_AN_UNIQUE_VALIDATION_RULE_NAME="You must add an unique validation rule name." COM_COMPONENTBUILDER_YOU_MUST_FIRST_LINK_AN_ADMIN_OR_A_CUSTOM_ADMIN_VIEW_TO_THIS_COMPONENT_THEN_YOU_CAN_SELECT_IT_HERE="You must first link an admin or a custom admin view to this component, then you can select it here" diff --git a/admin/layouts/admin_view/php_fullwidth.php b/admin/layouts/admin_view/php_fullwidth.php index 32637cb57..28262d538 100644 --- a/admin/layouts/admin_view/php_fullwidth.php +++ b/admin/layouts/admin_view/php_fullwidth.php @@ -27,6 +27,8 @@ $fields = $displayData->get('fields') ?: array( 'php_getitems_after_all', 'add_php_getlistquery', 'php_getlistquery', + 'add_php_getform', + 'php_getform', 'add_php_before_save', 'php_before_save', 'add_php_save', diff --git a/admin/layouts/fieldtype/fields_fullwidth.php b/admin/layouts/fieldtype/fields_fullwidth.php index 29a9ee253..dd93e2bda 100644 --- a/admin/layouts/fieldtype/fields_fullwidth.php +++ b/admin/layouts/fieldtype/fields_fullwidth.php @@ -14,7 +14,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->wadfields; +$items = $displayData->waefields; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=fields&task=field.edit"; diff --git a/admin/layouts/server/linked_components_fullwidth.php b/admin/layouts/server/linked_components_fullwidth.php index 1ebc0da63..843ad66fc 100644 --- a/admin/layouts/server/linked_components_fullwidth.php +++ b/admin/layouts/server/linked_components_fullwidth.php @@ -14,7 +14,7 @@ defined('_JEXEC') or die('Restricted access'); // set the defaults -$items = $displayData->wanlinked_components; +$items = $displayData->waolinked_components; $user = JFactory::getUser(); $id = $displayData->item->id; $edit = "index.php?option=com_componentbuilder&view=joomla_components&task=joomla_component.edit"; diff --git a/admin/models/admin_fields.php b/admin/models/admin_fields.php index 1a5ca4e1d..b6e63d1df 100644 --- a/admin/models/admin_fields.php +++ b/admin/models/admin_fields.php @@ -205,7 +205,6 @@ class ComponentbuilderModelAdmin_fields extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/admin_fields_conditions.php b/admin/models/admin_fields_conditions.php index 182c96f78..acaff146c 100644 --- a/admin/models/admin_fields_conditions.php +++ b/admin/models/admin_fields_conditions.php @@ -205,7 +205,6 @@ class ComponentbuilderModelAdmin_fields_conditions extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/admin_fields_relations.php b/admin/models/admin_fields_relations.php index 49fd62aac..60c8adcad 100644 --- a/admin/models/admin_fields_relations.php +++ b/admin/models/admin_fields_relations.php @@ -185,7 +185,6 @@ class ComponentbuilderModelAdmin_fields_relations extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/admin_view.php b/admin/models/admin_view.php index 8b346660e..63f0fd2a0 100644 --- a/admin/models/admin_view.php +++ b/admin/models/admin_view.php @@ -86,6 +86,12 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->metadata = $registry->toArray(); } + if (!empty($item->php_import_headers)) + { + // base64 Decode php_import_headers. + $item->php_import_headers = base64_decode($item->php_import_headers); + } + if (!empty($item->html_import_view)) { // base64 Decode html_import_view. @@ -98,12 +104,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->php_import_save = base64_decode($item->php_import_save); } - if (!empty($item->php_import_headers)) - { - // base64 Decode php_import_headers. - $item->php_import_headers = base64_decode($item->php_import_headers); - } - if (!empty($item->php_getitem)) { // base64 Decode php_getitem. @@ -134,10 +134,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->php_getlistquery = base64_decode($item->php_getlistquery); } - if (!empty($item->php_before_save)) + if (!empty($item->php_getform)) { - // base64 Decode php_before_save. - $item->php_before_save = base64_decode($item->php_before_save); + // base64 Decode php_getform. + $item->php_getform = base64_decode($item->php_getform); } if (!empty($item->css_views)) @@ -146,78 +146,84 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->css_views = base64_decode($item->css_views); } + if (!empty($item->php_before_save)) + { + // base64 Decode php_before_save. + $item->php_before_save = base64_decode($item->php_before_save); + } + if (!empty($item->php_save)) { // base64 Decode php_save. $item->php_save = base64_decode($item->php_save); } - if (!empty($item->php_postsavehook)) - { - // base64 Decode php_postsavehook. - $item->php_postsavehook = base64_decode($item->php_postsavehook); - } - if (!empty($item->javascript_view_file)) { // base64 Decode javascript_view_file. $item->javascript_view_file = base64_decode($item->javascript_view_file); } + if (!empty($item->php_postsavehook)) + { + // base64 Decode php_postsavehook. + $item->php_postsavehook = base64_decode($item->php_postsavehook); + } + if (!empty($item->php_allowedit)) { // base64 Decode php_allowedit. $item->php_allowedit = base64_decode($item->php_allowedit); } - if (!empty($item->php_batchcopy)) - { - // base64 Decode php_batchcopy. - $item->php_batchcopy = base64_decode($item->php_batchcopy); - } - if (!empty($item->javascript_view_footer)) { // base64 Decode javascript_view_footer. $item->javascript_view_footer = base64_decode($item->javascript_view_footer); } + if (!empty($item->php_batchcopy)) + { + // base64 Decode php_batchcopy. + $item->php_batchcopy = base64_decode($item->php_batchcopy); + } + if (!empty($item->php_batchmove)) { // base64 Decode php_batchmove. $item->php_batchmove = base64_decode($item->php_batchmove); } - if (!empty($item->php_before_publish)) - { - // base64 Decode php_before_publish. - $item->php_before_publish = base64_decode($item->php_before_publish); - } - if (!empty($item->javascript_views_file)) { // base64 Decode javascript_views_file. $item->javascript_views_file = base64_decode($item->javascript_views_file); } + if (!empty($item->php_before_publish)) + { + // base64 Decode php_before_publish. + $item->php_before_publish = base64_decode($item->php_before_publish); + } + if (!empty($item->php_after_publish)) { // base64 Decode php_after_publish. $item->php_after_publish = base64_decode($item->php_after_publish); } - if (!empty($item->php_before_delete)) - { - // base64 Decode php_before_delete. - $item->php_before_delete = base64_decode($item->php_before_delete); - } - if (!empty($item->javascript_views_footer)) { // base64 Decode javascript_views_footer. $item->javascript_views_footer = base64_decode($item->javascript_views_footer); } + if (!empty($item->php_before_delete)) + { + // base64 Decode php_before_delete. + $item->php_before_delete = base64_decode($item->php_before_delete); + } + if (!empty($item->php_after_delete)) { // base64 Decode php_after_delete. @@ -236,60 +242,68 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->php_controller = base64_decode($item->php_controller); } - if (!empty($item->sql)) - { - // base64 Decode sql. - $item->sql = base64_decode($item->sql); - } - if (!empty($item->php_model)) { // base64 Decode php_model. $item->php_model = base64_decode($item->php_model); } + if (!empty($item->sql)) + { + // base64 Decode sql. + $item->sql = base64_decode($item->sql); + } + if (!empty($item->php_controller_list)) { // base64 Decode php_controller_list. $item->php_controller_list = base64_decode($item->php_controller_list); } - if (!empty($item->php_import_display)) - { - // base64 Decode php_import_display. - $item->php_import_display = base64_decode($item->php_import_display); - } - if (!empty($item->php_model_list)) { // base64 Decode php_model_list. $item->php_model_list = base64_decode($item->php_model_list); } + if (!empty($item->php_import_display)) + { + // base64 Decode php_import_display. + $item->php_import_display = base64_decode($item->php_import_display); + } + if (!empty($item->php_import)) { // base64 Decode php_import. $item->php_import = base64_decode($item->php_import); } - if (!empty($item->php_import_setdata)) - { - // base64 Decode php_import_setdata. - $item->php_import_setdata = base64_decode($item->php_import_setdata); - } - if (!empty($item->php_ajaxmethod)) { // base64 Decode php_ajaxmethod. $item->php_ajaxmethod = base64_decode($item->php_ajaxmethod); } + if (!empty($item->php_import_setdata)) + { + // base64 Decode php_import_setdata. + $item->php_import_setdata = base64_decode($item->php_import_setdata); + } + if (!empty($item->php_import_ext)) { // base64 Decode php_import_ext. $item->php_import_ext = base64_decode($item->php_import_ext); } + if (!empty($item->addtables)) + { + // Convert the addtables field to an array. + $addtables = new Registry; + $addtables->loadString($item->addtables); + $item->addtables = $addtables->toArray(); + } + if (!empty($item->addpermissions)) { // Convert the addpermissions field to an array. @@ -314,14 +328,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $item->addlinked_views = $addlinked_views->toArray(); } - if (!empty($item->addtables)) - { - // Convert the addtables field to an array. - $addtables = new Registry; - $addtables->loadString($item->addtables); - $item->addtables = $addtables->toArray(); - } - if (!empty($item->alias_builder)) { // Convert the alias_builder field to an array. @@ -500,6 +506,22 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin } } + // update all editors to use this components global editor + $global_editor = JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none'); + // now get all the editor fields + $editors = $form->getXml()->xpath("//field[@type='editor']"); + // check if we found any + if (ComponentbuilderHelper::checkArray($editors)) + { + foreach ($editors as $editor) + { + // get the field names + $name = (string) $editor['name']; + // set the field editor value (with none as fallback) + $form->setFieldAttribute($name, 'editor', $global_editor . '|none'); + } + } + return $form; } @@ -1180,6 +1202,19 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['system_name'] = $data['name_single']; } + // Set the addtables items to data. + if (isset($data['addtables']) && is_array($data['addtables'])) + { + $addtables = new JRegistry; + $addtables->loadArray($data['addtables']); + $data['addtables'] = (string) $addtables; + } + elseif (!isset($data['addtables'])) + { + // Set the empty addtables to data + $data['addtables'] = ''; + } + // Set the addpermissions items to data. if (isset($data['addpermissions']) && is_array($data['addpermissions'])) { @@ -1219,19 +1254,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['addlinked_views'] = ''; } - // Set the addtables items to data. - if (isset($data['addtables']) && is_array($data['addtables'])) - { - $addtables = new JRegistry; - $addtables->loadArray($data['addtables']); - $data['addtables'] = (string) $addtables; - } - elseif (!isset($data['addtables'])) - { - // Set the empty addtables to data - $data['addtables'] = ''; - } - // Set the alias_builder items to data. if (isset($data['alias_builder']) && is_array($data['alias_builder'])) { @@ -1271,6 +1293,12 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['ajax_input'] = ''; } + // Set the php_import_headers string to base64 string. + if (isset($data['php_import_headers'])) + { + $data['php_import_headers'] = base64_encode($data['php_import_headers']); + } + // Set the html_import_view string to base64 string. if (isset($data['html_import_view'])) { @@ -1283,12 +1311,6 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['php_import_save'] = base64_encode($data['php_import_save']); } - // Set the php_import_headers string to base64 string. - if (isset($data['php_import_headers'])) - { - $data['php_import_headers'] = base64_encode($data['php_import_headers']); - } - // Set the php_getitem string to base64 string. if (isset($data['php_getitem'])) { @@ -1319,10 +1341,10 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['php_getlistquery'] = base64_encode($data['php_getlistquery']); } - // Set the php_before_save string to base64 string. - if (isset($data['php_before_save'])) + // Set the php_getform string to base64 string. + if (isset($data['php_getform'])) { - $data['php_before_save'] = base64_encode($data['php_before_save']); + $data['php_getform'] = base64_encode($data['php_getform']); } // Set the css_views string to base64 string. @@ -1331,78 +1353,84 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['css_views'] = base64_encode($data['css_views']); } + // Set the php_before_save string to base64 string. + if (isset($data['php_before_save'])) + { + $data['php_before_save'] = base64_encode($data['php_before_save']); + } + // Set the php_save string to base64 string. if (isset($data['php_save'])) { $data['php_save'] = base64_encode($data['php_save']); } - // Set the php_postsavehook string to base64 string. - if (isset($data['php_postsavehook'])) - { - $data['php_postsavehook'] = base64_encode($data['php_postsavehook']); - } - // Set the javascript_view_file string to base64 string. if (isset($data['javascript_view_file'])) { $data['javascript_view_file'] = base64_encode($data['javascript_view_file']); } + // Set the php_postsavehook string to base64 string. + if (isset($data['php_postsavehook'])) + { + $data['php_postsavehook'] = base64_encode($data['php_postsavehook']); + } + // Set the php_allowedit string to base64 string. if (isset($data['php_allowedit'])) { $data['php_allowedit'] = base64_encode($data['php_allowedit']); } - // Set the php_batchcopy string to base64 string. - if (isset($data['php_batchcopy'])) - { - $data['php_batchcopy'] = base64_encode($data['php_batchcopy']); - } - // Set the javascript_view_footer string to base64 string. if (isset($data['javascript_view_footer'])) { $data['javascript_view_footer'] = base64_encode($data['javascript_view_footer']); } + // Set the php_batchcopy string to base64 string. + if (isset($data['php_batchcopy'])) + { + $data['php_batchcopy'] = base64_encode($data['php_batchcopy']); + } + // Set the php_batchmove string to base64 string. if (isset($data['php_batchmove'])) { $data['php_batchmove'] = base64_encode($data['php_batchmove']); } - // Set the php_before_publish string to base64 string. - if (isset($data['php_before_publish'])) - { - $data['php_before_publish'] = base64_encode($data['php_before_publish']); - } - // Set the javascript_views_file string to base64 string. if (isset($data['javascript_views_file'])) { $data['javascript_views_file'] = base64_encode($data['javascript_views_file']); } + // Set the php_before_publish string to base64 string. + if (isset($data['php_before_publish'])) + { + $data['php_before_publish'] = base64_encode($data['php_before_publish']); + } + // Set the php_after_publish string to base64 string. if (isset($data['php_after_publish'])) { $data['php_after_publish'] = base64_encode($data['php_after_publish']); } - // Set the php_before_delete string to base64 string. - if (isset($data['php_before_delete'])) - { - $data['php_before_delete'] = base64_encode($data['php_before_delete']); - } - // Set the javascript_views_footer string to base64 string. if (isset($data['javascript_views_footer'])) { $data['javascript_views_footer'] = base64_encode($data['javascript_views_footer']); } + // Set the php_before_delete string to base64 string. + if (isset($data['php_before_delete'])) + { + $data['php_before_delete'] = base64_encode($data['php_before_delete']); + } + // Set the php_after_delete string to base64 string. if (isset($data['php_after_delete'])) { @@ -1421,54 +1449,54 @@ class ComponentbuilderModelAdmin_view extends JModelAdmin $data['php_controller'] = base64_encode($data['php_controller']); } - // Set the sql string to base64 string. - if (isset($data['sql'])) - { - $data['sql'] = base64_encode($data['sql']); - } - // Set the php_model string to base64 string. if (isset($data['php_model'])) { $data['php_model'] = base64_encode($data['php_model']); } + // Set the sql string to base64 string. + if (isset($data['sql'])) + { + $data['sql'] = base64_encode($data['sql']); + } + // Set the php_controller_list string to base64 string. if (isset($data['php_controller_list'])) { $data['php_controller_list'] = base64_encode($data['php_controller_list']); } - // Set the php_import_display string to base64 string. - if (isset($data['php_import_display'])) - { - $data['php_import_display'] = base64_encode($data['php_import_display']); - } - // Set the php_model_list string to base64 string. if (isset($data['php_model_list'])) { $data['php_model_list'] = base64_encode($data['php_model_list']); } + // Set the php_import_display string to base64 string. + if (isset($data['php_import_display'])) + { + $data['php_import_display'] = base64_encode($data['php_import_display']); + } + // Set the php_import string to base64 string. if (isset($data['php_import'])) { $data['php_import'] = base64_encode($data['php_import']); } - // Set the php_import_setdata string to base64 string. - if (isset($data['php_import_setdata'])) - { - $data['php_import_setdata'] = base64_encode($data['php_import_setdata']); - } - // Set the php_ajaxmethod string to base64 string. if (isset($data['php_ajaxmethod'])) { $data['php_ajaxmethod'] = base64_encode($data['php_ajaxmethod']); } + // Set the php_import_setdata string to base64 string. + if (isset($data['php_import_setdata'])) + { + $data['php_import_setdata'] = base64_encode($data['php_import_setdata']); + } + // Set the php_import_ext string to base64 string. if (isset($data['php_import_ext'])) { diff --git a/admin/models/admin_views.php b/admin/models/admin_views.php index 73ff4638d..099600954 100644 --- a/admin/models/admin_views.php +++ b/admin/models/admin_views.php @@ -244,12 +244,12 @@ class ComponentbuilderModelAdmin_views extends JModelList continue; } + // decode php_import_headers + $item->php_import_headers = base64_decode($item->php_import_headers); // decode html_import_view $item->html_import_view = base64_decode($item->html_import_view); // decode php_import_save $item->php_import_save = base64_decode($item->php_import_save); - // decode php_import_headers - $item->php_import_headers = base64_decode($item->php_import_headers); // decode php_getitem $item->php_getitem = base64_decode($item->php_getitem); // decode php_getitems @@ -260,56 +260,58 @@ class ComponentbuilderModelAdmin_views extends JModelList $item->css_view = base64_decode($item->css_view); // decode php_getlistquery $item->php_getlistquery = base64_decode($item->php_getlistquery); - // decode php_before_save - $item->php_before_save = base64_decode($item->php_before_save); + // decode php_getform + $item->php_getform = base64_decode($item->php_getform); // decode css_views $item->css_views = base64_decode($item->css_views); + // decode php_before_save + $item->php_before_save = base64_decode($item->php_before_save); // decode php_save $item->php_save = base64_decode($item->php_save); - // decode php_postsavehook - $item->php_postsavehook = base64_decode($item->php_postsavehook); // decode javascript_view_file $item->javascript_view_file = base64_decode($item->javascript_view_file); + // decode php_postsavehook + $item->php_postsavehook = base64_decode($item->php_postsavehook); // decode php_allowedit $item->php_allowedit = base64_decode($item->php_allowedit); - // decode php_batchcopy - $item->php_batchcopy = base64_decode($item->php_batchcopy); // decode javascript_view_footer $item->javascript_view_footer = base64_decode($item->javascript_view_footer); + // decode php_batchcopy + $item->php_batchcopy = base64_decode($item->php_batchcopy); // decode php_batchmove $item->php_batchmove = base64_decode($item->php_batchmove); - // decode php_before_publish - $item->php_before_publish = base64_decode($item->php_before_publish); // decode javascript_views_file $item->javascript_views_file = base64_decode($item->javascript_views_file); + // decode php_before_publish + $item->php_before_publish = base64_decode($item->php_before_publish); // decode php_after_publish $item->php_after_publish = base64_decode($item->php_after_publish); - // decode php_before_delete - $item->php_before_delete = base64_decode($item->php_before_delete); // decode javascript_views_footer $item->javascript_views_footer = base64_decode($item->javascript_views_footer); + // decode php_before_delete + $item->php_before_delete = base64_decode($item->php_before_delete); // decode php_after_delete $item->php_after_delete = base64_decode($item->php_after_delete); // decode php_document $item->php_document = base64_decode($item->php_document); // decode php_controller $item->php_controller = base64_decode($item->php_controller); - // decode sql - $item->sql = base64_decode($item->sql); // decode php_model $item->php_model = base64_decode($item->php_model); + // decode sql + $item->sql = base64_decode($item->sql); // decode php_controller_list $item->php_controller_list = base64_decode($item->php_controller_list); - // decode php_import_display - $item->php_import_display = base64_decode($item->php_import_display); // decode php_model_list $item->php_model_list = base64_decode($item->php_model_list); + // decode php_import_display + $item->php_import_display = base64_decode($item->php_import_display); // decode php_import $item->php_import = base64_decode($item->php_import); - // decode php_import_setdata - $item->php_import_setdata = base64_decode($item->php_import_setdata); // decode php_ajaxmethod $item->php_ajaxmethod = base64_decode($item->php_ajaxmethod); + // decode php_import_setdata + $item->php_import_setdata = base64_decode($item->php_import_setdata); // decode php_import_ext $item->php_import_ext = base64_decode($item->php_import_ext); // unset the values we don't want exported. diff --git a/admin/models/ajax.php b/admin/models/ajax.php index 0796869ff..c7e03c5c7 100644 --- a/admin/models/ajax.php +++ b/admin/models/ajax.php @@ -193,7 +193,7 @@ class ComponentbuilderModelAjax extends JModelList } return $result; } - + protected function hasCurl() { return function_exists('curl_version'); @@ -233,24 +233,29 @@ class ComponentbuilderModelAjax extends JModelList return false; } + protected $rowNumbers = array( + 'admin_fields_conditions' => 80, + 'admin_fields' => 50 + ); + protected $buttonArray = array( - 'library_config' => 'libraries_config', - 'library_files_folders_urls' => 'libraries_files_folders_urls', - 'admin_fields' => 'admins_fields', - 'admin_fields_conditions' => 'admins_fields_conditions', - 'admin_fields_relations' => 'admins_fields_relations', - 'validation_rule' => 'validation_rules', - 'field' => 'fields', - 'component_admin_views' => 'components_admin_views' , - 'component_site_views' => 'components_site_views', - 'component_custom_admin_views' => 'components_custom_views', - 'component_updates' => 'components_updates', - 'component_mysql_tweaks' => 'components_mysql_tweaks', - 'component_custom_admin_menus' => 'components_custom_admin_menus', - 'component_config' => 'components_config', - 'component_dashboard' => 'components_dashboard', - 'component_files_folders' => 'components_files_folders', - 'language' => true); + 'library_config' => 'libraries_config', + 'library_files_folders_urls' => 'libraries_files_folders_urls', + 'admin_fields' => 'admins_fields', + 'admin_fields_conditions' => 'admins_fields_conditions', + 'admin_fields_relations' => 'admins_fields_relations', + 'validation_rule' => 'validation_rules', + 'field' => 'fields', + 'component_admin_views' => 'components_admin_views' , + 'component_site_views' => 'components_site_views', + 'component_custom_admin_views' => 'components_custom_views', + 'component_updates' => 'components_updates', + 'component_mysql_tweaks' => 'components_mysql_tweaks', + 'component_custom_admin_menus' => 'components_custom_admin_menus', + 'component_config' => 'components_config', + 'component_dashboard' => 'components_dashboard', + 'component_files_folders' => 'components_files_folders', + 'language' => true); public function getButton($type, $size) { @@ -702,15 +707,17 @@ class ComponentbuilderModelAjax extends JModelList $this->checkRepeatableConversion($fieldsData, $fieldName, $id, $idName); // get the table $table = $this->getSubformTable($type, $fieldsData); + // get row number + $number = (isset($this->rowNumbers[$type]) && $this->rowNumbers[$type]) ? $this->rowNumbers[$type] : false; // set notice of bad practice $notice = ''; - if ($idName === 'admin_view' && isset($this->rowNumber) && $this->rowNumber > 50) + if ($number && isset($this->rowNumber) && $this->rowNumber > $number) { - $notice = '
' . JText::sprintf('COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S', $this->rowNumber, $typeName, $typeName, $typeName, $typeName) . '
'; + $notice = '
' . JText::sprintf('COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_S_S_IS_CONSIDERED_BAD_PRACTICE_YOUR_S_PAGE_LOAD_IN_JCB_WILL_SLOWDOWN_YOU_SHOULD_CONSIDER_DECOUPLING_SOME_OF_THESE_S', $this->rowNumber, $typeName, $number, $typeName, $typeName, $typeName) . '
'; } - elseif ($idName === 'admin_view' && isset($this->rowNumber)) + elseif ($number && isset($this->rowNumber)) { - $notice = '
' . JText::sprintf('COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_FIFTY_S_IS_CONSIDERED_BAD_PRACTICE', $this->rowNumber, $typeName, $typeName) . '
'; + $notice = '
' . JText::sprintf('COM_COMPONENTBUILDER_YOU_HAVE_S_S_ADDING_MORE_THEN_S_S_IS_CONSIDERED_BAD_PRACTICE', $this->rowNumber, $typeName, $number, $typeName) . '
'; } // return table return $notice.$table; @@ -2110,7 +2117,7 @@ class ComponentbuilderModelAjax extends JModelList 'php_after_delete','php_after_publish','php_ajaxmethod','php_allowedit','php_batchcopy', 'php_batchmove','php_before_delete','php_before_publish','php_before_save','php_controller', 'php_controller_list','php_document','php_getitem','php_getitems','php_getitems_after_all', - 'php_getlistquery','php_import','php_import_display','php_import_ext','php_import_headers', + 'php_getlistquery','php_import','php_import_display','php_import_ext','php_import_headers','php_getform', 'php_import_save','php_import_setdata','php_model','php_model_list','php_postsavehook','php_save'); $targets['admin_view']['view'] = 'admin_views'; $targets['admin_view']['not_base64'] = array(); diff --git a/admin/models/component_admin_views.php b/admin/models/component_admin_views.php index b43ae277a..2991135a5 100644 --- a/admin/models/component_admin_views.php +++ b/admin/models/component_admin_views.php @@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_admin_views extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/component_config.php b/admin/models/component_config.php index 55683e1ff..ca398cd29 100644 --- a/admin/models/component_config.php +++ b/admin/models/component_config.php @@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_config extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/component_custom_admin_menus.php b/admin/models/component_custom_admin_menus.php index 261501f6d..3bc75b7e1 100644 --- a/admin/models/component_custom_admin_menus.php +++ b/admin/models/component_custom_admin_menus.php @@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_custom_admin_menus extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/component_custom_admin_views.php b/admin/models/component_custom_admin_views.php index 5a5bc8d3f..c8bee38c5 100644 --- a/admin/models/component_custom_admin_views.php +++ b/admin/models/component_custom_admin_views.php @@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_custom_admin_views extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/component_dashboard.php b/admin/models/component_dashboard.php index 99ac42e4e..f35f918af 100644 --- a/admin/models/component_dashboard.php +++ b/admin/models/component_dashboard.php @@ -222,7 +222,6 @@ class ComponentbuilderModelComponent_dashboard extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/component_files_folders.php b/admin/models/component_files_folders.php index 5a7c7d138..7b323428e 100644 --- a/admin/models/component_files_folders.php +++ b/admin/models/component_files_folders.php @@ -241,7 +241,6 @@ class ComponentbuilderModelComponent_files_folders extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/component_mysql_tweaks.php b/admin/models/component_mysql_tweaks.php index fe94e30a0..7841ff435 100644 --- a/admin/models/component_mysql_tweaks.php +++ b/admin/models/component_mysql_tweaks.php @@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_mysql_tweaks extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/component_site_views.php b/admin/models/component_site_views.php index 8f085e8bd..d0be872db 100644 --- a/admin/models/component_site_views.php +++ b/admin/models/component_site_views.php @@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_site_views extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/component_updates.php b/admin/models/component_updates.php index 50f7e8228..53ef224f4 100644 --- a/admin/models/component_updates.php +++ b/admin/models/component_updates.php @@ -216,7 +216,6 @@ class ComponentbuilderModelComponent_updates extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/custom_admin_view.php b/admin/models/custom_admin_view.php index 8d9acce65..64a725a23 100644 --- a/admin/models/custom_admin_view.php +++ b/admin/models/custom_admin_view.php @@ -327,6 +327,22 @@ class ComponentbuilderModelCustom_admin_view extends JModelAdmin } } + // update all editors to use this components global editor + $global_editor = JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none'); + // now get all the editor fields + $editors = $form->getXml()->xpath("//field[@type='editor']"); + // check if we found any + if (ComponentbuilderHelper::checkArray($editors)) + { + foreach ($editors as $editor) + { + // get the field names + $name = (string) $editor['name']; + // set the field editor value (with none as fallback) + $form->setFieldAttribute($name, 'editor', $global_editor . '|none'); + } + } + return $form; } diff --git a/admin/models/custom_code.php b/admin/models/custom_code.php index 7c8e3959b..fdcbaab2f 100644 --- a/admin/models/custom_code.php +++ b/admin/models/custom_code.php @@ -184,6 +184,22 @@ class ComponentbuilderModelCustom_code extends JModelAdmin } } + // update all editors to use this components global editor + $global_editor = JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none'); + // now get all the editor fields + $editors = $form->getXml()->xpath("//field[@type='editor']"); + // check if we found any + if (ComponentbuilderHelper::checkArray($editors)) + { + foreach ($editors as $editor) + { + // get the field names + $name = (string) $editor['name']; + // set the field editor value (with none as fallback) + $form->setFieldAttribute($name, 'editor', $global_editor . '|none'); + } + } + return $form; } diff --git a/admin/models/dynamic_get.php b/admin/models/dynamic_get.php index 23cdea082..cefcf9b82 100644 --- a/admin/models/dynamic_get.php +++ b/admin/models/dynamic_get.php @@ -334,6 +334,22 @@ class ComponentbuilderModelDynamic_get extends JModelAdmin } } + // update all editors to use this components global editor + $global_editor = JComponentHelper::getParams('com_componentbuilder')->get('editor', 'none'); + // now get all the editor fields + $editors = $form->getXml()->xpath("//field[@type='editor']"); + // check if we found any + if (ComponentbuilderHelper::checkArray($editors)) + { + foreach ($editors as $editor) + { + // get the field names + $name = (string) $editor['name']; + // set the field editor value (with none as fallback) + $form->setFieldAttribute($name, 'editor', $global_editor . '|none'); + } + } + return $form; } diff --git a/admin/models/field.php b/admin/models/field.php index ce4d851e4..857610325 100644 --- a/admin/models/field.php +++ b/admin/models/field.php @@ -231,7 +231,6 @@ class ComponentbuilderModelField extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/fieldtype.php b/admin/models/fieldtype.php index 033170b8d..49791e0dd 100644 --- a/admin/models/fieldtype.php +++ b/admin/models/fieldtype.php @@ -125,7 +125,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return mixed An array of data items on success, false on failure. */ - public function getWadfields() + public function getWaefields() { // Get the user object. $user = JFactory::getUser(); @@ -207,13 +207,13 @@ class ComponentbuilderModelFieldtype extends JModelAdmin foreach ($items as $nr => &$item) { // convert datatype - $item->datatype = $this->selectionTranslationWadfields($item->datatype, 'datatype'); + $item->datatype = $this->selectionTranslationWaefields($item->datatype, 'datatype'); // convert indexes - $item->indexes = $this->selectionTranslationWadfields($item->indexes, 'indexes'); + $item->indexes = $this->selectionTranslationWaefields($item->indexes, 'indexes'); // convert null_switch - $item->null_switch = $this->selectionTranslationWadfields($item->null_switch, 'null_switch'); + $item->null_switch = $this->selectionTranslationWaefields($item->null_switch, 'null_switch'); // convert store - $item->store = $this->selectionTranslationWadfields($item->store, 'store'); + $item->store = $this->selectionTranslationWaefields($item->store, 'store'); } } @@ -227,7 +227,7 @@ class ComponentbuilderModelFieldtype extends JModelAdmin * * @return translatable string */ - public function selectionTranslationWadfields($value,$name) + public function selectionTranslationWaefields($value,$name) { // Array of datatype language strings if ($name === 'datatype') @@ -450,7 +450,6 @@ class ComponentbuilderModelFieldtype extends JModelAdmin $form->setValue($redirectedField, null, $redirectedValue); } } - return $form; } diff --git a/admin/models/forms/admin_view.js b/admin/models/forms/admin_view.js index 907b9adbe..23c22d172 100644 --- a/admin/models/forms/admin_view.js +++ b/admin/models/forms/admin_view.js @@ -33,17 +33,18 @@ jform_vvvvvxuvxi_required = false; jform_vvvvvxvvxj_required = false; jform_vvvvvxwvxk_required = false; jform_vvvvvxxvxl_required = false; -jform_vvvvvybvxm_required = false; -jform_vvvvvybvxn_required = false; -jform_vvvvvybvxo_required = false; -jform_vvvvvybvxp_required = false; -jform_vvvvvybvxq_required = false; -jform_vvvvvybvxr_required = false; -jform_vvvvvybvxs_required = false; -jform_vvvvvydvxt_required = false; -jform_vvvvvydvxu_required = false; -jform_vvvvvydvxv_required = false; -jform_vvvvvydvxw_required = false; +jform_vvvvvxyvxm_required = false; +jform_vvvvvycvxn_required = false; +jform_vvvvvycvxo_required = false; +jform_vvvvvycvxp_required = false; +jform_vvvvvycvxq_required = false; +jform_vvvvvycvxr_required = false; +jform_vvvvvycvxs_required = false; +jform_vvvvvycvxt_required = false; +jform_vvvvvyevxu_required = false; +jform_vvvvvyevxv_required = false; +jform_vvvvvyevxw_required = false; +jform_vvvvvyevxx_required = false; // Initial Script jQuery(document).ready(function() @@ -81,58 +82,61 @@ jQuery(document).ready(function() var add_php_getlistquery_vvvvvxk = jQuery("#jform_add_php_getlistquery input[type='radio']:checked").val(); vvvvvxk(add_php_getlistquery_vvvvvxk); - var add_php_before_save_vvvvvxl = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); - vvvvvxl(add_php_before_save_vvvvvxl); + var add_php_getform_vvvvvxl = jQuery("#jform_add_php_getform input[type='radio']:checked").val(); + vvvvvxl(add_php_getform_vvvvvxl); - var add_php_save_vvvvvxm = jQuery("#jform_add_php_save input[type='radio']:checked").val(); - vvvvvxm(add_php_save_vvvvvxm); + var add_php_before_save_vvvvvxm = jQuery("#jform_add_php_before_save input[type='radio']:checked").val(); + vvvvvxm(add_php_before_save_vvvvvxm); - var add_php_postsavehook_vvvvvxn = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); - vvvvvxn(add_php_postsavehook_vvvvvxn); + var add_php_save_vvvvvxn = jQuery("#jform_add_php_save input[type='radio']:checked").val(); + vvvvvxn(add_php_save_vvvvvxn); - var add_php_allowedit_vvvvvxo = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); - vvvvvxo(add_php_allowedit_vvvvvxo); + var add_php_postsavehook_vvvvvxo = jQuery("#jform_add_php_postsavehook input[type='radio']:checked").val(); + vvvvvxo(add_php_postsavehook_vvvvvxo); - var add_php_batchcopy_vvvvvxp = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); - vvvvvxp(add_php_batchcopy_vvvvvxp); + var add_php_allowedit_vvvvvxp = jQuery("#jform_add_php_allowedit input[type='radio']:checked").val(); + vvvvvxp(add_php_allowedit_vvvvvxp); - var add_php_batchmove_vvvvvxq = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); - vvvvvxq(add_php_batchmove_vvvvvxq); + var add_php_batchcopy_vvvvvxq = jQuery("#jform_add_php_batchcopy input[type='radio']:checked").val(); + vvvvvxq(add_php_batchcopy_vvvvvxq); - var add_php_before_publish_vvvvvxr = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); - vvvvvxr(add_php_before_publish_vvvvvxr); + var add_php_batchmove_vvvvvxr = jQuery("#jform_add_php_batchmove input[type='radio']:checked").val(); + vvvvvxr(add_php_batchmove_vvvvvxr); - var add_php_after_publish_vvvvvxs = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); - vvvvvxs(add_php_after_publish_vvvvvxs); + var add_php_before_publish_vvvvvxs = jQuery("#jform_add_php_before_publish input[type='radio']:checked").val(); + vvvvvxs(add_php_before_publish_vvvvvxs); - var add_php_before_delete_vvvvvxt = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); - vvvvvxt(add_php_before_delete_vvvvvxt); + var add_php_after_publish_vvvvvxt = jQuery("#jform_add_php_after_publish input[type='radio']:checked").val(); + vvvvvxt(add_php_after_publish_vvvvvxt); - var add_php_after_delete_vvvvvxu = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); - vvvvvxu(add_php_after_delete_vvvvvxu); + var add_php_before_delete_vvvvvxu = jQuery("#jform_add_php_before_delete input[type='radio']:checked").val(); + vvvvvxu(add_php_before_delete_vvvvvxu); - var add_php_document_vvvvvxv = jQuery("#jform_add_php_document input[type='radio']:checked").val(); - vvvvvxv(add_php_document_vvvvvxv); + var add_php_after_delete_vvvvvxv = jQuery("#jform_add_php_after_delete input[type='radio']:checked").val(); + vvvvvxv(add_php_after_delete_vvvvvxv); - var add_sql_vvvvvxw = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxw(add_sql_vvvvvxw); + var add_php_document_vvvvvxw = jQuery("#jform_add_php_document input[type='radio']:checked").val(); + vvvvvxw(add_php_document_vvvvvxw); - var source_vvvvvxx = jQuery("#jform_source input[type='radio']:checked").val(); var add_sql_vvvvvxx = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxx(source_vvvvvxx,add_sql_vvvvvxx); + vvvvvxx(add_sql_vvvvvxx); - var source_vvvvvxz = jQuery("#jform_source input[type='radio']:checked").val(); - var add_sql_vvvvvxz = jQuery("#jform_add_sql input[type='radio']:checked").val(); - vvvvvxz(source_vvvvvxz,add_sql_vvvvvxz); + var source_vvvvvxy = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvxy = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvxy(source_vvvvvxy,add_sql_vvvvvxy); - var add_custom_import_vvvvvyb = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); - vvvvvyb(add_custom_import_vvvvvyb); + var source_vvvvvya = jQuery("#jform_source input[type='radio']:checked").val(); + var add_sql_vvvvvya = jQuery("#jform_add_sql input[type='radio']:checked").val(); + vvvvvya(source_vvvvvya,add_sql_vvvvvya); var add_custom_import_vvvvvyc = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); vvvvvyc(add_custom_import_vvvvvyc); - var add_custom_button_vvvvvyd = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); - vvvvvyd(add_custom_button_vvvvvyd); + var add_custom_import_vvvvvyd = jQuery("#jform_add_custom_import input[type='radio']:checked").val(); + vvvvvyd(add_custom_import_vvvvvyd); + + var add_custom_button_vvvvvye = jQuery("#jform_add_custom_button input[type='radio']:checked").val(); + vvvvvye(add_custom_button_vvvvvye); }); // the vvvvvxa function @@ -141,7 +145,7 @@ function vvvvvxa(add_css_view_vvvvvxa) // set the function logic if (add_css_view_vvvvvxa == 1) { - jQuery('#jform_css_view').closest('.control-group').show(); + jQuery('#jform_css_view-lbl').closest('.control-group').show(); if (jform_vvvvvxavwo_required) { updateFieldRequired('css_view',0); @@ -154,7 +158,7 @@ function vvvvvxa(add_css_view_vvvvvxa) } else { - jQuery('#jform_css_view').closest('.control-group').hide(); + jQuery('#jform_css_view-lbl').closest('.control-group').hide(); if (!jform_vvvvvxavwo_required) { updateFieldRequired('css_view',1); @@ -172,7 +176,7 @@ function vvvvvxb(add_css_views_vvvvvxb) // set the function logic if (add_css_views_vvvvvxb == 1) { - jQuery('#jform_css_views').closest('.control-group').show(); + jQuery('#jform_css_views-lbl').closest('.control-group').show(); if (jform_vvvvvxbvwp_required) { updateFieldRequired('css_views',0); @@ -185,7 +189,7 @@ function vvvvvxb(add_css_views_vvvvvxb) } else { - jQuery('#jform_css_views').closest('.control-group').hide(); + jQuery('#jform_css_views-lbl').closest('.control-group').hide(); if (!jform_vvvvvxbvwp_required) { updateFieldRequired('css_views',1); @@ -203,7 +207,7 @@ function vvvvvxc(add_javascript_view_file_vvvvvxc) // set the function logic if (add_javascript_view_file_vvvvvxc == 1) { - jQuery('#jform_javascript_view_file').closest('.control-group').show(); + jQuery('#jform_javascript_view_file-lbl').closest('.control-group').show(); if (jform_vvvvvxcvwq_required) { updateFieldRequired('javascript_view_file',0); @@ -216,7 +220,7 @@ function vvvvvxc(add_javascript_view_file_vvvvvxc) } else { - jQuery('#jform_javascript_view_file').closest('.control-group').hide(); + jQuery('#jform_javascript_view_file-lbl').closest('.control-group').hide(); if (!jform_vvvvvxcvwq_required) { updateFieldRequired('javascript_view_file',1); @@ -234,7 +238,7 @@ function vvvvvxd(add_javascript_views_file_vvvvvxd) // set the function logic if (add_javascript_views_file_vvvvvxd == 1) { - jQuery('#jform_javascript_views_file').closest('.control-group').show(); + jQuery('#jform_javascript_views_file-lbl').closest('.control-group').show(); if (jform_vvvvvxdvwr_required) { updateFieldRequired('javascript_views_file',0); @@ -247,7 +251,7 @@ function vvvvvxd(add_javascript_views_file_vvvvvxd) } else { - jQuery('#jform_javascript_views_file').closest('.control-group').hide(); + jQuery('#jform_javascript_views_file-lbl').closest('.control-group').hide(); if (!jform_vvvvvxdvwr_required) { updateFieldRequired('javascript_views_file',1); @@ -265,7 +269,7 @@ function vvvvvxe(add_javascript_view_footer_vvvvvxe) // set the function logic if (add_javascript_view_footer_vvvvvxe == 1) { - jQuery('#jform_javascript_view_footer').closest('.control-group').show(); + jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').show(); if (jform_vvvvvxevws_required) { updateFieldRequired('javascript_view_footer',0); @@ -278,7 +282,7 @@ function vvvvvxe(add_javascript_view_footer_vvvvvxe) } else { - jQuery('#jform_javascript_view_footer').closest('.control-group').hide(); + jQuery('#jform_javascript_view_footer-lbl').closest('.control-group').hide(); if (!jform_vvvvvxevws_required) { updateFieldRequired('javascript_view_footer',1); @@ -296,7 +300,7 @@ function vvvvvxf(add_javascript_views_footer_vvvvvxf) // set the function logic if (add_javascript_views_footer_vvvvvxf == 1) { - jQuery('#jform_javascript_views_footer').closest('.control-group').show(); + jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').show(); if (jform_vvvvvxfvwt_required) { updateFieldRequired('javascript_views_footer',0); @@ -309,7 +313,7 @@ function vvvvvxf(add_javascript_views_footer_vvvvvxf) } else { - jQuery('#jform_javascript_views_footer').closest('.control-group').hide(); + jQuery('#jform_javascript_views_footer-lbl').closest('.control-group').hide(); if (!jform_vvvvvxfvwt_required) { updateFieldRequired('javascript_views_footer',1); @@ -328,7 +332,7 @@ function vvvvvxg(add_php_ajax_vvvvvxg) if (add_php_ajax_vvvvvxg == 1) { jQuery('#jform_ajax_input-lbl').closest('.control-group').show(); - jQuery('#jform_php_ajaxmethod').closest('.control-group').show(); + jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').show(); if (jform_vvvvvxgvwu_required) { updateFieldRequired('php_ajaxmethod',0); @@ -342,7 +346,7 @@ function vvvvvxg(add_php_ajax_vvvvvxg) else { jQuery('#jform_ajax_input-lbl').closest('.control-group').hide(); - jQuery('#jform_php_ajaxmethod').closest('.control-group').hide(); + jQuery('#jform_php_ajaxmethod-lbl').closest('.control-group').hide(); if (!jform_vvvvvxgvwu_required) { updateFieldRequired('php_ajaxmethod',1); @@ -360,7 +364,7 @@ function vvvvvxh(add_php_getitem_vvvvvxh) // set the function logic if (add_php_getitem_vvvvvxh == 1) { - jQuery('#jform_php_getitem').closest('.control-group').show(); + jQuery('#jform_php_getitem-lbl').closest('.control-group').show(); if (jform_vvvvvxhvwv_required) { updateFieldRequired('php_getitem',0); @@ -373,7 +377,7 @@ function vvvvvxh(add_php_getitem_vvvvvxh) } else { - jQuery('#jform_php_getitem').closest('.control-group').hide(); + jQuery('#jform_php_getitem-lbl').closest('.control-group').hide(); if (!jform_vvvvvxhvwv_required) { updateFieldRequired('php_getitem',1); @@ -391,7 +395,7 @@ function vvvvvxi(add_php_getitems_vvvvvxi) // set the function logic if (add_php_getitems_vvvvvxi == 1) { - jQuery('#jform_php_getitems').closest('.control-group').show(); + jQuery('#jform_php_getitems-lbl').closest('.control-group').show(); if (jform_vvvvvxivww_required) { updateFieldRequired('php_getitems',0); @@ -404,7 +408,7 @@ function vvvvvxi(add_php_getitems_vvvvvxi) } else { - jQuery('#jform_php_getitems').closest('.control-group').hide(); + jQuery('#jform_php_getitems-lbl').closest('.control-group').hide(); if (!jform_vvvvvxivww_required) { updateFieldRequired('php_getitems',1); @@ -422,7 +426,7 @@ function vvvvvxj(add_php_getitems_after_all_vvvvvxj) // set the function logic if (add_php_getitems_after_all_vvvvvxj == 1) { - jQuery('#jform_php_getitems_after_all').closest('.control-group').show(); + jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').show(); if (jform_vvvvvxjvwx_required) { updateFieldRequired('php_getitems_after_all',0); @@ -435,7 +439,7 @@ function vvvvvxj(add_php_getitems_after_all_vvvvvxj) } else { - jQuery('#jform_php_getitems_after_all').closest('.control-group').hide(); + jQuery('#jform_php_getitems_after_all-lbl').closest('.control-group').hide(); if (!jform_vvvvvxjvwx_required) { updateFieldRequired('php_getitems_after_all',1); @@ -453,7 +457,7 @@ function vvvvvxk(add_php_getlistquery_vvvvvxk) // set the function logic if (add_php_getlistquery_vvvvvxk == 1) { - jQuery('#jform_php_getlistquery').closest('.control-group').show(); + jQuery('#jform_php_getlistquery-lbl').closest('.control-group').show(); if (jform_vvvvvxkvwy_required) { updateFieldRequired('php_getlistquery',0); @@ -466,7 +470,7 @@ function vvvvvxk(add_php_getlistquery_vvvvvxk) } else { - jQuery('#jform_php_getlistquery').closest('.control-group').hide(); + jQuery('#jform_php_getlistquery-lbl').closest('.control-group').hide(); if (!jform_vvvvvxkvwy_required) { updateFieldRequired('php_getlistquery',1); @@ -479,413 +483,444 @@ function vvvvvxk(add_php_getlistquery_vvvvvxk) } // the vvvvvxl function -function vvvvvxl(add_php_before_save_vvvvvxl) +function vvvvvxl(add_php_getform_vvvvvxl) { // set the function logic - if (add_php_before_save_vvvvvxl == 1) + if (add_php_getform_vvvvvxl == 1) { - jQuery('#jform_php_before_save').closest('.control-group').show(); + jQuery('#jform_php_getform-lbl').closest('.control-group').show(); if (jform_vvvvvxlvwz_required) { - updateFieldRequired('php_before_save',0); - jQuery('#jform_php_before_save').prop('required','required'); - jQuery('#jform_php_before_save').attr('aria-required',true); - jQuery('#jform_php_before_save').addClass('required'); + updateFieldRequired('php_getform',0); + jQuery('#jform_php_getform').prop('required','required'); + jQuery('#jform_php_getform').attr('aria-required',true); + jQuery('#jform_php_getform').addClass('required'); jform_vvvvvxlvwz_required = false; } } else { - jQuery('#jform_php_before_save').closest('.control-group').hide(); + jQuery('#jform_php_getform-lbl').closest('.control-group').hide(); if (!jform_vvvvvxlvwz_required) { - updateFieldRequired('php_before_save',1); - jQuery('#jform_php_before_save').removeAttr('required'); - jQuery('#jform_php_before_save').removeAttr('aria-required'); - jQuery('#jform_php_before_save').removeClass('required'); + updateFieldRequired('php_getform',1); + jQuery('#jform_php_getform').removeAttr('required'); + jQuery('#jform_php_getform').removeAttr('aria-required'); + jQuery('#jform_php_getform').removeClass('required'); jform_vvvvvxlvwz_required = true; } } } // the vvvvvxm function -function vvvvvxm(add_php_save_vvvvvxm) +function vvvvvxm(add_php_before_save_vvvvvxm) { // set the function logic - if (add_php_save_vvvvvxm == 1) + if (add_php_before_save_vvvvvxm == 1) { - jQuery('#jform_php_save').closest('.control-group').show(); + jQuery('#jform_php_before_save-lbl').closest('.control-group').show(); if (jform_vvvvvxmvxa_required) { - updateFieldRequired('php_save',0); - jQuery('#jform_php_save').prop('required','required'); - jQuery('#jform_php_save').attr('aria-required',true); - jQuery('#jform_php_save').addClass('required'); + updateFieldRequired('php_before_save',0); + jQuery('#jform_php_before_save').prop('required','required'); + jQuery('#jform_php_before_save').attr('aria-required',true); + jQuery('#jform_php_before_save').addClass('required'); jform_vvvvvxmvxa_required = false; } } else { - jQuery('#jform_php_save').closest('.control-group').hide(); + jQuery('#jform_php_before_save-lbl').closest('.control-group').hide(); if (!jform_vvvvvxmvxa_required) { - updateFieldRequired('php_save',1); - jQuery('#jform_php_save').removeAttr('required'); - jQuery('#jform_php_save').removeAttr('aria-required'); - jQuery('#jform_php_save').removeClass('required'); + updateFieldRequired('php_before_save',1); + jQuery('#jform_php_before_save').removeAttr('required'); + jQuery('#jform_php_before_save').removeAttr('aria-required'); + jQuery('#jform_php_before_save').removeClass('required'); jform_vvvvvxmvxa_required = true; } } } // the vvvvvxn function -function vvvvvxn(add_php_postsavehook_vvvvvxn) +function vvvvvxn(add_php_save_vvvvvxn) { // set the function logic - if (add_php_postsavehook_vvvvvxn == 1) + if (add_php_save_vvvvvxn == 1) { - jQuery('#jform_php_postsavehook').closest('.control-group').show(); + jQuery('#jform_php_save-lbl').closest('.control-group').show(); if (jform_vvvvvxnvxb_required) { - updateFieldRequired('php_postsavehook',0); - jQuery('#jform_php_postsavehook').prop('required','required'); - jQuery('#jform_php_postsavehook').attr('aria-required',true); - jQuery('#jform_php_postsavehook').addClass('required'); + updateFieldRequired('php_save',0); + jQuery('#jform_php_save').prop('required','required'); + jQuery('#jform_php_save').attr('aria-required',true); + jQuery('#jform_php_save').addClass('required'); jform_vvvvvxnvxb_required = false; } } else { - jQuery('#jform_php_postsavehook').closest('.control-group').hide(); + jQuery('#jform_php_save-lbl').closest('.control-group').hide(); if (!jform_vvvvvxnvxb_required) { - updateFieldRequired('php_postsavehook',1); - jQuery('#jform_php_postsavehook').removeAttr('required'); - jQuery('#jform_php_postsavehook').removeAttr('aria-required'); - jQuery('#jform_php_postsavehook').removeClass('required'); + updateFieldRequired('php_save',1); + jQuery('#jform_php_save').removeAttr('required'); + jQuery('#jform_php_save').removeAttr('aria-required'); + jQuery('#jform_php_save').removeClass('required'); jform_vvvvvxnvxb_required = true; } } } // the vvvvvxo function -function vvvvvxo(add_php_allowedit_vvvvvxo) +function vvvvvxo(add_php_postsavehook_vvvvvxo) { // set the function logic - if (add_php_allowedit_vvvvvxo == 1) + if (add_php_postsavehook_vvvvvxo == 1) { - jQuery('#jform_php_allowedit').closest('.control-group').show(); + jQuery('#jform_php_postsavehook-lbl').closest('.control-group').show(); if (jform_vvvvvxovxc_required) { - updateFieldRequired('php_allowedit',0); - jQuery('#jform_php_allowedit').prop('required','required'); - jQuery('#jform_php_allowedit').attr('aria-required',true); - jQuery('#jform_php_allowedit').addClass('required'); + updateFieldRequired('php_postsavehook',0); + jQuery('#jform_php_postsavehook').prop('required','required'); + jQuery('#jform_php_postsavehook').attr('aria-required',true); + jQuery('#jform_php_postsavehook').addClass('required'); jform_vvvvvxovxc_required = false; } } else { - jQuery('#jform_php_allowedit').closest('.control-group').hide(); + jQuery('#jform_php_postsavehook-lbl').closest('.control-group').hide(); if (!jform_vvvvvxovxc_required) { - updateFieldRequired('php_allowedit',1); - jQuery('#jform_php_allowedit').removeAttr('required'); - jQuery('#jform_php_allowedit').removeAttr('aria-required'); - jQuery('#jform_php_allowedit').removeClass('required'); + updateFieldRequired('php_postsavehook',1); + jQuery('#jform_php_postsavehook').removeAttr('required'); + jQuery('#jform_php_postsavehook').removeAttr('aria-required'); + jQuery('#jform_php_postsavehook').removeClass('required'); jform_vvvvvxovxc_required = true; } } } // the vvvvvxp function -function vvvvvxp(add_php_batchcopy_vvvvvxp) +function vvvvvxp(add_php_allowedit_vvvvvxp) { // set the function logic - if (add_php_batchcopy_vvvvvxp == 1) + if (add_php_allowedit_vvvvvxp == 1) { - jQuery('#jform_php_batchcopy').closest('.control-group').show(); + jQuery('#jform_php_allowedit-lbl').closest('.control-group').show(); if (jform_vvvvvxpvxd_required) { - updateFieldRequired('php_batchcopy',0); - jQuery('#jform_php_batchcopy').prop('required','required'); - jQuery('#jform_php_batchcopy').attr('aria-required',true); - jQuery('#jform_php_batchcopy').addClass('required'); + updateFieldRequired('php_allowedit',0); + jQuery('#jform_php_allowedit').prop('required','required'); + jQuery('#jform_php_allowedit').attr('aria-required',true); + jQuery('#jform_php_allowedit').addClass('required'); jform_vvvvvxpvxd_required = false; } } else { - jQuery('#jform_php_batchcopy').closest('.control-group').hide(); + jQuery('#jform_php_allowedit-lbl').closest('.control-group').hide(); if (!jform_vvvvvxpvxd_required) { - updateFieldRequired('php_batchcopy',1); - jQuery('#jform_php_batchcopy').removeAttr('required'); - jQuery('#jform_php_batchcopy').removeAttr('aria-required'); - jQuery('#jform_php_batchcopy').removeClass('required'); + updateFieldRequired('php_allowedit',1); + jQuery('#jform_php_allowedit').removeAttr('required'); + jQuery('#jform_php_allowedit').removeAttr('aria-required'); + jQuery('#jform_php_allowedit').removeClass('required'); jform_vvvvvxpvxd_required = true; } } } // the vvvvvxq function -function vvvvvxq(add_php_batchmove_vvvvvxq) +function vvvvvxq(add_php_batchcopy_vvvvvxq) { // set the function logic - if (add_php_batchmove_vvvvvxq == 1) + if (add_php_batchcopy_vvvvvxq == 1) { - jQuery('#jform_php_batchmove').closest('.control-group').show(); + jQuery('#jform_php_batchcopy-lbl').closest('.control-group').show(); if (jform_vvvvvxqvxe_required) { - updateFieldRequired('php_batchmove',0); - jQuery('#jform_php_batchmove').prop('required','required'); - jQuery('#jform_php_batchmove').attr('aria-required',true); - jQuery('#jform_php_batchmove').addClass('required'); + updateFieldRequired('php_batchcopy',0); + jQuery('#jform_php_batchcopy').prop('required','required'); + jQuery('#jform_php_batchcopy').attr('aria-required',true); + jQuery('#jform_php_batchcopy').addClass('required'); jform_vvvvvxqvxe_required = false; } } else { - jQuery('#jform_php_batchmove').closest('.control-group').hide(); + jQuery('#jform_php_batchcopy-lbl').closest('.control-group').hide(); if (!jform_vvvvvxqvxe_required) { - updateFieldRequired('php_batchmove',1); - jQuery('#jform_php_batchmove').removeAttr('required'); - jQuery('#jform_php_batchmove').removeAttr('aria-required'); - jQuery('#jform_php_batchmove').removeClass('required'); + updateFieldRequired('php_batchcopy',1); + jQuery('#jform_php_batchcopy').removeAttr('required'); + jQuery('#jform_php_batchcopy').removeAttr('aria-required'); + jQuery('#jform_php_batchcopy').removeClass('required'); jform_vvvvvxqvxe_required = true; } } } // the vvvvvxr function -function vvvvvxr(add_php_before_publish_vvvvvxr) +function vvvvvxr(add_php_batchmove_vvvvvxr) { // set the function logic - if (add_php_before_publish_vvvvvxr == 1) + if (add_php_batchmove_vvvvvxr == 1) { - jQuery('#jform_php_before_publish').closest('.control-group').show(); + jQuery('#jform_php_batchmove-lbl').closest('.control-group').show(); if (jform_vvvvvxrvxf_required) { - updateFieldRequired('php_before_publish',0); - jQuery('#jform_php_before_publish').prop('required','required'); - jQuery('#jform_php_before_publish').attr('aria-required',true); - jQuery('#jform_php_before_publish').addClass('required'); + updateFieldRequired('php_batchmove',0); + jQuery('#jform_php_batchmove').prop('required','required'); + jQuery('#jform_php_batchmove').attr('aria-required',true); + jQuery('#jform_php_batchmove').addClass('required'); jform_vvvvvxrvxf_required = false; } } else { - jQuery('#jform_php_before_publish').closest('.control-group').hide(); + jQuery('#jform_php_batchmove-lbl').closest('.control-group').hide(); if (!jform_vvvvvxrvxf_required) { - updateFieldRequired('php_before_publish',1); - jQuery('#jform_php_before_publish').removeAttr('required'); - jQuery('#jform_php_before_publish').removeAttr('aria-required'); - jQuery('#jform_php_before_publish').removeClass('required'); + updateFieldRequired('php_batchmove',1); + jQuery('#jform_php_batchmove').removeAttr('required'); + jQuery('#jform_php_batchmove').removeAttr('aria-required'); + jQuery('#jform_php_batchmove').removeClass('required'); jform_vvvvvxrvxf_required = true; } } } // the vvvvvxs function -function vvvvvxs(add_php_after_publish_vvvvvxs) +function vvvvvxs(add_php_before_publish_vvvvvxs) { // set the function logic - if (add_php_after_publish_vvvvvxs == 1) + if (add_php_before_publish_vvvvvxs == 1) { - jQuery('#jform_php_after_publish').closest('.control-group').show(); + jQuery('#jform_php_before_publish-lbl').closest('.control-group').show(); if (jform_vvvvvxsvxg_required) { - updateFieldRequired('php_after_publish',0); - jQuery('#jform_php_after_publish').prop('required','required'); - jQuery('#jform_php_after_publish').attr('aria-required',true); - jQuery('#jform_php_after_publish').addClass('required'); + updateFieldRequired('php_before_publish',0); + jQuery('#jform_php_before_publish').prop('required','required'); + jQuery('#jform_php_before_publish').attr('aria-required',true); + jQuery('#jform_php_before_publish').addClass('required'); jform_vvvvvxsvxg_required = false; } } else { - jQuery('#jform_php_after_publish').closest('.control-group').hide(); + jQuery('#jform_php_before_publish-lbl').closest('.control-group').hide(); if (!jform_vvvvvxsvxg_required) { - updateFieldRequired('php_after_publish',1); - jQuery('#jform_php_after_publish').removeAttr('required'); - jQuery('#jform_php_after_publish').removeAttr('aria-required'); - jQuery('#jform_php_after_publish').removeClass('required'); + updateFieldRequired('php_before_publish',1); + jQuery('#jform_php_before_publish').removeAttr('required'); + jQuery('#jform_php_before_publish').removeAttr('aria-required'); + jQuery('#jform_php_before_publish').removeClass('required'); jform_vvvvvxsvxg_required = true; } } } // the vvvvvxt function -function vvvvvxt(add_php_before_delete_vvvvvxt) +function vvvvvxt(add_php_after_publish_vvvvvxt) { // set the function logic - if (add_php_before_delete_vvvvvxt == 1) + if (add_php_after_publish_vvvvvxt == 1) { - jQuery('#jform_php_before_delete').closest('.control-group').show(); + jQuery('#jform_php_after_publish-lbl').closest('.control-group').show(); if (jform_vvvvvxtvxh_required) { - updateFieldRequired('php_before_delete',0); - jQuery('#jform_php_before_delete').prop('required','required'); - jQuery('#jform_php_before_delete').attr('aria-required',true); - jQuery('#jform_php_before_delete').addClass('required'); + updateFieldRequired('php_after_publish',0); + jQuery('#jform_php_after_publish').prop('required','required'); + jQuery('#jform_php_after_publish').attr('aria-required',true); + jQuery('#jform_php_after_publish').addClass('required'); jform_vvvvvxtvxh_required = false; } } else { - jQuery('#jform_php_before_delete').closest('.control-group').hide(); + jQuery('#jform_php_after_publish-lbl').closest('.control-group').hide(); if (!jform_vvvvvxtvxh_required) { - updateFieldRequired('php_before_delete',1); - jQuery('#jform_php_before_delete').removeAttr('required'); - jQuery('#jform_php_before_delete').removeAttr('aria-required'); - jQuery('#jform_php_before_delete').removeClass('required'); + updateFieldRequired('php_after_publish',1); + jQuery('#jform_php_after_publish').removeAttr('required'); + jQuery('#jform_php_after_publish').removeAttr('aria-required'); + jQuery('#jform_php_after_publish').removeClass('required'); jform_vvvvvxtvxh_required = true; } } } // the vvvvvxu function -function vvvvvxu(add_php_after_delete_vvvvvxu) +function vvvvvxu(add_php_before_delete_vvvvvxu) { // set the function logic - if (add_php_after_delete_vvvvvxu == 1) + if (add_php_before_delete_vvvvvxu == 1) { - jQuery('#jform_php_after_delete').closest('.control-group').show(); + jQuery('#jform_php_before_delete-lbl').closest('.control-group').show(); if (jform_vvvvvxuvxi_required) { - updateFieldRequired('php_after_delete',0); - jQuery('#jform_php_after_delete').prop('required','required'); - jQuery('#jform_php_after_delete').attr('aria-required',true); - jQuery('#jform_php_after_delete').addClass('required'); + updateFieldRequired('php_before_delete',0); + jQuery('#jform_php_before_delete').prop('required','required'); + jQuery('#jform_php_before_delete').attr('aria-required',true); + jQuery('#jform_php_before_delete').addClass('required'); jform_vvvvvxuvxi_required = false; } } else { - jQuery('#jform_php_after_delete').closest('.control-group').hide(); + jQuery('#jform_php_before_delete-lbl').closest('.control-group').hide(); if (!jform_vvvvvxuvxi_required) { - updateFieldRequired('php_after_delete',1); - jQuery('#jform_php_after_delete').removeAttr('required'); - jQuery('#jform_php_after_delete').removeAttr('aria-required'); - jQuery('#jform_php_after_delete').removeClass('required'); + updateFieldRequired('php_before_delete',1); + jQuery('#jform_php_before_delete').removeAttr('required'); + jQuery('#jform_php_before_delete').removeAttr('aria-required'); + jQuery('#jform_php_before_delete').removeClass('required'); jform_vvvvvxuvxi_required = true; } } } // the vvvvvxv function -function vvvvvxv(add_php_document_vvvvvxv) +function vvvvvxv(add_php_after_delete_vvvvvxv) { // set the function logic - if (add_php_document_vvvvvxv == 1) + if (add_php_after_delete_vvvvvxv == 1) { - jQuery('#jform_php_document').closest('.control-group').show(); + jQuery('#jform_php_after_delete-lbl').closest('.control-group').show(); if (jform_vvvvvxvvxj_required) { - updateFieldRequired('php_document',0); - jQuery('#jform_php_document').prop('required','required'); - jQuery('#jform_php_document').attr('aria-required',true); - jQuery('#jform_php_document').addClass('required'); + updateFieldRequired('php_after_delete',0); + jQuery('#jform_php_after_delete').prop('required','required'); + jQuery('#jform_php_after_delete').attr('aria-required',true); + jQuery('#jform_php_after_delete').addClass('required'); jform_vvvvvxvvxj_required = false; } } else { - jQuery('#jform_php_document').closest('.control-group').hide(); + jQuery('#jform_php_after_delete-lbl').closest('.control-group').hide(); if (!jform_vvvvvxvvxj_required) { - updateFieldRequired('php_document',1); - jQuery('#jform_php_document').removeAttr('required'); - jQuery('#jform_php_document').removeAttr('aria-required'); - jQuery('#jform_php_document').removeClass('required'); + updateFieldRequired('php_after_delete',1); + jQuery('#jform_php_after_delete').removeAttr('required'); + jQuery('#jform_php_after_delete').removeAttr('aria-required'); + jQuery('#jform_php_after_delete').removeClass('required'); jform_vvvvvxvvxj_required = true; } } } // the vvvvvxw function -function vvvvvxw(add_sql_vvvvvxw) +function vvvvvxw(add_php_document_vvvvvxw) { // set the function logic - if (add_sql_vvvvvxw == 1) + if (add_php_document_vvvvvxw == 1) { - jQuery('#jform_source').closest('.control-group').show(); + jQuery('#jform_php_document-lbl').closest('.control-group').show(); if (jform_vvvvvxwvxk_required) { - updateFieldRequired('source',0); - jQuery('#jform_source').prop('required','required'); - jQuery('#jform_source').attr('aria-required',true); - jQuery('#jform_source').addClass('required'); + updateFieldRequired('php_document',0); + jQuery('#jform_php_document').prop('required','required'); + jQuery('#jform_php_document').attr('aria-required',true); + jQuery('#jform_php_document').addClass('required'); jform_vvvvvxwvxk_required = false; } } else { - jQuery('#jform_source').closest('.control-group').hide(); + jQuery('#jform_php_document-lbl').closest('.control-group').hide(); if (!jform_vvvvvxwvxk_required) { - updateFieldRequired('source',1); - jQuery('#jform_source').removeAttr('required'); - jQuery('#jform_source').removeAttr('aria-required'); - jQuery('#jform_source').removeClass('required'); + updateFieldRequired('php_document',1); + jQuery('#jform_php_document').removeAttr('required'); + jQuery('#jform_php_document').removeAttr('aria-required'); + jQuery('#jform_php_document').removeClass('required'); jform_vvvvvxwvxk_required = true; } } } // the vvvvvxx function -function vvvvvxx(source_vvvvvxx,add_sql_vvvvvxx) +function vvvvvxx(add_sql_vvvvvxx) { // set the function logic - if (source_vvvvvxx == 2 && add_sql_vvvvvxx == 1) + if (add_sql_vvvvvxx == 1) { - jQuery('#jform_sql').closest('.control-group').show(); + jQuery('#jform_source').closest('.control-group').show(); if (jform_vvvvvxxvxl_required) { - updateFieldRequired('sql',0); - jQuery('#jform_sql').prop('required','required'); - jQuery('#jform_sql').attr('aria-required',true); - jQuery('#jform_sql').addClass('required'); + updateFieldRequired('source',0); + jQuery('#jform_source').prop('required','required'); + jQuery('#jform_source').attr('aria-required',true); + jQuery('#jform_source').addClass('required'); jform_vvvvvxxvxl_required = false; } } else { - jQuery('#jform_sql').closest('.control-group').hide(); + jQuery('#jform_source').closest('.control-group').hide(); if (!jform_vvvvvxxvxl_required) { - updateFieldRequired('sql',1); - jQuery('#jform_sql').removeAttr('required'); - jQuery('#jform_sql').removeAttr('aria-required'); - jQuery('#jform_sql').removeClass('required'); + updateFieldRequired('source',1); + jQuery('#jform_source').removeAttr('required'); + jQuery('#jform_source').removeAttr('aria-required'); + jQuery('#jform_source').removeClass('required'); jform_vvvvvxxvxl_required = true; } } } -// the vvvvvxz function -function vvvvvxz(source_vvvvvxz,add_sql_vvvvvxz) +// the vvvvvxy function +function vvvvvxy(source_vvvvvxy,add_sql_vvvvvxy) { // set the function logic - if (source_vvvvvxz == 1 && add_sql_vvvvvxz == 1) + if (source_vvvvvxy == 2 && add_sql_vvvvvxy == 1) + { + jQuery('#jform_sql').closest('.control-group').show(); + if (jform_vvvvvxyvxm_required) + { + updateFieldRequired('sql',0); + jQuery('#jform_sql').prop('required','required'); + jQuery('#jform_sql').attr('aria-required',true); + jQuery('#jform_sql').addClass('required'); + jform_vvvvvxyvxm_required = false; + } + + } + else + { + jQuery('#jform_sql').closest('.control-group').hide(); + if (!jform_vvvvvxyvxm_required) + { + updateFieldRequired('sql',1); + jQuery('#jform_sql').removeAttr('required'); + jQuery('#jform_sql').removeAttr('aria-required'); + jQuery('#jform_sql').removeClass('required'); + jform_vvvvvxyvxm_required = true; + } + } +} + +// the vvvvvya function +function vvvvvya(source_vvvvvya,add_sql_vvvvvya) +{ + // set the function logic + if (source_vvvvvya == 1 && add_sql_vvvvvya == 1) { jQuery('#jform_addtables-lbl').closest('.control-group').show(); } @@ -895,158 +930,158 @@ function vvvvvxz(source_vvvvvxz,add_sql_vvvvvxz) } } -// the vvvvvyb function -function vvvvvyb(add_custom_import_vvvvvyb) +// the vvvvvyc function +function vvvvvyc(add_custom_import_vvvvvyc) { // set the function logic - if (add_custom_import_vvvvvyb == 1) + if (add_custom_import_vvvvvyc == 1) { jQuery('#jform_html_import_view').closest('.control-group').show(); - if (jform_vvvvvybvxm_required) + if (jform_vvvvvycvxn_required) { updateFieldRequired('html_import_view',0); jQuery('#jform_html_import_view').prop('required','required'); jQuery('#jform_html_import_view').attr('aria-required',true); jQuery('#jform_html_import_view').addClass('required'); - jform_vvvvvybvxm_required = false; + jform_vvvvvycvxn_required = false; } jQuery('.note_advanced_import').closest('.control-group').show(); jQuery('#jform_php_import_display').closest('.control-group').show(); - if (jform_vvvvvybvxn_required) + if (jform_vvvvvycvxo_required) { updateFieldRequired('php_import_display',0); jQuery('#jform_php_import_display').prop('required','required'); jQuery('#jform_php_import_display').attr('aria-required',true); jQuery('#jform_php_import_display').addClass('required'); - jform_vvvvvybvxn_required = false; + jform_vvvvvycvxo_required = false; } jQuery('#jform_php_import_ext').closest('.control-group').show(); - if (jform_vvvvvybvxo_required) + if (jform_vvvvvycvxp_required) { updateFieldRequired('php_import_ext',0); jQuery('#jform_php_import_ext').prop('required','required'); jQuery('#jform_php_import_ext').attr('aria-required',true); jQuery('#jform_php_import_ext').addClass('required'); - jform_vvvvvybvxo_required = false; + jform_vvvvvycvxp_required = false; } jQuery('#jform_php_import_headers').closest('.control-group').show(); - if (jform_vvvvvybvxp_required) + if (jform_vvvvvycvxq_required) { updateFieldRequired('php_import_headers',0); jQuery('#jform_php_import_headers').prop('required','required'); jQuery('#jform_php_import_headers').attr('aria-required',true); jQuery('#jform_php_import_headers').addClass('required'); - jform_vvvvvybvxp_required = false; + jform_vvvvvycvxq_required = false; } jQuery('#jform_php_import').closest('.control-group').show(); - if (jform_vvvvvybvxq_required) + if (jform_vvvvvycvxr_required) { updateFieldRequired('php_import',0); jQuery('#jform_php_import').prop('required','required'); jQuery('#jform_php_import').attr('aria-required',true); jQuery('#jform_php_import').addClass('required'); - jform_vvvvvybvxq_required = false; + jform_vvvvvycvxr_required = false; } jQuery('#jform_php_import_save').closest('.control-group').show(); - if (jform_vvvvvybvxr_required) + if (jform_vvvvvycvxs_required) { updateFieldRequired('php_import_save',0); jQuery('#jform_php_import_save').prop('required','required'); jQuery('#jform_php_import_save').attr('aria-required',true); jQuery('#jform_php_import_save').addClass('required'); - jform_vvvvvybvxr_required = false; + jform_vvvvvycvxs_required = false; } jQuery('#jform_php_import_setdata').closest('.control-group').show(); - if (jform_vvvvvybvxs_required) + if (jform_vvvvvycvxt_required) { updateFieldRequired('php_import_setdata',0); jQuery('#jform_php_import_setdata').prop('required','required'); jQuery('#jform_php_import_setdata').attr('aria-required',true); jQuery('#jform_php_import_setdata').addClass('required'); - jform_vvvvvybvxs_required = false; + jform_vvvvvycvxt_required = false; } } else { jQuery('#jform_html_import_view').closest('.control-group').hide(); - if (!jform_vvvvvybvxm_required) + if (!jform_vvvvvycvxn_required) { updateFieldRequired('html_import_view',1); jQuery('#jform_html_import_view').removeAttr('required'); jQuery('#jform_html_import_view').removeAttr('aria-required'); jQuery('#jform_html_import_view').removeClass('required'); - jform_vvvvvybvxm_required = true; + jform_vvvvvycvxn_required = true; } jQuery('.note_advanced_import').closest('.control-group').hide(); jQuery('#jform_php_import_display').closest('.control-group').hide(); - if (!jform_vvvvvybvxn_required) + if (!jform_vvvvvycvxo_required) { updateFieldRequired('php_import_display',1); jQuery('#jform_php_import_display').removeAttr('required'); jQuery('#jform_php_import_display').removeAttr('aria-required'); jQuery('#jform_php_import_display').removeClass('required'); - jform_vvvvvybvxn_required = true; + jform_vvvvvycvxo_required = true; } jQuery('#jform_php_import_ext').closest('.control-group').hide(); - if (!jform_vvvvvybvxo_required) + if (!jform_vvvvvycvxp_required) { updateFieldRequired('php_import_ext',1); jQuery('#jform_php_import_ext').removeAttr('required'); jQuery('#jform_php_import_ext').removeAttr('aria-required'); jQuery('#jform_php_import_ext').removeClass('required'); - jform_vvvvvybvxo_required = true; + jform_vvvvvycvxp_required = true; } jQuery('#jform_php_import_headers').closest('.control-group').hide(); - if (!jform_vvvvvybvxp_required) + if (!jform_vvvvvycvxq_required) { updateFieldRequired('php_import_headers',1); jQuery('#jform_php_import_headers').removeAttr('required'); jQuery('#jform_php_import_headers').removeAttr('aria-required'); jQuery('#jform_php_import_headers').removeClass('required'); - jform_vvvvvybvxp_required = true; + jform_vvvvvycvxq_required = true; } jQuery('#jform_php_import').closest('.control-group').hide(); - if (!jform_vvvvvybvxq_required) + if (!jform_vvvvvycvxr_required) { updateFieldRequired('php_import',1); jQuery('#jform_php_import').removeAttr('required'); jQuery('#jform_php_import').removeAttr('aria-required'); jQuery('#jform_php_import').removeClass('required'); - jform_vvvvvybvxq_required = true; + jform_vvvvvycvxr_required = true; } jQuery('#jform_php_import_save').closest('.control-group').hide(); - if (!jform_vvvvvybvxr_required) + if (!jform_vvvvvycvxs_required) { updateFieldRequired('php_import_save',1); jQuery('#jform_php_import_save').removeAttr('required'); jQuery('#jform_php_import_save').removeAttr('aria-required'); jQuery('#jform_php_import_save').removeClass('required'); - jform_vvvvvybvxr_required = true; + jform_vvvvvycvxs_required = true; } jQuery('#jform_php_import_setdata').closest('.control-group').hide(); - if (!jform_vvvvvybvxs_required) + if (!jform_vvvvvycvxt_required) { updateFieldRequired('php_import_setdata',1); jQuery('#jform_php_import_setdata').removeAttr('required'); jQuery('#jform_php_import_setdata').removeAttr('aria-required'); jQuery('#jform_php_import_setdata').removeClass('required'); - jform_vvvvvybvxs_required = true; + jform_vvvvvycvxt_required = true; } } } -// the vvvvvyc function -function vvvvvyc(add_custom_import_vvvvvyc) +// the vvvvvyd function +function vvvvvyd(add_custom_import_vvvvvyd) { // set the function logic - if (add_custom_import_vvvvvyc == 0) + if (add_custom_import_vvvvvyd == 0) { jQuery('.note_beginner_import').closest('.control-group').show(); } @@ -1056,92 +1091,92 @@ function vvvvvyc(add_custom_import_vvvvvyc) } } -// the vvvvvyd function -function vvvvvyd(add_custom_button_vvvvvyd) +// the vvvvvye function +function vvvvvye(add_custom_button_vvvvvye) { // set the function logic - if (add_custom_button_vvvvvyd == 1) + if (add_custom_button_vvvvvye == 1) { jQuery('#jform_custom_button-lbl').closest('.control-group').show(); - jQuery('#jform_php_controller').closest('.control-group').show(); - if (jform_vvvvvydvxt_required) + jQuery('#jform_php_controller-lbl').closest('.control-group').show(); + if (jform_vvvvvyevxu_required) { updateFieldRequired('php_controller',0); jQuery('#jform_php_controller').prop('required','required'); jQuery('#jform_php_controller').attr('aria-required',true); jQuery('#jform_php_controller').addClass('required'); - jform_vvvvvydvxt_required = false; + jform_vvvvvyevxu_required = false; } - jQuery('#jform_php_controller_list').closest('.control-group').show(); - if (jform_vvvvvydvxu_required) + jQuery('#jform_php_controller_list-lbl').closest('.control-group').show(); + if (jform_vvvvvyevxv_required) { updateFieldRequired('php_controller_list',0); jQuery('#jform_php_controller_list').prop('required','required'); jQuery('#jform_php_controller_list').attr('aria-required',true); jQuery('#jform_php_controller_list').addClass('required'); - jform_vvvvvydvxu_required = false; + jform_vvvvvyevxv_required = false; } - jQuery('#jform_php_model').closest('.control-group').show(); - if (jform_vvvvvydvxv_required) + jQuery('#jform_php_model-lbl').closest('.control-group').show(); + if (jform_vvvvvyevxw_required) { updateFieldRequired('php_model',0); jQuery('#jform_php_model').prop('required','required'); jQuery('#jform_php_model').attr('aria-required',true); jQuery('#jform_php_model').addClass('required'); - jform_vvvvvydvxv_required = false; + jform_vvvvvyevxw_required = false; } - jQuery('#jform_php_model_list').closest('.control-group').show(); - if (jform_vvvvvydvxw_required) + jQuery('#jform_php_model_list-lbl').closest('.control-group').show(); + if (jform_vvvvvyevxx_required) { updateFieldRequired('php_model_list',0); jQuery('#jform_php_model_list').prop('required','required'); jQuery('#jform_php_model_list').attr('aria-required',true); jQuery('#jform_php_model_list').addClass('required'); - jform_vvvvvydvxw_required = false; + jform_vvvvvyevxx_required = false; } } else { jQuery('#jform_custom_button-lbl').closest('.control-group').hide(); - jQuery('#jform_php_controller').closest('.control-group').hide(); - if (!jform_vvvvvydvxt_required) + jQuery('#jform_php_controller-lbl').closest('.control-group').hide(); + if (!jform_vvvvvyevxu_required) { updateFieldRequired('php_controller',1); jQuery('#jform_php_controller').removeAttr('required'); jQuery('#jform_php_controller').removeAttr('aria-required'); jQuery('#jform_php_controller').removeClass('required'); - jform_vvvvvydvxt_required = true; + jform_vvvvvyevxu_required = true; } - jQuery('#jform_php_controller_list').closest('.control-group').hide(); - if (!jform_vvvvvydvxu_required) + jQuery('#jform_php_controller_list-lbl').closest('.control-group').hide(); + if (!jform_vvvvvyevxv_required) { updateFieldRequired('php_controller_list',1); jQuery('#jform_php_controller_list').removeAttr('required'); jQuery('#jform_php_controller_list').removeAttr('aria-required'); jQuery('#jform_php_controller_list').removeClass('required'); - jform_vvvvvydvxu_required = true; + jform_vvvvvyevxv_required = true; } - jQuery('#jform_php_model').closest('.control-group').hide(); - if (!jform_vvvvvydvxv_required) + jQuery('#jform_php_model-lbl').closest('.control-group').hide(); + if (!jform_vvvvvyevxw_required) { updateFieldRequired('php_model',1); jQuery('#jform_php_model').removeAttr('required'); jQuery('#jform_php_model').removeAttr('aria-required'); jQuery('#jform_php_model').removeClass('required'); - jform_vvvvvydvxv_required = true; + jform_vvvvvyevxw_required = true; } - jQuery('#jform_php_model_list').closest('.control-group').hide(); - if (!jform_vvvvvydvxw_required) + jQuery('#jform_php_model_list-lbl').closest('.control-group').hide(); + if (!jform_vvvvvyevxx_required) { updateFieldRequired('php_model_list',1); jQuery('#jform_php_model_list').removeAttr('required'); jQuery('#jform_php_model_list').removeAttr('aria-required'); jQuery('#jform_php_model_list').removeClass('required'); - jform_vvvvvydvxw_required = true; + jform_vvvvvyevxx_required = true; } } } diff --git a/admin/models/forms/admin_view.xml b/admin/models/forms/admin_view.xml index c11def310..271ab8760 100644 --- a/admin/models/forms/admin_view.xml +++ b/admin/models/forms/admin_view.xml @@ -144,11 +144,11 @@ message="COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_MESSAGE" hint="COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_HINT" /> - + @@ -158,11 +158,11 @@ - + @@ -172,11 +172,11 @@ - + @@ -186,11 +186,11 @@ - + @@ -208,32 +208,53 @@ description="COM_COMPONENTBUILDER_ADMIN_VIEW_ICON_ADD_DESCRIPTION" directory="" /> - + - + - - - + type="subform" + name="addtables" + label="COM_COMPONENTBUILDER_ADMIN_VIEW_ADDTABLES_LABEL" + layout="joomla.form.field.subform.repeatable-table" + multiple="true" + icon="list"> +