프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$cache | Xpressengine\Support\CacheInterface | Cache instance | |
$prefix | string | Prefix for cache key | |
$repo | Xpressengine\Routing\RouteRepository | Repository instance |
메소드 | 설명 | |
---|---|---|
__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 |
메소드 | 설명 | |
---|---|---|
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 ( ) : |
||
리턴 |
protected cachingItem ( |
||
$route | route instance | |
리턴 | void |
public fetchByModule ( string $module ) : |
||
$module | string | module name |
리턴 |
public fetchBySiteKey ( string $siteKey ) : |
||
$siteKey | string | site key |
리턴 |
public findByInstanceId ( string $instanceId ) : |
||
$instanceId | string | instance identifier |
리턴 |
protected getCacheKey ( string $keyword ) : string | ||
$keyword | string | keyword |
리턴 | string |
public put ( |
||
$route | route instance | |
리턴 |
protected CacheInterface,Xpressengine\Support $cache | ||
리턴 | Xpressengine\Support\CacheInterface |