Subversion-Projekte lars-tiefland.laravel_shop

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
148 lars 1
<?php
2
 
3
namespace Illuminate\Contracts\Pagination;
4
 
5
interface CursorPaginator
6
{
7
    /**
8
     * Get the URL for a given cursor.
9
     *
10
     * @param  \Illuminate\Pagination\Cursor|null  $cursor
11
     * @return string
12
     */
13
    public function url($cursor);
14
 
15
    /**
16
     * Add a set of query string values to the paginator.
17
     *
18
     * @param  array|string|null  $key
19
     * @param  string|null  $value
20
     * @return $this
21
     */
22
    public function appends($key, $value = null);
23
 
24
    /**
25
     * Get / set the URL fragment to be appended to URLs.
26
     *
27
     * @param  string|null  $fragment
28
     * @return $this|string|null
29
     */
30
    public function fragment($fragment = null);
31
 
32
    /**
33
     * Get the URL for the previous page, or null.
34
     *
35
     * @return string|null
36
     */
37
    public function previousPageUrl();
38
 
39
    /**
40
     * The URL for the next page, or null.
41
     *
42
     * @return string|null
43
     */
44
    public function nextPageUrl();
45
 
46
    /**
47
     * Get all of the items being paginated.
48
     *
49
     * @return array
50
     */
51
    public function items();
52
 
53
    /**
54
     * Get the "cursor" of the previous set of items.
55
     *
56
     * @return \Illuminate\Pagination\Cursor|null
57
     */
58
    public function previousCursor();
59
 
60
    /**
61
     * Get the "cursor" of the next set of items.
62
     *
63
     * @return \Illuminate\Pagination\Cursor|null
64
     */
65
    public function nextCursor();
66
 
67
    /**
68
     * Determine how many items are being shown per page.
69
     *
70
     * @return int
71
     */
72
    public function perPage();
73
 
74
    /**
75
     * Get the current cursor being paginated.
76
     *
77
     * @return \Illuminate\Pagination\Cursor|null
78
     */
79
    public function cursor();
80
 
81
    /**
82
     * Determine if there are enough items to split into multiple pages.
83
     *
84
     * @return bool
85
     */
86
    public function hasPages();
87
 
88
    /**
89
     * Get the base path for paginator generated URLs.
90
     *
91
     * @return string|null
92
     */
93
    public function path();
94
 
95
    /**
96
     * Determine if the list of items is empty or not.
97
     *
98
     * @return bool
99
     */
100
    public function isEmpty();
101
 
102
    /**
103
     * Determine if the list of items is not empty.
104
     *
105
     * @return bool
106
     */
107
    public function isNotEmpty();
108
 
109
    /**
110
     * Render the paginator using a given view.
111
     *
112
     * @param  string|null  $view
113
     * @param  array  $data
114
     * @return string
115
     */
116
    public function render($view = null, $data = []);
117
}