|
TYPO3 API
SVNRelease
|
00001 <?php 00002 /*************************************************************** 00003 * Copyright notice 00004 * 00005 * (c) 2009 Jochen Rau <jochen.rau@typoplanet.de> 00006 * All rights reserved 00007 * 00008 * This script is part of the TYPO3 project. The TYPO3 project is 00009 * free software; you can redistribute it and/or modify 00010 * it under the terms of the GNU General Public License as published by 00011 * the Free Software Foundation; either version 2 of the License, or 00012 * (at your option) any later version. 00013 * 00014 * The GNU General Public License can be found at 00015 * http://www.gnu.org/copyleft/gpl.html. 00016 * 00017 * This script is distributed in the hope that it will be useful, 00018 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00019 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00020 * GNU General Public License for more details. 00021 * 00022 * This copyright notice MUST APPEAR in all copies of the script! 00023 ***************************************************************/ 00024 00025 /** 00026 * A Frontend User Group 00027 * 00028 * @package Extbase 00029 * @subpackage Domain\Model 00030 * @version $Id: FrontendUserGroup.php 2143 2010-03-30 09:28:26Z jocrau $ 00031 * @scope prototype 00032 * @entity 00033 * @api 00034 */ 00035 class Tx_Extbase_Domain_Model_FrontendUserGroup extends Tx_Extbase_DomainObject_AbstractEntity { 00036 00037 /** 00038 * @var string 00039 */ 00040 protected $title; 00041 00042 /** 00043 * @var string 00044 */ 00045 protected $lockToDomain; 00046 00047 /** 00048 * @var string 00049 */ 00050 protected $description; 00051 00052 /** 00053 * @var Tx_Extbase_Persistence_ObjectStorage<Tx_Extbase_Domain_Model_FrontendUserGroup> 00054 */ 00055 protected $subgroup; 00056 00057 /** 00058 * Constructs a new Frontend User Group 00059 * 00060 */ 00061 public function __construct($title) { 00062 $this->setTitle($title); 00063 $this->subgroup = new Tx_Extbase_Persistence_ObjectStorage(); 00064 } 00065 00066 /** 00067 * Sets the title value 00068 * 00069 * @param string $title 00070 * @return void 00071 * @api 00072 */ 00073 public function setTitle($title) { 00074 $this->title = $title; 00075 } 00076 00077 /** 00078 * Returns the title value 00079 * 00080 * @return string 00081 * @api 00082 */ 00083 public function getTitle() { 00084 return $this->title; 00085 } 00086 00087 /** 00088 * Sets the lockToDomain value 00089 * 00090 * @param string $lockToDomain 00091 * @return void 00092 * @api 00093 */ 00094 public function setLockToDomain($lockToDomain) { 00095 $this->lockToDomain = $lockToDomain; 00096 } 00097 00098 /** 00099 * Returns the lockToDomain value 00100 * 00101 * @return string 00102 * @api 00103 */ 00104 public function getLockToDomain() { 00105 return $this->lockToDomain; 00106 } 00107 00108 /** 00109 * Sets the description value 00110 * 00111 * @param string $description 00112 * @return void 00113 * @api 00114 */ 00115 public function setDescription($description) { 00116 $this->description = $description; 00117 } 00118 00119 /** 00120 * Returns the description value 00121 * 00122 * @return string 00123 * @api 00124 */ 00125 public function getDescription() { 00126 return $this->description; 00127 } 00128 00129 /** 00130 * Sets the subgroups. Keep in mind that the property is called "subgroup" 00131 * although it can hold several subgroups. 00132 * 00133 * @param Tx_Extbase_Persistence_ObjectStorage<Tx_Extbase_Domain_Model_FrontendUserGroup> $subgroup An object storage containing the subgroups to add 00134 * @return void 00135 * @api 00136 */ 00137 public function setSubgroup(Tx_Extbase_Persistence_ObjectStorage $subgroup) { 00138 $this->subgroup = $subgroup; 00139 } 00140 00141 /** 00142 * Adds a subgroup to the frontend user 00143 * 00144 * @param Tx_Extbase_Domain_Model_FrontendUserGroup $subgroup 00145 * @return void 00146 * @api 00147 */ 00148 public function addSubgroup(Tx_Extbase_Domain_Model_FrontendUserGroup $subgroup) { 00149 $this->subgroup->attach($subgroup); 00150 } 00151 00152 /** 00153 * Removes a subgroup from the frontend user group 00154 * 00155 * @param Tx_Extbase_Domain_Model_FrontendUserGroup $subgroup 00156 * @return void 00157 * @api 00158 */ 00159 public function removeSubgroup(Tx_Extbase_Domain_Model_FrontendUserGroup $subgroup) { 00160 $this->subgroup->detach($subgroup); 00161 } 00162 00163 /** 00164 * Returns the subgroups. Keep in mind that the property is called "subgroup" 00165 * although it can hold several subgroups. 00166 * 00167 * @return Tx_Extbase_Persistence_ObjectStorage An object storage containing the subgroups 00168 * @api 00169 */ 00170 public function getSubgroup() { 00171 return $this->subgroup; 00172 } 00173 00174 } 00175 ?>
1.8.0