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
Comment.php
Go to the documentation of this file.
1
<?php
2
namespace
ExtbaseTeam\BlogExample\Domain\Model
;
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
17
use
TYPO3\CMS\Extbase\Annotation
as
Extbase
;
18
22
class
Comment
extends
\TYPO3\CMS\Extbase\DomainObject\AbstractEntity
23
{
27
protected
$date
;
28
33
protected
$author
=
''
;
34
39
protected
$email
=
''
;
40
45
protected
$content
=
''
;
46
50
public
function
__construct
()
51
{
52
$this->date = new \DateTime();
53
}
54
60
public
function
setDate
(\DateTime
$date
)
61
{
62
$this->date =
$date
;
63
}
64
70
public
function
getDate
()
71
{
72
return
$this->date
;
73
}
74
80
public
function
setAuthor
(
$author
)
81
{
82
$this->author =
$author
;
83
}
84
90
public
function
getAuthor
()
91
{
92
return
$this->author
;
93
}
94
100
public
function
setEmail
(
$email
)
101
{
102
$this->email =
$email
;
103
}
104
110
public
function
getEmail
()
111
{
112
return
$this->email
;
113
}
114
120
public
function
setContent
(
$content
)
121
{
122
$this->content =
$content
;
123
}
124
130
public
function
getContent
()
131
{
132
return
$this->content
;
133
}
134
140
public
function
__toString
()
141
{
142
return
$this->author .
' ('
. $this->email .
') said on '
. $this->date->format(
'Y-m-d'
) .
':'
. chr(10) .
143
$this->content . chr(10);
144
}
145
}
ExtbaseTeam\BlogExample\Domain\Model\Comment\__toString
string __toString()
Definition:
Comment.php:136
ExtbaseTeam\BlogExample\Domain\Model\Comment\setAuthor
setAuthor($author)
Definition:
Comment.php:76
TYPO3\CMS\Extbase\Annotation
Definition:
IgnoreValidation.php:4
ExtbaseTeam\BlogExample\Domain\Model\Comment\setContent
setContent($content)
Definition:
Comment.php:116
ExtbaseTeam\BlogExample\Domain\Model\Comment\getContent
string getContent()
Definition:
Comment.php:126
ExtbaseTeam\BlogExample\Domain\Model\Comment\$email
string $email
Definition:
Comment.php:36
ExtbaseTeam\BlogExample\Domain\Model\Comment\setEmail
setEmail($email)
Definition:
Comment.php:96
ExtbaseTeam\BlogExample\Domain\Model\Comment\$date
DateTime $date
Definition:
Comment.php:26
TYPO3\CMS\Extbase\DomainObject\AbstractEntity
Definition:
AbstractEntity.php:22
ExtbaseTeam\BlogExample\Domain\Model\Comment\setDate
setDate(\DateTime $date)
Definition:
Comment.php:56
ExtbaseTeam\BlogExample\Domain\Model\Comment
Definition:
Comment.php:23
ExtbaseTeam\BlogExample\Domain\Model\Comment\$content
string $content
Definition:
Comment.php:41
ExtbaseTeam\BlogExample\Domain\Model\Comment\getDate
DateTime getDate()
Definition:
Comment.php:66
ExtbaseTeam\BlogExample\Domain\Model\Comment\getEmail
string getEmail()
Definition:
Comment.php:106
ExtbaseTeam\BlogExample\Domain\Model
Definition:
Administrator.php:3
ExtbaseTeam\BlogExample\Domain\Model\Comment\$author
string $author
Definition:
Comment.php:31
ExtbaseTeam\BlogExample\Domain\Model\Comment\getAuthor
string getAuthor()
Definition:
Comment.php:86
ExtbaseTeam\BlogExample\Domain\Model\Comment\__construct
__construct()
Definition:
Comment.php:46
doxygen
typo3
sysext
extbase
Tests
Functional
Fixtures
Extensions
blog_example
Classes
Domain
Model
Comment.php
Generated on Tue Oct 5 2021 01:57:31 for TYPO3CMS by
1.8.18