Updated with JCB v2.9.20

This commit is contained in:
Llewellyn van der Merwe 2019-06-12 22:59:35 +02:00
parent 94c4310acb
commit bee36c05c8
No known key found for this signature in database
GPG Key ID: CAD7B16D27AF28C5
18 changed files with 159 additions and 34 deletions

View File

@ -23,20 +23,20 @@ The best way to see all your options is to install this component on you Joomla
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
+ *First Build*: 22nd October, 2015
+ *Last Build*: 23rd April, 2019
+ *Last Build*: 12th June, 2019
+ *Version*: 2.0.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
## Build Time :hourglass:
**186 Hours** or **23 Eight Hour Days** (actual time the author saved -
**187 Hours** or **23 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.)
+ *Line count*: **66821**
+ *Line count*: **66946**
+ *File count*: **445**
+ *Folder count*: **93**
@ -48,7 +48,7 @@ due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder
> **mapping @19hours** = codingtime / 10;
> **office @31hours** = codingtime / 6;)
**309 Hours** or **39 Eight Hour Days**
**310 Hours** or **39 Eight Hour Days**
(a total of the realistic time frame for this project)
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,

View File

@ -23,20 +23,20 @@ The best way to see all your options is to install this component on you Joomla
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
+ *First Build*: 22nd October, 2015
+ *Last Build*: 23rd April, 2019
+ *Last Build*: 12th June, 2019
+ *Version*: 2.0.x
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
## Build Time :hourglass:
**186 Hours** or **23 Eight Hour Days** (actual time the author saved -
**187 Hours** or **23 Eight Hour Days** (actual time the author saved -
due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder))
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
> never making one mistake or taking any coffee break.)
+ *Line count*: **66821**
+ *Line count*: **66946**
+ *File count*: **445**
+ *Folder count*: **93**
@ -48,7 +48,7 @@ due to [Automated Component Builder](https://www.vdm.io/joomla-component-builder
> **mapping @19hours** = codingtime / 10;
> **office @31hours** = codingtime / 6;)
**309 Hours** or **39 Eight Hour Days**
**310 Hours** or **39 Eight Hour Days**
(a total of the realistic time frame for this project)
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,

View File

@ -244,7 +244,6 @@
maxlength="150"
description="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCE_TFOLDER_DESCRIPTION"
class="text_area span12"
required="false"
filter="PATH"
message="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCE_TFOLDER_MESSAGE"
hint="COM_SERMONDISTRIBUTOR_EXTERNAL_SOURCE_TFOLDER_HINT"

View File

@ -130,7 +130,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<input type="hidden" name="task" value="external_source.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
</div>
<div class="clearfix"></div>

View File

@ -201,7 +201,15 @@ class SermondistributorViewExternal_sources extends JViewLegacy
// Set Externalsources Selection
$this->externalsourcesOptions = $this->getTheExternalsourcesSelections();
if ($this->externalsourcesOptions)
// We do some sanitation for Externalsources filter
if (SermondistributorHelper::checkArray($this->externalsourcesOptions) &&
isset($this->externalsourcesOptions[0]->value) &&
!SermondistributorHelper::checkString($this->externalsourcesOptions[0]->value))
{
unset($this->externalsourcesOptions[0]);
}
// Only load Externalsources filter if it has values
if (SermondistributorHelper::checkArray($this->externalsourcesOptions))
{
// Externalsources Filter
JHtmlSidebar::addFilter(
@ -223,7 +231,15 @@ class SermondistributorViewExternal_sources extends JViewLegacy
// Set Update Method Selection
$this->update_methodOptions = $this->getTheUpdate_methodSelections();
if ($this->update_methodOptions)
// We do some sanitation for Update Method filter
if (SermondistributorHelper::checkArray($this->update_methodOptions) &&
isset($this->update_methodOptions[0]->value) &&
!SermondistributorHelper::checkString($this->update_methodOptions[0]->value))
{
unset($this->update_methodOptions[0]);
}
// Only load Update Method filter if it has values
if (SermondistributorHelper::checkArray($this->update_methodOptions))
{
// Update Method Filter
JHtmlSidebar::addFilter(
@ -245,7 +261,15 @@ class SermondistributorViewExternal_sources extends JViewLegacy
// Set Build Selection
$this->buildOptions = $this->getTheBuildSelections();
if ($this->buildOptions)
// We do some sanitation for Build filter
if (SermondistributorHelper::checkArray($this->buildOptions) &&
isset($this->buildOptions[0]->value) &&
!SermondistributorHelper::checkString($this->buildOptions[0]->value))
{
unset($this->buildOptions[0]);
}
// Only load Build filter if it has values
if (SermondistributorHelper::checkArray($this->buildOptions))
{
// Build Filter
JHtmlSidebar::addFilter(

View File

@ -120,7 +120,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<input type="hidden" name="task" value="help_document.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
</div>
<div class="clearfix"></div>

View File

@ -201,7 +201,15 @@ class SermondistributorViewHelp_documents extends JViewLegacy
// Set Type Selection
$this->typeOptions = $this->getTheTypeSelections();
if ($this->typeOptions)
// We do some sanitation for Type filter
if (SermondistributorHelper::checkArray($this->typeOptions) &&
isset($this->typeOptions[0]->value) &&
!SermondistributorHelper::checkString($this->typeOptions[0]->value))
{
unset($this->typeOptions[0]);
}
// Only load Type filter if it has values
if (SermondistributorHelper::checkArray($this->typeOptions))
{
// Type Filter
JHtmlSidebar::addFilter(
@ -223,7 +231,15 @@ class SermondistributorViewHelp_documents extends JViewLegacy
// Set Location Selection
$this->locationOptions = $this->getTheLocationSelections();
if ($this->locationOptions)
// We do some sanitation for Location filter
if (SermondistributorHelper::checkArray($this->locationOptions) &&
isset($this->locationOptions[0]->value) &&
!SermondistributorHelper::checkString($this->locationOptions[0]->value))
{
unset($this->locationOptions[0]);
}
// Only load Location filter if it has values
if (SermondistributorHelper::checkArray($this->locationOptions))
{
// Location Filter
JHtmlSidebar::addFilter(
@ -245,7 +261,15 @@ class SermondistributorViewHelp_documents extends JViewLegacy
// Set Admin View Selection
$this->admin_viewOptions = JFormHelper::loadFieldType('Adminviewfolderlist')->options;
if ($this->admin_viewOptions)
// We do some sanitation for Admin View filter
if (SermondistributorHelper::checkArray($this->admin_viewOptions) &&
isset($this->admin_viewOptions[0]->value) &&
!SermondistributorHelper::checkString($this->admin_viewOptions[0]->value))
{
unset($this->admin_viewOptions[0]);
}
// Only load Admin View filter if it has values
if (SermondistributorHelper::checkArray($this->admin_viewOptions))
{
// Admin View Filter
JHtmlSidebar::addFilter(
@ -267,7 +291,15 @@ class SermondistributorViewHelp_documents extends JViewLegacy
// Set Site View Selection
$this->site_viewOptions = JFormHelper::loadFieldType('Siteviewfolderlist')->options;
if ($this->site_viewOptions)
// We do some sanitation for Site View filter
if (SermondistributorHelper::checkArray($this->site_viewOptions) &&
isset($this->site_viewOptions[0]->value) &&
!SermondistributorHelper::checkString($this->site_viewOptions[0]->value))
{
unset($this->site_viewOptions[0]);
}
// Only load Site View filter if it has values
if (SermondistributorHelper::checkArray($this->site_viewOptions))
{
// Site View Filter
JHtmlSidebar::addFilter(

View File

@ -120,7 +120,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<input type="hidden" name="task" value="local_listing.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
</div>
</form>
</div>

View File

@ -201,7 +201,15 @@ class SermondistributorViewLocal_listings extends JViewLegacy
// Set Build Selection
$this->buildOptions = $this->getTheBuildSelections();
if ($this->buildOptions)
// We do some sanitation for Build filter
if (SermondistributorHelper::checkArray($this->buildOptions) &&
isset($this->buildOptions[0]->value) &&
!SermondistributorHelper::checkString($this->buildOptions[0]->value))
{
unset($this->buildOptions[0]);
}
// Only load Build filter if it has values
if (SermondistributorHelper::checkArray($this->buildOptions))
{
// Build Filter
JHtmlSidebar::addFilter(
@ -223,7 +231,15 @@ class SermondistributorViewLocal_listings extends JViewLegacy
// Set External Source Description Selection
$this->external_sourceDescriptionOptions = JFormHelper::loadFieldType('Externalsource')->options;
if ($this->external_sourceDescriptionOptions)
// We do some sanitation for External Source Description filter
if (SermondistributorHelper::checkArray($this->external_sourceDescriptionOptions) &&
isset($this->external_sourceDescriptionOptions[0]->value) &&
!SermondistributorHelper::checkString($this->external_sourceDescriptionOptions[0]->value))
{
unset($this->external_sourceDescriptionOptions[0]);
}
// Only load External Source Description filter if it has values
if (SermondistributorHelper::checkArray($this->external_sourceDescriptionOptions))
{
// External Source Description Filter
JHtmlSidebar::addFilter(

View File

@ -132,7 +132,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<input type="hidden" name="task" value="preacher.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
</div>
</form>
</div>

View File

@ -132,7 +132,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<input type="hidden" name="task" value="series.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
</div>
</form>
</div>

View File

@ -142,7 +142,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<input type="hidden" name="task" value="sermon.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
</div>
<div class="clearfix"></div>

View File

@ -218,7 +218,15 @@ class SermondistributorViewSermons extends JViewLegacy
// Set Preacher Name Selection
$this->preacherNameOptions = JFormHelper::loadFieldType('Preachers')->options;
if ($this->preacherNameOptions)
// We do some sanitation for Preacher Name filter
if (SermondistributorHelper::checkArray($this->preacherNameOptions) &&
isset($this->preacherNameOptions[0]->value) &&
!SermondistributorHelper::checkString($this->preacherNameOptions[0]->value))
{
unset($this->preacherNameOptions[0]);
}
// Only load Preacher Name filter if it has values
if (SermondistributorHelper::checkArray($this->preacherNameOptions))
{
// Preacher Name Filter
JHtmlSidebar::addFilter(
@ -240,7 +248,15 @@ class SermondistributorViewSermons extends JViewLegacy
// Set Series Name Selection
$this->seriesNameOptions = JFormHelper::loadFieldType('Series')->options;
if ($this->seriesNameOptions)
// We do some sanitation for Series Name filter
if (SermondistributorHelper::checkArray($this->seriesNameOptions) &&
isset($this->seriesNameOptions[0]->value) &&
!SermondistributorHelper::checkString($this->seriesNameOptions[0]->value))
{
unset($this->seriesNameOptions[0]);
}
// Only load Series Name filter if it has values
if (SermondistributorHelper::checkArray($this->seriesNameOptions))
{
// Series Name Filter
JHtmlSidebar::addFilter(
@ -262,7 +278,15 @@ class SermondistributorViewSermons extends JViewLegacy
// Set Link Type Selection
$this->link_typeOptions = $this->getTheLink_typeSelections();
if ($this->link_typeOptions)
// We do some sanitation for Link Type filter
if (SermondistributorHelper::checkArray($this->link_typeOptions) &&
isset($this->link_typeOptions[0]->value) &&
!SermondistributorHelper::checkString($this->link_typeOptions[0]->value))
{
unset($this->link_typeOptions[0]);
}
// Only load Link Type filter if it has values
if (SermondistributorHelper::checkArray($this->link_typeOptions))
{
// Link Type Filter
JHtmlSidebar::addFilter(
@ -284,7 +308,15 @@ class SermondistributorViewSermons extends JViewLegacy
// Set Source Selection
$this->sourceOptions = $this->getTheSourceSelections();
if ($this->sourceOptions)
// We do some sanitation for Source filter
if (SermondistributorHelper::checkArray($this->sourceOptions) &&
isset($this->sourceOptions[0]->value) &&
!SermondistributorHelper::checkString($this->sourceOptions[0]->value))
{
unset($this->sourceOptions[0]);
}
// Only load Source filter if it has values
if (SermondistributorHelper::checkArray($this->sourceOptions))
{
// Source Filter
JHtmlSidebar::addFilter(

View File

@ -93,7 +93,6 @@ $componentParams = $this->params; // will be removed just use $this->params inst
<input type="hidden" name="task" value="statistic.edit" />
<?php echo JHtml::_('form.token'); ?>
</div>
</div>
</div>
</form>
</div>

View File

@ -201,7 +201,15 @@ class SermondistributorViewStatistics extends JViewLegacy
// Set Sermon Name Selection
$this->sermonNameOptions = JFormHelper::loadFieldType('Sermon')->options;
if ($this->sermonNameOptions)
// We do some sanitation for Sermon Name filter
if (SermondistributorHelper::checkArray($this->sermonNameOptions) &&
isset($this->sermonNameOptions[0]->value) &&
!SermondistributorHelper::checkString($this->sermonNameOptions[0]->value))
{
unset($this->sermonNameOptions[0]);
}
// Only load Sermon Name filter if it has values
if (SermondistributorHelper::checkArray($this->sermonNameOptions))
{
// Sermon Name Filter
JHtmlSidebar::addFilter(
@ -223,7 +231,15 @@ class SermondistributorViewStatistics extends JViewLegacy
// Set Preacher Name Selection
$this->preacherNameOptions = JFormHelper::loadFieldType('Preachers')->options;
if ($this->preacherNameOptions)
// We do some sanitation for Preacher Name filter
if (SermondistributorHelper::checkArray($this->preacherNameOptions) &&
isset($this->preacherNameOptions[0]->value) &&
!SermondistributorHelper::checkString($this->preacherNameOptions[0]->value))
{
unset($this->preacherNameOptions[0]);
}
// Only load Preacher Name filter if it has values
if (SermondistributorHelper::checkArray($this->preacherNameOptions))
{
// Preacher Name Filter
JHtmlSidebar::addFilter(
@ -245,7 +261,15 @@ class SermondistributorViewStatistics extends JViewLegacy
// Set Series Name Selection
$this->seriesNameOptions = JFormHelper::loadFieldType('Series')->options;
if ($this->seriesNameOptions)
// We do some sanitation for Series Name filter
if (SermondistributorHelper::checkArray($this->seriesNameOptions) &&
isset($this->seriesNameOptions[0]->value) &&
!SermondistributorHelper::checkString($this->seriesNameOptions[0]->value))
{
unset($this->seriesNameOptions[0]);
}
// Only load Series Name filter if it has values
if (SermondistributorHelper::checkArray($this->seriesNameOptions))
{
// Series Name Filter
JHtmlSidebar::addFilter(

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="3.2" method="upgrade">
<name>COM_SERMONDISTRIBUTOR</name>
<creationDate>23rd April, 2019</creationDate>
<creationDate>12th June, 2019</creationDate>
<author>Llewellyn van der Merwe</author>
<authorEmail>joomla@vdm.io</authorEmail>
<authorUrl>https://www.vdm.io/</authorUrl>

View File

@ -62,6 +62,11 @@ class SermondistributorControllerDownload extends JControllerLegacy
// we must first count this download
if (SermondistributorHelper::countDownload($keys,$filename))
{
$model = SermondistributorHelper::getModel('preachers', JPATH_COMPONENT_ADMINISTRATOR);
if (($result = $model->getSomeStuff($filename)) !== false)
{
// on success do some thing more (code here)
}
// get Site name
$config = JFactory::getConfig();
$vendor = $config->get('sitename');

View File

@ -30,7 +30,7 @@ defined('_JEXEC') or die('Restricted access');
*/
//Insure this view category file is loaded.
$classname = 'sermondistributorSermonsCategories';
$classname = 'SermondistributorSermonsCategories';
if (!class_exists($classname))
{
$path = JPATH_SITE . '/components/com_sermondistributor/helpers/categorysermons.php';