GravityKit\GravityCalendar\Abilities\Events\RescheduleEvent
gc_event_reschedule: the drag-and-drop edit, without the drag.
The checks and the write are GravityView_Calendar_Ajax's own: who may edit, whether the entry
is an event on this calendar, and which fields a move writes.
Since: TBD
Source: includes/abilities/Events/RescheduleEvent.php:31
Details
- Kind:
class - Namespace:
GravityKit\GravityCalendar\Abilities\Events - Extends:
Ability
Methods
| Method | Description |
|---|---|
name() | The ability's registered name. |
label() | The short title an AI client shows for gc_event_reschedule. |
description() | What gc_event_reschedule tells an AI client it does and when to call it. |
category() | The category gc_event_reschedule is listed under. |
input_schema() | The JSON schema of the input gc_event_reschedule accepts. |
output_schema() | The JSON schema of what gc_event_reschedule returns. |
annotations() | Writes the same fields each time for the same input. |
permission() | The drag handler's own check: an active calendar with editing on, and a user in its edit roles. |
execute() | Runs gc_event_reschedule. |
Method Reference
name()
public static function name(): string
The ability's registered name.
Returns
string—gk-gravitycalendar/event-reschedule(MCPgc_event_reschedule).
Since: TBD
Source: includes/abilities/Events/RescheduleEvent.php:40
label()
public static function label(): string
The short title an AI client shows for gc_event_reschedule.
Returns
string
Since: TBD
Source: includes/abilities/Events/RescheduleEvent.php:51
description()
public static function description(): string
What gc_event_reschedule tells an AI client it does and when to call it.
Returns
string
Since: TBD
Source: includes/abilities/Events/RescheduleEvent.php:62
category()
public static function category(): string
The category gc_event_reschedule is listed under.
Returns
string
Since: TBD
Source: includes/abilities/Events/RescheduleEvent.php:88
input_schema()
public static function input_schema(): array
The JSON schema of the input gc_event_reschedule accepts.
Returns
array
Since: TBD
Source: includes/abilities/Events/RescheduleEvent.php:99
output_schema()
public static function output_schema(): array
The JSON schema of what gc_event_reschedule returns.
Returns
array
Since: TBD
Source: includes/abilities/Events/RescheduleEvent.php:141
annotations()
public static function annotations(): array
Writes the same fields each time for the same input.
Returns
array{readonly:bool,— destructive:bool, idempotent:bool}
Since: TBD
Source: includes/abilities/Events/RescheduleEvent.php:163
permission()
public static function permission( array $input )
The drag handler's own check: an active calendar with editing on, and a user in its edit roles.
Settings-screen access does not count, because the drag handler does not count it.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$input | array | Input as received. |
Returns
true|\WP_Error
Since: TBD
Source: includes/abilities/Events/RescheduleEvent.php:178
execute()
public static function execute( array $input )
Runs gc_event_reschedule.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$input | array | Input, validated against the input schema. |
Returns
array|\WP_Error
Since: TBD
Source: includes/abilities/Events/RescheduleEvent.php:226