platform/api/laravel/Contracts/Pagination/Paginator.yaml

158 lines
2.9 KiB
YAML
Raw Normal View History

2024-09-02 17:44:11 +00:00
name: Paginator
class_comment: null
dependencies: []
properties: []
methods:
- name: url
visibility: public
parameters:
- name: page
comment: '# * Get the URL for a given page.
# *
# * @param int $page
# * @return string'
- name: appends
visibility: public
parameters:
- name: key
- name: value
default: 'null'
comment: '# * Add a set of query string values to the paginator.
# *
# * @param array|string|null $key
# * @param string|null $value
# * @return $this'
- name: fragment
visibility: public
parameters:
- name: fragment
default: 'null'
comment: '# * Get / set the URL fragment to be appended to URLs.
# *
# * @param string|null $fragment
# * @return $this|string|null'
- name: nextPageUrl
visibility: public
parameters: []
comment: '# * The URL for the next page, or null.
# *
# * @return string|null'
- name: previousPageUrl
visibility: public
parameters: []
comment: '# * Get the URL for the previous page, or null.
# *
# * @return string|null'
- name: items
visibility: public
parameters: []
comment: '# * Get all of the items being paginated.
# *
# * @return array'
- name: firstItem
visibility: public
parameters: []
comment: '# * Get the "index" of the first item being paginated.
# *
# * @return int|null'
- name: lastItem
visibility: public
parameters: []
comment: '# * Get the "index" of the last item being paginated.
# *
# * @return int|null'
- name: perPage
visibility: public
parameters: []
comment: '# * Determine how many items are being shown per page.
# *
# * @return int'
- name: currentPage
visibility: public
parameters: []
comment: '# * Determine the current page being paginated.
# *
# * @return int'
- name: hasPages
visibility: public
parameters: []
comment: '# * Determine if there are enough items to split into multiple pages.
# *
# * @return bool'
- name: hasMorePages
visibility: public
parameters: []
comment: '# * Determine if there are more items in the data store.
# *
# * @return bool'
- name: path
visibility: public
parameters: []
comment: '# * Get the base path for paginator generated URLs.
# *
# * @return string|null'
- name: isEmpty
visibility: public
parameters: []
comment: '# * Determine if the list of items is empty or not.
# *
# * @return bool'
- name: isNotEmpty
visibility: public
parameters: []
comment: '# * Determine if the list of items is not empty.
# *
# * @return bool'
- name: render
visibility: public
parameters:
- name: view
default: 'null'
- name: data
default: '[]'
comment: '# * Render the paginator using a given view.
# *
# * @param string|null $view
# * @param array $data
# * @return string'
traits: []
interfaces: []