Skip to content

Commit

Permalink
[TASK] Implemented getAllPageNumbers which returns all page numbers a…
Browse files Browse the repository at this point in the history
…s array
  • Loading branch information
hojalatheef committed Jan 9, 2025
1 parent 865aa48 commit e0f9755
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/Pagination/CompanyPagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

class CompanyPagination implements PaginationInterface
{
protected string $pluginNamespace = 'tx_yellowpages2_directory';
protected const PLUGIN_NAMESPACE = 'tx_yellowpages2_directory';

protected PaginatorInterface $paginator;

Expand All @@ -26,7 +26,7 @@ class CompanyPagination implements PaginationInterface
public function __construct(PaginatorInterface $paginator)
{
$this->paginator = $paginator;
foreach (RequestUtility::getMergedRequestArguments($this->pluginNamespace) as $argumentName => $argument) {
foreach (RequestUtility::getMergedRequestArguments(self::PLUGIN_NAMESPACE) as $argumentName => $argument) {
if ($argumentName[0] === '_' && $argumentName[1] === '_') {
continue;
}
Expand Down Expand Up @@ -123,6 +123,6 @@ public function getEndRecordNumber(): int

public function getAllPageNumbers(): array
{
// TODO: Implement getAllPageNumbers() method.
return range($this->getFirstPageNumber(), $this->getLastPageNumber());
}
}

0 comments on commit e0f9755

Please sign in to comment.