TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
backend
Tests
Unit
Utility
Fixtures
ProcessedValueForGroupWithOneAllowedTableFixture.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
ProcessedValueForGroupWithOneAllowedTableFixture
extends
\TYPO3\CMS\Backend\Utility\BackendUtility
21
{
25
public
static
function
getRecordWSOL
($table, $uid, $fields =
'*'
, $where =
''
, $useDeleteClause =
true
, $unsetMovePointers =
false
)
26
{
27
static
$called = 0;
28
++$called;
29
if
($called === 1) {
30
return
array(
'title'
=>
'Page 1'
);
31
}
32
if
($called === 2) {
33
return
array(
'title'
=>
'Page 2'
);
34
}
35
}
36
40
public
static
function
getRecordTitle
($table, $row, $prep =
false
, $forceResult =
true
)
41
{
42
static
$called = 0;
43
++$called;
44
if
($called === 1) {
45
return
'Page 1'
;
46
}
47
if
($called === 2) {
48
return
'Page 2'
;
49
}
50
}
51
}
Generated on Wed Nov 11 2015 01:52:01 for TYPO3 by
1.8.3