Repository
Repository interface.
Methods¶
beginTransaction()
¶
Begin transaction.
|
|
Begins an transaction, make sure you'll call commit or rollback when done, otherwise work will be lost.
commit()
¶
Commit transaction.
|
|
Commit transaction, or throw exceptions if no transactions has been started.
Tags
getBookmarkService()
¶
Get BookmarkService.
|
|
Return values
getContentLanguageService()
¶
Get Content Language Service.
|
|
Get service object to perform operations on Content language objects
Return values
getContentService()
¶
Get Content Service.
|
|
Get service object to perform operations on Content objects and it's aggregate members.
Return values
getContentTypeService()
¶
Get content type Service.
|
|
Get service object to perform operations on content type objects and it's aggregate members. ( Group, Field & FieldCategory )
Return values
getFieldTypeService()
¶
Get FieldTypeService.
|
|
Return values
getLocationService()
¶
Get Content Location Service.
|
|
Get service object to perform operations on Location objects and subtrees
Return values
getNotificationService()
¶
Get NotificationService.
|
|
Return values
getObjectStateService()
¶
Get ObjectStateService.
|
|
Return values
getPermissionResolver()
¶
Get PermissionResolver.
|
|
Return values
getRoleService()
¶
Get RoleService.
|
|
Return values
getSearchService()
¶
Get Search Service.
|
|
Get search service that lets you find content objects
Return values
getSectionService()
¶
Get Content Section Service.
|
|
Get Section service that lets you manipulate section objects
Return values
getTrashService()
¶
Get Content Trash service.
|
|
Trash service allows to perform operations related to location trash (trash/untrash, load/list from trash...)
Return values
getURLAliasService()
¶
Get URLAliasService.
|
|
Return values
getURLService()
¶
Get URLService.
|
|
Return values
getURLWildcardService()
¶
Get URLWildcardService.
|
|
Return values
getUserPreferenceService()
¶
Get UserPreferenceService.
|
|
Return values
getUserService()
¶
Get User Service.
|
|
Get service object to perform operations on Users and UserGroup
Return values
rollback()
¶
Rollback transaction.
|
|
Rollback transaction, or throw exceptions if no transactions has been started.
Tags
sudo()
¶
Allows API execution to be performed with full access, sand-boxed.
|
|
The closure sandbox will do a "catch-all" on all exceptions and rethrow after re-setting the sudo flag.
Example use: $location = $repository->sudo(function (Repository $repo) use ($locationId) { return $repo->getLocationService()->loadLocation($locationId) } );
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$callback | callable | - | - |
$outerRepository | Repository|null | null |
Optional, mostly for internal use but allows to specify Repository to pass to closure. |
Return values
T