Property | Type | Description | |
---|---|---|---|
$cache | Xpressengine\Support\CacheInterface | Cache instance | |
$prefix | string | Prefix for cache key | |
$repo | Xpressengine\Routing\RouteRepository | Repository instance |
Method | Description | |
---|---|---|
__construct ( Xpressengine\Routing\RouteRepository $repo, Xpressengine\Support\CacheInterface $cache ) | CacheDecorator constructor. | |
all ( ) : |
Returns all route items | |
create ( array $input ) : |
Save a new route item and return the instance | |
delete ( |
Delete the route item from the repository | |
fetchByModule ( string $module ) : |
Retrieve routes by module name | |
fetchBySiteKey ( string $siteKey ) : |
Retrieve routes by site key | |
findByInstanceId ( string $instanceId ) : |
Retrieve a route by instance identifier | |
findByUrlAndSiteKey ( string $url, string $siteKey ) : |
Retrieve a route by url segment and site key | |
put ( |
Save the route item |
Method | Description | |
---|---|---|
cachingItem ( |
Do caching a route item | |
getCacheKey ( string $keyword ) : string | String for cache key |
public __construct ( Xpressengine\Routing\RouteRepository $repo, Xpressengine\Support\CacheInterface $cache ) | ||
$repo | Xpressengine\Routing\RouteRepository | Repository instance |
$cache | Xpressengine\Support\CacheInterface | Cache instance |
public all ( ) : |
||
return |
protected cachingItem ( |
||
$route | route instance | |
return | void |
public fetchByModule ( string $module ) : |
||
$module | string | module name |
return |
public fetchBySiteKey ( string $siteKey ) : |
||
$siteKey | string | site key |
return |
public findByInstanceId ( string $instanceId ) : |
||
$instanceId | string | instance identifier |
return |
protected getCacheKey ( string $keyword ) : string | ||
$keyword | string | keyword |
return | string |
public put ( |
||
$route | route instance | |
return |
protected CacheInterface,Xpressengine\Support $cache | ||
return | Xpressengine\Support\CacheInterface |