diff --git a/.github/CONTRIBUTING.md b/.github/CONTRIBUTING.md index 7ae4e2d56..ca06ce953 100644 --- a/.github/CONTRIBUTING.md +++ b/.github/CONTRIBUTING.md @@ -1,24 +1,5 @@ -Contributing to the Joomla Component Builder (JCB) -=============== -You are welcome to submit a contribution for review and possible inclusion in the Joomla Component Builder but, before it will be accepted, we ask that you follow these simple steps: +JCB and all its projects are leaving gitHub... this is going to take some time since JCB/VDM is so integrated with github, -1) Please watch [these tutorials][Tutorials] - -2) Open an issue on GitHub. If you can, please provide a fix and create a pull request (PR) instead; this will automatically create an issue for you so you do not have to create an issue if you are creating a pull request. - -3) Follow the [Joomla! Coding Standards][Standards]. - -4) When filing an issue or opening a PR, please include a clear title and description. The title should be a short summary of an issue and, if possible, should include a reference to an open issue. For example, `Invalid Query in com_admin (Ref #1234)` would be sufficient. All issues and PRs should include a description with as much detail as possible. -If it is a PR, include what the issue is, what the PR is addressing, testing instructions and environmental information (PHP version, database driver and version, and other data you can retrieve from your site's system information view) in case the issue is specific to certain environments. If additional information is needed, please be prepared to provide it as our community members review your submission. - -5) Report security issues to the JCB! Core Team using the [Report security issues contact form][Security]. Please do not use the public forums for security issues. - -Please be patient as not all items will be tested immediately (remember, all bug testing for the JCB is done by volunteers) and be receptive to feedback about your code. - -#### Branches -PRs should usually be made to the `staging` branch as this contains the most recent version of the code. - -[Tutorials]: https://www.youtube.com/watch?v=lLOfx9YA7VQ&list=PLQRGFI8XZ_wsfz3NdKawCiYsALuZ-GhwJ -[Standards]: https://developer.joomla.org/coding-standards.html\ -[Security]: http://joomlacomponentbuilder.com/report-security-issues +The new address is [https://gitlab.com/jcb-repos/Joomla-Component-Builder](https://gitlab.com/jcb-repos/Joomla-Component-Builder). +Please make sure to open your issues there!! diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 8c8846712..ca06ce953 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -1,20 +1,5 @@ -### Steps to reproduce the issue +JCB and all its projects are leaving gitHub... this is going to take some time since JCB/VDM is so integrated with github, +The new address is [https://gitlab.com/jcb-repos/Joomla-Component-Builder](https://gitlab.com/jcb-repos/Joomla-Component-Builder). -### Expected result - - -### Actual result - - -### System information (as much as possible) -- OS Name & Version: -- MySql Version: -- Apache Version: -- PHP Version: -- Joomla Version: -- JCB Version: -- Browser: - -### Additional comments - +Please make sure to open your issues there!! diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 5c3edd9e5..ca06ce953 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -1,16 +1,5 @@ -Pull Request for Issue gh- . +JCB and all its projects are leaving gitHub... this is going to take some time since JCB/VDM is so integrated with github, -### Summary of Changes - - -### Testing Instructions - - -### Expected result - - -### Actual result - - -### Documentation Changes Required +The new address is [https://gitlab.com/jcb-repos/Joomla-Component-Builder](https://gitlab.com/jcb-repos/Joomla-Component-Builder). +Please make sure to open your issues there!! diff --git a/.github/SUPPORT.md b/.github/SUPPORT.md index 7e062d59e..ca06ce953 100644 --- a/.github/SUPPORT.md +++ b/.github/SUPPORT.md @@ -1,27 +1,5 @@ -Where can you get support and help? -==================== +JCB and all its projects are leaving gitHub... this is going to take some time since JCB/VDM is so integrated with github, -+ [The JCB Tutorials][Tutorials] -+ [Hello World Tutorial][HelloWorld] -+ [The JCB! Wiki][Wiki] -+ [JCB Google Group/forum][forum] -+ [Report a Security Issue][Security] -+ [Community Complaint][Complaint] -+ [Open Issue On Github][Issue] ^^ - -Since JCB has become a community project [VDM.io][VDM] is **no longer solely responsible** for support. - -We have started a [**JCB forum**][forum] where you can post questions, about how things work, or if you need some kind of help in relation to your development of your components. - -^^ Then if you run into any issues, related to the JCB code, like bugs, **start by searching** the (*open & closed*) [issues][Issue] over on Github, and if the issue has not been mentioned before, **then only** open a new issue, following the [community guidelines][guidelines]. - -[Tutorials]: https://www.youtube.com/playlist?list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE -[HelloWorld]: https://www.youtube.com/watch?v=IQfsLYIeblk&list=PLQRGFI8XZ_wtGvPQZWBfDzzlERLQgpMRE&index=45 -[Wiki]: https://github.com/vdm-io/Joomla-Component-Builder/wiki -[forum]: https://groups.google.com/a/vdm.io/d/forum/jcb -[Security]: http://joomlacomponentbuilder.com/report-security-issues -[Complaint]: http://joomlacomponentbuilder.com/community-complaint -[Issue]: https://github.com/vdm-io/Joomla-Component-Builder/issues -[VDM]: https://www.vdm.io/joomla-component-builder -[guidelines]: https://github.com/vdm-io/Joomla-Component-Builder/blob/master/.github/CONTRIBUTING.md +The new address is [https://gitlab.com/jcb-repos/Joomla-Component-Builder](https://gitlab.com/jcb-repos/Joomla-Component-Builder). +Please make sure to open your issues there!! diff --git a/admin/README.txt b/admin/README.txt index 57d06d7cf..cf1e4283e 100644 --- a/admin/README.txt +++ b/admin/README.txt @@ -125,11 +125,11 @@ 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 ++ *Last Build*: 31st May, 2018 + *Version*: 2.8.0 + *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** ++ *Line count*: **185591** + *Field count*: **1054** + *File count*: **1236** + *Folder count*: **197** diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index 5dee21f97..d406960a1 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(); @@ -6496,23 +6560,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) . "