6cebdd8f2ec839a7afb7025353bda4e12bba3465
[Packages/TYPO3.CMS.git] / typo3 / sysext / extensionmanager / Classes / Domain / Model / ConfigurationCategory.php
1 <?php
2 namespace TYPO3\CMS\Extensionmanager\Domain\Model;
3
4 /***************************************************************
5 * Copyright notice
6 *
7 * (c) 2012 Susanne Moog, <typo3@susannemoog.de>
8 * All rights reserved
9 *
10 * This script is part of the TYPO3 project. The TYPO3 project is
11 * free software; you can redistribute it and/or modify
12 * it under the terms of the GNU General Public License as published by
13 * the Free Software Foundation; either version 2 of the License, or
14 * (at your option) any later version.
15 *
16 * The GNU General Public License can be found at
17 * http://www.gnu.org/copyleft/gpl.html.
18 * A copy is found in the textfile GPL.txt and important notices to the license
19 * from the author is found in LICENSE.txt distributed with these scripts.
20 *
21 * This script is distributed in the hope that it will be useful,
22 * but WITHOUT ANY WARRANTY; without even the implied warranty of
23 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 * GNU General Public License for more details.
25 *
26 * This copyright notice MUST APPEAR in all copies of the script!
27 ***************************************************************/
28 /**
29 * Main model for extension configuration categories
30 *
31 * @author Susanne Moog <typo3@susannemoog.de>
32 * @package Extension Manager
33 * @subpackage Model
34 */
35 class ConfigurationCategory extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
36
37 /**
38 * @var string
39 */
40 protected $name = '';
41
42 /**
43 * @var Tx_Extbase_Persistence_ObjectStorage<Tx_Extensionmanager_Domain_Model_ConfigurationSubcategory>
44 */
45 protected $subcategories;
46
47 /**
48 * @var string
49 */
50 protected $highlightText = '';
51
52 /**
53 * Constructs this Category
54 */
55 public function __construct() {
56 $this->subcategories = new \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage();
57 }
58
59 /**
60 * @param \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage $subcategories
61 * @return void
62 */
63 public function setSubcategories($subcategories) {
64 $this->subcategories = $subcategories;
65 }
66
67 /**
68 * @return \TYPO3\CMS\Extbase\Persistence\Generic\ObjectStorage
69 */
70 public function getSubcategories() {
71 return $this->subcategories;
72 }
73
74 /**
75 * Adds a subcategories
76 *
77 * @param \TYPO3\CMS\Extensionmanager\Domain\Model\ConfigurationSubcategory $subcategory
78 * @return void
79 */
80 public function addSubcategory(\TYPO3\CMS\Extensionmanager\Domain\Model\ConfigurationSubcategory $subcategory) {
81 $this->subcategories->attach($subcategory);
82 }
83
84 /**
85 * @param string $name
86 * @return void
87 */
88 public function setName($name) {
89 $this->name = $name;
90 }
91
92 /**
93 * @return string
94 */
95 public function getName() {
96 return $this->name;
97 }
98
99 /**
100 * @param string $highlightText
101 * @return void
102 */
103 public function setHighlightText($highlightText) {
104 $this->highlightText = $highlightText;
105 }
106
107 /**
108 * @return string
109 */
110 public function getHighlightText() {
111 return $this->highlightText;
112 }
113
114 }
115
116
117 ?>