PHP Interface Sulu\Component\CustomUrl\Manager\CustomUrlManagerInterface

Mostra file Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
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.

Method Details

create() public method

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
return Sulu\Component\CustomUrl\Document\CustomUrlDocument

delete() public method

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

deleteRoute() public method

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

find() public method

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

findByPage() public method

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
return Sulu\Component\CustomUrl\Document\CustomUrlDocument[]

findByUrl() public method

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
return Sulu\Component\CustomUrl\Document\CustomUrlDocument

findList() public method

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

findRouteByUrl() public method

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

findUrls() public method

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

invalidate() public method

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

invalidateRoute() public method

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

save() public method

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
return Sulu\Component\CustomUrl\Document\CustomUrlDocument