c18a0af08733620478de03882f8fa6cc799a9bbe
[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-2013 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 text file 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 */
33 class ConfigurationCategory extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity {
34
35 /**
36 * @var string
37 */
38 protected $name = '';
39
40 /**
41 * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\TYPO3\CMS\Extensionmanager\Domain\Model\ConfigurationSubcategory>
42 */
43 protected $subcategories;
44
45 /**
46 * @var string
47 */
48 protected $highlightText = '';
49
50 /**
51 * Constructs this Category
52 */
53 public function __construct() {
54 $this->subcategories = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
55 }
56
57 /**
58 * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage $subcategories
59 * @return void
60 */
61 public function setSubcategories($subcategories) {
62 $this->subcategories = $subcategories;
63 }
64
65 /**
66 * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage
67 */
68 public function getSubcategories() {
69 return $this->subcategories;
70 }
71
72 /**
73 * Adds a subcategories
74 *
75 * @param \TYPO3\CMS\Extensionmanager\Domain\Model\ConfigurationSubcategory $subcategory
76 * @return void
77 */
78 public function addSubcategory(\TYPO3\CMS\Extensionmanager\Domain\Model\ConfigurationSubcategory $subcategory) {
79 $this->subcategories->attach($subcategory);
80 }
81
82 /**
83 * @param string $name
84 * @return void
85 */
86 public function setName($name) {
87 $this->name = $name;
88 }
89
90 /**
91 * @return string
92 */
93 public function getName() {
94 return $this->name;
95 }
96
97 /**
98 * @param string $highlightText
99 * @return void
100 */
101 public function setHighlightText($highlightText) {
102 $this->highlightText = $highlightText;
103 }
104
105 /**
106 * @return string
107 */
108 public function getHighlightText() {
109 return $this->highlightText;
110 }
111
112 }