‪TYPO3CMS  11.5
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 {
27  protected ‪$defaultOrderings = [
29  ];
30 
36  public function ‪createQuery()
37  {
38  $query = parent::createQuery();
39  $query->getQuerySettings()->setIgnoreEnableFields(true);
40  return $query;
41  }
42 
49  public function ‪findByUidList(array $uidList): array
50  {
51  $query = $this->‪createQuery();
52  // being explicit here, albeit `Typo3DbQueryParser::parseDynamicOperand` uses prepared parameters
53  $uidList = array_map('intval', $uidList);
54  $query->matching($query->in('uid', $uidList));
55  return $query->execute(true);
56  }
57 }
‪TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository\$defaultOrderings
‪$defaultOrderings
Definition: BackendUserGroupRepository.php:27
‪TYPO3\CMS\Extbase\Persistence\QueryInterface
Definition: QueryInterface.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:36
‪TYPO3\CMS\Beuser\Domain\Repository\BackendUserGroupRepository\findByUidList
‪array findByUidList(array $uidList)
Definition: BackendUserGroupRepository.php:49