__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* @package DPCalendar
* @copyright Copyright (C) 2018 Digital Peak GmbH. <https://www.digital-peak.com>
* @license https://www.gnu.org/licenses/gpl-3.0.html GNU/GPL
*/
namespace DigitalPeak\Component\DPCalendar\Administrator\Booking\Stages;
\defined('_JEXEC') or die();
use DigitalPeak\Component\DPCalendar\Administrator\Pipeline\StageInterface;
use Joomla\Component\Fields\Administrator\Helper\FieldsHelper;
class AdjustCustomFields implements StageInterface
{
public function __invoke(\stdClass $payload): \stdClass
{
if (empty($payload->item) || empty($payload->eventsWithTickets)) {
return $payload;
}
// Clear the cache, doggy
$reflection = new \ReflectionProperty(FieldsHelper::class, 'fieldsCache');
$reflection->setAccessible(true);
$reflection->setValue(null, null);
$event = reset($payload->eventsWithTickets);
$payload->item->catid = $event->catid;
$payload->item->jcfields = FieldsHelper::getFields('com_dpcalendar.booking', $payload->item, true);
unset($payload->item->catid);
return $payload;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| AdjustCustomFields.php | File | 1.06 KB | 0664 |
|
| AssignUserGroups.php | File | 1.21 KB | 0664 |
|
| CollectEventsAndTickets.php | File | 2.98 KB | 0664 |
|
| CreateOrUpdateTickets.php | File | 4.59 KB | 0664 |
|
| CreateUser.php | File | 2.19 KB | 0664 |
|
| FetchLocationData.php | File | 1.47 KB | 0664 |
|
| SendInviteMail.php | File | 2.51 KB | 0664 |
|
| SendNewBookingMail.php | File | 4.75 KB | 0664 |
|
| SendNotificationMail.php | File | 3.39 KB | 0664 |
|
| SendPaidBookingMail.php | File | 3.38 KB | 0664 |
|
| SendWaitingListMail.php | File | 3.09 KB | 0664 |
|
| SetupForMail.php | File | 3.27 KB | 0664 |
|
| SetupForNew.php | File | 15.93 KB | 0664 |
|
| SetupForUpdate.php | File | 1.88 KB | 0664 |
|
| SetupLanguage.php | File | 1.51 KB | 0664 |
|