2020-08-04 11:25:22 +00:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 09:52:11 +00:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-08-04 11:25:22 +00:00
|
|
|
namespace Config;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
|
|
|
class Pager extends BaseConfig
|
|
|
|
{
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Templates
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* Pagination links are rendered out using views to configure their
|
|
|
|
* appearance. This array contains aliases and the view names to
|
|
|
|
* use when rendering the links.
|
|
|
|
*
|
|
|
|
* Within each view, the Pager object will be available as $pager,
|
|
|
|
* and the desired group as $pagerGroup;
|
|
|
|
*
|
|
|
|
* @var array<string, string>
|
|
|
|
*/
|
2021-05-20 17:13:13 +00:00
|
|
|
public $templates = [
|
2020-10-02 15:38:16 +00:00
|
|
|
'default_full' => 'App\Views\pager\default_full',
|
2020-06-10 15:00:12 +00:00
|
|
|
'default_simple' => 'CodeIgniter\Pager\Views\default_simple',
|
|
|
|
'default_head' => 'CodeIgniter\Pager\Views\default_head',
|
|
|
|
];
|
2020-05-27 18:46:16 +02:00
|
|
|
|
2021-04-02 17:20:02 +00:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Items Per Page
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* The default number of results shown in a single page.
|
|
|
|
*/
|
2021-05-18 17:16:36 +00:00
|
|
|
public int $perPage = 20;
|
2020-05-27 18:46:16 +02:00
|
|
|
}
|