uawdijnntqw1x1x1
IP : 216.73.216.15
Hostname : xhost1.intravision.ru
Kernel : Linux xhost1.intravision.ru 3.16.0-7-amd64 #1 SMP Debian 3.16.59-1 (2018-10-03) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
files
/
.
/
need-2-delete
/
mini-borishof.ru1
/
.
/
bitrix
/
modules
/
main
/
lib
/
ui
/
reversepagenavigation.php
/
/
<?php /** * Bitrix Framework * @package bitrix * @subpackage main * @copyright 2001-2015 Bitrix */ namespace Bitrix\Main\UI; use Bitrix\Main\Web; class ReversePageNavigation extends PageNavigation { /** * @param string $id Navigation identity like "nav-cars". * @param int $count Record count. */ public function __construct($id, $count) { parent::__construct($id); $this->setRecordCount($count); } /** * Returns number of pages. * @return int */ public function getPageCount() { if($this->allRecords) { return 1; } $maxPages = floor($this->recordCount/$this->pageSize); if($this->recordCount > 0 && $maxPages == 0) { $maxPages = 1; } return $maxPages; } /** * Returns the current page number. * @return int */ public function getCurrentPage() { if($this->currentPage !== null) { return $this->currentPage; } return $this->getPageCount(); } /** * Returns offset of the first record of the current page. * @return int */ public function getOffset() { if($this->allRecords) { return 0; } $offset = 0; $pageCount = $this->getPageCount(); $currentPage = $this->getCurrentPage(); if($currentPage <> $pageCount) { //counting the last page (wich is the first one on reverse paging) $offset += ($this->recordCount % $this->pageSize); } $offset += ($pageCount - $currentPage) * $this->pageSize; return $offset; } /** * Returns the number of records in the current page. * @return int */ public function getLimit() { if($this->allRecords) { return $this->getRecordCount(); } if($this->getCurrentPage() == $this->getPageCount()) { //the last page (displayed first) return $this->pageSize + ($this->recordCount % $this->pageSize); } else { return $this->pageSize; } } }
/var/files/./need-2-delete/mini-borishof.ru1/./bitrix/modules/main/lib/ui/reversepagenavigation.php