PHP Class Bootstrap\View\Helper\BootstrapPaginatorHelper

Inheritance: extends Cake\View\Helper\PaginatorHelper, use trait BootstrapTrait
Show file Open project: holt59/cakephp3-bootstrap3-helpers Class Usage Examples

Protected Properties

Property Type Description
$_defaultConfig array Options: Holds the default options for pagination links The values that may be specified are: - url Url of the action. See Router::url() - url['sort'] the key that the recordset is sorted. - url['direction'] Direction of the sorting (default: 'asc'). - url['page'] Page number to use in links. - model The name of the model. - escape Defines if the title field for the link should be escaped (default: true). Templates: the templates used by this class

Public Methods

Method Description
first ( $first = '<< first', array $options = [] )
last ( $last = 'last >>', array $options = [] )
next ( $title = 'Next >>', array $options = [] )
numbers ( array $options = [] ) Get pagination link list.
prev ( $title = '<< Previous', array $options = [] )

Method Details

first() public method

public first ( $first = '<< first', array $options = [] )
$options array

last() public method

public last ( $last = 'last >>', array $options = [] )
$options array

next() public method

public next ( $title = 'Next >>', array $options = [] )
$options array

numbers() public method

Get pagination link list.
public numbers ( array $options = [] )
$options array Options for link element Extra options: - size small/normal/large (default normal)

prev() public method

public prev ( $title = '<< Previous', array $options = [] )
$options array

Property Details

$_defaultConfig protected property

Options: Holds the default options for pagination links The values that may be specified are: - url Url of the action. See Router::url() - url['sort'] the key that the recordset is sorted. - url['direction'] Direction of the sorting (default: 'asc'). - url['page'] Page number to use in links. - model The name of the model. - escape Defines if the title field for the link should be escaped (default: true). Templates: the templates used by this class
protected array $_defaultConfig
return array