<?php

namespace Config;

use CodeIgniter\Config\BaseConfig;

class Pager extends BaseConfig
{
    /**
     * --------------------------------------------------------------------------
     * 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>
     */
    public array $templates = [
        'default_full'   => 'CodeIgniter'.DIRECTORY_SEPARATOR .'Pager'.DIRECTORY_SEPARATOR .'Views'.DIRECTORY_SEPARATOR .'default_full',
        'default_simple' => 'CodeIgniter'.DIRECTORY_SEPARATOR .'Pager'.DIRECTORY_SEPARATOR .'Views'.DIRECTORY_SEPARATOR .'default_simple',
        'default_head'   => 'CodeIgniter'.DIRECTORY_SEPARATOR .'Pager'.DIRECTORY_SEPARATOR .'Views'.DIRECTORY_SEPARATOR .'default_head',
        'bootstrap_full' => 'templates'.DIRECTORY_SEPARATOR .'Pagers'.DIRECTORY_SEPARATOR .'bootstrap_full',
        'bootstrap_simple' => 'templates'.DIRECTORY_SEPARATOR .'Pagers'.DIRECTORY_SEPARATOR .'bootstrap_simple',
    ];

    /**
     * --------------------------------------------------------------------------
     * Items Per Page
     * --------------------------------------------------------------------------
     *
     * The default number of results shown in a single page.
     */
    public int $perPage = 20;
}
