‪TYPO3CMS  10.4
BackendUserGroupRepository.php
Go to the documentation of this file.
1 <?php
2 
3 /*
4  * This file is part of the TYPO3 CMS project.
5  *
6  * It is free software; you can redistribute it and/or modify it under
7  * the terms of the GNU General Public License, either version 2
8  * of the License, or any later version.
9  *
10  * For the full copyright and license information, please read the
11  * LICENSE.txt file that was distributed with this source code.
12  *
13  * The TYPO3 project - inspiring people to share!
14  */
15 
17 
20 
26 {
30  protected ‪$defaultOrderings = [
32  ];
33 
39  public function ‪createQuery()
40  {
41  $query = parent::createQuery();
42  $query->getQuerySettings()->setIgnoreEnableFields(true);
43  return $query;
44  }
45 
52  public function ‪findByUidList(array $uidList): array
53  {
54  $items = [];
55 
56  foreach ($uidList as $id) {
57  $query = $this->‪createQuery();
58  $query->matching($query->equals('uid', $id));
59  $result = $query->execute(true);
60  if ($result) {
61  $items[] = $result[0];
62  }
63  }
64  return $items;
65  }
66 }
‪TYPO3\CMS\Extbase\Persistence\QueryInterface
Definition: QueryInterface.php:29
‪TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository\$defaultOrderings
‪array $defaultOrderings
Definition: BackendUserGroupRepository.php:29
‪TYPO3\CMS\Extbase\Persistence\QueryInterface\ORDER_ASCENDING
‪const ORDER_ASCENDING
Definition: QueryInterface.php:98
‪TYPO3\CMS\Beuser\Domain\Repository
Definition: BackendUserGroupRepository.php:16
‪TYPO3\CMS\Extbase\Persistence\Repository
Definition: Repository.php:29
‪TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository
Definition: BackendUserGroupRepository.php:26
‪TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository\createQuery
‪TYPO3 CMS Extbase Persistence QueryInterface createQuery()
Definition: BackendUserGroupRepository.php:38
‪TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository\findByUidList
‪array findByUidList(array $uidList)
Definition: BackendUserGroupRepository.php:51