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
Comment.php
Go to the documentation of this file.
1
<?php
2
namespace
ExtbaseTeam\BlogExample\Domain\Model
;
19
class
Comment
extends
\TYPO3\CMS\Extbase\DomainObject\AbstractEntity
{
20
24
protected
$date
;
25
30
protected
$author
=
''
;
31
36
protected
$email
=
''
;
37
42
protected
$content
=
''
;
43
47
public
function
__construct
() {
48
$this->date = new \DateTime();
49
}
50
57
public
function
setDate
(\DateTime
$date
) {
58
$this->date =
$date
;
59
}
60
66
public
function
getDate
() {
67
return
$this->date
;
68
}
69
76
public
function
setAuthor
(
$author
) {
77
$this->author =
$author
;
78
}
79
85
public
function
getAuthor
() {
86
return
$this->author
;
87
}
88
95
public
function
setEmail
(
$email
) {
96
$this->email =
$email
;
97
}
98
104
public
function
getEmail
() {
105
return
$this->email
;
106
}
107
114
public
function
setContent
(
$content
) {
115
$this->content =
$content
;
116
}
117
123
public
function
getContent
() {
124
return
$this->content
;
125
}
126
132
public
function
__toString
() {
133
return
$this->author .
' ('
. $this->email .
') said on '
. $this->date->format(
'Y-m-d'
) .
':'
. chr(10) .
134
$this->content . chr(10);
135
}
136
}
137
?>
ExtbaseTeam\BlogExample\Domain\Model\Comment\__construct
__construct()
Definition:
Comment.php:47
ExtbaseTeam\BlogExample\Domain\Model\Comment\getDate
getDate()
Definition:
Comment.php:66
ExtbaseTeam\BlogExample\Domain\Model\Comment\getContent
getContent()
Definition:
Comment.php:123
ExtbaseTeam\BlogExample\Domain\Model\Comment
Definition:
Comment.php:19
ExtbaseTeam\BlogExample\Domain\Model\Comment\setContent
setContent($content)
Definition:
Comment.php:114
TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition:
AbstractEntity.php:20
ExtbaseTeam\BlogExample\Domain\Model\Comment\setDate
setDate(\DateTime $date)
Definition:
Comment.php:57
ExtbaseTeam\BlogExample\Domain\Model\Comment\getAuthor
getAuthor()
Definition:
Comment.php:85
ExtbaseTeam\BlogExample\Domain\Model\Comment\$author
$author
Definition:
Comment.php:30
ExtbaseTeam\BlogExample\Domain\Model\Comment\$email
$email
Definition:
Comment.php:36
ExtbaseTeam\BlogExample\Domain\Model\Comment\getEmail
getEmail()
Definition:
Comment.php:104
ExtbaseTeam\BlogExample\Domain\Model\Comment\__toString
__toString()
Definition:
Comment.php:132
ExtbaseTeam\BlogExample\Domain\Model\Comment\setAuthor
setAuthor($author)
Definition:
Comment.php:76
ExtbaseTeam\BlogExample\Domain\Model\Comment\$content
$content
Definition:
Comment.php:42
ExtbaseTeam\BlogExample\Domain\Model\Comment\$date
$date
Definition:
Comment.php:24
ExtbaseTeam\BlogExample\Domain\Model\Comment\setEmail
setEmail($email)
Definition:
Comment.php:95
ExtbaseTeam\BlogExample\Domain\Model
Definition:
Administrator.php:3
typo3
sysext
extbase
Tests
Functional
Fixtures
Extensions
blog_example
Classes
Domain
Model
Comment.php
Generated on Wed Aug 7 2019 09:52:25 for TYPO3 CMS by
1.8.13