File tree Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Expand file tree Collapse file tree 4 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,10 @@ matrix:
1818 - php : hhvm
1919 fast_finish : true
2020
21+ notifications :
22+ on_success : never
23+ on_failure : always
24+
2125git :
2226 depth : 1
2327
Original file line number Diff line number Diff line change @@ -5,12 +5,14 @@ Exclamation symbols (:exclamation:) note something of importance e.g. breaking c
55
66## [ Unreleased]
77### Added
8- - Initial version!
98### Changed
109### Deprecated
1110### Removed
1211### Fixed
1312### Security
1413
14+ ## [ 0.1.0] - 2017-09-08
15+ ### Added
16+ - Initial version!
1517
1618[ Unreleased ] : https://github.com/php-telegram-bot/inline-keyboard-pagination/compare/master...develop
Original file line number Diff line number Diff line change 1- # Telegram Bot Inline Keyboard Pagination
1+ # [ Telegram Bot Inline Keyboard Pagination] [ github-tgbot-ikp ]
22
33[ ![ Scrutinizer Code Quality] [ code-quality-badge ]] [ code-quality ]
44[ ![ Codecov] [ code-coverage-badge ]] [ code-coverage ]
55[ ![ Build Status] [ build-status-badge ]] [ build-status ]
66
7- [ ![ Latest Stable Version] [ latest-version-badge ]] [ github -tgbot-ikp]
7+ [ ![ Latest Stable Version] [ latest-version-badge ]] [ packagist -tgbot-ikp]
88[ ![ Total Downloads] [ total-downloads-badge ]] [ packagist-tgbot-ikp ]
99[ ![ License] [ license-badge ]] [ license ]
1010
Original file line number Diff line number Diff line change @@ -147,6 +147,8 @@ public function setSelectedPage(int $selected_page): InlineKeyboardPagination
147147 }
148148
149149 /**
150+ * Get the number of items shown per page.
151+ *
150152 * @return int
151153 */
152154 public function getItemsPerPage (): int
@@ -155,6 +157,8 @@ public function getItemsPerPage(): int
155157 }
156158
157159 /**
160+ * Set how many items should be shown per page.
161+ *
158162 * @param int $items_per_page
159163 *
160164 * @return InlineKeyboardPagination
@@ -171,6 +175,8 @@ public function setItemsPerPage($items_per_page): InlineKeyboardPagination
171175 }
172176
173177 /**
178+ * Set the items for the pagination.
179+ *
174180 * @param array $items
175181 *
176182 * @return InlineKeyboardPagination
@@ -362,6 +368,8 @@ protected function getPreparedItems(): array
362368 }
363369
364370 /**
371+ * Get the items offset for the selected page.
372+ *
365373 * @return int
366374 */
367375 protected function getOffset (): int
@@ -372,6 +380,8 @@ protected function getOffset(): int
372380 /**
373381 * Get the parameters from the callback query.
374382 *
383+ * @todo Possibly make it work for custon formats too?
384+ *
375385 * @param string $data
376386 *
377387 * @return array
You can’t perform that action at this time.
0 commit comments