Source of file PaginatedList.php
Size: 0,465 Bytes - Last Modified: 2021-12-24T06:51:11+00:00
/var/www/docs.ssmods.com/process/src/src/PaginatedList.php
12345678910111213141516171819202122232425 | <?php namespace Heyday\Elastica; /** * Class PaginatedList * @package Heyday\Elastica */ class PaginatedList extends \SilverStripe\ORM\PaginatedList { /** * Use the ResultList's total items method to determine this value * * @return int */ public function getTotalItems() { if ($this->list instanceof ResultList) { return $this->list->totalItems(); } return parent::getTotalItems(); } } |