19 declare(strict_types=1);
    29     protected int $number_of_rows = 800;
    39         $smallest_option = current(Pagination::DEFAULT_LIMITS);
    40         if (is_null($total_count) || $total_count >= $smallest_option) {
    43                 $this->view_control_factory->pagination()
    44                     ->withTotalCount($total_count)
    46                         Pagination::FNAME_OFFSET => $range->
getStart(),
    47                         Pagination::FNAME_LIMIT => $range->
getLength()
    50         return $this->view_control_factory->group([
    51             $this->view_control_factory->nullControl(),
    52             $this->view_control_factory->nullControl()
    65         return $this->range ?? $this->data_factory->range(0, $this->number_of_rows);
 
initViewControlpagination()
 
getViewControlPagination(?int $total_count=null)
 
A simple class to express a naive range of whole positive numbers.