‪TYPO3CMS  9.5
ProcessedValueForGroupWithMultipleAllowedTablesFixture.php
Go to the documentation of this file.
1 <?php
3 
4 /*
5  * This file is part of the TYPO3 CMS project.
6  *
7  * It is free software; you can redistribute it and/or modify it under
8  * the terms of the GNU General Public License, either version 2
9  * of the License, or any later version.
10  *
11  * For the full copyright and license information, please read the
12  * LICENSE.txt file that was distributed with this source code.
13  *
14  * The TYPO3 project - inspiring people to share!
15  */
16 
21 {
25  public static function ‪getRecordWSOL($table, $uid, ‪$fields = '*', $where = '', $useDeleteClause = true, $unsetMovePointers = false)
26  {
27  if ($uid == 1) {
28  return [
29  'uid' => 1,
30  'title' => 'Page 1'
31  ];
32  }
33  if ($uid == 2) {
34  return [
35  'uid' => 2,
36  'header' => 'Configuration 2'
37  ];
38  }
39  throw new \RuntimeException('Unexpected call', 1528631953);
40  }
41 
45  public static function ‪getRecordTitle($table, $row, $prep = false, $forceResult = true)
46  {
47  if ($row['uid'] === 1) {
48  return 'Page 1';
49  }
50  if ($row['uid'] === 2) {
51  return 'Configuration 2';
52  }
53  throw new \RuntimeException('Unexpected call', 1528631954);
54  }
55 }
‪TYPO3\CMS\Backend\Tests\Unit\Utility\Fixtures\ProcessedValueForGroupWithMultipleAllowedTablesFixture
Definition: ProcessedValueForGroupWithMultipleAllowedTablesFixture.php:21
‪TYPO3\CMS\Backend\Tests\Unit\Utility\Fixtures\ProcessedValueForGroupWithMultipleAllowedTablesFixture\getRecordWSOL
‪static getRecordWSOL($table, $uid, $fields=' *', $where='', $useDeleteClause=true, $unsetMovePointers=false)
Definition: ProcessedValueForGroupWithMultipleAllowedTablesFixture.php:25
‪$fields
‪$fields
Definition: pages.php:4
‪TYPO3\CMS\Backend\Utility\BackendUtility
Definition: BackendUtility.php:72
‪TYPO3\CMS\Backend\Tests\Unit\Utility\Fixtures\ProcessedValueForGroupWithMultipleAllowedTablesFixture\getRecordTitle
‪static getRecordTitle($table, $row, $prep=false, $forceResult=true)
Definition: ProcessedValueForGroupWithMultipleAllowedTablesFixture.php:45
‪TYPO3\CMS\Backend\Tests\Unit\Utility\Fixtures
Definition: LabelFromItemListMergedReturnsCorrectFieldsFixture.php:2