‪TYPO3CMS  10.4
ProcessedValueForGroupWithOneAllowedTableFixture.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 
19 
24 {
28  public static function ‪getRecordWSOL($table, $uid, ‪$fields = '*', $where = '', $useDeleteClause = true, $unsetMovePointers = false)
29  {
30  if ($uid == 1) {
31  return [
32  'uid' => 1,
33  'title' => 'Page 1'
34  ];
35  }
36  if ($uid == 2) {
37  return [
38  'uid' => 2,
39  'title' => 'Page 2'
40  ];
41  }
42  throw new \RuntimeException('Unexpected call', 1528631951);
43  }
44 
48  public static function ‪getRecordTitle($table, $row, $prep = false, $forceResult = true)
49  {
50  if ($row['uid'] === 1) {
51  return 'Page 1';
52  }
53  if ($row['uid'] === 2) {
54  return 'Page 2';
55  }
56  throw new \RuntimeException('Unexpected call', 1528631952);
57  }
58 }
‪$fields
‪$fields
Definition: pages.php:5
‪TYPO3\CMS\Backend\Tests\Unit\Utility\Fixtures\ProcessedValueForGroupWithOneAllowedTableFixture\getRecordTitle
‪static getRecordTitle($table, $row, $prep=false, $forceResult=true)
Definition: ProcessedValueForGroupWithOneAllowedTableFixture.php:48
‪TYPO3\CMS\Backend\Tests\Unit\Utility\Fixtures\ProcessedValueForGroupWithOneAllowedTableFixture
Definition: ProcessedValueForGroupWithOneAllowedTableFixture.php:24
‪TYPO3\CMS\Backend\Tests\Unit\Utility\Fixtures\ProcessedValueForGroupWithOneAllowedTableFixture\getRecordWSOL
‪static getRecordWSOL($table, $uid, $fields=' *', $where='', $useDeleteClause=true, $unsetMovePointers=false)
Definition: ProcessedValueForGroupWithOneAllowedTableFixture.php:28
‪TYPO3\CMS\Backend\Utility\BackendUtility
Definition: BackendUtility.php:75
‪TYPO3\CMS\Backend\Tests\Unit\Utility\Fixtures
Definition: LabelFromItemListMergedReturnsCorrectFieldsFixture.php:16