TYPO3
7.6
Users
bogdan
Projects
Kapeli
Resources
Dash
Docsets
TYPO3
src
typo3
sysext
extbase
Classes
Domain
Model
Category.php
Go to the documentation of this file.
1
<?php
2
namespace
TYPO3\CMS\Extbase\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
22
class
Category
extends
\TYPO3\CMS\Extbase\DomainObject\AbstractEntity
23
{
28
protected
$title
=
''
;
29
33
protected
$description
=
''
;
34
38
protected
$icon
=
''
;
39
44
protected
$parent
= null;
45
52
public
function
getTitle
()
53
{
54
return
$this->title
;
55
}
56
64
public
function
setTitle
(
$title
)
65
{
66
$this->title =
$title
;
67
}
68
75
public
function
getDescription
()
76
{
77
return
$this->description
;
78
}
79
87
public
function
setDescription
(
$description
)
88
{
89
$this->description =
$description
;
90
}
91
98
public
function
getIcon
()
99
{
100
return
$this->icon
;
101
}
102
110
public
function
setIcon
(
$icon
)
111
{
112
$this->icon =
$icon
;
113
}
114
121
public
function
getParent
()
122
{
123
if
($this->parent instanceof \TYPO3\CMS\Extbase\Persistence\Generic\LazyLoadingProxy) {
124
$this->parent->_loadRealInstance();
125
}
126
return
$this->parent
;
127
}
128
136
public
function
setParent
(\TYPO3\CMS\Extbase\Domain\Model\
Category
$parent
)
137
{
138
$this->parent =
$parent
;
139
}
140
}
Generated on Wed Nov 11 2015 01:51:51 for TYPO3 by
1.8.3