Updated the contribute area in README. Added the multi filter query method, and adapted the setFilterQuery method for the new filter options. gh-378
This commit is contained in:
parent
d7233a1420
commit
2490123095
20
README.md
20
README.md
@ -144,11 +144,11 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 17th November, 2020
|
+ *Last Build*: 20th November, 2020
|
||||||
+ *Version*: 2.11.7
|
+ *Version*: 2.11.7
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **283896**
|
+ *Line count*: **284083**
|
||||||
+ *Field count*: **1537**
|
+ *Field count*: **1537**
|
||||||
+ *File count*: **1799**
|
+ *File count*: **1799**
|
||||||
+ *Folder count*: **304**
|
+ *Folder count*: **304**
|
||||||
@ -156,8 +156,9 @@ TODO
|
|||||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
|
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
This project exists thanks to all the people who contribute.
|
This project exists thanks to all the people who contribute to the [Joomla Component Builder Project](https://github.com/vdm-io/Joomla-Component-Builder).
|
||||||
|
|
||||||
[![Contributors](https://opencollective.com/Joomla-Component-Builder/contributors.svg?width=890&button=false)](https://github.com/vdm-io/Joomla-Component-Builder/graphs/contributors)
|
[![Contributors](https://opencollective.com/Joomla-Component-Builder/contributors.svg?width=890&button=false)](https://github.com/vdm-io/Joomla-Component-Builder/graphs/contributors)
|
||||||
|
|
||||||
@ -178,4 +179,15 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
|
|||||||
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/6/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/6/website)
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/6/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/6/website)
|
||||||
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/7/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/7/website)
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/7/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/7/website)
|
||||||
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/8/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/8/website)
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/8/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/8/website)
|
||||||
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/9/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/9/website)
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/9/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/9/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/10/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/10/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/11/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/11/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/12/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/12/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/13/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/13/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/14/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/14/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/15/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/15/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/16/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/16/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/17/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/17/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/18/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/18/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/19/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/19/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/20/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/20/website)
|
@ -144,11 +144,11 @@ TODO
|
|||||||
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
+ *Author*: [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
+ *Name*: [Component Builder](https://github.com/vdm-io/Joomla-Component-Builder)
|
||||||
+ *First Build*: 30th April, 2015
|
+ *First Build*: 30th April, 2015
|
||||||
+ *Last Build*: 17th November, 2020
|
+ *Last Build*: 20th November, 2020
|
||||||
+ *Version*: 2.11.7
|
+ *Version*: 2.11.7
|
||||||
+ *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved.
|
+ *Copyright*: Copyright (C) 2015 - 2020 Vast Development Method. All rights reserved.
|
||||||
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
+ *License*: GNU General Public License version 2 or later; see LICENSE.txt
|
||||||
+ *Line count*: **283896**
|
+ *Line count*: **284083**
|
||||||
+ *Field count*: **1537**
|
+ *Field count*: **1537**
|
||||||
+ *File count*: **1799**
|
+ *File count*: **1799**
|
||||||
+ *Folder count*: **304**
|
+ *Folder count*: **304**
|
||||||
@ -156,8 +156,9 @@ TODO
|
|||||||
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
> This **component** was build with a [Joomla](https://extensions.joomla.org/extension/component-builder/) [Automated Component Builder](http://joomlacomponentbuilder.com).
|
||||||
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
> Developed by [Llewellyn van der Merwe](mailto:llewellyn@joomlacomponentbuilder.com)
|
||||||
|
|
||||||
|
|
||||||
## Contributors
|
## Contributors
|
||||||
This project exists thanks to all the people who contribute.
|
This project exists thanks to all the people who contribute to the [Joomla Component Builder Project](https://github.com/vdm-io/Joomla-Component-Builder).
|
||||||
|
|
||||||
[![Contributors](https://opencollective.com/Joomla-Component-Builder/contributors.svg?width=890&button=false)](https://github.com/vdm-io/Joomla-Component-Builder/graphs/contributors)
|
[![Contributors](https://opencollective.com/Joomla-Component-Builder/contributors.svg?width=890&button=false)](https://github.com/vdm-io/Joomla-Component-Builder/graphs/contributors)
|
||||||
|
|
||||||
@ -178,4 +179,15 @@ Support this project by becoming a sponsor. Your logo will show up here with a l
|
|||||||
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/6/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/6/website)
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/6/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/6/website)
|
||||||
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/7/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/7/website)
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/7/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/7/website)
|
||||||
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/8/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/8/website)
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/8/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/8/website)
|
||||||
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/9/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/9/website)
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/9/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/9/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/10/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/10/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/11/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/11/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/12/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/12/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/13/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/13/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/14/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/14/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/15/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/15/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/16/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/16/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/17/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/17/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/18/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/18/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/19/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/19/website)
|
||||||
|
[![Sponsor](https://opencollective.com/Joomla-Component-Builder/sponsor/20/avatar.svg)](https://opencollective.com/Joomla-Component-Builder/sponsor/20/website)
|
@ -35,11 +35,17 @@ class ###Component###Model###Views### extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}###ADMIN_CUSTOM_BUTTONS_METHOD_LIST###
|
}###ADMIN_CUSTOM_BUTTONS_METHOD_LIST###
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -49,26 +55,7 @@ class ###Component###Model###Views### extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}###POPULATESTATE###
|
||||||
###POPULATESTATE###
|
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -15485,47 +15485,51 @@ class Interpretation extends Fields
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setFilterQuery($viewName_list)
|
/**
|
||||||
|
* build model filter per/field in the list view
|
||||||
|
*
|
||||||
|
* @param string $view_name_list The list view name
|
||||||
|
*
|
||||||
|
* @return string The php to place in model to filter
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function setFilterQuery($view_name_list)
|
||||||
{
|
{
|
||||||
if (isset($this->filterBuilder[$viewName_list])
|
if (isset($this->filterBuilder[$view_name_list])
|
||||||
&& ComponentbuilderHelper::checkArray(
|
&& ComponentbuilderHelper::checkArray(
|
||||||
$this->filterBuilder[$viewName_list]
|
$this->filterBuilder[$view_name_list]
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
|
// component helper name
|
||||||
|
$Helper = $this->fileContentStatic[$this->hhh . 'Component'
|
||||||
|
. $this->hhh] . 'Helper';
|
||||||
|
// start building the filter query
|
||||||
$filterQuery = "";
|
$filterQuery = "";
|
||||||
foreach ($this->filterBuilder[$viewName_list] as $filter)
|
foreach ($this->filterBuilder[$view_name_list] as $filter)
|
||||||
{
|
{
|
||||||
if ($filter['type'] != 'category'
|
// only add for none category fields
|
||||||
&& ComponentbuilderHelper::checkArray($filter['custom']))
|
if ($filter['type'] != 'category')
|
||||||
{
|
{
|
||||||
$filterQuery .= PHP_EOL . $this->_t(2) . "//"
|
$filterQuery .= PHP_EOL . $this->_t(2) . "//"
|
||||||
. $this->setLine(__LINE__) . " Filter by "
|
. $this->setLine(__LINE__) . " Filter by "
|
||||||
. $filter['code'] . ".";
|
. ucwords($filter['code']) . ".";
|
||||||
$filterQuery .= PHP_EOL . $this->_t(2) . "if (\$"
|
// we only add multi filter option if new filter type
|
||||||
. $filter['code'] . " = \$this->getState('filter."
|
// and we have multi filter set for this field
|
||||||
. $filter['code'] . "'))";
|
if (isset($this->adminFilterType[$view_name_list])
|
||||||
$filterQuery .= PHP_EOL . $this->_t(2) . "{";
|
&& $this->adminFilterType[$view_name_list] == 2
|
||||||
$filterQuery .= PHP_EOL . $this->_t(3)
|
&& isset($filter['multi'])
|
||||||
. "\$query->where('a." . $filter['code']
|
&& $filter['multi'] == 2)
|
||||||
. " = ' . \$db->quote(\$db->escape(\$" . $filter['code']
|
{
|
||||||
. ")));";
|
$filterQuery .= $this->setMultiFilterQuery(
|
||||||
$filterQuery .= PHP_EOL . $this->_t(2) . "}";
|
$filter, $Helper
|
||||||
}
|
);
|
||||||
elseif ($filter['type'] != 'category')
|
}
|
||||||
{
|
else
|
||||||
$filterQuery .= PHP_EOL . $this->_t(2) . "//"
|
{
|
||||||
. $this->setLine(__LINE__) . " Filter by " . ucwords(
|
$filterQuery .= $this->setSingleFilterQuery(
|
||||||
$filter['code']
|
$filter
|
||||||
) . ".";
|
);
|
||||||
$filterQuery .= PHP_EOL . $this->_t(2) . "if (\$"
|
}
|
||||||
. $filter['code'] . " = \$this->getState('filter."
|
|
||||||
. $filter['code'] . "'))";
|
|
||||||
$filterQuery .= PHP_EOL . $this->_t(2) . "{";
|
|
||||||
$filterQuery .= PHP_EOL . $this->_t(3)
|
|
||||||
. "\$query->where('a." . $filter['code']
|
|
||||||
. " = ' . \$db->quote(\$db->escape(\$" . $filter['code']
|
|
||||||
. ")));";
|
|
||||||
$filterQuery .= PHP_EOL . $this->_t(2) . "}";
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -15535,6 +15539,112 @@ class Interpretation extends Fields
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* build single filter query
|
||||||
|
*
|
||||||
|
* @param array $filter The field/filter
|
||||||
|
* @param string $a The db table target name (a)
|
||||||
|
*
|
||||||
|
* @return string The php to place in model to filter this field
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected function setSingleFilterQuery($filter, $a = "a")
|
||||||
|
{
|
||||||
|
$filterQuery = PHP_EOL . $this->_t(2) . "if (\$"
|
||||||
|
. $filter['code'] . " = \$this->getState('filter."
|
||||||
|
. $filter['code'] . "'))";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "{";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3)
|
||||||
|
. "\$query->where('" . $a . "." . $filter['code']
|
||||||
|
. " = ' . \$db->quote(\$db->escape(\$"
|
||||||
|
. $filter['code']
|
||||||
|
. ")));";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "}";
|
||||||
|
|
||||||
|
return $filterQuery;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* build multiple filter query
|
||||||
|
*
|
||||||
|
* @param array $filter The field/filter
|
||||||
|
* @param string $Helper The helper name of the component being build
|
||||||
|
* @param string $a The db table target name (a)
|
||||||
|
*
|
||||||
|
* @return string The php to place in model to filter this field
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected function setMultiFilterQuery($filter, $Helper, $a = "a")
|
||||||
|
{
|
||||||
|
$filterQuery = PHP_EOL . $this->_t(2) . "\$_"
|
||||||
|
. $filter['code'] . " = \$this->getState('filter."
|
||||||
|
. $filter['code'] . "');";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "if (is_numeric(\$_"
|
||||||
|
. $filter['code'] . "))";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "{";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3) . "if (is_float(\$_"
|
||||||
|
. $filter['code'] . "))";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3) . "{";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(4)
|
||||||
|
. "\$query->where('" . $a . "." . $filter['code']
|
||||||
|
. " = ' . (float) \$_" . $filter['code'] . ");";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3) . "}";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3) . "else";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3) . "{";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(4)
|
||||||
|
. "\$query->where('" . $a . "." . $filter['code']
|
||||||
|
. " = ' . (int) \$_" . $filter['code'] . ");";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3) . "}";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "}";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "elseif ("
|
||||||
|
. $Helper . "::checkString(\$_" . $filter['code'] . "))";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "{";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3)
|
||||||
|
. "\$query->where('" . $a . "." . $filter['code']
|
||||||
|
. " = ' . \$db->quote(\$db->escape(\$_" . $filter['code']
|
||||||
|
. ")));";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "}";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "elseif ("
|
||||||
|
. $Helper . "::checkArray(\$_" . $filter['code'] . "))";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "{";
|
||||||
|
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3) . "//"
|
||||||
|
. $this->setLine(__LINE__) . " Secure the array for the query";
|
||||||
|
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3) . "\$_" . $filter['code']
|
||||||
|
. " = array_map( function (\$val) use(&\$db) {";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(4) . "if (is_numeric(\$val))";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(4) . "{";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(5) . "if (is_float(\$val))";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(5) . "{";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(6) . "return (float) \$val;";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(5) . "}";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(5) . "else";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(5) . "{";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(6) . "return (int) \$val;";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(5) . "}";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(4) . "}";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(4) . "elseif ("
|
||||||
|
. $Helper . "::checkString(\$val))";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(4) . "{";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(5)
|
||||||
|
. "return \$db->quote(\$db->escape(\$val));";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(4) . "}";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3) . "}, \$_"
|
||||||
|
. $filter['code'] . ");";
|
||||||
|
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3) . "//"
|
||||||
|
. $this->setLine(__LINE__) . " Filter by the "
|
||||||
|
. ucwords($filter['code']) . " Array.";
|
||||||
|
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(3)
|
||||||
|
. "\$query->where('" . $a . "." . $filter['code']
|
||||||
|
. " IN (' . implode(',', \$_" . $filter['code'] . ") . ')');";
|
||||||
|
$filterQuery .= PHP_EOL . $this->_t(2) . "}";
|
||||||
|
|
||||||
|
return $filterQuery;
|
||||||
|
}
|
||||||
|
|
||||||
public function buildTheViewScript($viewArray)
|
public function buildTheViewScript($viewArray)
|
||||||
{
|
{
|
||||||
// set the view name
|
// set the view name
|
||||||
@ -20042,149 +20152,139 @@ class Interpretation extends Fields
|
|||||||
return $toolBar;
|
return $toolBar;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setPopulateState(&$view)
|
/**
|
||||||
|
* set the populate state code
|
||||||
|
*
|
||||||
|
* @param string $name_single_code The single view name
|
||||||
|
* @param string $name_list_code The list view name
|
||||||
|
*
|
||||||
|
* @return string The code for the populate state
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
public function setPopulateState(&$name_single_code, &$name_list_code)
|
||||||
{
|
{
|
||||||
// reset buket
|
// reset bucket
|
||||||
$state = '';
|
$state = '';
|
||||||
// keep track of all fields already added
|
// keep track of all fields already added
|
||||||
$donelist = array();
|
$donelist = array();
|
||||||
|
// add the default populate states
|
||||||
|
$state .= $this->setDefaultPopulateState($name_single_code);
|
||||||
|
// we must add the formSubmited code if new above filters is used
|
||||||
|
$new_filter = false;
|
||||||
|
if (isset($this->adminFilterType[$name_list_code])
|
||||||
|
&& $this->adminFilterType[$name_list_code] == 2)
|
||||||
|
{
|
||||||
|
$state .= PHP_EOL . PHP_EOL . $this->_t(2) . "//"
|
||||||
|
. $this->setLine(__LINE__) . " Check if the form was submitted";
|
||||||
|
$state .= PHP_EOL . $this->_t(2) . "\$formSubmited"
|
||||||
|
. " = \$app->input->post->get('form_submited');";
|
||||||
|
$new_filter = true;
|
||||||
|
}
|
||||||
|
// add the filters
|
||||||
|
if (isset($this->filterBuilder[$name_list_code])
|
||||||
|
&& ComponentbuilderHelper::checkArray($this->filterBuilder[$name_list_code]))
|
||||||
|
{
|
||||||
|
foreach ($this->filterBuilder[$name_list_code] as $filter)
|
||||||
|
{
|
||||||
|
if (!in_array($filter['code'], $donelist))
|
||||||
|
{
|
||||||
|
$state .= $this->getPopulateStateFilterCode($filter['code'], $new_filter);
|
||||||
|
$donelist[] = $filter['code'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// add the rest of the set filters
|
||||||
|
if (isset($this->sortBuilder[$name_list_code])
|
||||||
|
&& ComponentbuilderHelper::checkArray($this->sortBuilder[$name_list_code]))
|
||||||
|
{
|
||||||
|
foreach ($this->sortBuilder[$name_list_code] as $filter)
|
||||||
|
{
|
||||||
|
if (!in_array($filter['code'], $donelist))
|
||||||
|
{
|
||||||
|
$state .= $this->getPopulateStateFilterCode($filter['code'], $new_filter);
|
||||||
|
$donelist[] = $filter['code'];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// add the rest of the set filters
|
return $state;
|
||||||
if (isset($this->sortBuilder[$view])
|
}
|
||||||
&& ComponentbuilderHelper::checkArray($this->sortBuilder[$view]))
|
|
||||||
|
/**
|
||||||
|
* Add the code of the filter in the populate state
|
||||||
|
*
|
||||||
|
* @param string $key The field key (code)
|
||||||
|
* @param bool $new_filter The switch to use the new filter
|
||||||
|
* @param string $extra The defaults/extra options of the filter
|
||||||
|
*
|
||||||
|
* @return string The code for the populate state
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected function getPopulateStateFilterCode($key, $new_filter, $extra = '')
|
||||||
|
{
|
||||||
|
$state = PHP_EOL . PHP_EOL . $this->_t(2) . "\$" . $key
|
||||||
|
. " = \$this->getUserStateFromRequest(\$this->context . '.filter."
|
||||||
|
. $key . "', 'filter_" . $key
|
||||||
|
. "'" . $extra . ");";
|
||||||
|
if ($new_filter)
|
||||||
{
|
{
|
||||||
foreach ($this->sortBuilder[$view] as $filter)
|
// add the new filter option
|
||||||
{
|
$state .= PHP_EOL . $this->_t(2)
|
||||||
if (!in_array($filter['code'], $donelist))
|
. "if (\$formSubmited)";
|
||||||
{
|
$state .= PHP_EOL . $this->_t(2) . "{";
|
||||||
if ($filter['type'] === 'category')
|
$state .= PHP_EOL . $this->_t(3) . "\$" . $key
|
||||||
{
|
. " = \$app->input->post->get('" . $key . "');";
|
||||||
if (strlen($state) == 0)
|
$state .= PHP_EOL . $this->_t(3)
|
||||||
{
|
. "\$this->setState('filter." . $key
|
||||||
$spacer = "";
|
. "', \$" . $key . ");";
|
||||||
}
|
$state .= PHP_EOL . $this->_t(2) . "}";
|
||||||
else
|
|
||||||
{
|
|
||||||
$spacer = PHP_EOL . PHP_EOL . $this->_t(2);
|
|
||||||
}
|
|
||||||
$state .= $spacer
|
|
||||||
. "\$category = \$app->getUserStateFromRequest(\$this->context . '.filter.category', 'filter_category');";
|
|
||||||
$state .= PHP_EOL . $this->_t(2)
|
|
||||||
. "\$this->setState('filter.category', \$category);";
|
|
||||||
$state .= PHP_EOL . PHP_EOL . $this->_t(2)
|
|
||||||
. "\$categoryId = \$this->getUserStateFromRequest(\$this->context . '.filter.category_id', 'filter_category_id');";
|
|
||||||
$state .= PHP_EOL . $this->_t(2)
|
|
||||||
. "\$this->setState('filter.category_id', \$categoryId);";
|
|
||||||
if ($filter['code'] != 'category')
|
|
||||||
{
|
|
||||||
$state .= PHP_EOL . PHP_EOL . $this->_t(2) . "\$"
|
|
||||||
. $filter['code']
|
|
||||||
. " = \$app->getUserStateFromRequest(\$this->context . '.filter."
|
|
||||||
. $filter['code'] . "', 'filter_"
|
|
||||||
. $filter['code'] . "');";
|
|
||||||
$state .= PHP_EOL . $this->_t(2)
|
|
||||||
. "\$this->setState('filter." . $filter['code']
|
|
||||||
. "', \$" . $filter['code'] . ");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (strlen($state) == 0)
|
|
||||||
{
|
|
||||||
$spacer = "";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$spacer = PHP_EOL . PHP_EOL . $this->_t(2);
|
|
||||||
}
|
|
||||||
// check if custom field is set
|
|
||||||
/* if (ComponentbuilderHelper::checkArray($filter['custom']))
|
|
||||||
{
|
|
||||||
$state .= $spacer."\$".$filter['code']."_".$filter['custom']['text']." = \$this->getUserStateFromRequest(\$this->context . '.filter.".$filter['code']."_".$filter['custom']['text']."', 'filter_".$filter['code']."_".$filter['custom']['text']."');";
|
|
||||||
$state .= PHP_EOL.$this->_t(2) . "\$this->setState('filter.".$filter['code']."_".$filter['custom']['text']."', \$".$filter['code']."_".$filter['custom']['text'].");";
|
|
||||||
$spacer = PHP_EOL.PHP_EOL.$this->_t(2);
|
|
||||||
} */
|
|
||||||
$state .= $spacer . "\$" . $filter['code']
|
|
||||||
. " = \$this->getUserStateFromRequest(\$this->context . '.filter."
|
|
||||||
. $filter['code'] . "', 'filter_" . $filter['code']
|
|
||||||
. "');";
|
|
||||||
$state .= PHP_EOL . $this->_t(2)
|
|
||||||
. "\$this->setState('filter." . $filter['code']
|
|
||||||
. "', \$" . $filter['code'] . ");";
|
|
||||||
}
|
|
||||||
$donelist[] = $filter['code'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// add the rest of the set filters
|
else
|
||||||
if (isset($this->filterBuilder[$view])
|
|
||||||
&& ComponentbuilderHelper::checkArray($this->filterBuilder[$view]))
|
|
||||||
{
|
{
|
||||||
foreach ($this->filterBuilder[$view] as $filter)
|
// the old filter option
|
||||||
{
|
$state .= PHP_EOL . $this->_t(2)
|
||||||
if (!in_array($filter['code'], $donelist))
|
. "\$this->setState('filter." . $key
|
||||||
{
|
. "', \$" . $key . ");";
|
||||||
if ($filter['type'] === 'category')
|
|
||||||
{
|
|
||||||
if (strlen($state) == 0)
|
|
||||||
{
|
|
||||||
$spacer = "";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$spacer = PHP_EOL . PHP_EOL . $this->_t(2);
|
|
||||||
}
|
|
||||||
$state .= $spacer
|
|
||||||
. "\$category = \$app->getUserStateFromRequest(\$this->context . '.filter.category', 'filter_category');";
|
|
||||||
$state .= PHP_EOL . $this->_t(2)
|
|
||||||
. "\$this->setState('filter.category', \$category);";
|
|
||||||
$state .= PHP_EOL . PHP_EOL . $this->_t(2)
|
|
||||||
. "\$categoryId = \$this->getUserStateFromRequest(\$this->context . '.filter.category_id', 'filter_category_id');";
|
|
||||||
$state .= PHP_EOL . $this->_t(2)
|
|
||||||
. "\$this->setState('filter.category_id', \$categoryId);";
|
|
||||||
if ($filter['code'] != 'category')
|
|
||||||
{
|
|
||||||
$state .= PHP_EOL . PHP_EOL . $this->_t(2) . "\$"
|
|
||||||
. $filter['code']
|
|
||||||
. " = \$app->getUserStateFromRequest(\$this->context . '.filter."
|
|
||||||
. $filter['code'] . "', 'filter_"
|
|
||||||
. $filter['code'] . "');";
|
|
||||||
$state .= PHP_EOL . $this->_t(2)
|
|
||||||
. "\$this->setState('filter." . $filter['code']
|
|
||||||
. "', \$" . $filter['code'] . ");";
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if (strlen($state) == 0)
|
|
||||||
{
|
|
||||||
$spacer = "";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
$spacer = PHP_EOL . PHP_EOL . $this->_t(2);
|
|
||||||
}
|
|
||||||
// check if custom field is set
|
|
||||||
/* if (ComponentbuilderHelper::checkArray($filter['custom']))
|
|
||||||
{
|
|
||||||
$state .= $spacer."\$".$filter['custom']['text']." = \$this->getUserStateFromRequest(\$this->context . '.filter.".$filter['custom']['text']."', 'filter_".$filter['custom']['text']."');";
|
|
||||||
$state .= PHP_EOL.$this->_t(2) . "\$this->setState('filter.".$filter['custom']['text']."', \$".$filter['custom']['text'].");";
|
|
||||||
$state .= PHP_EOL.$this->_t(2) . "\$".$filter['code']."_".$filter['custom']['text']." = \$this->getUserStateFromRequest(\$this->context . '.filter.".$filter['code']."_".$filter['custom']['text']."', 'filter_".$filter['code']."_".$filter['custom']['text']."');";
|
|
||||||
$state .= PHP_EOL.$this->_t(2) . "\$this->setState('filter.".$filter['code']."_".$filter['custom']['text']."', \$".$filter['code']."_".$filter['custom']['text'].");";
|
|
||||||
$spacer = PHP_EOL.PHP_EOL.$this->_t(2);
|
|
||||||
} */
|
|
||||||
$state .= $spacer . "\$" . $filter['code']
|
|
||||||
. " = \$this->getUserStateFromRequest(\$this->context . '.filter."
|
|
||||||
. $filter['code'] . "', 'filter_" . $filter['code']
|
|
||||||
. "');";
|
|
||||||
$state .= PHP_EOL . $this->_t(2)
|
|
||||||
. "\$this->setState('filter." . $filter['code']
|
|
||||||
. "', \$" . $filter['code'] . ");";
|
|
||||||
}
|
|
||||||
$donelist[] = $filter['code'];
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
return $state;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the default populate state code
|
||||||
|
*
|
||||||
|
* @param string $name_single_code The single view name
|
||||||
|
*
|
||||||
|
* @return string The state code added
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
protected function setDefaultPopulateState(&$name_single_code)
|
||||||
|
{
|
||||||
|
$state = '';
|
||||||
|
// if access is not set
|
||||||
|
if (!isset($this->fieldsNames[$name_single_code]['access']))
|
||||||
|
{
|
||||||
|
$state .= $this->getPopulateStateFilterCode('access', false, ", 0, 'int'");
|
||||||
|
}
|
||||||
|
// if published is not set
|
||||||
|
if (!isset($this->fieldsNames[$name_single_code]['published']))
|
||||||
|
{
|
||||||
|
$state .= $this->getPopulateStateFilterCode('published', false, ", ''");
|
||||||
|
}
|
||||||
|
// if created_by is not set
|
||||||
|
if (!isset($this->fieldsNames[$name_single_code]['created_by']))
|
||||||
|
{
|
||||||
|
$state .= $this->getPopulateStateFilterCode('created_by', false, ", ''");
|
||||||
|
}
|
||||||
|
// if created is not set
|
||||||
|
if (!isset($this->fieldsNames[$name_single_code]['created']))
|
||||||
|
{
|
||||||
|
$state .= $this->getPopulateStateFilterCode('created', false);
|
||||||
|
}
|
||||||
|
|
||||||
|
// the sorting defaults are always added
|
||||||
|
$state .= $this->getPopulateStateFilterCode('sorting', false, ", 0, 'int'");
|
||||||
|
// the search defaults are always added
|
||||||
|
$state .= $this->getPopulateStateFilterCode('search', false);
|
||||||
|
|
||||||
return $state;
|
return $state;
|
||||||
}
|
}
|
||||||
|
@ -818,7 +818,7 @@ class Infusion extends Interpretation
|
|||||||
$this->fileContentDynamic[$name_list_code][$this->hhh
|
$this->fileContentDynamic[$name_list_code][$this->hhh
|
||||||
. 'POPULATESTATE' . $this->hhh]
|
. 'POPULATESTATE' . $this->hhh]
|
||||||
= $this->setPopulateState(
|
= $this->setPopulateState(
|
||||||
$name_list_code
|
$name_single_code, $name_list_code
|
||||||
);
|
);
|
||||||
|
|
||||||
// SORTFIELDS <<<DYNAMIC>>>
|
// SORTFIELDS <<<DYNAMIC>>>
|
||||||
|
@ -42,11 +42,17 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -56,48 +62,84 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
|
||||||
$this->setState('filter.system_name', $system_name);
|
|
||||||
|
|
||||||
$name_single = $this->getUserStateFromRequest($this->context . '.filter.name_single', 'filter_name_single');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.name_single', $name_single);
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
$short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description');
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$this->setState('filter.short_description', $short_description);
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
|
// Check if the form was submitted
|
||||||
|
$formSubmited = $app->input->post->get('form_submited');
|
||||||
|
|
||||||
$add_fadein = $this->getUserStateFromRequest($this->context . '.filter.add_fadein', 'filter_add_fadein');
|
$add_fadein = $this->getUserStateFromRequest($this->context . '.filter.add_fadein', 'filter_add_fadein');
|
||||||
$this->setState('filter.add_fadein', $add_fadein);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$add_fadein = $app->input->post->get('add_fadein');
|
||||||
|
$this->setState('filter.add_fadein', $add_fadein);
|
||||||
|
}
|
||||||
|
|
||||||
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
||||||
$this->setState('filter.type', $type);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$type = $app->input->post->get('type');
|
||||||
|
$this->setState('filter.type', $type);
|
||||||
|
}
|
||||||
|
|
||||||
$add_custom_button = $this->getUserStateFromRequest($this->context . '.filter.add_custom_button', 'filter_add_custom_button');
|
$add_custom_button = $this->getUserStateFromRequest($this->context . '.filter.add_custom_button', 'filter_add_custom_button');
|
||||||
$this->setState('filter.add_custom_button', $add_custom_button);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$add_custom_button = $app->input->post->get('add_custom_button');
|
||||||
|
$this->setState('filter.add_custom_button', $add_custom_button);
|
||||||
|
}
|
||||||
|
|
||||||
$add_php_ajax = $this->getUserStateFromRequest($this->context . '.filter.add_php_ajax', 'filter_add_php_ajax');
|
$add_php_ajax = $this->getUserStateFromRequest($this->context . '.filter.add_php_ajax', 'filter_add_php_ajax');
|
||||||
$this->setState('filter.add_php_ajax', $add_php_ajax);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$add_php_ajax = $app->input->post->get('add_php_ajax');
|
||||||
|
$this->setState('filter.add_php_ajax', $add_php_ajax);
|
||||||
|
}
|
||||||
|
|
||||||
$add_custom_import = $this->getUserStateFromRequest($this->context . '.filter.add_custom_import', 'filter_add_custom_import');
|
$add_custom_import = $this->getUserStateFromRequest($this->context . '.filter.add_custom_import', 'filter_add_custom_import');
|
||||||
$this->setState('filter.add_custom_import', $add_custom_import);
|
if ($formSubmited)
|
||||||
|
{
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$add_custom_import = $app->input->post->get('add_custom_import');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.add_custom_import', $add_custom_import);
|
||||||
|
}
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
||||||
|
if ($formSubmited)
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
{
|
||||||
$this->setState('filter.search', $search);
|
$system_name = $app->input->post->get('system_name');
|
||||||
|
$this->setState('filter.system_name', $system_name);
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
}
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
$name_single = $this->getUserStateFromRequest($this->context . '.filter.name_single', 'filter_name_single');
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
if ($formSubmited)
|
||||||
$this->setState('filter.created_by', $created_by);
|
{
|
||||||
|
$name_single = $app->input->post->get('name_single');
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
$this->setState('filter.name_single', $name_single);
|
||||||
$this->setState('filter.created', $created);
|
}
|
||||||
|
|
||||||
|
$short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description');
|
||||||
|
if ($formSubmited)
|
||||||
|
{
|
||||||
|
$short_description = $app->input->post->get('short_description');
|
||||||
|
$this->setState('filter.short_description', $short_description);
|
||||||
|
}
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -300,9 +342,44 @@ class ComponentbuilderModelAdmin_views extends JModelList
|
|||||||
$query->where('a.add_fadein = ' . $db->quote($db->escape($add_fadein)));
|
$query->where('a.add_fadein = ' . $db->quote($db->escape($add_fadein)));
|
||||||
}
|
}
|
||||||
// Filter by Type.
|
// Filter by Type.
|
||||||
if ($type = $this->getState('filter.type'))
|
$_type = $this->getState('filter.type');
|
||||||
|
if (is_numeric($_type))
|
||||||
{
|
{
|
||||||
$query->where('a.type = ' . $db->quote($db->escape($type)));
|
if (is_float($_type))
|
||||||
|
{
|
||||||
|
$query->where('a.type = ' . (float) $_type);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$query->where('a.type = ' . (int) $_type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif (ComponentbuilderHelper::checkString($_type))
|
||||||
|
{
|
||||||
|
$query->where('a.type = ' . $db->quote($db->escape($_type)));
|
||||||
|
}
|
||||||
|
elseif (ComponentbuilderHelper::checkArray($_type))
|
||||||
|
{
|
||||||
|
// Secure the array for the query
|
||||||
|
$_type = array_map( function ($val) use(&$db) {
|
||||||
|
if (is_numeric($val))
|
||||||
|
{
|
||||||
|
if (is_float($val))
|
||||||
|
{
|
||||||
|
return (float) $val;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return (int) $val;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
elseif (ComponentbuilderHelper::checkString($val))
|
||||||
|
{
|
||||||
|
return $db->quote($db->escape($val));
|
||||||
|
}
|
||||||
|
}, $_type);
|
||||||
|
// Filter by the Type Array.
|
||||||
|
$query->where('a.type IN (' . implode(',', $_type) . ')');
|
||||||
}
|
}
|
||||||
// Filter by Add_custom_button.
|
// Filter by Add_custom_button.
|
||||||
if ($add_custom_button = $this->getState('filter.add_custom_button'))
|
if ($add_custom_button = $this->getState('filter.add_custom_button'))
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelAdmins_custom_tabs extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelAdmins_custom_tabs extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelAdmins_fields extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelAdmins_fields extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelAdmins_fields_conditions extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelAdmins_fields_conditions extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelAdmins_fields_relations extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelAdmins_fields_relations extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -36,11 +36,17 @@ class ComponentbuilderModelClass_extendings extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -50,30 +56,31 @@ class ComponentbuilderModelClass_extendings extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
|
||||||
$this->setState('filter.name', $name);
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$extension_type = $this->getUserStateFromRequest($this->context . '.filter.extension_type', 'filter_extension_type');
|
$extension_type = $this->getUserStateFromRequest($this->context . '.filter.extension_type', 'filter_extension_type');
|
||||||
$this->setState('filter.extension_type', $extension_type);
|
$this->setState('filter.extension_type', $extension_type);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -37,11 +37,17 @@ class ComponentbuilderModelClass_methods extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -51,33 +57,34 @@ class ComponentbuilderModelClass_methods extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
|
||||||
$this->setState('filter.name', $name);
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$visibility = $this->getUserStateFromRequest($this->context . '.filter.visibility', 'filter_visibility');
|
$visibility = $this->getUserStateFromRequest($this->context . '.filter.visibility', 'filter_visibility');
|
||||||
$this->setState('filter.visibility', $visibility);
|
$this->setState('filter.visibility', $visibility);
|
||||||
|
|
||||||
$extension_type = $this->getUserStateFromRequest($this->context . '.filter.extension_type', 'filter_extension_type');
|
$extension_type = $this->getUserStateFromRequest($this->context . '.filter.extension_type', 'filter_extension_type');
|
||||||
$this->setState('filter.extension_type', $extension_type);
|
$this->setState('filter.extension_type', $extension_type);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -37,11 +37,17 @@ class ComponentbuilderModelClass_properties extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -51,33 +57,34 @@ class ComponentbuilderModelClass_properties extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
|
||||||
$this->setState('filter.name', $name);
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$visibility = $this->getUserStateFromRequest($this->context . '.filter.visibility', 'filter_visibility');
|
$visibility = $this->getUserStateFromRequest($this->context . '.filter.visibility', 'filter_visibility');
|
||||||
$this->setState('filter.visibility', $visibility);
|
$this->setState('filter.visibility', $visibility);
|
||||||
|
|
||||||
$extension_type = $this->getUserStateFromRequest($this->context . '.filter.extension_type', 'filter_extension_type');
|
$extension_type = $this->getUserStateFromRequest($this->context . '.filter.extension_type', 'filter_extension_type');
|
||||||
$this->setState('filter.extension_type', $extension_type);
|
$this->setState('filter.extension_type', $extension_type);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_admin_views extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_admin_views extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_config extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_config extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_custom_admin_menus extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_custom_admin_menus extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_custom_admin_views extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_custom_admin_views extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_dashboard extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_dashboard extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_files_folders extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_files_folders extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_modules extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_modules extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_mysql_tweaks extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_mysql_tweaks extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_placeholders extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_placeholders extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_plugins extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_plugins extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_site_views extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_site_views extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelComponents_updates extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelComponents_updates extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -40,11 +40,17 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -54,15 +60,25 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
|
||||||
$this->setState('filter.system_name', $system_name);
|
|
||||||
|
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.name', $name);
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$this->setState('filter.description', $description);
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$main_get = $this->getUserStateFromRequest($this->context . '.filter.main_get', 'filter_main_get');
|
$main_get = $this->getUserStateFromRequest($this->context . '.filter.main_get', 'filter_main_get');
|
||||||
$this->setState('filter.main_get', $main_get);
|
$this->setState('filter.main_get', $main_get);
|
||||||
@ -71,25 +87,16 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
|||||||
$this->setState('filter.add_php_ajax', $add_php_ajax);
|
$this->setState('filter.add_php_ajax', $add_php_ajax);
|
||||||
|
|
||||||
$add_custom_button = $this->getUserStateFromRequest($this->context . '.filter.add_custom_button', 'filter_add_custom_button');
|
$add_custom_button = $this->getUserStateFromRequest($this->context . '.filter.add_custom_button', 'filter_add_custom_button');
|
||||||
$this->setState('filter.add_custom_button', $add_custom_button);
|
$this->setState('filter.add_custom_button', $add_custom_button);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.system_name', $system_name);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.access', $access);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.description', $description);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -245,7 +252,7 @@ class ComponentbuilderModelCustom_admin_views extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter by main_get.
|
// Filter by Main_get.
|
||||||
if ($main_get = $this->getState('filter.main_get'))
|
if ($main_get = $this->getState('filter.main_get'))
|
||||||
{
|
{
|
||||||
$query->where('a.main_get = ' . $db->quote($db->escape($main_get)));
|
$query->where('a.main_get = ' . $db->quote($db->escape($main_get)));
|
||||||
|
@ -39,11 +39,17 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -53,13 +59,29 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$component = $this->getUserStateFromRequest($this->context . '.filter.component', 'filter_component');
|
$component = $this->getUserStateFromRequest($this->context . '.filter.component', 'filter_component');
|
||||||
$this->setState('filter.component', $component);
|
$this->setState('filter.component', $component);
|
||||||
|
|
||||||
$path = $this->getUserStateFromRequest($this->context . '.filter.path', 'filter_path');
|
|
||||||
$this->setState('filter.path', $path);
|
|
||||||
|
|
||||||
$target = $this->getUserStateFromRequest($this->context . '.filter.target', 'filter_target');
|
$target = $this->getUserStateFromRequest($this->context . '.filter.target', 'filter_target');
|
||||||
$this->setState('filter.target', $target);
|
$this->setState('filter.target', $target);
|
||||||
|
|
||||||
@ -67,25 +89,10 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
|||||||
$this->setState('filter.type', $type);
|
$this->setState('filter.type', $type);
|
||||||
|
|
||||||
$comment_type = $this->getUserStateFromRequest($this->context . '.filter.comment_type', 'filter_comment_type');
|
$comment_type = $this->getUserStateFromRequest($this->context . '.filter.comment_type', 'filter_comment_type');
|
||||||
$this->setState('filter.comment_type', $comment_type);
|
$this->setState('filter.comment_type', $comment_type);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$path = $this->getUserStateFromRequest($this->context . '.filter.path', 'filter_path');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.path', $path);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -273,7 +280,7 @@ class ComponentbuilderModelCustom_codes extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter by component.
|
// Filter by Component.
|
||||||
if ($component = $this->getState('filter.component'))
|
if ($component = $this->getState('filter.component'))
|
||||||
{
|
{
|
||||||
$query->where('a.component = ' . $db->quote($db->escape($component)));
|
$query->where('a.component = ' . $db->quote($db->escape($component)));
|
||||||
|
@ -37,11 +37,17 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -51,33 +57,34 @@ class ComponentbuilderModelDynamic_gets extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
|
||||||
$this->setState('filter.name', $name);
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$main_source = $this->getUserStateFromRequest($this->context . '.filter.main_source', 'filter_main_source');
|
$main_source = $this->getUserStateFromRequest($this->context . '.filter.main_source', 'filter_main_source');
|
||||||
$this->setState('filter.main_source', $main_source);
|
$this->setState('filter.main_source', $main_source);
|
||||||
|
|
||||||
$gettype = $this->getUserStateFromRequest($this->context . '.filter.gettype', 'filter_gettype');
|
$gettype = $this->getUserStateFromRequest($this->context . '.filter.gettype', 'filter_gettype');
|
||||||
$this->setState('filter.gettype', $gettype);
|
$this->setState('filter.gettype', $gettype);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -43,11 +43,17 @@ class ComponentbuilderModelFields extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -57,9 +63,25 @@ class ComponentbuilderModelFields extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
|
||||||
$this->setState('filter.name', $name);
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$fieldtype = $this->getUserStateFromRequest($this->context . '.filter.fieldtype', 'filter_fieldtype');
|
$fieldtype = $this->getUserStateFromRequest($this->context . '.filter.fieldtype', 'filter_fieldtype');
|
||||||
$this->setState('filter.fieldtype', $fieldtype);
|
$this->setState('filter.fieldtype', $fieldtype);
|
||||||
@ -76,32 +98,11 @@ class ComponentbuilderModelFields extends JModelList
|
|||||||
$store = $this->getUserStateFromRequest($this->context . '.filter.store', 'filter_store');
|
$store = $this->getUserStateFromRequest($this->context . '.filter.store', 'filter_store');
|
||||||
$this->setState('filter.store', $store);
|
$this->setState('filter.store', $store);
|
||||||
|
|
||||||
$category = $app->getUserStateFromRequest($this->context . '.filter.category', 'filter_category');
|
$catid = $this->getUserStateFromRequest($this->context . '.filter.catid', 'filter_catid');
|
||||||
$this->setState('filter.category', $category);
|
$this->setState('filter.catid', $catid);
|
||||||
|
|
||||||
$categoryId = $this->getUserStateFromRequest($this->context . '.filter.category_id', 'filter_category_id');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.category_id', $categoryId);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$catid = $app->getUserStateFromRequest($this->context . '.filter.catid', 'filter_catid');
|
|
||||||
$this->setState('filter.catid', $catid);
|
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -312,7 +313,7 @@ class ComponentbuilderModelFields extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter by fieldtype.
|
// Filter by Fieldtype.
|
||||||
if ($fieldtype = $this->getState('filter.fieldtype'))
|
if ($fieldtype = $this->getState('filter.fieldtype'))
|
||||||
{
|
{
|
||||||
$query->where('a.fieldtype = ' . $db->quote($db->escape($fieldtype)));
|
$query->where('a.fieldtype = ' . $db->quote($db->escape($fieldtype)));
|
||||||
|
@ -39,11 +39,17 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -53,39 +59,34 @@ class ComponentbuilderModelFieldtypes extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
|
$catid = $this->getUserStateFromRequest($this->context . '.filter.catid', 'filter_catid');
|
||||||
|
$this->setState('filter.catid', $catid);
|
||||||
|
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.name', $name);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description');
|
$short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description');
|
||||||
$this->setState('filter.short_description', $short_description);
|
$this->setState('filter.short_description', $short_description);
|
||||||
|
|
||||||
$category = $app->getUserStateFromRequest($this->context . '.filter.category', 'filter_category');
|
|
||||||
$this->setState('filter.category', $category);
|
|
||||||
|
|
||||||
$categoryId = $this->getUserStateFromRequest($this->context . '.filter.category_id', 'filter_category_id');
|
|
||||||
$this->setState('filter.category_id', $categoryId);
|
|
||||||
|
|
||||||
$catid = $app->getUserStateFromRequest($this->context . '.filter.catid', 'filter_catid');
|
|
||||||
$this->setState('filter.catid', $catid);
|
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -39,11 +39,17 @@ class ComponentbuilderModelHelp_documents extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -53,9 +59,25 @@ class ComponentbuilderModelHelp_documents extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$title = $this->getUserStateFromRequest($this->context . '.filter.title', 'filter_title');
|
|
||||||
$this->setState('filter.title', $title);
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
||||||
$this->setState('filter.type', $type);
|
$this->setState('filter.type', $type);
|
||||||
@ -67,25 +89,10 @@ class ComponentbuilderModelHelp_documents extends JModelList
|
|||||||
$this->setState('filter.admin_view', $admin_view);
|
$this->setState('filter.admin_view', $admin_view);
|
||||||
|
|
||||||
$site_view = $this->getUserStateFromRequest($this->context . '.filter.site_view', 'filter_site_view');
|
$site_view = $this->getUserStateFromRequest($this->context . '.filter.site_view', 'filter_site_view');
|
||||||
$this->setState('filter.site_view', $site_view);
|
$this->setState('filter.site_view', $site_view);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$title = $this->getUserStateFromRequest($this->context . '.filter.title', 'filter_title');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.title', $title);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -245,12 +252,12 @@ class ComponentbuilderModelHelp_documents extends JModelList
|
|||||||
{
|
{
|
||||||
$query->where('a.location = ' . $db->quote($db->escape($location)));
|
$query->where('a.location = ' . $db->quote($db->escape($location)));
|
||||||
}
|
}
|
||||||
// Filter by admin_view.
|
// Filter by Admin_view.
|
||||||
if ($admin_view = $this->getState('filter.admin_view'))
|
if ($admin_view = $this->getState('filter.admin_view'))
|
||||||
{
|
{
|
||||||
$query->where('a.admin_view = ' . $db->quote($db->escape($admin_view)));
|
$query->where('a.admin_view = ' . $db->quote($db->escape($admin_view)));
|
||||||
}
|
}
|
||||||
// Filter by site_view.
|
// Filter by Site_view.
|
||||||
if ($site_view = $this->getState('filter.site_view'))
|
if ($site_view = $this->getState('filter.site_view'))
|
||||||
{
|
{
|
||||||
$query->where('a.site_view = ' . $db->quote($db->escape($site_view)));
|
$query->where('a.site_view = ' . $db->quote($db->escape($site_view)));
|
||||||
|
@ -2075,11 +2075,17 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -2089,7 +2095,32 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
|
$companyname = $this->getUserStateFromRequest($this->context . '.filter.companyname', 'filter_companyname');
|
||||||
|
$this->setState('filter.companyname', $companyname);
|
||||||
|
|
||||||
|
$author = $this->getUserStateFromRequest($this->context . '.filter.author', 'filter_author');
|
||||||
|
$this->setState('filter.author', $author);
|
||||||
|
|
||||||
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
||||||
$this->setState('filter.system_name', $system_name);
|
$this->setState('filter.system_name', $system_name);
|
||||||
|
|
||||||
@ -2097,31 +2128,7 @@ class ComponentbuilderModelJoomla_components extends JModelList
|
|||||||
$this->setState('filter.name_code', $name_code);
|
$this->setState('filter.name_code', $name_code);
|
||||||
|
|
||||||
$short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description');
|
$short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description');
|
||||||
$this->setState('filter.short_description', $short_description);
|
$this->setState('filter.short_description', $short_description);
|
||||||
|
|
||||||
$companyname = $this->getUserStateFromRequest($this->context . '.filter.companyname', 'filter_companyname');
|
|
||||||
$this->setState('filter.companyname', $companyname);
|
|
||||||
|
|
||||||
$author = $this->getUserStateFromRequest($this->context . '.filter.author', 'filter_author');
|
|
||||||
$this->setState('filter.author', $author);
|
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -37,11 +37,17 @@ class ComponentbuilderModelJoomla_modules extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -51,33 +57,34 @@ class ComponentbuilderModelJoomla_modules extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
|
$target = $this->getUserStateFromRequest($this->context . '.filter.target', 'filter_target');
|
||||||
|
$this->setState('filter.target', $target);
|
||||||
|
|
||||||
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
||||||
$this->setState('filter.system_name', $system_name);
|
$this->setState('filter.system_name', $system_name);
|
||||||
|
|
||||||
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
||||||
$this->setState('filter.description', $description);
|
$this->setState('filter.description', $description);
|
||||||
|
|
||||||
$target = $this->getUserStateFromRequest($this->context . '.filter.target', 'filter_target');
|
|
||||||
$this->setState('filter.target', $target);
|
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelJoomla_modules_files_folders_urls extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelJoomla_modules_files_folders_urls extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelJoomla_modules_updates extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelJoomla_modules_updates extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -36,11 +36,17 @@ class ComponentbuilderModelJoomla_plugin_groups extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -50,30 +56,31 @@ class ComponentbuilderModelJoomla_plugin_groups extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
|
||||||
$this->setState('filter.name', $name);
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$class_extends = $this->getUserStateFromRequest($this->context . '.filter.class_extends', 'filter_class_extends');
|
$class_extends = $this->getUserStateFromRequest($this->context . '.filter.class_extends', 'filter_class_extends');
|
||||||
$this->setState('filter.class_extends', $class_extends);
|
$this->setState('filter.class_extends', $class_extends);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -159,7 +166,7 @@ class ComponentbuilderModelJoomla_plugin_groups extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter by class_extends.
|
// Filter by Class_extends.
|
||||||
if ($class_extends = $this->getState('filter.class_extends'))
|
if ($class_extends = $this->getState('filter.class_extends'))
|
||||||
{
|
{
|
||||||
$query->where('a.class_extends = ' . $db->quote($db->escape($class_extends)));
|
$query->where('a.class_extends = ' . $db->quote($db->escape($class_extends)));
|
||||||
|
@ -207,11 +207,17 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -221,33 +227,34 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
|
||||||
$this->setState('filter.system_name', $system_name);
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$class_extends = $this->getUserStateFromRequest($this->context . '.filter.class_extends', 'filter_class_extends');
|
$class_extends = $this->getUserStateFromRequest($this->context . '.filter.class_extends', 'filter_class_extends');
|
||||||
$this->setState('filter.class_extends', $class_extends);
|
$this->setState('filter.class_extends', $class_extends);
|
||||||
|
|
||||||
$joomla_plugin_group = $this->getUserStateFromRequest($this->context . '.filter.joomla_plugin_group', 'filter_joomla_plugin_group');
|
$joomla_plugin_group = $this->getUserStateFromRequest($this->context . '.filter.joomla_plugin_group', 'filter_joomla_plugin_group');
|
||||||
$this->setState('filter.joomla_plugin_group', $joomla_plugin_group);
|
$this->setState('filter.joomla_plugin_group', $joomla_plugin_group);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.system_name', $system_name);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -358,12 +365,12 @@ class ComponentbuilderModelJoomla_plugins extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter by class_extends.
|
// Filter by Class_extends.
|
||||||
if ($class_extends = $this->getState('filter.class_extends'))
|
if ($class_extends = $this->getState('filter.class_extends'))
|
||||||
{
|
{
|
||||||
$query->where('a.class_extends = ' . $db->quote($db->escape($class_extends)));
|
$query->where('a.class_extends = ' . $db->quote($db->escape($class_extends)));
|
||||||
}
|
}
|
||||||
// Filter by joomla_plugin_group.
|
// Filter by Joomla_plugin_group.
|
||||||
if ($joomla_plugin_group = $this->getState('filter.joomla_plugin_group'))
|
if ($joomla_plugin_group = $this->getState('filter.joomla_plugin_group'))
|
||||||
{
|
{
|
||||||
$query->where('a.joomla_plugin_group = ' . $db->quote($db->escape($joomla_plugin_group)));
|
$query->where('a.joomla_plugin_group = ' . $db->quote($db->escape($joomla_plugin_group)));
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelJoomla_plugins_files_folders_urls extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelJoomla_plugins_files_folders_urls extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelJoomla_plugins_updates extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelJoomla_plugins_updates extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -35,11 +35,17 @@ class ComponentbuilderModelLanguage_translations extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -49,27 +55,28 @@ class ComponentbuilderModelLanguage_translations extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$source = $this->getUserStateFromRequest($this->context . '.filter.source', 'filter_source');
|
$source = $this->getUserStateFromRequest($this->context . '.filter.source', 'filter_source');
|
||||||
$this->setState('filter.source', $source);
|
$this->setState('filter.source', $source);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -159,11 +159,17 @@ class ComponentbuilderModelLanguages extends JModelList
|
|||||||
|
|
||||||
return $db->setQuery($query)->loadResult();
|
return $db->setQuery($query)->loadResult();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -173,30 +179,31 @@ class ComponentbuilderModelLanguages extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.name', $name);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$langtag = $this->getUserStateFromRequest($this->context . '.filter.langtag', 'filter_langtag');
|
$langtag = $this->getUserStateFromRequest($this->context . '.filter.langtag', 'filter_langtag');
|
||||||
$this->setState('filter.langtag', $langtag);
|
$this->setState('filter.langtag', $langtag);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -38,11 +38,17 @@ class ComponentbuilderModelLayouts extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -52,36 +58,37 @@ class ComponentbuilderModelLayouts extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
|
||||||
$this->setState('filter.name', $name);
|
|
||||||
|
|
||||||
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.description', $description);
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$dynamic_get = $this->getUserStateFromRequest($this->context . '.filter.dynamic_get', 'filter_dynamic_get');
|
$dynamic_get = $this->getUserStateFromRequest($this->context . '.filter.dynamic_get', 'filter_dynamic_get');
|
||||||
$this->setState('filter.dynamic_get', $dynamic_get);
|
$this->setState('filter.dynamic_get', $dynamic_get);
|
||||||
|
|
||||||
$add_php_view = $this->getUserStateFromRequest($this->context . '.filter.add_php_view', 'filter_add_php_view');
|
$add_php_view = $this->getUserStateFromRequest($this->context . '.filter.add_php_view', 'filter_add_php_view');
|
||||||
$this->setState('filter.add_php_view', $add_php_view);
|
$this->setState('filter.add_php_view', $add_php_view);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
||||||
$this->setState('filter.access', $access);
|
$this->setState('filter.description', $description);
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -222,7 +229,7 @@ class ComponentbuilderModelLayouts extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter by dynamic_get.
|
// Filter by Dynamic_get.
|
||||||
if ($dynamic_get = $this->getState('filter.dynamic_get'))
|
if ($dynamic_get = $this->getState('filter.dynamic_get'))
|
||||||
{
|
{
|
||||||
$query->where('a.dynamic_get = ' . $db->quote($db->escape($dynamic_get)));
|
$query->where('a.dynamic_get = ' . $db->quote($db->escape($dynamic_get)));
|
||||||
|
@ -39,11 +39,17 @@ class ComponentbuilderModelLibraries extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -53,39 +59,40 @@ class ComponentbuilderModelLibraries extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
|
||||||
$this->setState('filter.name', $name);
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$target = $this->getUserStateFromRequest($this->context . '.filter.target', 'filter_target');
|
$target = $this->getUserStateFromRequest($this->context . '.filter.target', 'filter_target');
|
||||||
$this->setState('filter.target', $target);
|
$this->setState('filter.target', $target);
|
||||||
|
|
||||||
|
$how = $this->getUserStateFromRequest($this->context . '.filter.how', 'filter_how');
|
||||||
|
$this->setState('filter.how', $how);
|
||||||
|
|
||||||
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
||||||
$this->setState('filter.type', $type);
|
$this->setState('filter.type', $type);
|
||||||
|
|
||||||
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.description', $description);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$how = $this->getUserStateFromRequest($this->context . '.filter.how', 'filter_how');
|
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
||||||
$this->setState('filter.how', $how);
|
$this->setState('filter.description', $description);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -264,7 +271,7 @@ class ComponentbuilderModelLibraries extends JModelList
|
|||||||
{
|
{
|
||||||
$query->where('a.target = ' . $db->quote($db->escape($target)));
|
$query->where('a.target = ' . $db->quote($db->escape($target)));
|
||||||
}
|
}
|
||||||
// Filter by how.
|
// Filter by How.
|
||||||
if ($how = $this->getState('filter.how'))
|
if ($how = $this->getState('filter.how'))
|
||||||
{
|
{
|
||||||
$query->where('a.how = ' . $db->quote($db->escape($how)));
|
$query->where('a.how = ' . $db->quote($db->escape($how)));
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelLibraries_config extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelLibraries_config extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -34,11 +34,17 @@ class ComponentbuilderModelLibraries_files_folders_urls extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -48,27 +54,26 @@ class ComponentbuilderModelLibraries_files_folders_urls extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$this->setState('filter.access', $access);
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$this->setState('filter.published', $published);
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
$this->setState('filter.search', $search);
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
}
|
}
|
||||||
|
@ -36,11 +36,17 @@ class ComponentbuilderModelPlaceholders extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -50,30 +56,31 @@ class ComponentbuilderModelPlaceholders extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$target = $this->getUserStateFromRequest($this->context . '.filter.target', 'filter_target');
|
$target = $this->getUserStateFromRequest($this->context . '.filter.target', 'filter_target');
|
||||||
$this->setState('filter.target', $target);
|
$this->setState('filter.target', $target);
|
||||||
|
|
||||||
$value = $this->getUserStateFromRequest($this->context . '.filter.value', 'filter_value');
|
$value = $this->getUserStateFromRequest($this->context . '.filter.value', 'filter_value');
|
||||||
$this->setState('filter.value', $value);
|
$this->setState('filter.value', $value);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -36,11 +36,17 @@ class ComponentbuilderModelServers extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -50,30 +56,31 @@ class ComponentbuilderModelServers extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.name', $name);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$protocol = $this->getUserStateFromRequest($this->context . '.filter.protocol', 'filter_protocol');
|
$protocol = $this->getUserStateFromRequest($this->context . '.filter.protocol', 'filter_protocol');
|
||||||
$this->setState('filter.protocol', $protocol);
|
$this->setState('filter.protocol', $protocol);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -41,11 +41,17 @@ class ComponentbuilderModelSite_views extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -55,7 +61,35 @@ class ComponentbuilderModelSite_views extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
|
$main_get = $this->getUserStateFromRequest($this->context . '.filter.main_get', 'filter_main_get');
|
||||||
|
$this->setState('filter.main_get', $main_get);
|
||||||
|
|
||||||
|
$add_php_ajax = $this->getUserStateFromRequest($this->context . '.filter.add_php_ajax', 'filter_add_php_ajax');
|
||||||
|
$this->setState('filter.add_php_ajax', $add_php_ajax);
|
||||||
|
|
||||||
|
$add_custom_button = $this->getUserStateFromRequest($this->context . '.filter.add_custom_button', 'filter_add_custom_button');
|
||||||
|
$this->setState('filter.add_custom_button', $add_custom_button);
|
||||||
|
|
||||||
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
$system_name = $this->getUserStateFromRequest($this->context . '.filter.system_name', 'filter_system_name');
|
||||||
$this->setState('filter.system_name', $system_name);
|
$this->setState('filter.system_name', $system_name);
|
||||||
|
|
||||||
@ -65,35 +99,8 @@ class ComponentbuilderModelSite_views extends JModelList
|
|||||||
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
||||||
$this->setState('filter.description', $description);
|
$this->setState('filter.description', $description);
|
||||||
|
|
||||||
$main_get = $this->getUserStateFromRequest($this->context . '.filter.main_get', 'filter_main_get');
|
|
||||||
$this->setState('filter.main_get', $main_get);
|
|
||||||
|
|
||||||
$context = $this->getUserStateFromRequest($this->context . '.filter.context', 'filter_context');
|
$context = $this->getUserStateFromRequest($this->context . '.filter.context', 'filter_context');
|
||||||
$this->setState('filter.context', $context);
|
$this->setState('filter.context', $context);
|
||||||
|
|
||||||
$add_php_ajax = $this->getUserStateFromRequest($this->context . '.filter.add_php_ajax', 'filter_add_php_ajax');
|
|
||||||
$this->setState('filter.add_php_ajax', $add_php_ajax);
|
|
||||||
|
|
||||||
$add_custom_button = $this->getUserStateFromRequest($this->context . '.filter.add_custom_button', 'filter_add_custom_button');
|
|
||||||
$this->setState('filter.add_custom_button', $add_custom_button);
|
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -249,7 +256,7 @@ class ComponentbuilderModelSite_views extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter by main_get.
|
// Filter by Main_get.
|
||||||
if ($main_get = $this->getState('filter.main_get'))
|
if ($main_get = $this->getState('filter.main_get'))
|
||||||
{
|
{
|
||||||
$query->where('a.main_get = ' . $db->quote($db->escape($main_get)));
|
$query->where('a.main_get = ' . $db->quote($db->escape($main_get)));
|
||||||
|
@ -36,11 +36,17 @@ class ComponentbuilderModelSnippet_types extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -50,30 +56,31 @@ class ComponentbuilderModelSnippet_types extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.name', $name);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
||||||
$this->setState('filter.description', $description);
|
$this->setState('filter.description', $description);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
@ -153,11 +153,17 @@ class ComponentbuilderModelSnippets extends JModelList
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -167,39 +173,40 @@ class ComponentbuilderModelSnippets extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
|
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
||||||
|
$this->setState('filter.type', $type);
|
||||||
|
|
||||||
|
$library = $this->getUserStateFromRequest($this->context . '.filter.library', 'filter_library');
|
||||||
|
$this->setState('filter.library', $library);
|
||||||
|
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.name', $name);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$url = $this->getUserStateFromRequest($this->context . '.filter.url', 'filter_url');
|
$url = $this->getUserStateFromRequest($this->context . '.filter.url', 'filter_url');
|
||||||
$this->setState('filter.url', $url);
|
$this->setState('filter.url', $url);
|
||||||
|
|
||||||
$type = $this->getUserStateFromRequest($this->context . '.filter.type', 'filter_type');
|
|
||||||
$this->setState('filter.type', $type);
|
|
||||||
|
|
||||||
$heading = $this->getUserStateFromRequest($this->context . '.filter.heading', 'filter_heading');
|
$heading = $this->getUserStateFromRequest($this->context . '.filter.heading', 'filter_heading');
|
||||||
$this->setState('filter.heading', $heading);
|
$this->setState('filter.heading', $heading);
|
||||||
|
|
||||||
$library = $this->getUserStateFromRequest($this->context . '.filter.library', 'filter_library');
|
|
||||||
$this->setState('filter.library', $library);
|
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -310,12 +317,12 @@ class ComponentbuilderModelSnippets extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter by type.
|
// Filter by Type.
|
||||||
if ($type = $this->getState('filter.type'))
|
if ($type = $this->getState('filter.type'))
|
||||||
{
|
{
|
||||||
$query->where('a.type = ' . $db->quote($db->escape($type)));
|
$query->where('a.type = ' . $db->quote($db->escape($type)));
|
||||||
}
|
}
|
||||||
// Filter by library.
|
// Filter by Library.
|
||||||
if ($library = $this->getState('filter.library'))
|
if ($library = $this->getState('filter.library'))
|
||||||
{
|
{
|
||||||
$query->where('a.library = ' . $db->quote($db->escape($library)));
|
$query->where('a.library = ' . $db->quote($db->escape($library)));
|
||||||
|
@ -38,11 +38,17 @@ class ComponentbuilderModelTemplates extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -52,36 +58,37 @@ class ComponentbuilderModelTemplates extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
|
||||||
$this->setState('filter.name', $name);
|
|
||||||
|
|
||||||
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
$this->setState('filter.description', $description);
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$dynamic_get = $this->getUserStateFromRequest($this->context . '.filter.dynamic_get', 'filter_dynamic_get');
|
$dynamic_get = $this->getUserStateFromRequest($this->context . '.filter.dynamic_get', 'filter_dynamic_get');
|
||||||
$this->setState('filter.dynamic_get', $dynamic_get);
|
$this->setState('filter.dynamic_get', $dynamic_get);
|
||||||
|
|
||||||
$add_php_view = $this->getUserStateFromRequest($this->context . '.filter.add_php_view', 'filter_add_php_view');
|
$add_php_view = $this->getUserStateFromRequest($this->context . '.filter.add_php_view', 'filter_add_php_view');
|
||||||
$this->setState('filter.add_php_view', $add_php_view);
|
$this->setState('filter.add_php_view', $add_php_view);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.sorting', $sorting);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
$description = $this->getUserStateFromRequest($this->context . '.filter.description', 'filter_description');
|
||||||
$this->setState('filter.access', $access);
|
$this->setState('filter.description', $description);
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
@ -222,7 +229,7 @@ class ComponentbuilderModelTemplates extends JModelList
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Filter by dynamic_get.
|
// Filter by Dynamic_get.
|
||||||
if ($dynamic_get = $this->getState('filter.dynamic_get'))
|
if ($dynamic_get = $this->getState('filter.dynamic_get'))
|
||||||
{
|
{
|
||||||
$query->where('a.dynamic_get = ' . $db->quote($db->escape($dynamic_get)));
|
$query->where('a.dynamic_get = ' . $db->quote($db->escape($dynamic_get)));
|
||||||
|
@ -36,11 +36,17 @@ class ComponentbuilderModelValidation_rules extends JModelList
|
|||||||
|
|
||||||
parent::__construct($config);
|
parent::__construct($config);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Method to auto-populate the model state.
|
* Method to auto-populate the model state.
|
||||||
*
|
*
|
||||||
|
* Note. Calling getState in this method will result in recursion.
|
||||||
|
*
|
||||||
|
* @param string $ordering An optional ordering field.
|
||||||
|
* @param string $direction An optional direction (asc|desc).
|
||||||
|
*
|
||||||
* @return void
|
* @return void
|
||||||
|
*
|
||||||
*/
|
*/
|
||||||
protected function populateState($ordering = null, $direction = null)
|
protected function populateState($ordering = null, $direction = null)
|
||||||
{
|
{
|
||||||
@ -50,30 +56,31 @@ class ComponentbuilderModelValidation_rules extends JModelList
|
|||||||
if ($layout = $app->input->get('layout'))
|
if ($layout = $app->input->get('layout'))
|
||||||
{
|
{
|
||||||
$this->context .= '.' . $layout;
|
$this->context .= '.' . $layout;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
||||||
|
$this->setState('filter.access', $access);
|
||||||
|
|
||||||
|
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
||||||
|
$this->setState('filter.published', $published);
|
||||||
|
|
||||||
|
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
||||||
|
$this->setState('filter.created_by', $created_by);
|
||||||
|
|
||||||
|
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
||||||
|
$this->setState('filter.created', $created);
|
||||||
|
|
||||||
|
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
||||||
|
$this->setState('filter.sorting', $sorting);
|
||||||
|
|
||||||
|
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
||||||
|
$this->setState('filter.search', $search);
|
||||||
|
|
||||||
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
$name = $this->getUserStateFromRequest($this->context . '.filter.name', 'filter_name');
|
||||||
$this->setState('filter.name', $name);
|
$this->setState('filter.name', $name);
|
||||||
|
|
||||||
$short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description');
|
$short_description = $this->getUserStateFromRequest($this->context . '.filter.short_description', 'filter_short_description');
|
||||||
$this->setState('filter.short_description', $short_description);
|
$this->setState('filter.short_description', $short_description);
|
||||||
|
|
||||||
$sorting = $this->getUserStateFromRequest($this->context . '.filter.sorting', 'filter_sorting', 0, 'int');
|
|
||||||
$this->setState('filter.sorting', $sorting);
|
|
||||||
|
|
||||||
$access = $this->getUserStateFromRequest($this->context . '.filter.access', 'filter_access', 0, 'int');
|
|
||||||
$this->setState('filter.access', $access);
|
|
||||||
|
|
||||||
$search = $this->getUserStateFromRequest($this->context . '.filter.search', 'filter_search');
|
|
||||||
$this->setState('filter.search', $search);
|
|
||||||
|
|
||||||
$published = $this->getUserStateFromRequest($this->context . '.filter.published', 'filter_published', '');
|
|
||||||
$this->setState('filter.published', $published);
|
|
||||||
|
|
||||||
$created_by = $this->getUserStateFromRequest($this->context . '.filter.created_by', 'filter_created_by', '');
|
|
||||||
$this->setState('filter.created_by', $created_by);
|
|
||||||
|
|
||||||
$created = $this->getUserStateFromRequest($this->context . '.filter.created', 'filter_created');
|
|
||||||
$this->setState('filter.created', $created);
|
|
||||||
|
|
||||||
// List state information.
|
// List state information.
|
||||||
parent::populateState($ordering, $direction);
|
parent::populateState($ordering, $direction);
|
||||||
|
File diff suppressed because one or more lines are too long
@ -391,185 +391,5 @@ class ComponentbuilderViewAdmin_views extends JViewLegacy
|
|||||||
'a.short_description' => JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_LABEL'),
|
'a.short_description' => JText::_('COM_COMPONENTBUILDER_ADMIN_VIEW_SHORT_DESCRIPTION_LABEL'),
|
||||||
'a.id' => JText::_('JGRID_HEADING_ID')
|
'a.id' => JText::_('JGRID_HEADING_ID')
|
||||||
);
|
);
|
||||||
}
|
|
||||||
|
|
||||||
protected function getTheAdd_fadeinSelections()
|
|
||||||
{
|
|
||||||
// Get a db connection.
|
|
||||||
$db = JFactory::getDbo();
|
|
||||||
|
|
||||||
// Create a new query object.
|
|
||||||
$query = $db->getQuery(true);
|
|
||||||
|
|
||||||
// Select the text.
|
|
||||||
$query->select($db->quoteName('add_fadein'));
|
|
||||||
$query->from($db->quoteName('#__componentbuilder_admin_view'));
|
|
||||||
$query->order($db->quoteName('add_fadein') . ' ASC');
|
|
||||||
|
|
||||||
// Reset the query using our newly populated query object.
|
|
||||||
$db->setQuery($query);
|
|
||||||
|
|
||||||
$results = $db->loadColumn();
|
|
||||||
|
|
||||||
if ($results)
|
|
||||||
{
|
|
||||||
// get model
|
|
||||||
$model = $this->getModel();
|
|
||||||
$results = array_unique($results);
|
|
||||||
$_filter = array();
|
|
||||||
foreach ($results as $add_fadein)
|
|
||||||
{
|
|
||||||
// Translate the add_fadein selection
|
|
||||||
$text = $model->selectionTranslation($add_fadein,'add_fadein');
|
|
||||||
// Now add the add_fadein and its text to the options array
|
|
||||||
$_filter[] = JHtml::_('select.option', $add_fadein, JText::_($text));
|
|
||||||
}
|
|
||||||
return $_filter;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getTheTypeSelections()
|
|
||||||
{
|
|
||||||
// Get a db connection.
|
|
||||||
$db = JFactory::getDbo();
|
|
||||||
|
|
||||||
// Create a new query object.
|
|
||||||
$query = $db->getQuery(true);
|
|
||||||
|
|
||||||
// Select the text.
|
|
||||||
$query->select($db->quoteName('type'));
|
|
||||||
$query->from($db->quoteName('#__componentbuilder_admin_view'));
|
|
||||||
$query->order($db->quoteName('type') . ' ASC');
|
|
||||||
|
|
||||||
// Reset the query using our newly populated query object.
|
|
||||||
$db->setQuery($query);
|
|
||||||
|
|
||||||
$results = $db->loadColumn();
|
|
||||||
|
|
||||||
if ($results)
|
|
||||||
{
|
|
||||||
// get model
|
|
||||||
$model = $this->getModel();
|
|
||||||
$results = array_unique($results);
|
|
||||||
$_filter = array();
|
|
||||||
foreach ($results as $type)
|
|
||||||
{
|
|
||||||
// Translate the type selection
|
|
||||||
$text = $model->selectionTranslation($type,'type');
|
|
||||||
// Now add the type and its text to the options array
|
|
||||||
$_filter[] = JHtml::_('select.option', $type, JText::_($text));
|
|
||||||
}
|
|
||||||
return $_filter;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getTheAdd_custom_buttonSelections()
|
|
||||||
{
|
|
||||||
// Get a db connection.
|
|
||||||
$db = JFactory::getDbo();
|
|
||||||
|
|
||||||
// Create a new query object.
|
|
||||||
$query = $db->getQuery(true);
|
|
||||||
|
|
||||||
// Select the text.
|
|
||||||
$query->select($db->quoteName('add_custom_button'));
|
|
||||||
$query->from($db->quoteName('#__componentbuilder_admin_view'));
|
|
||||||
$query->order($db->quoteName('add_custom_button') . ' ASC');
|
|
||||||
|
|
||||||
// Reset the query using our newly populated query object.
|
|
||||||
$db->setQuery($query);
|
|
||||||
|
|
||||||
$results = $db->loadColumn();
|
|
||||||
|
|
||||||
if ($results)
|
|
||||||
{
|
|
||||||
// get model
|
|
||||||
$model = $this->getModel();
|
|
||||||
$results = array_unique($results);
|
|
||||||
$_filter = array();
|
|
||||||
foreach ($results as $add_custom_button)
|
|
||||||
{
|
|
||||||
// Translate the add_custom_button selection
|
|
||||||
$text = $model->selectionTranslation($add_custom_button,'add_custom_button');
|
|
||||||
// Now add the add_custom_button and its text to the options array
|
|
||||||
$_filter[] = JHtml::_('select.option', $add_custom_button, JText::_($text));
|
|
||||||
}
|
|
||||||
return $_filter;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getTheAdd_php_ajaxSelections()
|
|
||||||
{
|
|
||||||
// Get a db connection.
|
|
||||||
$db = JFactory::getDbo();
|
|
||||||
|
|
||||||
// Create a new query object.
|
|
||||||
$query = $db->getQuery(true);
|
|
||||||
|
|
||||||
// Select the text.
|
|
||||||
$query->select($db->quoteName('add_php_ajax'));
|
|
||||||
$query->from($db->quoteName('#__componentbuilder_admin_view'));
|
|
||||||
$query->order($db->quoteName('add_php_ajax') . ' ASC');
|
|
||||||
|
|
||||||
// Reset the query using our newly populated query object.
|
|
||||||
$db->setQuery($query);
|
|
||||||
|
|
||||||
$results = $db->loadColumn();
|
|
||||||
|
|
||||||
if ($results)
|
|
||||||
{
|
|
||||||
// get model
|
|
||||||
$model = $this->getModel();
|
|
||||||
$results = array_unique($results);
|
|
||||||
$_filter = array();
|
|
||||||
foreach ($results as $add_php_ajax)
|
|
||||||
{
|
|
||||||
// Translate the add_php_ajax selection
|
|
||||||
$text = $model->selectionTranslation($add_php_ajax,'add_php_ajax');
|
|
||||||
// Now add the add_php_ajax and its text to the options array
|
|
||||||
$_filter[] = JHtml::_('select.option', $add_php_ajax, JText::_($text));
|
|
||||||
}
|
|
||||||
return $_filter;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
protected function getTheAdd_custom_importSelections()
|
|
||||||
{
|
|
||||||
// Get a db connection.
|
|
||||||
$db = JFactory::getDbo();
|
|
||||||
|
|
||||||
// Create a new query object.
|
|
||||||
$query = $db->getQuery(true);
|
|
||||||
|
|
||||||
// Select the text.
|
|
||||||
$query->select($db->quoteName('add_custom_import'));
|
|
||||||
$query->from($db->quoteName('#__componentbuilder_admin_view'));
|
|
||||||
$query->order($db->quoteName('add_custom_import') . ' ASC');
|
|
||||||
|
|
||||||
// Reset the query using our newly populated query object.
|
|
||||||
$db->setQuery($query);
|
|
||||||
|
|
||||||
$results = $db->loadColumn();
|
|
||||||
|
|
||||||
if ($results)
|
|
||||||
{
|
|
||||||
// get model
|
|
||||||
$model = $this->getModel();
|
|
||||||
$results = array_unique($results);
|
|
||||||
$_filter = array();
|
|
||||||
foreach ($results as $add_custom_import)
|
|
||||||
{
|
|
||||||
// Translate the add_custom_import selection
|
|
||||||
$text = $model->selectionTranslation($add_custom_import,'add_custom_import');
|
|
||||||
// Now add the add_custom_import and its text to the options array
|
|
||||||
$_filter[] = JHtml::_('select.option', $add_custom_import, JText::_($text));
|
|
||||||
}
|
|
||||||
return $_filter;
|
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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_COMPONENTBUILDER</name>
|
<name>COM_COMPONENTBUILDER</name>
|
||||||
<creationDate>17th November, 2020</creationDate>
|
<creationDate>20th November, 2020</creationDate>
|
||||||
<author>Llewellyn van der Merwe</author>
|
<author>Llewellyn van der Merwe</author>
|
||||||
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
<authorEmail>llewellyn@joomlacomponentbuilder.com</authorEmail>
|
||||||
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
<authorUrl>http://www.joomlacomponentbuilder.com</authorUrl>
|
||||||
|
Loading…
Reference in New Issue
Block a user