Initial commit
This commit is contained in:
@@ -0,0 +1,241 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Model;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
/**
|
||||
* Activity
|
||||
*/
|
||||
class Activity extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $configuratorTypeLabels = [
|
||||
1 => 'Outdoor & Action',
|
||||
2 => 'Event-Gastronomie',
|
||||
3 => 'Sightseeing',
|
||||
4 => 'Spezial',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $name = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $description = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $footertext = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $bannertext = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $keywords = '';
|
||||
|
||||
/**
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageTeaser;
|
||||
|
||||
/**
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageHeader;
|
||||
|
||||
/**
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageOffer;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $configuratorType = 0;
|
||||
|
||||
/**
|
||||
* @return string $name
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string $description
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $description
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getFootertext()
|
||||
{
|
||||
return $this->footertext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $footertext
|
||||
*/
|
||||
public function setFootertext($footertext)
|
||||
{
|
||||
$this->footertext = $footertext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBannertext()
|
||||
{
|
||||
return $this->bannertext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $bannertext
|
||||
*/
|
||||
public function setBannertext($bannertext)
|
||||
{
|
||||
$this->bannertext = $bannertext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getKeywords()
|
||||
{
|
||||
return $this->keywords;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $keywords
|
||||
*/
|
||||
public function setKeywords($keywords)
|
||||
{
|
||||
$this->keywords = $keywords;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser
|
||||
*/
|
||||
public function getImageTeaser()
|
||||
{
|
||||
return $this->imageTeaser;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser
|
||||
*/
|
||||
public function setImageTeaser(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser)
|
||||
{
|
||||
$this->imageTeaser = $imageTeaser;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader
|
||||
*/
|
||||
public function getImageHeader()
|
||||
{
|
||||
return $this->imageHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader
|
||||
*/
|
||||
public function setImageHeader(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader)
|
||||
{
|
||||
$this->imageHeader = $imageHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageOffer
|
||||
*/
|
||||
public function getImageOffer()
|
||||
{
|
||||
return $this->imageOffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageOffer
|
||||
*/
|
||||
public function setImageOffer(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageOffer)
|
||||
{
|
||||
$this->imageOffer = $imageOffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int $configuratorType
|
||||
*/
|
||||
public function getConfiguratorType()
|
||||
{
|
||||
return $this->configuratorType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $configuratorType
|
||||
*/
|
||||
public function setConfiguratorType($configuratorType)
|
||||
{
|
||||
$this->configuratorType = $configuratorType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getConfiguratorTypeLabel()
|
||||
{
|
||||
return $this->configuratorTypeLabels[$this->configuratorType];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,166 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Model;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
/**
|
||||
* Contact
|
||||
*/
|
||||
class Contact extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||||
{
|
||||
|
||||
/**
|
||||
* name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $name = '';
|
||||
|
||||
/**
|
||||
* position
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $position = '';
|
||||
|
||||
/**
|
||||
* email
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $email = '';
|
||||
|
||||
/**
|
||||
* phone
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $phone = '';
|
||||
|
||||
/**
|
||||
* image
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $image = null;
|
||||
|
||||
/**
|
||||
* Returns the name
|
||||
*
|
||||
* @return string $name
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name
|
||||
*
|
||||
* @param string $name
|
||||
* @return void
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPosition()
|
||||
{
|
||||
return $this->position;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $position
|
||||
*/
|
||||
public function setPosition($position)
|
||||
{
|
||||
$this->position = $position;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the email
|
||||
*
|
||||
* @return string $email
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the email
|
||||
*
|
||||
* @param string $email
|
||||
* @return void
|
||||
*/
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $phone
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the image
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $image
|
||||
*/
|
||||
public function getImage()
|
||||
{
|
||||
return $this->image;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the image
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $image
|
||||
* @return void
|
||||
*/
|
||||
public function setImage(\TYPO3\CMS\Extbase\Domain\Model\FileReference $image)
|
||||
{
|
||||
$this->image = $image;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,197 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Model;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
/**
|
||||
* Hotel
|
||||
*/
|
||||
class Hotel extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||||
{
|
||||
/**
|
||||
* name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $name = '';
|
||||
|
||||
/**
|
||||
* internal name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $nameInternal = '';
|
||||
|
||||
/**
|
||||
* description
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $description = '';
|
||||
|
||||
/**
|
||||
* imageTeaser
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageTeaser = null;
|
||||
|
||||
/**
|
||||
* imageOffer
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageOffer = null;
|
||||
|
||||
/**
|
||||
* configuratorType
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $configuratorType = 0;
|
||||
|
||||
/**
|
||||
* Returns the name
|
||||
*
|
||||
* @return string $name
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name
|
||||
*
|
||||
* @param string $name
|
||||
* @return void
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNameInternal()
|
||||
{
|
||||
return $this->nameInternal;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $nameInternal
|
||||
*/
|
||||
public function setNameInternal($nameInternal)
|
||||
{
|
||||
$this->nameInternal = $nameInternal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the description
|
||||
*
|
||||
* @return string $description
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the description
|
||||
*
|
||||
* @param string $description
|
||||
* @return void
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the imageTeaser
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser
|
||||
*/
|
||||
public function getImageTeaser()
|
||||
{
|
||||
return $this->imageTeaser;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the imageTeaser
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser
|
||||
* @return void
|
||||
*/
|
||||
public function setImageTeaser(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser)
|
||||
{
|
||||
$this->imageTeaser = $imageTeaser;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the imageOffer
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageOffer
|
||||
*/
|
||||
public function getImageOffer()
|
||||
{
|
||||
return $this->imageOffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the imageOffer
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageOffer
|
||||
* @return void
|
||||
*/
|
||||
public function setImageOffer(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageOffer)
|
||||
{
|
||||
$this->imageOffer = $imageOffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the configuratorType
|
||||
*
|
||||
* @return int $configuratorType
|
||||
*/
|
||||
public function getConfiguratorType()
|
||||
{
|
||||
return $this->configuratorType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the configuratorType
|
||||
*
|
||||
* @param int $configuratorType
|
||||
* @return void
|
||||
*/
|
||||
public function setConfiguratorType($configuratorType)
|
||||
{
|
||||
$this->configuratorType = $configuratorType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,449 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Model;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
use TYPO3\CMS\Extbase\DomainObject\AbstractValueObject;
|
||||
|
||||
class Inquiry extends AbstractValueObject
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $inquiryName;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $travelType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $hotelType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $locationType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $activityType;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $distance;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $pax;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $budget;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $period;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $dateFrom;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $dateTo;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @validate NotEmpty
|
||||
*/
|
||||
protected $name;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @validate NotEmpty
|
||||
* @validate EmailAddress
|
||||
*/
|
||||
protected $email;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*
|
||||
* @validate NotEmpty
|
||||
*/
|
||||
protected $phone;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $message;
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $pageUrl;
|
||||
|
||||
/**
|
||||
* @param array $defaults
|
||||
*/
|
||||
public function __construct(array $defaults = [])
|
||||
{
|
||||
foreach ($defaults as $key => $value)
|
||||
{
|
||||
if (property_exists($this, $key)) {
|
||||
$this->$key = $value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Offer $offer
|
||||
* @param array $defaults
|
||||
*
|
||||
* @return Inquiry
|
||||
*/
|
||||
public static function fromOffer(Offer $offer, array $defaults = [])
|
||||
{
|
||||
$inquiry = new self($defaults);
|
||||
$inquiry->setInquiryName($offer->getName() . ' ' . $offer->getLocation()->getName());
|
||||
$inquiry->setTravelType($offer->getConfiguratorType());
|
||||
if ($offer->getLocation()) {
|
||||
$inquiry->setLocationType($offer->getLocation()->getConfiguratorType());
|
||||
}
|
||||
if ($offer->getHotel()) {
|
||||
$inquiry->setHotelType($offer->getHotel()->getConfiguratorType());
|
||||
}
|
||||
if ($offer->getLocation()->getConfiguratorDistance()) {
|
||||
$inquiry->setDistance($offer->getLocation()->getConfiguratorDistance());
|
||||
}
|
||||
$activities = [];
|
||||
/** @var \EP\EpEvents\Domain\Model\Activity $activity */
|
||||
foreach ($offer->getActivities() as $activity)
|
||||
{
|
||||
$activities[] = $activity->getConfiguratorType();
|
||||
}
|
||||
$inquiry->setActivityType(implode(',', array_unique($activities)));
|
||||
return $inquiry;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Traveltype $traveltype
|
||||
* @param string $name
|
||||
* @param array $defaults
|
||||
*
|
||||
* @return Inquiry
|
||||
*/
|
||||
public static function fromTraveltype(Traveltype $traveltype, $name = '', array $defaults = [])
|
||||
{
|
||||
$inquiry = new self($defaults);
|
||||
$inquiry->setInquiryName($name);
|
||||
$inquiry->setTravelType($traveltype->getConfiguratorType());
|
||||
return $inquiry;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $travelType
|
||||
* @param int $locationType
|
||||
*
|
||||
* @return Inquiry
|
||||
*/
|
||||
public static function fromArguments($travelType = 0, $locationType = 0)
|
||||
{
|
||||
$inquiry = new self;
|
||||
$inquiry->setTravelType((string) $travelType);
|
||||
$inquiry->setLocationType((string) $locationType);
|
||||
return $inquiry;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getInquiryName()
|
||||
{
|
||||
return $this->inquiryName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $inquiryName
|
||||
*/
|
||||
public function setInquiryName($inquiryName)
|
||||
{
|
||||
$this->inquiryName = $inquiryName;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTravelType()
|
||||
{
|
||||
return $this->travelType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $travelType
|
||||
*/
|
||||
public function setTravelType($travelType)
|
||||
{
|
||||
$this->travelType = $travelType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHotelType()
|
||||
{
|
||||
return $this->hotelType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $hotelType
|
||||
*/
|
||||
public function setHotelType($hotelType)
|
||||
{
|
||||
$this->hotelType = $hotelType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getLocationType()
|
||||
{
|
||||
return $this->locationType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $locationType
|
||||
*/
|
||||
public function setLocationType($locationType)
|
||||
{
|
||||
$this->locationType = $locationType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getActivityType()
|
||||
{
|
||||
return $this->activityType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $activityType
|
||||
*/
|
||||
public function setActivityType($activityType)
|
||||
{
|
||||
$this->activityType = $activityType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDistance()
|
||||
{
|
||||
return $this->distance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $distance
|
||||
*/
|
||||
public function setDistance($distance)
|
||||
{
|
||||
$this->distance = $distance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPax()
|
||||
{
|
||||
return $this->pax;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $pax
|
||||
*/
|
||||
public function setPax($pax)
|
||||
{
|
||||
$this->pax = $pax;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBudget()
|
||||
{
|
||||
return $this->budget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $budget
|
||||
*/
|
||||
public function setBudget($budget)
|
||||
{
|
||||
$this->budget = $budget;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPeriod()
|
||||
{
|
||||
return $this->period;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $period
|
||||
*/
|
||||
public function setPeriod($period)
|
||||
{
|
||||
$this->period = $period;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDateFrom()
|
||||
{
|
||||
return $this->dateFrom;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $dateFrom
|
||||
*/
|
||||
public function setDateFrom($dateFrom)
|
||||
{
|
||||
$this->dateFrom = $dateFrom;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDateTo()
|
||||
{
|
||||
return $this->dateTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $dateTo
|
||||
*/
|
||||
public function setDateTo($dateTo)
|
||||
{
|
||||
$this->dateTo = $dateTo;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getEmail()
|
||||
{
|
||||
return $this->email;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $email
|
||||
*/
|
||||
public function setEmail($email)
|
||||
{
|
||||
$this->email = $email;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPhone()
|
||||
{
|
||||
return $this->phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $phone
|
||||
*/
|
||||
public function setPhone($phone)
|
||||
{
|
||||
$this->phone = $phone;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getMessage()
|
||||
{
|
||||
return $this->message;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $message
|
||||
*/
|
||||
public function setMessage($message)
|
||||
{
|
||||
$this->message = $message;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPageUrl()
|
||||
{
|
||||
return $this->pageUrl;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $pageUrl
|
||||
*/
|
||||
public function setPageUrl($pageUrl)
|
||||
{
|
||||
$this->pageUrl = $pageUrl;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,364 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Model;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
/**
|
||||
* Location
|
||||
*/
|
||||
class Location extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||||
{
|
||||
const DISTANCE_GERMANY = 1;
|
||||
const DISTANCE_EUROPE = 2;
|
||||
const DISTANCE_WORLD = 3;
|
||||
|
||||
/**
|
||||
* name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $name = '';
|
||||
|
||||
/**
|
||||
* descriptionShort
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $descriptionShort = '';
|
||||
|
||||
/**
|
||||
* descriptionLong
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $descriptionLong = '';
|
||||
|
||||
/**
|
||||
* season
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $season = '';
|
||||
|
||||
/**
|
||||
* imageHeader
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageHeader = null;
|
||||
|
||||
/**
|
||||
* imageTeaser
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageTeaser = null;
|
||||
|
||||
/**
|
||||
* imageOffer
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageOffer = null;
|
||||
|
||||
/**
|
||||
* configuratorType
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $configuratorType = 0;
|
||||
|
||||
/**
|
||||
* configuratorDistance
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $configuratorDistance = 1;
|
||||
|
||||
/**
|
||||
* footerText1
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $footerText1 = '';
|
||||
|
||||
/**
|
||||
* footerText2
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $footerText2 = '';
|
||||
|
||||
/**
|
||||
* footerText3
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $footerText3 = '';
|
||||
|
||||
/**
|
||||
* Returns the name
|
||||
*
|
||||
* @return string $name
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name
|
||||
*
|
||||
* @param string $name
|
||||
* @return void
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the descriptionShort
|
||||
*
|
||||
* @return string $descriptionShort
|
||||
*/
|
||||
public function getDescriptionShort()
|
||||
{
|
||||
return $this->descriptionShort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the descriptionShort
|
||||
*
|
||||
* @param string $descriptionShort
|
||||
* @return void
|
||||
*/
|
||||
public function setDescriptionShort($descriptionShort)
|
||||
{
|
||||
$this->descriptionShort = $descriptionShort;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the imageHeader
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader
|
||||
*/
|
||||
public function getImageHeader()
|
||||
{
|
||||
return $this->imageHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the imageHeader
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader
|
||||
* @return void
|
||||
*/
|
||||
public function setImageHeader(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader)
|
||||
{
|
||||
$this->imageHeader = $imageHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the imageTeaser
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser
|
||||
*/
|
||||
public function getImageTeaser()
|
||||
{
|
||||
return $this->imageTeaser;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the imageTeaser
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser
|
||||
* @return void
|
||||
*/
|
||||
public function setImageTeaser(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser)
|
||||
{
|
||||
$this->imageTeaser = $imageTeaser;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the imageOffer
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageOffer
|
||||
*/
|
||||
public function getImageOffer()
|
||||
{
|
||||
return $this->imageOffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the imageOffer
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageOffer
|
||||
* @return void
|
||||
*/
|
||||
public function setImageOffer(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageOffer)
|
||||
{
|
||||
$this->imageOffer = $imageOffer;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the configuratorType
|
||||
*
|
||||
* @return int $configuratorType
|
||||
*/
|
||||
public function getConfiguratorType()
|
||||
{
|
||||
return $this->configuratorType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the configuratorType
|
||||
*
|
||||
* @param int $configuratorType
|
||||
* @return void
|
||||
*/
|
||||
public function setConfiguratorType($configuratorType)
|
||||
{
|
||||
$this->configuratorType = $configuratorType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getConfiguratorDistance()
|
||||
{
|
||||
return $this->configuratorDistance;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $configuratorDistance
|
||||
*/
|
||||
public function setConfiguratorDistance($configuratorDistance)
|
||||
{
|
||||
$this->configuratorDistance = $configuratorDistance;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the descriptionLong
|
||||
*
|
||||
* @return string descriptionLong
|
||||
*/
|
||||
public function getDescriptionLong()
|
||||
{
|
||||
return $this->descriptionLong;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the descriptionLong
|
||||
*
|
||||
* @param string $descriptionLong
|
||||
* @return void
|
||||
*/
|
||||
public function setDescriptionLong($descriptionLong)
|
||||
{
|
||||
$this->descriptionLong = $descriptionLong;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSeason()
|
||||
{
|
||||
return $this->season;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $season
|
||||
*/
|
||||
public function setSeason($season)
|
||||
{
|
||||
$this->season = $season;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the footerText1
|
||||
*
|
||||
* @return string $footerText1
|
||||
*/
|
||||
public function getFooterText1()
|
||||
{
|
||||
return $this->footerText1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the footerText1
|
||||
*
|
||||
* @param string $footerText1
|
||||
* @return void
|
||||
*/
|
||||
public function setFooterText1($footerText1)
|
||||
{
|
||||
$this->footerText1 = $footerText1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the footerText2
|
||||
*
|
||||
* @return string $footerText2
|
||||
*/
|
||||
public function getFooterText2()
|
||||
{
|
||||
return $this->footerText2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the footerText2
|
||||
*
|
||||
* @param string $footerText2
|
||||
* @return void
|
||||
*/
|
||||
public function setFooterText2($footerText2)
|
||||
{
|
||||
$this->footerText2 = $footerText2;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the footerText3
|
||||
*
|
||||
* @return string $footerText3
|
||||
*/
|
||||
public function getFooterText3()
|
||||
{
|
||||
return $this->footerText3;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the footerText3
|
||||
*
|
||||
* @param string $footerText3
|
||||
* @return void
|
||||
*/
|
||||
public function setFooterText3($footerText3)
|
||||
{
|
||||
$this->footerText3 = $footerText3;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,652 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Model;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
/**
|
||||
* Offer
|
||||
*/
|
||||
class Offer extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||||
{
|
||||
const TYPE_EXAMPLE = 1;
|
||||
const TYPE_CLIENT = 2;
|
||||
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $configuratorTypeLabels = [
|
||||
1 => 'Incentive',
|
||||
2 => 'Team Building',
|
||||
3 => 'Meeting',
|
||||
4 => 'Corporate Event',
|
||||
];
|
||||
|
||||
/**
|
||||
* type
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $type = 1;
|
||||
|
||||
/**
|
||||
* name
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $name = '';
|
||||
|
||||
/**
|
||||
* name internal
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $nameInternal = '';
|
||||
|
||||
/**
|
||||
* groupname
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $groupname = '';
|
||||
|
||||
/**
|
||||
* price
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $price = 0;
|
||||
|
||||
/**
|
||||
* headline
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $headline = '';
|
||||
|
||||
/**
|
||||
* header
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $header = '';
|
||||
|
||||
/**
|
||||
* arrival
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $arrival = '';
|
||||
|
||||
/**
|
||||
* schedule
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $schedule = '';
|
||||
|
||||
/**
|
||||
* services
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $services = '';
|
||||
|
||||
/**
|
||||
* guidelines
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $guidelines = '';
|
||||
|
||||
/**
|
||||
* imageHeader
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageHeader = null;
|
||||
|
||||
/**
|
||||
* imageTeaser
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageTeaser = null;
|
||||
|
||||
/**
|
||||
* imageTeaserMobile
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageTeaserMobile = null;
|
||||
|
||||
/**
|
||||
* bookingForm
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $bookingForm = null;
|
||||
|
||||
/**
|
||||
* configuratorType
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $configuratorType = 0;
|
||||
|
||||
/**
|
||||
* contact
|
||||
*
|
||||
* @var \EP\EpEvents\Domain\Model\Contact
|
||||
*/
|
||||
protected $contact = null;
|
||||
|
||||
/**
|
||||
* hotel
|
||||
*
|
||||
* @var \EP\EpEvents\Domain\Model\Hotel
|
||||
*/
|
||||
protected $hotel = null;
|
||||
|
||||
/**
|
||||
* location
|
||||
*
|
||||
* @var \EP\EpEvents\Domain\Model\Location
|
||||
*/
|
||||
protected $location = null;
|
||||
|
||||
/**
|
||||
* activities
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EP\EpEvents\Domain\Model\Activity>
|
||||
*/
|
||||
protected $activities = null;
|
||||
|
||||
/**
|
||||
* detailPage
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $detailPage = 0;
|
||||
|
||||
/**
|
||||
* __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->activities = new \TYPO3\CMS\Extbase\Persistence\ObjectStorage();
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getType()
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $type
|
||||
*/
|
||||
public function setType($type)
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the name
|
||||
*
|
||||
* @return string $name
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the name
|
||||
*
|
||||
* @param string $name
|
||||
* @return void
|
||||
*/
|
||||
public function setName($name)
|
||||
{
|
||||
$this->name = $name;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getNameInternal()
|
||||
{
|
||||
return $this->nameInternal;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $nameInternal
|
||||
*/
|
||||
public function setNameInternal($nameInternal)
|
||||
{
|
||||
$this->nameInternal = $nameInternal;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the groupname
|
||||
*
|
||||
* @return string $groupname
|
||||
*/
|
||||
public function getGroupname()
|
||||
{
|
||||
return $this->groupname;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the groupname
|
||||
*
|
||||
* @param string $groupname
|
||||
* @return void
|
||||
*/
|
||||
public function setGroupname($groupname)
|
||||
{
|
||||
$this->groupname = $groupname;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPrice()
|
||||
{
|
||||
return $this->price;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $price
|
||||
*/
|
||||
public function setPrice($price)
|
||||
{
|
||||
$this->price = $price;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHeadline()
|
||||
{
|
||||
return $this->headline;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $headline
|
||||
*/
|
||||
public function setHeadline($headline)
|
||||
{
|
||||
$this->headline = $headline;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the header
|
||||
*
|
||||
* @return string $header
|
||||
*/
|
||||
public function getHeader()
|
||||
{
|
||||
return $this->header;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the header
|
||||
*
|
||||
* @param string $header
|
||||
* @return void
|
||||
*/
|
||||
public function setHeader($header)
|
||||
{
|
||||
$this->header = $header;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the arrival
|
||||
*
|
||||
* @return string $arrival
|
||||
*/
|
||||
public function getArrival()
|
||||
{
|
||||
return $this->arrival;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the arrival
|
||||
*
|
||||
* @param string $arrival
|
||||
* @return void
|
||||
*/
|
||||
public function setArrival($arrival)
|
||||
{
|
||||
$this->arrival = $arrival;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the schedule
|
||||
*
|
||||
* @return string $schedule
|
||||
*/
|
||||
public function getSchedule()
|
||||
{
|
||||
return $this->schedule;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the schedule
|
||||
*
|
||||
* @param string $schedule
|
||||
* @return void
|
||||
*/
|
||||
public function setSchedule($schedule)
|
||||
{
|
||||
$this->schedule = $schedule;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the services
|
||||
*
|
||||
* @return string $services
|
||||
*/
|
||||
public function getServices()
|
||||
{
|
||||
return $this->services;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the services
|
||||
*
|
||||
* @param string $services
|
||||
* @return void
|
||||
*/
|
||||
public function setServices($services)
|
||||
{
|
||||
$this->services = $services;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the guidelines
|
||||
*
|
||||
* @return string $guidelines
|
||||
*/
|
||||
public function getGuidelines()
|
||||
{
|
||||
return $this->guidelines;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the guidelines
|
||||
*
|
||||
* @param string $guidelines
|
||||
* @return void
|
||||
*/
|
||||
public function setGuidelines($guidelines)
|
||||
{
|
||||
$this->guidelines = $guidelines;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the imageHeader
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader
|
||||
*/
|
||||
public function getImageHeader()
|
||||
{
|
||||
return $this->imageHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the imageHeader
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader
|
||||
* @return void
|
||||
*/
|
||||
public function setImageHeader(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader)
|
||||
{
|
||||
$this->imageHeader = $imageHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
public function getImageTeaser()
|
||||
{
|
||||
return $this->imageTeaser;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser
|
||||
*/
|
||||
public function setImageTeaser(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaser)
|
||||
{
|
||||
$this->imageTeaser = $imageTeaser;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
public function getImageTeaserMobile()
|
||||
{
|
||||
return $this->imageTeaserMobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaserMobile
|
||||
*/
|
||||
public function setImageTeaserMobile(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageTeaserMobile)
|
||||
{
|
||||
$this->imageTeaserMobile = $imageTeaserMobile;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the bookingForm
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $bookingForm
|
||||
*/
|
||||
public function getBookingForm()
|
||||
{
|
||||
return $this->bookingForm;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the bookingForm
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $bookingForm
|
||||
* @return void
|
||||
*/
|
||||
public function setBookingForm(\TYPO3\CMS\Extbase\Domain\Model\FileReference $bookingForm)
|
||||
{
|
||||
$this->bookingForm = $bookingForm;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the contact
|
||||
*
|
||||
* @return \EP\EpEvents\Domain\Model\Contact $contact
|
||||
*/
|
||||
public function getContact()
|
||||
{
|
||||
return $this->contact;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the contact
|
||||
*
|
||||
* @param \EP\EpEvents\Domain\Model\Contact $contact
|
||||
* @return void
|
||||
*/
|
||||
public function setContact(\EP\EpEvents\Domain\Model\Contact $contact)
|
||||
{
|
||||
$this->contact = $contact;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the hotel
|
||||
*
|
||||
* @return \EP\EpEvents\Domain\Model\Hotel $hotel
|
||||
*/
|
||||
public function getHotel()
|
||||
{
|
||||
return $this->hotel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the hotel
|
||||
*
|
||||
* @param \EP\EpEvents\Domain\Model\Hotel $hotel
|
||||
* @return void
|
||||
*/
|
||||
public function setHotel(\EP\EpEvents\Domain\Model\Hotel $hotel)
|
||||
{
|
||||
$this->hotel = $hotel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the location
|
||||
*
|
||||
* @return \EP\EpEvents\Domain\Model\Location $location
|
||||
*/
|
||||
public function getLocation()
|
||||
{
|
||||
return $this->location;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the location
|
||||
*
|
||||
* @param \EP\EpEvents\Domain\Model\Location $location
|
||||
* @return void
|
||||
*/
|
||||
public function setLocation(\EP\EpEvents\Domain\Model\Location $location)
|
||||
{
|
||||
$this->location = $location;
|
||||
}
|
||||
|
||||
/**
|
||||
* Adds a Activity
|
||||
*
|
||||
* @param \EP\EpEvents\Domain\Model\Activity $activity
|
||||
* @return void
|
||||
*/
|
||||
public function addActivity(\EP\EpEvents\Domain\Model\Activity $activity)
|
||||
{
|
||||
$this->activities->attach($activity);
|
||||
}
|
||||
|
||||
/**
|
||||
* Removes a Activity
|
||||
*
|
||||
* @param \EP\EpEvents\Domain\Model\Activity $activityToRemove The Activity to be removed
|
||||
* @return void
|
||||
*/
|
||||
public function removeActivity(\EP\EpEvents\Domain\Model\Activity $activityToRemove)
|
||||
{
|
||||
$this->activities->detach($activityToRemove);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the activities
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EP\EpEvents\Domain\Model\Activity> $activities
|
||||
*/
|
||||
public function getActivities()
|
||||
{
|
||||
return $this->activities;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the activities
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Persistence\ObjectStorage<\EP\EpEvents\Domain\Model\Activity> $activities
|
||||
* @return void
|
||||
*/
|
||||
public function setActivities(\TYPO3\CMS\Extbase\Persistence\ObjectStorage $activities)
|
||||
{
|
||||
$this->activities = $activities;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the configuratorType
|
||||
*
|
||||
* @return int $configuratorType
|
||||
*/
|
||||
public function getConfiguratorType()
|
||||
{
|
||||
return $this->configuratorType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the configuratorType
|
||||
*
|
||||
* @param int $configuratorType
|
||||
* @return void
|
||||
*/
|
||||
public function setConfiguratorType($configuratorType)
|
||||
{
|
||||
$this->configuratorType = $configuratorType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getDetailPage()
|
||||
{
|
||||
return $this->detailPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $detailPage
|
||||
*/
|
||||
public function setDetailPage($detailPage)
|
||||
{
|
||||
$this->detailPage = $detailPage;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getConfiguratorTypeLabel()
|
||||
{
|
||||
return $this->configuratorTypeLabels[$this->configuratorType];
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Model;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2018 Björn Fromme <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
class Search
|
||||
{
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $query;
|
||||
|
||||
/**
|
||||
* @var int
|
||||
*/
|
||||
protected $pageUid;
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
* @param null $pageUid
|
||||
*/
|
||||
public function __construct($query = null, $pageUid = null)
|
||||
{
|
||||
$this->setQuery($query);
|
||||
$this->setPageUid($pageUid);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getQuery()
|
||||
{
|
||||
return $this->query;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $query
|
||||
*/
|
||||
public function setQuery($query)
|
||||
{
|
||||
$this->query = $query;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getPageUid()
|
||||
{
|
||||
return $this->pageUid;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $pageUid
|
||||
*/
|
||||
public function setPageUid($pageUid)
|
||||
{
|
||||
$this->pageUid = $pageUid;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,120 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Model;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
/**
|
||||
* Testimonial
|
||||
*/
|
||||
class Testimonial extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||||
{
|
||||
|
||||
/**
|
||||
* clientName
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $clientName = '';
|
||||
|
||||
/**
|
||||
* clientImage
|
||||
*
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $clientImage = null;
|
||||
|
||||
/**
|
||||
* quote
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $quote = '';
|
||||
|
||||
/**
|
||||
* Returns the clientName
|
||||
*
|
||||
* @return string $clientName
|
||||
*/
|
||||
public function getClientName()
|
||||
{
|
||||
return $this->clientName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the clientName
|
||||
*
|
||||
* @param string $clientName
|
||||
* @return void
|
||||
*/
|
||||
public function setClientName($clientName)
|
||||
{
|
||||
$this->clientName = $clientName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the clientImage
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $clientImage
|
||||
*/
|
||||
public function getClientImage()
|
||||
{
|
||||
return $this->clientImage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the clientImage
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $clientImage
|
||||
* @return void
|
||||
*/
|
||||
public function setClientImage(\TYPO3\CMS\Extbase\Domain\Model\FileReference $clientImage)
|
||||
{
|
||||
$this->clientImage = $clientImage;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the quote
|
||||
*
|
||||
* @return string $quote
|
||||
*/
|
||||
public function getQuote()
|
||||
{
|
||||
return $this->quote;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the quote
|
||||
*
|
||||
* @param string $quote
|
||||
* @return void
|
||||
*/
|
||||
public function setQuote($quote)
|
||||
{
|
||||
$this->quote = $quote;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,252 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Model;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
/**
|
||||
* Traveltype
|
||||
*/
|
||||
class Traveltype extends \TYPO3\CMS\Extbase\DomainObject\AbstractEntity
|
||||
{
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $title = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $subtitle = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $headertext = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $subheadline = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $description = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $bannertext = '';
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $buttonlabel = '';
|
||||
|
||||
/**
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageHeader;
|
||||
|
||||
/**
|
||||
* @var \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
protected $imageBanner;
|
||||
|
||||
/**
|
||||
* configuratorType
|
||||
*
|
||||
* @var int
|
||||
*/
|
||||
protected $configuratorType = 0;
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getTitle()
|
||||
{
|
||||
return $this->title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $title
|
||||
*/
|
||||
public function setTitle($title)
|
||||
{
|
||||
$this->title = $title;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSubtitle()
|
||||
{
|
||||
return $this->subtitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $subtitle
|
||||
*/
|
||||
public function setSubtitle($subtitle)
|
||||
{
|
||||
$this->subtitle = $subtitle;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getHeadertext()
|
||||
{
|
||||
return $this->headertext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $headertext
|
||||
*/
|
||||
public function setHeadertext($headertext)
|
||||
{
|
||||
$this->headertext = $headertext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSubheadline()
|
||||
{
|
||||
return $this->subheadline;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $subheadline
|
||||
*/
|
||||
public function setSubheadline($subheadline)
|
||||
{
|
||||
$this->subheadline = $subheadline;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getDescription()
|
||||
{
|
||||
return $this->description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $description
|
||||
*/
|
||||
public function setDescription($description)
|
||||
{
|
||||
$this->description = $description;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getBannertext()
|
||||
{
|
||||
return $this->bannertext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $bannertext
|
||||
*/
|
||||
public function setBannertext($bannertext)
|
||||
{
|
||||
$this->bannertext = $bannertext;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getButtonlabel()
|
||||
{
|
||||
return $this->buttonlabel;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $buttonlabel
|
||||
*/
|
||||
public function setButtonlabel($buttonlabel)
|
||||
{
|
||||
$this->buttonlabel = $buttonlabel;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns the imageHeader
|
||||
*
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader
|
||||
*/
|
||||
public function getImageHeader()
|
||||
{
|
||||
return $this->imageHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the imageHeader
|
||||
*
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader
|
||||
* @return void
|
||||
*/
|
||||
public function setImageHeader(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageHeader)
|
||||
{
|
||||
$this->imageHeader = $imageHeader;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return \TYPO3\CMS\Extbase\Domain\Model\FileReference
|
||||
*/
|
||||
public function getImageBanner()
|
||||
{
|
||||
return $this->imageBanner;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param \TYPO3\CMS\Extbase\Domain\Model\FileReference $imageBanner
|
||||
*/
|
||||
public function setImageBanner(\TYPO3\CMS\Extbase\Domain\Model\FileReference $imageBanner)
|
||||
{
|
||||
$this->imageBanner = $imageBanner;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int $configuratorType
|
||||
*/
|
||||
public function getConfiguratorType()
|
||||
{
|
||||
return $this->configuratorType;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $configuratorType
|
||||
* @return void
|
||||
*/
|
||||
public function setConfiguratorType($configuratorType)
|
||||
{
|
||||
$this->configuratorType = $configuratorType;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,41 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Repository;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
use TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings;
|
||||
|
||||
class AbstractRepository extends \TYPO3\CMS\Extbase\Persistence\Repository
|
||||
{
|
||||
public function initializeObject()
|
||||
{
|
||||
/** @var $querySettings \TYPO3\CMS\Extbase\Persistence\Generic\Typo3QuerySettings */
|
||||
$querySettings = $this->objectManager->get(Typo3QuerySettings::class);
|
||||
$querySettings->setRespectStoragePage(FALSE);
|
||||
$this->setDefaultQuerySettings($querySettings);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Repository;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
class ActivityRepository extends AbstractRepository
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Repository;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
use TYPO3\CMS\Extbase\Persistence\QueryInterface;
|
||||
|
||||
class ContactRepository extends AbstractRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $defaultOrderings = [
|
||||
'sorting' => QueryInterface::ORDER_ASCENDING,
|
||||
];
|
||||
}
|
||||
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Repository;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
use EP\EpEvents\Domain\Model\Activity;
|
||||
use EP\EpEvents\Domain\Model\Offer;
|
||||
use TYPO3\CMS\Extbase\Persistence\QueryInterface;
|
||||
|
||||
class OfferRepository extends AbstractRepository
|
||||
{
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
protected $defaultOrderings = [
|
||||
'nameInternal' => QueryInterface::ORDER_ASCENDING,
|
||||
];
|
||||
|
||||
/**
|
||||
* @param array $configuration
|
||||
* @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface
|
||||
*/
|
||||
public function findByConfiguration(array $configuration)
|
||||
{
|
||||
if (array_sum($configuration) === 0) {
|
||||
return [];
|
||||
}
|
||||
$query = $this->createQuery();
|
||||
$constraints = [
|
||||
$query->logicalNot($query->equals('type', Offer::TYPE_CLIENT))
|
||||
];
|
||||
if ($configuration['offerUid']) {
|
||||
$constraints[] = $query->logicalNot($query->equals('uid', $configuration['offerUid']));
|
||||
}
|
||||
if ($configuration['travelType'] > 0) {
|
||||
$constraints[] = $query->equals('configuratorType', $configuration['travelType']);
|
||||
}
|
||||
if ($configuration['locationDistance'] > 0) {
|
||||
$constraints[] = $query->equals('location.configuratorDistance', $configuration['locationDistance']);
|
||||
}
|
||||
if ($configuration['locationType'] > 0) {
|
||||
$constraints[] = $query->equals('location.configuratorType', $configuration['locationType']);
|
||||
}
|
||||
if ($configuration['hotelType'] > 0) {
|
||||
$constraints[] = $query->equals('hotel.configuratorType', $configuration['hotelType']);
|
||||
}
|
||||
if ($configuration['activityType'] > 0) {
|
||||
$constraints[] = $query->equals('activities.configuratorType', $configuration['activityType']);
|
||||
}
|
||||
return $query->matching($query->logicalAnd($constraints))->execute();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param Activity $activity
|
||||
* @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface
|
||||
*/
|
||||
public function findByActivity(Activity $activity)
|
||||
{
|
||||
$query = $this->createQuery();
|
||||
$query->matching(
|
||||
$query->logicalAnd(
|
||||
$query->contains('activities', $activity),
|
||||
$query->equals('type', Offer::TYPE_EXAMPLE)
|
||||
)
|
||||
);
|
||||
return $query->execute();
|
||||
}
|
||||
|
||||
/**
|
||||
* @param string $queryString
|
||||
* @return array|\TYPO3\CMS\Extbase\Persistence\QueryResultInterface
|
||||
*/
|
||||
public function search($queryString)
|
||||
{
|
||||
$query = $this->createQuery();
|
||||
$constraints = [
|
||||
$query->like('nameInternal', '%' . $queryString . '%'),
|
||||
$query->like('header', '%' . $queryString . '%'),
|
||||
$query->like('services', '%' . $queryString . '%'),
|
||||
$query->like('location.name', '%' . $queryString . '%'),
|
||||
];
|
||||
return $query->matching(
|
||||
$query->logicalAnd(
|
||||
$query->greaterThan('detailPage', 0),
|
||||
$query->logicalOr($constraints)
|
||||
)
|
||||
)->execute();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Repository;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
class TestimonialRepository extends AbstractRepository
|
||||
{
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
namespace EP\EpEvents\Domain\Repository;
|
||||
|
||||
/***************************************************************
|
||||
*
|
||||
* Copyright notice
|
||||
*
|
||||
* (c) 2017 Björn Fromme <[email protected]>, dreipunktnull
|
||||
* Cedric Ziel <[email protected]>, dreipunktnull
|
||||
*
|
||||
* 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!
|
||||
***************************************************************/
|
||||
|
||||
class TraveltypeRepository extends AbstractRepository
|
||||
{
|
||||
}
|
||||
Reference in New Issue
Block a user