From 295254d1d5313bcc8bbcb210c405a1486c859dbf Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Mon, 11 May 2015 14:07:57 +0200 Subject: [PATCH] Rename Icinga\Web\Widget\SortBox::applyRequest() to ...::setRequest() refs #9220 --- library/Icinga/Web/Controller.php | 2 +- library/Icinga/Web/Widget/SortBox.php | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/library/Icinga/Web/Controller.php b/library/Icinga/Web/Controller.php index 6fa578c22..939147321 100644 --- a/library/Icinga/Web/Controller.php +++ b/library/Icinga/Web/Controller.php @@ -53,7 +53,7 @@ class Controller extends ModuleActionController $this->view->sortBox = SortBox::create( 'sortbox-' . $req->getActionName(), $columns - )->applyRequest($req); + )->setRequest($req); } return $this; diff --git a/library/Icinga/Web/Widget/SortBox.php b/library/Icinga/Web/Widget/SortBox.php index fc2025e5b..80c413658 100644 --- a/library/Icinga/Web/Widget/SortBox.php +++ b/library/Icinga/Web/Widget/SortBox.php @@ -14,7 +14,7 @@ use Icinga\Web\Request; * submission of sorting changes and draws an additional submit button when JavaScript is disabled. * * The constructor takes an string for the component name and an array containing the select options, where the key is - * the value to be submitted and the value is the label that will be shown. You then should call applyRequest in order + * the value to be submitted and the value is the label that will be shown. You then should call setRequest in order * to make sure the form is correctly populated when a request with a sort parameter is being made. * * Example: @@ -23,7 +23,7 @@ use Icinga\Web\Request; * $this->getRequest()->getActionName(), * $columns * ); - * $this->view->sortControl->applyRequest($this->getRequest()); + * $this->view->sortControl->setRequest($this->getRequest()); * */ class SortBox extends AbstractWidget @@ -81,7 +81,7 @@ class SortBox extends AbstractWidget * * @return $this */ - public function applyRequest($request) + public function setRequest($request) { $this->request = $request; return $this;