Skip to content

Commit

Permalink
Move getFilter() method to ipl\Web\Compat\CompatController::class
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed Sep 29, 2023
1 parent 723d360 commit 6d0e676
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 68 deletions.
17 changes: 0 additions & 17 deletions application/controllers/ChannelsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,6 @@ class ChannelsController extends CompatController
/** @var Connection */
private $db;

/** @var Filter\Rule Filter from query string parameters */
private $filter;

public function init()
{
$this->assertPermission('config/modules');
Expand Down Expand Up @@ -155,20 +152,6 @@ public function searchEditorAction(): void
$this->setTitle($this->translate('Adjust Filter'));
}

/**
* Get the filter created from query string parameters
*
* @return Filter\Rule
*/
protected function getFilter(): Filter\Rule
{
if ($this->filter === null) {
$this->filter = QueryString::parse((string) $this->params);
}

return $this->filter;
}

/**
* Merge tabs with other tabs contained in this tab panel
*
Expand Down
17 changes: 0 additions & 17 deletions application/controllers/ContactsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ class ContactsController extends CompatController
/** @var Connection */
private $db;

/** @var Filter\Rule Filter from query string parameters */
private $filter;

public function init()
{
$this->assertPermission('notifications/config/contacts');
Expand Down Expand Up @@ -159,20 +156,6 @@ public function searchEditorAction(): void
$this->setTitle($this->translate('Adjust Filter'));
}

/**
* Get the filter created from query string parameters
*
* @return Filter\Rule
*/
protected function getFilter(): Filter\Rule
{
if ($this->filter === null) {
$this->filter = QueryString::parse((string) $this->params);
}

return $this->filter;
}

public function getTabs()
{
if ($this->getRequest()->getActionName() === 'index') {
Expand Down
17 changes: 0 additions & 17 deletions application/controllers/EventRulesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,6 @@ class EventRulesController extends CompatController
{
use SearchControls;

/** @var Filter\Rule Filter from query string parameters */
private $filter;

/** @var Session\SessionNamespace */
private $sessionNamespace;

Expand Down Expand Up @@ -220,20 +217,6 @@ public function addSearchEditorAction(): void
$this->setTitle($this->translate('Adjust Filter'));
}

/**
* Get the filter created from query string parameters
*
* @return Filter\Rule
*/
protected function getFilter(): Filter\Rule
{
if ($this->filter === null) {
$this->filter = QueryString::parse((string) $this->params);
}

return $this->filter;
}

public function getTabs()
{
if ($this->getRequest()->getActionName() === 'index') {
Expand Down
17 changes: 0 additions & 17 deletions application/controllers/EventsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ class EventsController extends CompatController
use Auth;
use SearchControls;

/** @var Filter\Rule Filter from query string parameters */
private $filter;

public function indexAction(): void
{
$this->addTitleTab(t('Events'));
Expand Down Expand Up @@ -119,18 +116,4 @@ public function searchEditorAction(): void
$this->getDocument()->add($editor);
$this->setTitle(t('Adjust Filter'));
}

/**
* Get the filter created from query string parameters
*
* @return Filter\Rule
*/
protected function getFilter(): Filter\Rule
{
if ($this->filter === null) {
$this->filter = QueryString::parse((string) $this->params);
}

return $this->filter;
}
}

0 comments on commit 6d0e676

Please sign in to comment.