TYPO3CMS
9.5
Main Page
Related Pages
Classes
Class List
Class Index
Class Hierarchy
Class Members
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
Files
File List
File Members
All
$
d
e
r
u
Functions
Variables
$
e
r
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
ProcessedValueForGroupWithMultipleAllowedTablesFixture.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Backend\Tests\Unit\Utility\Fixtures
;
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
20
class
ProcessedValueForGroupWithMultipleAllowedTablesFixture
extends
\TYPO3\CMS\Backend\Utility\BackendUtility
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
doxygen
typo3
sysext
backend
Tests
Unit
Utility
Fixtures
ProcessedValueForGroupWithMultipleAllowedTablesFixture.php
Generated on Tue Oct 5 2021 01:57:00 for TYPO3CMS by
1.8.18