Sets pager
@return array
5548
protected function setPagerListAlias()
    {
        $conditions = $this->query_filter;
        $conditions['count'] = true;

        $pager = array(
            'query' => $this->query_filter,
            'total' => (int) $this->alias->getList($conditions)
        );

        return $this->data_limit = $this->setPager($pager);
    }
165994
private function setCurrentPage()
    {
        if ($this->perPage == 'all') return;

        if ($this->hasInput('page'))
        {
            $page_input = $this->getInput('page');

            if ($this->isValidPageNumber($page_input))
            {
                $this->page = $page_input;
            }
        }
    }
275319
protected function setPagerlListBookmark()
    {
        $options = $this->query_filter;
        $options['count'] = true;
        $total = (int) $this->bookmark->getList($options);

        $pager = array(
            'total' => $total,
            'query' => $this->query_filter
        );

        return $this->data_limit = $this->setPager($pager);
    }
1127346
protected function setPagerlListCart()
    {
        $options = $this->query_filter;
        $options['count'] = true;
        $total = (int) $this->cart->getList($options);

        $pager = array(
            'total' => $total,
            'query' => $this->query_filter
        );

        return $this->data_limit = $this->setPager($pager);
    }
716190
function paging()
    {
        $this->num = $this->count();
        $offset = ($this->page - 1) * $this->page_size;
        if ($offset < 0)
        {
            $offset = 0;
        }
        if ($this->num % $this->page_size > 0)
        {
            $this->pages = intval($this->num / $this->page_size) + 1;
        }
        else
        {
            $this->pages = $this->num / $this->page_size;
        }
        $this->limit($offset . ',' . $this->page_size);
        $this->pager = new Pager(array('total'    => $this->num,
                                       'perpage'  => $this->page_size,
                                       'nowindex' => $this->page
        ));
    }
369890
protected function setPageRange()
	{
		$this->page_range = $this->availables_page_range['default'];
		if ( $this->current_page_number > 9992 )
		{
			$this->page_range = $this->availables_page_range['very_short'];
		}
		elseif ( $this->current_page_number > 986 )
		{
			$this->page_range = $this->availables_page_range['short'];
		}

		$this->page_range = ( $this->page_range - 1 );
		$this->start_page_range = $this->current_page_number;
		$this->end_page_range = ( $this->current_page_number + $this->page_range );
		if ( $this->end_page_range > $this->num_pages )
		{
			 $this->end_page_range = $this->num_pages;
		}

		// Calculate deviations at the start or end of the page range ( window ).
		$extra = ( $this->page_range - ( $this->end_page_range - $this->start_page_range ) );
		if ( $extra > 0 )
		{
			if ( $this->end_page_range == $this->num_pages )
			{
				$this->start_page_range = ( $this->start_page_range - $extra );
				if ( $this->start_page_range < 1 )
				{
					$this->start_page_range = 1;
				}
			}
			else
			{
				$this->end_page_range = ( $this->end_page_range + $extra );
				if ( $this->end_page_range > $this->num_pages )
				{
					$this->end_page_range = $this->num_pages;
				}
			}
		}
	}
1349903
protected function getPageRule()
    {
        $existsRule = Rule::exists($this->getTablePrefix().'pages', 'id')->using(function ($query) {
            if ($this->has('locale'))
                $query->where('locale', $this->get('locale', config('app.locale')));
        });

        return ['required', 'integer', $existsRule];
    }
810569
protected function setPagerIndexCategory()
    {
        $pager = array(
            'total' => $this->data_total,
            'query' => $this->query_filter,
            'limit' => $this->configTheme('catalog_limit', 20)
        );

        return $this->data_limit = $this->setPager($pager);
    }
43625
protected function setPagerListCategory()
    {
        $options = $this->query_filter;
        $options['count'] = true;

        $pager = array(
            'query' => $this->query_filter,
            'total' => (int) $this->category->getList($options)
        );

        return $this->data_limit = $this->setPager($pager);
    }
1076480
public function setPageContent()
	{
		$content = "---\n";
		$content .= "type: ". $this->properties['type'] . "\n";
		$content .= "layout: " . $this->properties['layout'] . "\n";
		$content .= "title: " . $this->properties['title'] . "\n";
		$content .= "---\n";
		$content .= $this->properties['body'];

		return $content;
	}
399495
public function setPagerPrefix()
    {
        // Generate pager url prefix
        return 'samsoncms_input_material_application/table/' . (isset($this->nav) ? $this->nav->id : '0') .
        '/' . (isset($this->search{0}) ? $this->search : '0') . '/';
    }
29345
public function Details() {
      if ($this->_PropertiesDefined === FALSE)
         trigger_error(ErrorMessage('You must configure the pager with $Pager->Configure() before retrieving the pager details.', 'MorePager', 'Details'), E_USER_ERROR);
         
      $Details = FALSE;
      if ($this->TotalRecords > 0) {
         if ($this->_Totalled === TRUE) {
            $Details = self::FormatUrl(T('%s$1 to %s$2 of %s$3'), $this->Offset + 1, $this->_LastOffset, $this->TotalRecords);
         } else {
            $Details = self::FormatUrl(T('%s$1 to %s$2'), $this->Offset, $this->_LastOffset);
         }
      }
      return $Details;
   }
786955
protected function listEntityIds(PagerInterface $pager = null, array $query_params = []): array
    {
        /** @var \Apigee\Edge\Api\Management\Entity\OrganizationInterface $organization */
        $organization = $this->getOrganizationController()->load($this->getOrganisationName());
        $isCpsEnabled = $organization->getPropertyValue('features.isCpsEnabled');

        if ($isCpsEnabled) {
            return $this->listEntityIdsWithCps($pager, $query_params);
        } else {
            $this->triggerCpsSimulationNotice($pager);

            return $this->listEntityIdsWithoutCps($pager, $query_params);
        }
    }
926815
protected function setPagerListCurrency()
    {
        $pager = array(
            'query' => $this->query_filter,
            'total' => (int) $this->getListCurrency(true)
        );

        return $this->data_limit = $this->setPager($pager);
    }
1219672
public function renderPager()
	{
		if (!$this->json) {
			parent::renderPager();
			return true;
		}

		$pager = array();
		if (is_string($this->pager)) {
			$class = $this->pager;
		} else if (is_array($this->pager)) {
			$pager = $this->pager;
			if (isset($pager['class'])) {
				$class = $pager['class'];
				unset($pager['class']);
			}
		}
		$pager['pages'] = $this->dataProvider->getPagination();

		if ($pager['pages']->getPageCount() > 1) {
			$pager['json'] = $this->json;
			$widget = $this->createWidget($class, $pager);

			return $widget->run();
		} else {
			return array();
		}
	}
517635
protected function findInitializedPagerId()
    {
        foreach ($this->pagers as $key => $pager) {
            if (isset($pager->totalpages)) {
                return $key;
            }
        }

        return '';
    }
1197806
protected function setPagerListOrder()
    {
        $conditions = $this->query_filter;
        $conditions['count'] = true;

        $pager = array(
            'query' => $this->query_filter,
            'total' => (int) $this->order->getList($conditions)
        );

        return $this->data_limit = $this->setPager($pager);
    }