2020-08-04 13:25:22 +02:00
|
|
|
<?php
|
|
|
|
|
2021-06-08 11:52:11 +02:00
|
|
|
declare(strict_types=1);
|
|
|
|
|
2020-08-04 13:25:22 +02:00
|
|
|
namespace Config;
|
2020-05-27 18:46:16 +02:00
|
|
|
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
|
|
|
|
class Pager extends BaseConfig
|
|
|
|
{
|
2021-04-02 19:20:02 +02: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 19:13:13 +02:00
|
|
|
*
|
|
|
|
* @noRector Rector\Php55\Rector\String_\StringClassNameToClassConstantRector
|
2021-04-02 19:20:02 +02:00
|
|
|
*/
|
2021-05-20 19:13:13 +02:00
|
|
|
public $templates = [
|
2020-10-02 17:38:16 +02:00
|
|
|
'default_full' => 'App\Views\pager\default_full',
|
2020-06-10 17:00:12 +02: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 19:20:02 +02:00
|
|
|
/**
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
* Items Per Page
|
|
|
|
* --------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* The default number of results shown in a single page.
|
|
|
|
*/
|
2021-05-18 19:16:36 +02:00
|
|
|
public int $perPage = 20;
|
2020-05-27 18:46:16 +02:00
|
|
|
}
|