BackendUserGroupRepository

class \TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository

Extends
Repository

Repository for \TYPO3\CMS\Beuser\Domain\Model\BackendUserGroup

Tags

extends

Table of Contents

Constants

TABLE_NAME  : mixed = 'be_groups'

Properties

$autoTagging  : bool
$defaultOrderings  : array<non-empty-string, QueryInterface::ORDER_*>
$defaultQuerySettings  : QuerySettingsInterface
Override query settings created by extbase natively.
$eventDispatcher  : EventDispatcherInterface
$objectType  : class-string
$persistenceManager  : PersistenceManagerInterface

Methods

__construct()  : mixed
Constructs a new Repository
add()  : mixed
Adds an object to this repository
count()  : int
countAll()  : int
Returns the total number objects of this repository.
createQuery()  : QueryInterface<string|int, T>
Overwrite createQuery to don't respect enable fields
findAll()  : QueryResultInterface<int, T>
Returns all objects of this repository.
findBy()  : QueryResultInterface<int, T>
findByFilter()  : QueryResult
Preforms a query on be_groups, matching the field title with like
findByIdentifier()  : T|null
Finds an object matching the given identifier.
findByUid()  : T|null
Finds an object matching the given identifier.
findByUidList()  : array
Finds Backend Usergroups on a given list of uids
findOneBy()  : T|null
getQueryBuilder()  : QueryBuilder
Get QueryBuilder without restrictions for table be_groups
injectEventDispatcher()  : void
injectFeatures()  : void
injectPersistenceManager()  : mixed
remove()  : mixed
Removes an object from this repository.
removeAll()  : mixed
Removes all objects of this repository as if remove() was called for all of them.
setDefaultOrderings()  : mixed
Sets the property names to order the result by per default.
setDefaultQuerySettings()  : mixed
Sets the default query settings to be used in this repository.
update()  : mixed
Replaces an existing object with the same identifier by the given object
addStorageCacheTags()  : void
Add the combination of tablename and storage pid as cache tag.
addTableToCacheTags()  : void
Add the tablename to the cache tags, depending on the storage page settings.
getRepositoryClassName()  : mixed
Returns the class name of this class.

Constants

TABLE_NAME

public mixed TABLE_NAME = 'be_groups'

Properties

$defaultOrderings

protected array<non-empty-string, QueryInterface::ORDER_*> $defaultOrderings = ['title' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING]

$defaultQuerySettings

Override query settings created by extbase natively.

protected QuerySettingsInterface $defaultQuerySettings

Be careful if using this, see the comment on setDefaultQuerySettings() for more insights.

$eventDispatcher

protected EventDispatcherInterface $eventDispatcher

$objectType

protected class-string $objectType

Methods

__construct()

Constructs a new Repository

public __construct() : mixed

count()

public count(array<non-empty-string, mixed> $criteria) : int

Parameters

$criteria : array<non-empty-string, mixed>

Return values

int

countAll()

Returns the total number objects of this repository.

public countAll() : int

Return values

int —

The object count

findBy()

public findBy(array<non-empty-string, mixed> $criteria[, array<non-empty-string, QueryInterface::ORDER_*>|null $orderBy = null ][, int|null $limit = null ][, int|null $offset = null ]) : QueryResultInterface<int, T>

Parameters

$criteria : array<non-empty-string, mixed>
$orderBy : array<non-empty-string, QueryInterface::ORDER_*>|null = null
$limit : int|null = null
$offset : int|null = null

Return values

QueryResultInterface<int, T>

findByIdentifier()

Finds an object matching the given identifier.

public findByIdentifier(mixed $identifier) : T|null

Parameters

$identifier : mixed

The identifier of the object to find

Return values

T|null —

The matching object if found, otherwise NULL

findByUid()

Finds an object matching the given identifier.

public findByUid(int $uid) : T|null

Parameters

$uid : int

The identifier of the object to find

Return values

T|null —

The matching object if found, otherwise NULL

findByUidList()

Finds Backend Usergroups on a given list of uids

public findByUidList(array $uidList) : array

Parameters

$uidList : array

Return values

array

findOneBy()

public findOneBy(array<non-empty-string, mixed> $criteria[, array<non-empty-string, QueryInterface::ORDER_*>|null $orderBy = null ]) : T|null

Parameters

$criteria : array<non-empty-string, mixed>
$orderBy : array<non-empty-string, QueryInterface::ORDER_*>|null = null

Return values

T|null

getQueryBuilder()

Get QueryBuilder without restrictions for table be_groups

public getQueryBuilder([bool $removeRestrictions = true ]) : QueryBuilder

Parameters

$removeRestrictions : bool = true

Return values

QueryBuilder

injectEventDispatcher()

public injectEventDispatcher(EventDispatcherInterface $eventDispatcher) : void

Parameters

$eventDispatcher : EventDispatcherInterface

removeAll()

Removes all objects of this repository as if remove() was called for all of them.

public removeAll() : mixed

setDefaultOrderings()

Sets the property names to order the result by per default.

public setDefaultOrderings(array<non-empty-string, QueryInterface::ORDER_*> $defaultOrderings) : mixed

Expected like this: array( 'foo' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_ASCENDING, 'bar' => \TYPO3\CMS\Extbase\Persistence\QueryInterface::ORDER_DESCENDING )

Parameters

$defaultOrderings : array<non-empty-string, QueryInterface::ORDER_*>

The property names to order by

setDefaultQuerySettings()

Sets the default query settings to be used in this repository.

public setDefaultQuerySettings(QuerySettingsInterface $defaultQuerySettings) : mixed

A typical use case is an initializeObject() method that creates a QuerySettingsInterface object, configures it and sets it to be used for all queries created by the repository.

Warning: Using this setter fully overrides native query settings created by QueryFactory->create(). This especially means that storagePid settings from configuration are not applied anymore, if not explicitly set. Make sure to apply these to your own QuerySettingsInterface object if needed, when using this method.

Parameters

$defaultQuerySettings : QuerySettingsInterface

The query settings to be used by default

getRepositoryClassName()

Returns the class name of this class.

protected getRepositoryClassName() : mixed
On this page