public function __construct($inline, $route, array $parameters = array(), $limit, $total = null, $limitParameterName = null, $absolute = false)
 {
     parent::__construct($inline, $route, $parameters, $absolute);
     $this->total = $total;
     $this->limit = $limit;
     $this->limitParameterName = $limitParameterName ?: 'limit';
 }
 public function __construct($inline, $route, array $parameters = [], $offset = 0, $limit = 10, $count = null, $offsetParameterName = 'offset', $limitParameterName = 'limit', $absolute = false)
 {
     parent::__construct($inline, $route, $parameters, $absolute);
     $this->offset = $offset;
     $this->limit = $limit;
     $this->count = $count;
     $this->offsetParameterName = $offsetParameterName;
     $this->limitParameterName = $limitParameterName;
 }
Exemplo n.º 3
0
 public function __construct($inline, $route, array $parameters = array(), $page, $limit, $pages, $pageParameterName = null, $limitParameterName = null)
 {
     parent::__construct($inline, $route, $parameters);
     $this->page = $page;
     $this->pages = $pages;
     $this->limit = $limit;
     $this->pageParameterName = $pageParameterName ?: 'page';
     $this->limitParameterName = $limitParameterName ?: 'limit';
 }