UserNavigationHistoryService
in package
Class UserNavigationHistoryService
Table of Contents
- $factory : HistoryFactory
- $history : UserNavigationHistory
- $repository : HistoryRepository
- __construct() : mixed
- UserNavigationHistoryService constructor.
- addHistoryEntry() : void
- getLastBrowsedCategoryId() : int|null
- history() : UserNavigationHistory
- setHistory() : void
- categoryIdFromGetParameter() : int
- UriIsAnAssetOrAjaxRequest() : bool
Properties
$factory
protected
HistoryFactory
$factory
$history
protected
UserNavigationHistory
$history
$repository
protected
HistoryRepository
$repository
Methods
__construct()
UserNavigationHistoryService constructor.
public
__construct(HistoryFactory $factory, HistoryRepository $repository) : mixed
Parameters
- $factory : HistoryFactory
- $repository : HistoryRepository
Return values
mixed —addHistoryEntry()
public
addHistoryEntry(string $uri, array<string|int, mixed> $getParameters) : void
Parameters
- $uri : string
- $getParameters : array<string|int, mixed>
Return values
void —getLastBrowsedCategoryId()
public
getLastBrowsedCategoryId(int $languageId) : int|null
Parameters
- $languageId : int
Return values
int|null —history()
public
history() : UserNavigationHistory
Return values
UserNavigationHistory —setHistory()
public
setHistory(UserNavigationHistory|null $history) : void
Parameters
- $history : UserNavigationHistory|null
Return values
void —categoryIdFromGetParameter()
protected
categoryIdFromGetParameter(string $get) : int
Parameters
- $get : string
Return values
int —UriIsAnAssetOrAjaxRequest()
protected
UriIsAnAssetOrAjaxRequest(string $uri) : bool
Parameters
- $uri : string
Return values
bool —request is a loaded asset or an ajax request