Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- namespace Vendor\Feregistration\Domain\Model;
- /***************************************************************
- *
- * Copyright notice
- *
- * (c) 2016
- *
- * All rights reserved
- *
- * This script is part of the TYPO3 project. The TYPO3 project is
- * free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 3 of the License, or
- * (at your option) any later version.
- *
- * The GNU General Public License can be found at
- * http://www.gnu.org/copyleft/gpl.html.
- *
- * This script is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * This copyright notice MUST APPEAR in all copies of the script!
- ***************************************************************/
- /**
- * Custom Frontend User
- */
- class CustomFEU extends \TYPO3\CMS\Extbase\Domain\Model\FrontendUser
- {
- /**
- * disable
- *
- * @var bool
- */
- protected $disable = false;
- /**
- * frfield
- *
- * @var string
- */
- protected $frfield = '';
- /**
- * frcat
- *
- * @var string
- */
- protected $frcat = '';
- /**
- * frhash
- *
- * @var string
- */
- protected $frhash = '';
- /**
- * usergroup
- *
- * @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Vendor\Feregistration\Domain\Model\FEGroups>
- */
- protected $usergroup = null;
- /**
- * Returns the disable
- *
- * @return bool $disable
- */
- public function getDisable()
- {
- return $this->disable;
- }
- /**
- * Sets the disable
- *
- * @param bool $disable
- * @return void
- */
- public function setDisable($disable)
- {
- $this->disable = $disable;
- }
- /**
- * Returns the boolean state of disable
- *
- * @return bool
- */
- public function isDisable()
- {
- return $this->disable;
- }
- /**
- * Returns the frfield
- *
- * @return string $frfield
- */
- public function getFrfield()
- {
- return $this->frfield;
- }
- /**
- * Sets the frfield
- *
- * @param string $frfield
- * @return void
- */
- public function setFrfield($frfield)
- {
- $this->frfield = $frfield;
- }
- /**
- * Returns the frcat
- *
- * @return string $frcat
- */
- public function getFrcat()
- {
- return $this->frcat;
- }
- /**
- * Sets the frcat
- *
- * @param string $frcat
- * @return void
- */
- public function setFrcat($frcat)
- {
- $this->frcat = $frcat;
- }
- /**
- * Returns the frhash
- *
- * @return string $frhash
- */
- public function getFrhash()
- {
- return $this->frhash;
- }
- /**
- * Sets the frhash
- *
- * @param string $frhash
- * @return void
- */
- public function setFrhash($frhash)
- {
- $this->frhash = $frhash;
- }
- /**
- * __construct
- */
- public function __construct()
- {
- //Do not remove the next line: It would break the functionality
- $this->initStorageObjects();
- }
- /**
- * Initializes all ObjectStorage properties
- * Do not modify this method!
- * It will be rewritten on each save in the extension builder
- * You may modify the constructor of this class instead
- *
- * @return void
- */
- protected function initStorageObjects()
- {
- $this->usergroup = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
- }
- /**
- * Adds a FEGroups
- *
- * @param \Vendor\Feregistration\Domain\Model\FEGroups $usergroup
- * @return void
- */
- public function addUsergroup(\Vendor\Feregistration\Domain\Model\FEGroups $usergroup)
- {
- $this->usergroup->attach($usergroup);
- }
- /**
- * Removes a FEGroups
- *
- * @param \Vendor\Feregistration\Domain\Model\FEGroups $usergroupToRemove The FEGroups to be removed
- * @return void
- */
- public function removeUsergroup(\Vendor\Feregistration\Domain\Model\FEGroups $usergroupToRemove)
- {
- $this->usergroup->detach($usergroupToRemove);
- }
- /**
- * Returns the usergroup
- *
- * @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Vendor\Feregistration\Domain\Model\FEGroups> $usergroup
- */
- public function getUsergroup()
- {
- return $this->usergroup;
- }
- /**
- * Sets the usergroup
- *
- * @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\Vendor\Feregistration\Domain\Model\FEGroups> $usergroup
- * @return void
- */
- public function setUsergroup(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $usergroup)
- {
- $this->usergroup = $usergroup;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement