/** * Class constructor. * * Consumes Phalcon paginator adapter and options array. * Option keys: * - rangeClass: Class name which determines scrolling style type (e.g. Phalcon\Paginator\Pager\Range\Sliding). * Defaults to "Phalcon\Paginator\Pager\Range\Sliding". * - rangeLength: Size of range to be used. Default size is 10. * - layoutClass: Used with getLayout() method. Defaults to "Phalcon\Paginator\Pager\Layout". * - urlMask: Required with getLayout() method. * * @param \Phalcon\Paginator\AdapterInterface $adapter Phalcon paginator adapter * @param array $options options array * */ public function __construct(AdapterInterface $adapter, array $options = array()) { $this->paginateResult = $adapter->getPaginate(); $this->limit = $adapter->getLimit(); $this->options = $options; }