core/domain/services/graphql/data/mutations/DatetimeMutation.php 1 location
|
@@ 43-45 (lines=3) @@
|
| 40 |
|
$args['DTT_description'] = sanitize_text_field($input['description']); |
| 41 |
|
} |
| 42 |
|
|
| 43 |
|
if (! empty($input['endDate'])) { |
| 44 |
|
$args['DTT_EVT_end'] = new DateTime(sanitize_text_field($input['endDate'])); |
| 45 |
|
} |
| 46 |
|
|
| 47 |
|
if (! empty($input['eventId'])) { |
| 48 |
|
$args['EVT_ID'] = absint($input['eventId']); |
core/domain/services/graphql/data/mutations/TicketMutation.php 1 location
|
@@ 49-51 (lines=3) @@
|
| 46 |
|
$args['TKT_description'] = sanitize_text_field($input['description']); |
| 47 |
|
} |
| 48 |
|
|
| 49 |
|
if (! empty($input['endDate'])) { |
| 50 |
|
$args['TKT_end_date'] = new DateTime(sanitize_text_field($input['endDate'])); |
| 51 |
|
} |
| 52 |
|
|
| 53 |
|
if (array_key_exists('isDefault', $input)) { |
| 54 |
|
$args['TKT_is_default'] = (bool) $input['isDefault']; |