Exemple #1
0
 /**
  * Constructor.
  *
  * @param Builder $src
  */
 public function __construct(Builder $src)
 {
     parent::__construct($src);
 }
Exemple #2
0
 protected function resetPagination(DataProvider $provider)
 {
     if (version_compare(Application::VERSION, '5.0.0', '<')) {
         $provider->getPaginationFactory()->setPageName('page_unused');
     } else {
         Paginator::currentPageResolver(function () {
             return 1;
         });
     }
     $provider->setPageSize($this->getRowsLimit());
     $provider->setCurrentPage(1);
 }
Exemple #3
0
 protected function resetPagination(DataProvider $provider)
 {
     $provider->setPageSize($this->getRowsLimit());
     $provider->setCurrentPage(1);
 }
 /**
  * Constructor.
  *
  * @param Builder $src
  */
 public function __construct(Collection $src)
 {
     parent::__construct($src);
 }