TYPO3 CMS
TYPO3_6-2
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
r
s
t
u
v
w
+
Files
File List
+
File Members
+
All
$
(
_
a
c
d
e
f
h
i
l
o
p
r
s
t
u
x
+
Functions
_
a
c
d
e
f
i
l
o
p
r
s
u
x
+
Variables
$
(
_
a
d
e
h
i
p
r
s
t
Examples
•
All
Classes
Namespaces
Files
Functions
Variables
Pages
DatabaseRecord.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Workspaces\Domain\Model
;
3
21
class
DatabaseRecord
{
22
26
protected
$table
;
27
31
protected
$uid
;
32
36
protected
$row
;
37
45
static
public
function
create
(
$table
,
$uid
) {
46
return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
'TYPO3\\CMS\\Workspaces\\Domain\\Model\\DatabaseRecord'
,
$table
,
$uid
);
47
}
48
56
static
public
function
createFromArray
(
$table
, array
$row
) {
57
return \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(
'TYPO3\\CMS\\Workspaces\\Domain\\Model\\DatabaseRecord'
,
$table
, $row[
'uid'
], $row);
58
}
59
65
public
function
__construct
(
$table
,
$uid
, array
$row
= NULL) {
66
$this->
setTable
(
$table
);
67
$this->
setUid
(
$uid
);
68
if
(
$row
!== NULL) {
69
$this->
setRow
(
$row
);
70
}
71
}
72
78
public
function
getTable
() {
79
return
$this->table
;
80
}
81
88
public
function
setTable
(
$table
) {
89
$this->table =
$table
;
90
}
91
97
public
function
getUid
() {
98
return
$this->uid
;
99
}
100
107
public
function
setUid
(
$uid
) {
108
$this->uid =
$uid
;
109
}
110
116
public
function
getRow
() {
117
$this->
loadRow
();
118
return
$this->row
;
119
}
120
127
public
function
setRow
(array
$row
) {
128
$this->row =
$row
;
129
}
130
136
public
function
getIdentifier
() {
137
return
implode(
':'
, array($this->
getTable
(), $this->
getUid
()));
138
}
139
145
protected
function
loadRow
() {
146
if
($this->row === NULL) {
147
$this->row = \TYPO3\CMS\Backend\Utility\BackendUtility::getRecord($this->
getTable
(), $this->
getUid
());
148
}
149
}
150
151
}
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\$table
$table
Definition:
DatabaseRecord.php:26
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\__construct
__construct($table, $uid, array $row=NULL)
Definition:
DatabaseRecord.php:65
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\$uid
$uid
Definition:
DatabaseRecord.php:31
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\setRow
setRow(array $row)
Definition:
DatabaseRecord.php:127
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\getUid
getUid()
Definition:
DatabaseRecord.php:97
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\$row
$row
Definition:
DatabaseRecord.php:36
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\loadRow
loadRow()
Definition:
DatabaseRecord.php:145
TYPO3\CMS\Workspaces\Domain\Model
Definition:
CombinedRecord.php:2
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\create
static create($table, $uid)
Definition:
DatabaseRecord.php:45
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\setUid
setUid($uid)
Definition:
DatabaseRecord.php:107
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord
Definition:
DatabaseRecord.php:21
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\getTable
getTable()
Definition:
DatabaseRecord.php:78
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\getIdentifier
getIdentifier()
Definition:
DatabaseRecord.php:136
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\getRow
getRow()
Definition:
DatabaseRecord.php:116
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\createFromArray
static createFromArray($table, array $row)
Definition:
DatabaseRecord.php:56
TYPO3\CMS\Workspaces\Domain\Model\DatabaseRecord\setTable
setTable($table)
Definition:
DatabaseRecord.php:88
typo3
sysext
workspaces
Classes
Domain
Model
DatabaseRecord.php
Generated on Wed Aug 7 2019 09:52:31 for TYPO3 CMS by
1.8.13