芝麻web文件管理V1.00
编辑当前文件:/home/sditechnicalteam/public_html/vendor/webklex/php-imap/src/Support/PaginatedCollection.php
total ? $this->total : $this->count(); $results = !$prepaginated && $total ? $this->forPage($page, $per_page) : $this->all(); return $this->paginator($results, $total, $per_page, $page, [ 'path' => Paginator::resolveCurrentPath(), 'pageName' => $page_name, ]); } /** * Create a new length-aware paginator instance. * @param array $items * @param int $total * @param int $per_page * @param int|null $current_page * @param array $options * * @return LengthAwarePaginator */ protected function paginator($items, $total, $per_page, $current_page, array $options) { return new LengthAwarePaginator($items, $total, $per_page, $current_page, $options); } /** * Get and set the total amount * @param null $total * * @return int|null */ public function total($total = null) { if($total === null) { return $this->total; } return $this->total = $total; } }