diff --git a/lib/QUI/Bricks/Controls/Pagination.php b/lib/QUI/Bricks/Controls/Pagination.php index 3295ac7aa840c359b66d767267c3958c537d1897..857fe425787b1882620fcbca74f288b96a5407a5 100644 --- a/lib/QUI/Bricks/Controls/Pagination.php +++ b/lib/QUI/Bricks/Controls/Pagination.php @@ -21,14 +21,14 @@ class Pagination extends QUI\Control * * @var array */ - protected $_getParams = array(); + protected $getParams = array(); /** * URL Params * * @var array */ - protected $_urlParams = array(); + protected $urlParams = array(); /** * constructor @@ -156,11 +156,11 @@ public function getBody() $order = $this->getAttribute('order'); $sheet = $this->getAttribute('sheet'); - $this->_getParams['sheet'] = $sheet; - $this->_getParams['limit'] = $limit; + $this->getParams['sheet'] = $sheet; + $this->getParams['limit'] = $limit; if (!empty($order)) { - $this->_getParams['order'] = $order; + $this->getParams['order'] = $order; } if ((!$count || $count == 1) @@ -175,8 +175,8 @@ public function getBody() 'start' => $start, 'end' => $end, 'active' => $active, - 'pathParams' => $this->_urlParams, - 'getParams' => $this->_getParams, + 'pathParams' => $this->urlParams, + 'getParams' => $this->getParams, 'anchor' => $anchor, 'limit' => $limit, 'limits' => $limits, @@ -212,7 +212,7 @@ public function loadFromRequest() $this->setAttribute('order', $order); $this->setAttribute('sheet', $sheet); - $this->_urlParams = QUI::getRewrite()->getUrlParamsList(); + $this->urlParams = QUI::getRewrite()->getUrlParamsList(); } /** @@ -266,14 +266,14 @@ public function setGetParams($name, $value) $value = QUI\Utils\Security\Orthos::clearFormRequest($value); if (empty($value)) { - if (isset($this->_getParams[$name])) { - unset($this->_getParams[$name]); + if (isset($this->getParams[$name])) { + unset($this->getParams[$name]); } return; } - $this->_getParams[$name] = urlencode($value); + $this->getParams[$name] = urlencode($value); } /** @@ -288,13 +288,13 @@ public function setUrlParams($name, $value) $value = QUI\Utils\Security\Orthos::clear($value); if (empty($value)) { - if (isset($this->_urlParams[$name])) { - unset($this->_urlParams[$name]); + if (isset($this->urlParams[$name])) { + unset($this->urlParams[$name]); } return; } - $this->_urlParams[$name] = $value; + $this->urlParams[$name] = $value; } }