Addes more support for array values in the filter area.
This commit is contained in:
parent
10946ba899
commit
152026d4d1
@ -23,7 +23,7 @@ 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)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
|
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
|
||||||
+ *First Build*: 22nd October, 2015
|
+ *First Build*: 22nd October, 2015
|
||||||
+ *Last Build*: 3rd December, 2020
|
+ *Last Build*: 4th December, 2020
|
||||||
+ *Version*: 2.0.x
|
+ *Version*: 2.0.x
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
@ -36,7 +36,7 @@ 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**,
|
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||||
> never making one mistake or taking any coffee break.)
|
> never making one mistake or taking any coffee break.)
|
||||||
|
|
||||||
+ *Line count*: **72786**
|
+ *Line count*: **72798**
|
||||||
+ *File count*: **459**
|
+ *File count*: **459**
|
||||||
+ *Folder count*: **93**
|
+ *Folder count*: **93**
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ 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)
|
+ *Author*: [Llewellyn van der Merwe](mailto:joomla@vdm.io)
|
||||||
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
|
+ *Name*: [Sermon Distributor](https://www.vdm.io/)
|
||||||
+ *First Build*: 22nd October, 2015
|
+ *First Build*: 22nd October, 2015
|
||||||
+ *Last Build*: 3rd December, 2020
|
+ *Last Build*: 4th December, 2020
|
||||||
+ *Version*: 2.0.x
|
+ *Version*: 2.0.x
|
||||||
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
+ *Copyright*: Copyright (C) 2015. All Rights Reserved
|
||||||
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
+ *License*: GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html
|
||||||
@ -36,7 +36,7 @@ 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**,
|
> (if creating a folder and file took **5 seconds** and writing one line of code took **10 seconds**,
|
||||||
> never making one mistake or taking any coffee break.)
|
> never making one mistake or taking any coffee break.)
|
||||||
|
|
||||||
+ *Line count*: **72786**
|
+ *Line count*: **72798**
|
||||||
+ *File count*: **459**
|
+ *File count*: **459**
|
||||||
+ *Folder count*: **93**
|
+ *Folder count*: **93**
|
||||||
|
|
||||||
|
@ -73,8 +73,15 @@ class SermondistributorModelExternal_sources extends JModelList
|
|||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the form was submitted
|
||||||
|
$formSubmited = $app->input->post->get('form_submited');
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.access', $access);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$access = $app->input->post->get('access');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
}
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$this->setState('filter.published', $published);
|
$this->setState('filter.published', $published);
|
||||||
@ -91,9 +98,6 @@ class SermondistributorModelExternal_sources extends JModelList
|
|||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
// Check if the form was submitted
|
|
||||||
$formSubmited = $app->input->post->get('form_submited');
|
|
||||||
|
|
||||||
$externalsources = $this->getUserStateFromRequest($this->context . '.filter.externalsources', 'filter_externalsources');
|
$externalsources = $this->getUserStateFromRequest($this->context . '.filter.externalsources', 'filter_externalsources');
|
||||||
if ($formSubmited)
|
if ($formSubmited)
|
||||||
{
|
{
|
||||||
|
@ -75,8 +75,15 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the form was submitted
|
||||||
|
$formSubmited = $app->input->post->get('form_submited');
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.access', $access);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$access = $app->input->post->get('access');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
}
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$this->setState('filter.published', $published);
|
$this->setState('filter.published', $published);
|
||||||
@ -93,9 +100,6 @@ class SermondistributorModelHelp_documents extends JModelList
|
|||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
// Check if the form was submitted
|
|
||||||
$formSubmited = $app->input->post->get('form_submited');
|
|
||||||
|
|
||||||
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
||||||
if ($formSubmited)
|
if ($formSubmited)
|
||||||
{
|
{
|
||||||
|
@ -74,8 +74,15 @@ class SermondistributorModelLocal_listings extends JModelList
|
|||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the form was submitted
|
||||||
|
$formSubmited = $app->input->post->get('form_submited');
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.access', $access);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$access = $app->input->post->get('access');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
}
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$this->setState('filter.published', $published);
|
$this->setState('filter.published', $published);
|
||||||
@ -92,9 +99,6 @@ class SermondistributorModelLocal_listings extends JModelList
|
|||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
// Check if the form was submitted
|
|
||||||
$formSubmited = $app->input->post->get('form_submited');
|
|
||||||
|
|
||||||
$build = $this->getUserStateFromRequest($this->context . '.filter.build', 'filter_build');
|
$build = $this->getUserStateFromRequest($this->context . '.filter.build', 'filter_build');
|
||||||
if ($formSubmited)
|
if ($formSubmited)
|
||||||
{
|
{
|
||||||
|
@ -72,8 +72,15 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the form was submitted
|
||||||
|
$formSubmited = $app->input->post->get('form_submited');
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.access', $access);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$access = $app->input->post->get('access');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
}
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$this->setState('filter.published', $published);
|
$this->setState('filter.published', $published);
|
||||||
@ -90,9 +97,6 @@ class SermondistributorModelPreachers extends JModelList
|
|||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
// Check if the form was submitted
|
|
||||||
$formSubmited = $app->input->post->get('form_submited');
|
|
||||||
|
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
if ($formSubmited)
|
if ($formSubmited)
|
||||||
{
|
{
|
||||||
|
@ -71,8 +71,15 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the form was submitted
|
||||||
|
$formSubmited = $app->input->post->get('form_submited');
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.access', $access);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$access = $app->input->post->get('access');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
}
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$this->setState('filter.published', $published);
|
$this->setState('filter.published', $published);
|
||||||
@ -89,9 +96,6 @@ class SermondistributorModelSeries_list extends JModelList
|
|||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
// Check if the form was submitted
|
|
||||||
$formSubmited = $app->input->post->get('form_submited');
|
|
||||||
|
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
if ($formSubmited)
|
if ($formSubmited)
|
||||||
{
|
{
|
||||||
|
@ -79,8 +79,15 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the form was submitted
|
||||||
|
$formSubmited = $app->input->post->get('form_submited');
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.access', $access);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$access = $app->input->post->get('access');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
}
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$this->setState('filter.published', $published);
|
$this->setState('filter.published', $published);
|
||||||
@ -97,9 +104,6 @@ class SermondistributorModelSermons extends JModelList
|
|||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
// Check if the form was submitted
|
|
||||||
$formSubmited = $app->input->post->get('form_submited');
|
|
||||||
|
|
||||||
$preacher = $this->getUserStateFromRequest($this->context . '.filter.preacher', 'filter_preacher');
|
$preacher = $this->getUserStateFromRequest($this->context . '.filter.preacher', 'filter_preacher');
|
||||||
if ($formSubmited)
|
if ($formSubmited)
|
||||||
{
|
{
|
||||||
|
@ -75,8 +75,15 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Check if the form was submitted
|
||||||
|
$formSubmited = $app->input->post->get('form_submited');
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.access', $access);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$access = $app->input->post->get('access');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
}
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$this->setState('filter.published', $published);
|
$this->setState('filter.published', $published);
|
||||||
@ -93,9 +100,6 @@ class SermondistributorModelStatistics extends JModelList
|
|||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
// Check if the form was submitted
|
|
||||||
$formSubmited = $app->input->post->get('form_submited');
|
|
||||||
|
|
||||||
$sermon = $this->getUserStateFromRequest($this->context . '.filter.sermon', 'filter_sermon');
|
$sermon = $this->getUserStateFromRequest($this->context . '.filter.sermon', 'filter_sermon');
|
||||||
if ($formSubmited)
|
if ($formSubmited)
|
||||||
{
|
{
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<extension type="component" version="3.2" method="upgrade">
|
<extension type="component" version="3.2" method="upgrade">
|
||||||
<name>COM_SERMONDISTRIBUTOR</name>
|
<name>COM_SERMONDISTRIBUTOR</name>
|
||||||
<creationDate>3rd December, 2020</creationDate>
|
<creationDate>4th December, 2020</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>joomla@vdm.io</authorEmail>
|
<authorEmail>joomla@vdm.io</authorEmail>
|
||||||
<authorUrl>https://www.vdm.io/</authorUrl>
|
<authorUrl>https://www.vdm.io/</authorUrl>
|
||||||
|
@ -121,8 +121,6 @@ class SermondistributorViewApi extends JViewLegacy
|
|||||||
*/
|
*/
|
||||||
protected function addToolBar()
|
protected function addToolBar()
|
||||||
{
|
{
|
||||||
// adding the joomla toolbar to the front
|
|
||||||
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
|
|
||||||
|
|
||||||
// set help url for this view if found
|
// set help url for this view if found
|
||||||
$help_url = SermondistributorHelper::getHelpUrl('api');
|
$help_url = SermondistributorHelper::getHelpUrl('api');
|
||||||
|
@ -212,8 +212,6 @@ class SermondistributorViewCategories extends JViewLegacy
|
|||||||
*/
|
*/
|
||||||
protected function addToolBar()
|
protected function addToolBar()
|
||||||
{
|
{
|
||||||
// adding the joomla toolbar to the front
|
|
||||||
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
|
|
||||||
|
|
||||||
// set help url for this view if found
|
// set help url for this view if found
|
||||||
$help_url = SermondistributorHelper::getHelpUrl('categories');
|
$help_url = SermondistributorHelper::getHelpUrl('categories');
|
||||||
|
@ -303,8 +303,6 @@ class SermondistributorViewCategory extends JViewLegacy
|
|||||||
*/
|
*/
|
||||||
protected function addToolBar()
|
protected function addToolBar()
|
||||||
{
|
{
|
||||||
// adding the joomla toolbar to the front
|
|
||||||
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
|
|
||||||
|
|
||||||
// set help url for this view if found
|
// set help url for this view if found
|
||||||
$help_url = SermondistributorHelper::getHelpUrl('category');
|
$help_url = SermondistributorHelper::getHelpUrl('category');
|
||||||
|
@ -299,8 +299,6 @@ class SermondistributorViewPreacher extends JViewLegacy
|
|||||||
*/
|
*/
|
||||||
protected function addToolBar()
|
protected function addToolBar()
|
||||||
{
|
{
|
||||||
// adding the joomla toolbar to the front
|
|
||||||
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
|
|
||||||
|
|
||||||
// set help url for this view if found
|
// set help url for this view if found
|
||||||
$help_url = SermondistributorHelper::getHelpUrl('preacher');
|
$help_url = SermondistributorHelper::getHelpUrl('preacher');
|
||||||
|
@ -227,8 +227,6 @@ class SermondistributorViewPreachers extends JViewLegacy
|
|||||||
*/
|
*/
|
||||||
protected function addToolBar()
|
protected function addToolBar()
|
||||||
{
|
{
|
||||||
// adding the joomla toolbar to the front
|
|
||||||
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
|
|
||||||
|
|
||||||
// set help url for this view if found
|
// set help url for this view if found
|
||||||
$help_url = SermondistributorHelper::getHelpUrl('preachers');
|
$help_url = SermondistributorHelper::getHelpUrl('preachers');
|
||||||
|
@ -298,8 +298,6 @@ class SermondistributorViewSeries extends JViewLegacy
|
|||||||
*/
|
*/
|
||||||
protected function addToolBar()
|
protected function addToolBar()
|
||||||
{
|
{
|
||||||
// adding the joomla toolbar to the front
|
|
||||||
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
|
|
||||||
|
|
||||||
// set help url for this view if found
|
// set help url for this view if found
|
||||||
$help_url = SermondistributorHelper::getHelpUrl('series');
|
$help_url = SermondistributorHelper::getHelpUrl('series');
|
||||||
|
@ -227,8 +227,6 @@ class SermondistributorViewSerieslist extends JViewLegacy
|
|||||||
*/
|
*/
|
||||||
protected function addToolBar()
|
protected function addToolBar()
|
||||||
{
|
{
|
||||||
// adding the joomla toolbar to the front
|
|
||||||
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
|
|
||||||
|
|
||||||
// set help url for this view if found
|
// set help url for this view if found
|
||||||
$help_url = SermondistributorHelper::getHelpUrl('serieslist');
|
$help_url = SermondistributorHelper::getHelpUrl('serieslist');
|
||||||
|
@ -278,8 +278,6 @@ class SermondistributorViewSermon extends JViewLegacy
|
|||||||
*/
|
*/
|
||||||
protected function addToolBar()
|
protected function addToolBar()
|
||||||
{
|
{
|
||||||
// adding the joomla toolbar to the front
|
|
||||||
JLoader::register('JToolbarHelper', JPATH_ADMINISTRATOR.'/includes/toolbar.php');
|
|
||||||
|
|
||||||
// set help url for this view if found
|
// set help url for this view if found
|
||||||
$help_url = SermondistributorHelper::getHelpUrl('sermon');
|
$help_url = SermondistributorHelper::getHelpUrl('sermon');
|
||||||
|
Loading…
Reference in New Issue
Block a user