2011-03-31 03:01:04 +02:00
|
|
|
<?php
|
2016-06-15 06:03:16 +02:00
|
|
|
|
2016-08-19 00:51:35 +02:00
|
|
|
namespace SilverStripe\ORM;
|
|
|
|
|
|
|
|
use SilverStripe\Control\HTTP;
|
2017-10-31 10:17:55 +01:00
|
|
|
use SilverStripe\Control\HTTPRequest;
|
2016-06-15 06:03:16 +02:00
|
|
|
use SilverStripe\ORM\Queries\SQLSelect;
|
2016-08-19 00:51:35 +02:00
|
|
|
use SilverStripe\View\ArrayData;
|
|
|
|
use ArrayAccess;
|
|
|
|
use Exception;
|
|
|
|
use IteratorIterator;
|
|
|
|
|
2011-03-31 03:01:04 +02:00
|
|
|
/**
|
|
|
|
* A decorator that wraps around a data list in order to provide pagination.
|
|
|
|
*/
|
2016-09-09 08:43:05 +02:00
|
|
|
class PaginatedList extends ListDecorator
|
2016-08-19 00:51:35 +02:00
|
|
|
{
|
2011-03-31 03:01:04 +02:00
|
|
|
|
2016-11-29 00:31:16 +01:00
|
|
|
protected $request;
|
|
|
|
protected $getVar = 'start';
|
|
|
|
|
|
|
|
protected $pageLength = 10;
|
|
|
|
protected $pageStart;
|
|
|
|
protected $totalItems;
|
|
|
|
protected $limitItems = true;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructs a new paginated list instance around a list.
|
|
|
|
*
|
|
|
|
* @param SS_List $list The list to paginate. The getRange method will
|
|
|
|
* be used to get the subset of objects to show.
|
2020-12-21 22:23:23 +01:00
|
|
|
* @param array|ArrayAccess $request Either a map of request parameters or
|
2016-11-29 00:31:16 +01:00
|
|
|
* request object that the pagination offset is read from.
|
|
|
|
* @throws Exception
|
|
|
|
*/
|
2020-04-20 19:58:09 +02:00
|
|
|
public function __construct(SS_List $list, $request = [])
|
2016-11-29 00:31:16 +01:00
|
|
|
{
|
|
|
|
if (!is_array($request) && !$request instanceof ArrayAccess) {
|
|
|
|
throw new Exception('The request must be readable as an array.');
|
|
|
|
}
|
|
|
|
|
|
|
|
$this->setRequest($request);
|
|
|
|
parent::__construct($list);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the GET var that is used to set the page start. This defaults
|
|
|
|
* to "start".
|
|
|
|
*
|
2021-12-13 09:05:33 +01:00
|
|
|
* If there is more than one paginated list on a page, it is necessary to
|
2016-11-29 00:31:16 +01:00
|
|
|
* set a different get var for each using {@link setPaginationGetVar()}.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function getPaginationGetVar()
|
|
|
|
{
|
|
|
|
return $this->getVar;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the GET var used to set the page start.
|
|
|
|
*
|
|
|
|
* @param string $var
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function setPaginationGetVar($var)
|
|
|
|
{
|
|
|
|
$this->getVar = $var;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the number of items displayed per page. This defaults to 10.
|
|
|
|
*
|
2020-12-21 22:23:23 +01:00
|
|
|
* @return int
|
2016-11-29 00:31:16 +01:00
|
|
|
*/
|
|
|
|
public function getPageLength()
|
|
|
|
{
|
|
|
|
return $this->pageLength;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the number of items displayed per page. Set to zero to disable paging.
|
|
|
|
*
|
|
|
|
* @param int $length
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function setPageLength($length)
|
|
|
|
{
|
2017-11-20 04:53:44 +01:00
|
|
|
$this->pageLength = (int)$length;
|
2016-11-29 00:31:16 +01:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the current page.
|
|
|
|
*
|
|
|
|
* @param int $page Page index beginning with 1
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function setCurrentPage($page)
|
|
|
|
{
|
2017-11-20 04:53:44 +01:00
|
|
|
$this->pageStart = ((int)$page - 1) * $this->getPageLength();
|
2016-11-29 00:31:16 +01:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the offset of the item the current page starts at.
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getPageStart()
|
|
|
|
{
|
|
|
|
$request = $this->getRequest();
|
|
|
|
if ($this->pageStart === null) {
|
|
|
|
if ($request
|
|
|
|
&& isset($request[$this->getPaginationGetVar()])
|
|
|
|
&& $request[$this->getPaginationGetVar()] > 0
|
|
|
|
) {
|
|
|
|
$this->pageStart = (int)$request[$this->getPaginationGetVar()];
|
|
|
|
} else {
|
|
|
|
$this->pageStart = 0;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return $this->pageStart;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the offset of the item that current page starts at. This should be
|
|
|
|
* a multiple of the page length.
|
|
|
|
*
|
|
|
|
* @param int $start
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function setPageStart($start)
|
|
|
|
{
|
2017-11-20 04:53:44 +01:00
|
|
|
$this->pageStart = (int)$start;
|
2016-11-29 00:31:16 +01:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the total number of items in the unpaginated list.
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function getTotalItems()
|
|
|
|
{
|
|
|
|
if ($this->totalItems === null) {
|
2022-04-14 03:12:59 +02:00
|
|
|
$this->totalItems = count($this->list ?? []);
|
2016-11-29 00:31:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return $this->totalItems;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the total number of items in the list. This is useful when doing
|
|
|
|
* custom pagination.
|
|
|
|
*
|
|
|
|
* @param int $items
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function setTotalItems($items)
|
|
|
|
{
|
2017-11-20 04:53:44 +01:00
|
|
|
$this->totalItems = (int)$items;
|
2016-11-29 00:31:16 +01:00
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the page length, page start and total items from a query object's
|
|
|
|
* limit, offset and unlimited count. The query MUST have a limit clause.
|
|
|
|
*
|
|
|
|
* @param SQLSelect $query
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function setPaginationFromQuery(SQLSelect $query)
|
|
|
|
{
|
|
|
|
if ($limit = $query->getLimit()) {
|
|
|
|
$this->setPageLength($limit['limit']);
|
|
|
|
$this->setPageStart($limit['start']);
|
|
|
|
$this->setTotalItems($query->unlimitedRowCount());
|
|
|
|
}
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns whether or not the underlying list is limited to the current
|
|
|
|
* pagination range when iterating.
|
|
|
|
*
|
|
|
|
* By default the limit method will be called on the underlying list to
|
|
|
|
* extract the subset for the current page. In some situations, if the list
|
|
|
|
* is custom generated and already paginated you don't want to additionally
|
|
|
|
* limit the list. You can use {@link setLimitItems} to control this.
|
|
|
|
*
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function getLimitItems()
|
|
|
|
{
|
|
|
|
return $this->limitItems;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param bool $limit
|
|
|
|
* @return $this
|
|
|
|
*/
|
|
|
|
public function setLimitItems($limit)
|
|
|
|
{
|
|
|
|
$this->limitItems = (bool)$limit;
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return IteratorIterator
|
|
|
|
*/
|
2022-04-14 03:12:59 +02:00
|
|
|
#[\ReturnTypeWillChange]
|
2016-11-29 00:31:16 +01:00
|
|
|
public function getIterator()
|
|
|
|
{
|
|
|
|
$pageLength = $this->getPageLength();
|
|
|
|
if ($this->limitItems && $pageLength) {
|
|
|
|
$tmptList = clone $this->list;
|
|
|
|
return new IteratorIterator(
|
|
|
|
$tmptList->limit($pageLength, $this->getPageStart())
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
return new IteratorIterator($this->list);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a set of links to all the pages in the list. This is useful for
|
|
|
|
* basic pagination.
|
|
|
|
*
|
|
|
|
* By default it returns links to every page, but if you pass the $max
|
|
|
|
* parameter the number of pages will be limited to that number, centered
|
|
|
|
* around the current page.
|
|
|
|
*
|
|
|
|
* @param int $max
|
|
|
|
* @return SS_List
|
|
|
|
*/
|
|
|
|
public function Pages($max = null)
|
|
|
|
{
|
|
|
|
$result = new ArrayList();
|
|
|
|
|
|
|
|
if ($max) {
|
|
|
|
$start = ($this->CurrentPage() - floor($max / 2)) - 1;
|
|
|
|
$end = $this->CurrentPage() + floor($max / 2);
|
|
|
|
|
|
|
|
if ($start < 0) {
|
|
|
|
$start = 0;
|
|
|
|
$end = $max;
|
|
|
|
}
|
|
|
|
|
|
|
|
if ($end > $this->TotalPages()) {
|
|
|
|
$end = $this->TotalPages();
|
|
|
|
$start = max(0, $end - $max);
|
|
|
|
}
|
|
|
|
} else {
|
|
|
|
$start = 0;
|
|
|
|
$end = $this->TotalPages();
|
|
|
|
}
|
|
|
|
|
|
|
|
for ($i = $start; $i < $end; $i++) {
|
2020-04-20 19:58:09 +02:00
|
|
|
$result->push(new ArrayData([
|
2016-11-29 00:31:16 +01:00
|
|
|
'PageNum' => $i + 1,
|
2017-10-31 10:17:55 +01:00
|
|
|
'Link' => HTTP::setGetVar(
|
|
|
|
$this->getPaginationGetVar(),
|
|
|
|
$i * $this->getPageLength(),
|
|
|
|
($this->request instanceof HTTPRequest) ? $this->request->getURL(true) : null
|
|
|
|
),
|
2016-11-29 00:31:16 +01:00
|
|
|
'CurrentBool' => $this->CurrentPage() == ($i + 1)
|
2020-04-20 19:58:09 +02:00
|
|
|
]));
|
2016-11-29 00:31:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a summarised pagination which limits the number of pages shown
|
|
|
|
* around the current page for visually balanced.
|
|
|
|
*
|
|
|
|
* Example: 25 pages total, currently on page 6, context of 4 pages
|
|
|
|
* [prev] [1] ... [4] [5] [[6]] [7] [8] ... [25] [next]
|
|
|
|
*
|
|
|
|
* Example template usage:
|
|
|
|
* <code>
|
|
|
|
* <% if MyPages.MoreThanOnePage %>
|
|
|
|
* <% if MyPages.NotFirstPage %>
|
|
|
|
* <a class="prev" href="$MyPages.PrevLink">Prev</a>
|
|
|
|
* <% end_if %>
|
|
|
|
* <% loop MyPages.PaginationSummary(4) %>
|
|
|
|
* <% if CurrentBool %>
|
|
|
|
* $PageNum
|
|
|
|
* <% else %>
|
|
|
|
* <% if Link %>
|
|
|
|
* <a href="$Link">$PageNum</a>
|
|
|
|
* <% else %>
|
|
|
|
* ...
|
|
|
|
* <% end_if %>
|
|
|
|
* <% end_if %>
|
|
|
|
* <% end_loop %>
|
|
|
|
* <% if MyPages.NotLastPage %>
|
|
|
|
* <a class="next" href="$MyPages.NextLink">Next</a>
|
|
|
|
* <% end_if %>
|
|
|
|
* <% end_if %>
|
|
|
|
* </code>
|
|
|
|
*
|
|
|
|
* @param int $context The number of pages to display around the current
|
|
|
|
* page. The number should be event, as half the number of each pages
|
|
|
|
* are displayed on either side of the current one.
|
|
|
|
* @return SS_List
|
|
|
|
*/
|
|
|
|
public function PaginationSummary($context = 4)
|
|
|
|
{
|
|
|
|
$result = new ArrayList();
|
|
|
|
$current = $this->CurrentPage();
|
|
|
|
$total = $this->TotalPages();
|
|
|
|
|
|
|
|
// Make the number even for offset calculations.
|
|
|
|
if ($context % 2) {
|
|
|
|
$context--;
|
|
|
|
}
|
|
|
|
|
|
|
|
// If the first or last page is current, then show all context on one
|
|
|
|
// side of it - otherwise show half on both sides.
|
|
|
|
if ($current == 1 || $current == $total) {
|
|
|
|
$offset = $context;
|
|
|
|
} else {
|
|
|
|
$offset = floor($context / 2);
|
|
|
|
}
|
|
|
|
|
|
|
|
$left = max($current - $offset, 1);
|
2016-12-28 14:52:49 +01:00
|
|
|
$right = min($current + $offset, $total);
|
2016-11-29 00:31:16 +01:00
|
|
|
$range = range($current - $offset, $current + $offset);
|
|
|
|
|
|
|
|
if ($left + $context > $total) {
|
|
|
|
$left = $total - $context;
|
|
|
|
}
|
|
|
|
|
|
|
|
for ($i = 0; $i < $total; $i++) {
|
2017-10-31 10:17:55 +01:00
|
|
|
$link = HTTP::setGetVar(
|
|
|
|
$this->getPaginationGetVar(),
|
|
|
|
$i * $this->getPageLength(),
|
|
|
|
($this->request instanceof HTTPRequest) ? $this->request->getURL(true) : null
|
|
|
|
);
|
2016-11-29 00:31:16 +01:00
|
|
|
$num = $i + 1;
|
|
|
|
|
|
|
|
$emptyRange = $num != 1 && $num != $total && (
|
2016-12-28 14:52:49 +01:00
|
|
|
$num == $left - 1 || $num == $right + 1
|
|
|
|
);
|
2016-11-29 00:31:16 +01:00
|
|
|
|
|
|
|
if ($emptyRange) {
|
2020-04-20 19:58:09 +02:00
|
|
|
$result->push(new ArrayData([
|
2016-11-29 00:31:16 +01:00
|
|
|
'PageNum' => null,
|
|
|
|
'Link' => null,
|
|
|
|
'CurrentBool' => false
|
2020-04-20 19:58:09 +02:00
|
|
|
]));
|
2022-04-14 03:12:59 +02:00
|
|
|
} elseif ($num == 1 || $num == $total || in_array($num, $range ?? [])) {
|
2020-04-20 19:58:09 +02:00
|
|
|
$result->push(new ArrayData([
|
2016-11-29 00:31:16 +01:00
|
|
|
'PageNum' => $num,
|
|
|
|
'Link' => $link,
|
|
|
|
'CurrentBool' => $current == $num
|
2020-04-20 19:58:09 +02:00
|
|
|
]));
|
2016-11-29 00:31:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function CurrentPage()
|
|
|
|
{
|
|
|
|
$pageLength = $this->getPageLength();
|
|
|
|
return $pageLength
|
|
|
|
? floor($this->getPageStart() / $pageLength) + 1
|
|
|
|
: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function TotalPages()
|
|
|
|
{
|
|
|
|
$pageLength = $this->getPageLength();
|
|
|
|
return $pageLength
|
|
|
|
? ceil($this->getTotalItems() / $pageLength)
|
|
|
|
: min($this->getTotalItems(), 1);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function MoreThanOnePage()
|
|
|
|
{
|
|
|
|
return $this->TotalPages() > 1;
|
|
|
|
}
|
|
|
|
|
2021-11-07 21:26:21 +01:00
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function FirstPage()
|
|
|
|
{
|
|
|
|
return $this->CurrentPage() == 1;
|
|
|
|
}
|
|
|
|
|
2016-11-29 00:31:16 +01:00
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function NotFirstPage()
|
|
|
|
{
|
2021-11-07 21:26:21 +01:00
|
|
|
return !$this->FirstPage();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function LastPage()
|
|
|
|
{
|
|
|
|
return $this->CurrentPage() == $this->TotalPages();
|
2016-11-29 00:31:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function NotLastPage()
|
|
|
|
{
|
2021-11-07 21:26:21 +01:00
|
|
|
return !$this->LastPage();
|
2016-11-29 00:31:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the number of the first item being displayed on the current
|
|
|
|
* page. This is useful for things like "displaying 10-20".
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function FirstItem()
|
|
|
|
{
|
|
|
|
return ($start = $this->getPageStart()) ? $start + 1 : 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the number of the last item being displayed on this page.
|
|
|
|
*
|
|
|
|
* @return int
|
|
|
|
*/
|
|
|
|
public function LastItem()
|
|
|
|
{
|
|
|
|
$pageLength = $this->getPageLength();
|
|
|
|
if (!$pageLength) {
|
|
|
|
return $this->getTotalItems();
|
|
|
|
} elseif ($start = $this->getPageStart()) {
|
|
|
|
return min($start + $pageLength, $this->getTotalItems());
|
|
|
|
} else {
|
|
|
|
return min($pageLength, $this->getTotalItems());
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a link to the first page.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function FirstLink()
|
|
|
|
{
|
2017-09-27 07:41:08 +02:00
|
|
|
return HTTP::setGetVar(
|
|
|
|
$this->getPaginationGetVar(),
|
|
|
|
0,
|
2017-10-31 10:17:55 +01:00
|
|
|
($this->request instanceof HTTPRequest) ? $this->request->getURL(true) : null
|
2017-09-27 07:41:08 +02:00
|
|
|
);
|
2016-11-29 00:31:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a link to the last page.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function LastLink()
|
|
|
|
{
|
2017-09-27 07:41:08 +02:00
|
|
|
return HTTP::setGetVar(
|
|
|
|
$this->getPaginationGetVar(),
|
|
|
|
($this->TotalPages() - 1) * $this->getPageLength(),
|
2017-10-31 10:17:55 +01:00
|
|
|
($this->request instanceof HTTPRequest) ? $this->request->getURL(true) : null
|
2017-09-27 07:41:08 +02:00
|
|
|
);
|
2016-11-29 00:31:16 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a link to the next page, if there is another page after the
|
|
|
|
* current one.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function NextLink()
|
|
|
|
{
|
|
|
|
if ($this->NotLastPage()) {
|
2017-09-27 07:41:08 +02:00
|
|
|
return HTTP::setGetVar(
|
|
|
|
$this->getPaginationGetVar(),
|
|
|
|
$this->getPageStart() + $this->getPageLength(),
|
2017-10-31 10:17:55 +01:00
|
|
|
($this->request instanceof HTTPRequest) ? $this->request->getURL(true) : null
|
2017-09-27 07:41:08 +02:00
|
|
|
);
|
2016-11-29 00:31:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns a link to the previous page, if the first page is not currently
|
|
|
|
* active.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public function PrevLink()
|
|
|
|
{
|
|
|
|
if ($this->NotFirstPage()) {
|
2017-09-27 07:41:08 +02:00
|
|
|
return HTTP::setGetVar(
|
|
|
|
$this->getPaginationGetVar(),
|
|
|
|
$this->getPageStart() - $this->getPageLength(),
|
2017-10-31 10:17:55 +01:00
|
|
|
($this->request instanceof HTTPRequest) ? $this->request->getURL(true) : null
|
2017-09-27 07:41:08 +02:00
|
|
|
);
|
2016-11-29 00:31:16 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the total number of items in the list
|
|
|
|
*/
|
|
|
|
public function TotalItems()
|
|
|
|
{
|
|
|
|
return $this->getTotalItems();
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Set the request object for this list
|
|
|
|
*
|
2020-12-21 22:23:23 +01:00
|
|
|
* @param HTTPRequest|ArrayAccess $request
|
2016-11-29 00:31:16 +01:00
|
|
|
*/
|
|
|
|
public function setRequest($request)
|
|
|
|
{
|
|
|
|
$this->request = $request;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the request object for this list
|
|
|
|
*/
|
|
|
|
public function getRequest()
|
|
|
|
{
|
|
|
|
return $this->request;
|
|
|
|
}
|
2014-02-02 21:13:48 +01:00
|
|
|
}
|