PHP 인터페이스 Sulu\Component\CustomUrl\Manager\CustomUrlManagerInterface

파일 보기 프로젝트 열기: sulu/sulu 0 사용 예제들

공개 메소드들

메소드 설명
create ( string $webspaceKey, array $data, string | null $locale = null ) : CustomUrlDocument Create a new custom-url with given data.
delete ( string $uuid ) : CustomUrlDocument Delete custom-url identified by uuid.
deleteRoute ( string $webspaceKey, string $uuid ) : CustomUrlDocument Delete route of a custom-url.
find ( string $uuid, string | null $locale = null ) : CustomUrlDocument Returns a single custom-url object identified by uuid.
findByPage ( Sulu\Component\DocumentManager\Behavior\Mapping\UuidBehavior $page ) : CustomUrlDocument[] Returns a list of custom-url documents which targeting the given page.
findByUrl ( string $url, string $webspaceKey, string $locale = null ) : CustomUrlDocument Returns a single custom-url object identified by url.
findList ( string $webspaceKey, $locale ) : array Returns a list of custom-url data (in a assoc-array).
findRouteByUrl ( string $url, string $webspaceKey, string $locale = null ) : RouteDocument Returns route for a custom-url object.
findUrls ( string $webspaceKey ) : string[] Returns a list of custom-urls.
invalidate ( CustomUrlDocument $document ) Invalidate http-cache for given document.
invalidateRoute ( string $webspaceKey, RouteDocument $routeDocument ) Invalidate http-cache for given route-document.
save ( string $uuid, array $data, string | null $locale = null ) : CustomUrlDocument Update a single custom-url object identified by uuid with given data.

메소드 상세

create() 공개 메소드

Create a new custom-url with given data.
public create ( string $webspaceKey, array $data, string | null $locale = null ) : CustomUrlDocument
$webspaceKey string
$data array
$locale string | null
리턴 Sulu\Component\CustomUrl\Document\CustomUrlDocument

delete() 공개 메소드

Delete custom-url identified by uuid.
public delete ( string $uuid ) : CustomUrlDocument
$uuid string
리턴 Sulu\Component\CustomUrl\Document\CustomUrlDocument

deleteRoute() 공개 메소드

Delete route of a custom-url.
public deleteRoute ( string $webspaceKey, string $uuid ) : CustomUrlDocument
$webspaceKey string
$uuid string
리턴 Sulu\Component\CustomUrl\Document\CustomUrlDocument

find() 공개 메소드

Returns a single custom-url object identified by uuid.
public find ( string $uuid, string | null $locale = null ) : CustomUrlDocument
$uuid string
$locale string | null
리턴 Sulu\Component\CustomUrl\Document\CustomUrlDocument

findByPage() 공개 메소드

Returns a list of custom-url documents which targeting the given page.
public findByPage ( Sulu\Component\DocumentManager\Behavior\Mapping\UuidBehavior $page ) : CustomUrlDocument[]
$page Sulu\Component\DocumentManager\Behavior\Mapping\UuidBehavior
리턴 Sulu\Component\CustomUrl\Document\CustomUrlDocument[]

findByUrl() 공개 메소드

Returns a single custom-url object identified by url.
public findByUrl ( string $url, string $webspaceKey, string $locale = null ) : CustomUrlDocument
$url string
$webspaceKey string
$locale string
리턴 Sulu\Component\CustomUrl\Document\CustomUrlDocument

findList() 공개 메소드

Returns a list of custom-url data (in a assoc-array).
public findList ( string $webspaceKey, $locale ) : array
$webspaceKey string
리턴 array

findRouteByUrl() 공개 메소드

Returns route for a custom-url object.
public findRouteByUrl ( string $url, string $webspaceKey, string $locale = null ) : RouteDocument
$url string
$webspaceKey string
$locale string
리턴 Sulu\Component\CustomUrl\Document\RouteDocument

findUrls() 공개 메소드

Returns a list of custom-urls.
public findUrls ( string $webspaceKey ) : string[]
$webspaceKey string
리턴 string[]

invalidate() 공개 메소드

Invalidate http-cache for given document.
public invalidate ( CustomUrlDocument $document )
$document Sulu\Component\CustomUrl\Document\CustomUrlDocument

invalidateRoute() 공개 메소드

Invalidate http-cache for given route-document.
public invalidateRoute ( string $webspaceKey, RouteDocument $routeDocument )
$webspaceKey string
$routeDocument Sulu\Component\CustomUrl\Document\RouteDocument

save() 공개 메소드

Update a single custom-url object identified by uuid with given data.
public save ( string $uuid, array $data, string | null $locale = null ) : CustomUrlDocument
$uuid string
$data array
$locale string | null
리턴 Sulu\Component\CustomUrl\Document\CustomUrlDocument