TYPO3 CMS  TYPO3_6-2
PageBrowsingResultsViewHelper.php
Go to the documentation of this file.
1 <?php
3 
22 
31  public function render($numberOfResults, $resultsPerPage, $currentPage = 1) {
32  $firstResultOnPage = $currentPage * $resultsPerPage + 1;
33  $lastResultOnPage = $currentPage * $resultsPerPage + $resultsPerPage;
34  $label = \TYPO3\CMS\Extbase\Utility\LocalizationUtility::translate('displayResults', 'IndexedSearch');
35  $content = sprintf($label, $firstResultOnPage, min(array($numberOfResults, $lastResultOnPage)), $numberOfResults);
36  return $content;
37  }
38 
39 }
static translate($key, $extensionName, $arguments=NULL)