-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from sabbelasichon/feature/make-package-version…
…-independent Make package TYPO3 version independent
- Loading branch information
Showing
5 changed files
with
61 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace GeorgRinger\NumberedPagination\Contract; | ||
|
||
interface PaginationInterface | ||
{ | ||
public function __construct(PaginatorInterface $paginator); | ||
|
||
public function getPreviousPageNumber(): ?int; | ||
|
||
public function getNextPageNumber(): ?int; | ||
|
||
public function getFirstPageNumber(): int; | ||
|
||
public function getLastPageNumber(): int; | ||
|
||
public function getStartRecordNumber(): int; | ||
|
||
public function getEndRecordNumber(): int; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace GeorgRinger\NumberedPagination\Contract; | ||
|
||
interface PaginatorInterface | ||
{ | ||
public function withItemsPerPage(int $itemsPerPage): PaginatorInterface; | ||
|
||
public function withCurrentPageNumber(int $currentPageNumber): PaginatorInterface; | ||
|
||
public function getPaginatedItems(): iterable; | ||
|
||
public function getNumberOfPages(): int; | ||
|
||
public function getCurrentPageNumber(): int; | ||
|
||
public function getKeyOfFirstPaginatedItem(): int; | ||
|
||
public function getKeyOfLastPaginatedItem(): int; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,10 +8,10 @@ | |
'author_email' => '[email protected]', | ||
'state' => 'beta', | ||
'clearCacheOnLoad' => true, | ||
'version' => '1.0.2', | ||
'version' => '1.0.3', | ||
'constraints' => [ | ||
'depends' => [ | ||
'typo3' => '10.4.12-11.5.99', | ||
'typo3' => '9.5.0-11.5.99', | ||
], | ||
'conflicts' => [], | ||
'suggests' => [], | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
defined('TYPO3_MODE') or die(); | ||
|
||
if (!class_exists('TYPO3\CMS\Core\Pagination\PaginationInterface')) { | ||
class_alias( | ||
\GeorgRinger\NumberedPagination\Contract\PaginationInterface::class, | ||
'TYPO3\CMS\Core\Pagination\PaginationInterface' | ||
); | ||
} | ||
|
||
if (!class_exists('TYPO3\CMS\Core\Pagination\PaginatorInterface')) { | ||
class_alias( | ||
\GeorgRinger\NumberedPagination\Contract\PaginatorInterface::class, | ||
'TYPO3\CMS\Core\Pagination\PaginatorInterface' | ||
); | ||
} |