示例#1
0
 /**
  * Create a filter url for the field named $title
  * and identified by $key which consists of
  * alias and field. $options holds all link
  * parameters like "alt, class" and so on.
  *
  * $key example: "article.title"
  *
  * @param \Twig_Environment $env
  * @param SlidingPagination $pagination
  * @param array             $fields
  * @param array             $options
  * @param array             $params
  * @param string            $template
  *
  * @return string
  */
 public function filter(\Twig_Environment $env, SlidingPagination $pagination, array $fields, $options = array(), $params = array(), $template = null)
 {
     return $env->render($template ?: $pagination->getFiltrationTemplate(), $this->processor->filter($pagination, $fields, $options, $params));
 }
 /**
  * Create a filter url for the field named $title
  * and identified by $key which consists of
  * alias and field. $options holds all link
  * parameters like "alt, class" and so on.
  *
  * $key example: "article.title"
  *
  * @param string $title
  * @param string $key
  * @param array $options
  * @param array $params
  * @param string $template
  * @return string
  */
 public function filter($pagination, array $fields, $options = array(), $params = array(), $template = null)
 {
     return $this->templating->render($template ?: $pagination->getFiltrationTemplate(), $this->processor->filter($pagination, $fields, $options, $params));
 }