Class UrlRewriteStorage
Class UrlRewriteStorage
Methods summary
public
__construct( NonEmptyStringType $contentType, CI_DB_query_builder $db, LanguageProviderInterface $languageProvider )
UrlRewriteStorage constructor.
public
get( IdType $contentId )
: UrlRewriteCollection
Returns an UrlRewriteCollection with UrlRewrite instances for the provided content ID.
public
findByRewriteUrl( NonEmptyStringType $rewriteUrl )
: UrlRewriteCollection
Returns an UrlRewriteCollection with UrlRewrite instances for the provided rewrite url.
public
findByContentIdAndLanguageId( IdType $contentId, IdType $languageId )
: null|UrlRewrite
Returns a single UrlRewrite instance for the provided content ID and language ID or NULL if no entry was found.
public
set( IdType $contentId, UrlRewriteCollection $collection )
: UrlRewriteStorage
Saves the given UrlRewriteCollection into the database after old entries were deleted by the provided container ID.