errorClassifier(); $resolvedCollationHelper = $collationHelper !== null ? $collationHelper : $dbCore->collationHelper(); $this->publishedContentRepository = $publishedContentRepository !== null ? $publishedContentRepository : new ABJ_404_Solution_PublishedContentRepository( $dbCore, $f, $logger, $optionsProvider, $resolvedErrorClassifier, $resolvedCollationHelper ); $this->publishedTermsProvider = $publishedTermsProvider !== null ? $publishedTermsProvider : new ABJ_404_Solution_PublishedTermsProvider( $dbCore, $logger, $resolvedErrorClassifier, null, $f, $optionsProvider ); $this->permalinkCacheRepository = $permalinkCacheRepository !== null ? $permalinkCacheRepository : new ABJ_404_Solution_PermalinkCacheRepository($dbCore); $this->spellingCacheRepository = $spellingCacheRepository !== null ? $spellingCacheRepository : new ABJ_404_Solution_SpellingCacheRepository($dbCore, $f); $this->oldSlugRepository = $oldSlugRepository !== null ? $oldSlugRepository : new ABJ_404_Solution_OldSlugRepository($dbCore, $f); } /** @inheritDoc */ public function getPublishedPagesAndPostsIDs(array $criteria = array()) { return $this->publishedContentRepository->getPublishedPagesAndPostsIDs($criteria); } /** @inheritDoc */ public function getPublishedTags($slug = null, $limit = null) { return $this->publishedTermsProvider->getPublishedTags($slug, $limit); } /** @inheritDoc */ public function readTermChildIds(array $request): array { return $this->publishedTermsProvider->readTermChildIds($request); } /** @inheritDoc */ public function addURLToTermsRows($rows) { return $this->publishedTermsProvider->addURLToTermsRows($rows); } /** @inheritDoc */ public function getPublishedCategories($term_id = null, $slug = null, $limit = null) { return $this->publishedTermsProvider->getPublishedCategories($term_id, $slug, $limit); } /** @inheritDoc */ public function truncatePermalinkCacheTable(): void { $this->permalinkCacheRepository->truncatePermalinkCacheTable(); } /** @inheritDoc */ public function removeFromPermalinkCache(int $post_id): void { $this->permalinkCacheRepository->removeFromPermalinkCache($post_id); } /** @inheritDoc */ public function getPermalinkFromCache($id) { return $this->permalinkCacheRepository->getPermalinkFromCache($id); } /** @inheritDoc */ public function getPermalinksByIds(array $ids) { return $this->permalinkCacheRepository->getPermalinksByIds($ids); } /** @inheritDoc */ public function getPermalinkEtcFromCache($id) { return $this->permalinkCacheRepository->getPermalinkEtcFromCache($id); } /** @inheritDoc */ public function updatePermalinkCache() { return $this->permalinkCacheRepository->updatePermalinkCache(); } /** @inheritDoc */ public function updatePermalinkCacheParentPages() { return $this->permalinkCacheRepository->updatePermalinkCacheParentPages(); } /** @inheritDoc */ public function getPermalinkCacheCount(): int { return $this->permalinkCacheRepository->getPermalinkCacheCount(); } /** @inheritDoc */ public function storeSpellingPermalinksToCache(string $requestedURLRaw, $returnValue): void { $this->spellingCacheRepository->storeSpellingPermalinksToCache($requestedURLRaw, $returnValue); } /** @inheritDoc */ public function getSpellingPermalinksFromCache(string $requestedURLRaw) { return $this->spellingCacheRepository->getSpellingPermalinksFromCache($requestedURLRaw); } /** @inheritDoc */ public function deleteSpellingCache(): void { $this->spellingCacheRepository->deleteSpellingCache(); } /** @inheritDoc */ public function getOldSlug($post_id) { return $this->oldSlugRepository->getOldSlug($post_id); } }