Phalcon\Paginator\Pager\Range::getRange PHP Метод

getRange() абстрактный публичный Метод

Calculate and returns an array representing the range around the current page.
abstract public getRange ( ) : array
Результат array
    public abstract function getRange();

Usage Example

Пример #1
0
 /**
  * Displays the pager on screen based on templates and options defined.
  *
  * @link https://github.com/doctrine/doctrine1/blob/master/lib/Doctrine/Pager/Layout.php#L315
  * @param  array  $options
  * @return string
  */
 public function getRendered(array $options = [])
 {
     $range = $this->range->getRange();
     $result = '';
     for ($i = 0, $l = count($range); $i < $l; $i++) {
         $options['page_number'] = $range[$i];
         $result .= $this->processPage($options);
         if ($i < $l - 1) {
             $result .= $this->separatorTemplate;
         }
     }
     return $result;
 }