Copied!

Repository

Repository.php : 14

Repository interface.

Methods

publicbeginTransaction()

Repository.php : 189

Begin transaction.

public beginTransaction() : void

Begins an transaction, make sure you'll call commit or rollback when done, otherwise work will be lost.

publiccommit()

Repository.php : 198

Commit transaction.

public commit() : void

Commit transaction, or throw exceptions if no transactions has been started.

Tags
Throws
RuntimeException

If no transaction has been started

publicgetBookmarkService()

Repository.php : 167

Get BookmarkService.

public getBookmarkService() : BookmarkService

Return values

BookmarkService

publicgetContentLanguageService()

Repository.php : 55

Get Content Language Service.

public getContentLanguageService() : LanguageService

Get service object to perform operations on Content language objects

Return values

LanguageService

publicgetContentService()

Repository.php : 46

Get Content Service.

public getContentService() : ContentService

Get service object to perform operations on Content objects and it's aggregate members.

Return values

ContentService

publicgetContentTypeService()

Repository.php : 65

Get content type Service.

public getContentTypeService() : ContentTypeService

Get service object to perform operations on content type objects and it's aggregate members. ( Group, Field & FieldCategory )

Return values

ContentTypeService

publicgetFieldTypeService()

Repository.php : 146

Get FieldTypeService.

public getFieldTypeService() : FieldTypeService

Return values

FieldTypeService

publicgetLocationService()

Repository.php : 74

Get Content Location Service.

public getLocationService() : LocationService

Get service object to perform operations on Location objects and subtrees

Return values

LocationService

publicgetNotificationService()

Repository.php : 174

Get NotificationService.

public getNotificationService() : NotificationService

Return values

NotificationService

publicgetObjectStateService()

Repository.php : 132

Get ObjectStateService.

public getObjectStateService() : ObjectStateService

Return values

ObjectStateService

publicgetPermissionResolver()

Repository.php : 153

Get PermissionResolver.

public getPermissionResolver() : PermissionResolver

Return values

PermissionResolver

publicgetRoleService()

Repository.php : 139

Get RoleService.

public getRoleService() : RoleService

Return values

RoleService

publicgetSearchService()

Repository.php : 102

Get Search Service.

public getSearchService() : SearchService

Get search service that lets you find content objects

Return values

SearchService

publicgetSectionService()

Repository.php : 93

Get Content Section Service.

public getSectionService() : SectionService

Get Section service that lets you manipulate section objects

Return values

SectionService

publicgetTrashService()

Repository.php : 84

Get Content Trash service.

public getTrashService() : TrashService

Trash service allows to perform operations related to location trash (trash/untrash, load/list from trash...)

Return values

TrashService

publicgetURLAliasService()

Repository.php : 118

Get URLAliasService.

public getURLAliasService() : URLAliasService

Return values

URLAliasService

publicgetURLService()

Repository.php : 160

Get URLService.

public getURLService() : URLService

Return values

URLService

publicgetURLWildcardService()

Repository.php : 125

Get URLWildcardService.

public getURLWildcardService() : URLWildcardService

Return values

URLWildcardService

publicgetUserPreferenceService()

Repository.php : 181

Get UserPreferenceService.

public getUserPreferenceService() : UserPreferenceService

Return values

UserPreferenceService

publicgetUserService()

Repository.php : 111

Get User Service.

public getUserService() : UserService

Get service object to perform operations on Users and UserGroup

Return values

UserService

publicrollback()

Repository.php : 207

Rollback transaction.

public rollback() : void

Rollback transaction, or throw exceptions if no transactions has been started.

Tags
Throws
RuntimeException

If no transaction has been started

publicsudo()

Repository.php : 37

Allows API execution to be performed with full access, sand-boxed.

public sudo(callable $callback[, Repository|null $outerRepository = null ]) : T

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