Add booking url to xml export
This commit is contained in:
@@ -32,6 +32,7 @@ use EP\EpProducts\Domain\Model\Product;
|
||||
use EP\EpProducts\Domain\Repository\ProductRepository;
|
||||
use EP\EpProducts\Domain\Serialization\Date;
|
||||
use EP\EpProducts\Domain\Serialization\Room;
|
||||
use EP\EpProducts\Utility\BookingUrlUtility;
|
||||
use TYPO3\CMS\Core\SingletonInterface;
|
||||
use TYPO3\CMS\Extbase\Persistence\ObjectStorage;
|
||||
|
||||
@@ -104,6 +105,12 @@ class ResellerService implements SingletonInterface
|
||||
$data[$row['dateStart']] = $date;
|
||||
}
|
||||
|
||||
$date->bookingurl = BookingUrlUtility::generateUrl(
|
||||
$row['dateBusProId'],
|
||||
$row['hotelBusProId'],
|
||||
$row['dateEnd']
|
||||
);
|
||||
|
||||
$date->rooms['room'][] = Room::fromArray($row);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user