コード例 #1
0
 /**
  * Return HTTP parameters to render the current page with a different sort
  * parameter.
  *
  * @param string $s      New sort parameter (null for NO sort parameter)
  * @param bool   $escape Should we escape the string for use in the view?
  *
  * @return string
  */
 public function setSort($s, $escape = true)
 {
     return $this->updateQueryString('sort', $s, $this->params->getDefaultSort(), $escape, true);
 }