2019-07-18 13:44:19 +02:00
|
|
|
<?php
|
2021-01-07 08:50:43 +01:00
|
|
|
|
2019-07-18 13:44:19 +02:00
|
|
|
namespace Wrm\Events\Domain\Model;
|
|
|
|
|
2021-01-07 08:47:15 +01:00
|
|
|
use TYPO3\CMS\Extbase\DomainObject\AbstractEntity;
|
2021-01-07 08:50:43 +01:00
|
|
|
|
2019-07-18 13:44:19 +02:00
|
|
|
/***
|
|
|
|
*
|
|
|
|
* This file is part of the "DD Events" Extension for TYPO3 CMS.
|
|
|
|
*
|
|
|
|
* For the full copyright and license information, please read the
|
|
|
|
* LICENSE.txt file that was distributed with this source code.
|
|
|
|
*
|
|
|
|
* (c) 2019 Dirk Koritnik <koritnik@werkraum-media.de>
|
|
|
|
*
|
|
|
|
***/
|
|
|
|
/**
|
|
|
|
* Region
|
|
|
|
*/
|
2021-01-07 08:47:15 +01:00
|
|
|
class Region extends AbstractEntity
|
2019-07-18 13:44:19 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
/**
|
|
|
|
* title
|
2021-01-07 08:50:43 +01:00
|
|
|
*
|
2019-07-18 13:44:19 +02:00
|
|
|
* @var string
|
|
|
|
*/
|
|
|
|
protected $title = '';
|
2021-01-07 08:50:43 +01:00
|
|
|
|
2020-10-01 08:34:13 +02:00
|
|
|
/**
|
|
|
|
* @var int
|
|
|
|
*/
|
2020-10-01 08:56:44 +02:00
|
|
|
protected $_languageUid;
|
2019-07-18 13:44:19 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Returns the title
|
2021-01-07 08:50:43 +01:00
|
|
|
*
|
2019-07-18 13:44:19 +02:00
|
|
|
* @return string $title
|
|
|
|
*/
|
|
|
|
public function getTitle()
|
|
|
|
{
|
|
|
|
return $this->title;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sets the title
|
2021-01-07 08:50:43 +01:00
|
|
|
*
|
2019-07-18 13:44:19 +02:00
|
|
|
* @param string $title
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function setTitle($title)
|
|
|
|
{
|
|
|
|
$this->title = $title;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* __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
|
2021-01-07 08:50:43 +01:00
|
|
|
*
|
2019-07-18 13:44:19 +02:00
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
protected function initStorageObjects()
|
|
|
|
{
|
|
|
|
}
|
2020-10-01 08:34:13 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* @param int $languageUid
|
|
|
|
* @return void
|
|
|
|
*/
|
2021-01-07 08:50:43 +01:00
|
|
|
public function setLanguageUid($languageUid)
|
|
|
|
{
|
2020-10-01 08:56:44 +02:00
|
|
|
$this->_languageUid = $languageUid;
|
2020-10-01 08:34:13 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @return int
|
|
|
|
*/
|
2021-01-07 08:50:43 +01:00
|
|
|
public function getLanguageUid()
|
|
|
|
{
|
2020-10-01 08:56:44 +02:00
|
|
|
return $this->_languageUid;
|
2020-10-01 08:34:13 +02:00
|
|
|
}
|
2019-07-18 13:44:19 +02:00
|
|
|
}
|