ameliabooking
/
src
/
Application
/
Commands
/
Booking
/
Event
/
GenerateEventWpaCustomPostCommand.php
Tag
3 months ago
AddEventCommand.php
1 year ago
AddEventCommandHandler.php
1 week ago
DeleteEventBookingCommand.php
7 years ago
DeleteEventBookingCommandHandler.php
1 week ago
DeleteEventCommand.php
1 year ago
DeleteEventCommandHandler.php
7 months ago
DeleteEventsCommand.php
7 months ago
DeleteEventsCommandHandler.php
4 months ago
GenerateEventWpaCustomPostCommand.php
4 weeks ago
GenerateEventWpaCustomPostCommandHandler.php
4 weeks ago
GetCalendarEventsCommand.php
1 year ago
GetCalendarEventsCommandHandler.php
1 week ago
GetEventBookingCommand.php
7 months ago
GetEventBookingCommandHandler.php
1 week ago
GetEventBookingsCommand.php
1 year ago
GetEventBookingsCommandHandler.php
1 week ago
GetEventCommand.php
7 years ago
GetEventCommandHandler.php
1 week ago
GetEventsCommand.php
1 year ago
GetEventsCommandHandler.php
1 week ago
UpdateEventBookingCommand.php
7 years ago
UpdateEventBookingCommandHandler.php
7 months ago
UpdateEventCommand.php
1 year ago
UpdateEventCommandHandler.php
1 week ago
UpdateEventStatusCommand.php
1 year ago
UpdateEventStatusCommandHandler.php
7 months ago
UpdateEventVisibilityCommand.php
7 months ago
UpdateEventVisibilityCommandHandler.php
7 months ago
GenerateEventWpaCustomPostCommand.php
30 lines
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * @copyright © Melograno Ventures. All rights reserved. |
| 5 | * @licence See LICENCE.md for license details. |
| 6 | */ |
| 7 | |
| 8 | namespace AmeliaBooking\Application\Commands\Booking\Event; |
| 9 | |
| 10 | use AmeliaBooking\Application\Commands\Command; |
| 11 | |
| 12 | /** |
| 13 | * Triggers creation of the wpa-events CPT for an Amelia event (series root only). |
| 14 | * |
| 15 | * @package AmeliaBooking\Application\Commands\Booking\Event |
| 16 | */ |
| 17 | class GenerateEventWpaCustomPostCommand extends Command |
| 18 | { |
| 19 | /** |
| 20 | * @param array $args |
| 21 | */ |
| 22 | public function __construct($args) |
| 23 | { |
| 24 | parent::__construct($args); |
| 25 | if (isset($args['id'])) { |
| 26 | $this->setField('id', $args['id']); |
| 27 | } |
| 28 | } |
| 29 | } |
| 30 |