Kylob/Bootstrap

View on GitHub
src/Pagination.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace BootPress\Bootstrap;

class Pagination extends \BootPress\Pagination\Component
{
    /**
     * Returns a BootPress\Pagination\Component with the '**bootstrap**' defaults.
     *
     * @return object
     *
     * ```php
     * $records = range(1, 100);
     *
     * if (!$bp->pagination->set('page', 10, 'http://example.com')) {
     *     $bp->pagination->total(count($records));
     * }
     *
     * echo $pagination->links();
     *
     * echo $pagination->pager();
     * ```
     */
    public function __construct()
    {
        parent::__construct('bootstrap');
    }
}