Skip to content
Snippets Groups Projects
Commit 3d878343 authored by Kevin Ditscheid's avatar Kevin Ditscheid
Browse files

[TASK] Remove unused function getCountOfLastUpdatedOrHighlightedNewsByCategories

parent 4d96a1c2
No related branches found
No related tags found
1 merge request!34[TASK] Remove the recalling of the indexAction, because it is not needed...
......@@ -239,30 +239,6 @@ class NewsRepository extends AbstractRepository {
)->execute();
}
/**
* Returns the count of all possible last news.
*
* @param bool $onlyHighlighted
* @param array $categoryIds NULL, if the category filter isn't applied, otherwise an array with the categories uid.
* @param bool $hideNeverHighlightedNews
* @param string $sortBy date or positionInTree
* @param array $tagIds NULL, if the tag filter isn't applied, otherwise an array with the tag uids.
* @param int $startTime unix timestamp of the lower limit of the news results date
* @param int $endTime unix timestamp of the upper limit of the news results date
* @return int
* @throws \TYPO3\CMS\Extbase\Persistence\Exception\InvalidQueryException
*/
public function getCountOfLastUpdatedOrHighlightedNewsByCategories(
$onlyHighlighted = FALSE, array $categoryIds = NULL, $hideNeverHighlightedNews = FALSE, $sortBy = 'date',
array $tagIds = NULL, $startTime = 0, $endTime = 0
): int {
return $this->getCount(
$this->getQueryForLastUpdatedOrHighlightedNewsByCategories(
0, $onlyHighlighted, $categoryIds, 0, $hideNeverHighlightedNews, $sortBy, $tagIds, $startTime, $endTime
)
);
}
/**
* Returns the query object of the LastUpdatedOrHighlightedNewsByCategories.
*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment