# vikbooking/trunk/admin/helpers/src/task/driverinterface.php

VikBooking Hotel Booking Engine &amp; PMS, version trunk. 89 lines.

- Page: https://pluginprobe.com/plugins/vikbooking/trunk/code/admin/helpers/src/task/driverinterface.php
- Raw: https://pluginprobe.com/plugins/vikbooking/trunk/raw/admin/helpers/src/task/driverinterface.php
- Modified: 2026-09-14T11:37:40+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/vikbooking/trunk/code/admin/helpers/src/task/driverinterface.php#L10-L20`.

```php
<?php
/** 
 * @package     VikBooking
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2025 E4J s.r.l. All Rights Reserved.
 * @license     http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
 * @link        https://vikwp.com
 */

// No direct access
defined('ABSPATH') or die('No script kiddies please!');

/**
 * Task driver interface.
 * 
 * @since   1.18.0 (J) - 1.8.0 (WP)
 */
interface VBOTaskDriverinterface
{
    /**
     * Returns the ID of the task driver used to build the class name.
     * 
     * @return  string  A unique identifier.
     */
    public function getID();

    /**
     * Returns the name of the task driver.
     * 
     * @return  string  The driver readable name.
     */
    public function getName();

    /**
     * Returns the task driver icon.
     * 
     * @return  string  The font-icon class identifier.
     */
    public function getIcon();

    /**
     * Returns the task driver parameters.
     * 
     * @return  array   List of driver parameters.
     */
    public function getParams();

    /**
     * Can be used to inject custom HTML within the task management layout.
     * 
     * @param   string               $position  The position where the output will be displayed.
     * @param   VBOTaskTaskregistry  $task      The task we are updating.
     * @param   VBOTaskArea          $area      The area this task belongs to.
     * 
     * @return  string  The HTML to output.
     * 
     * @since   1.18.15 (J) - 1.8.15 (WP)
     */
    public function onManageTask(string $position, VBOTaskTaskregistry $task, VBOTaskArea $area);

    /**
     * Executes and schedules (eventually) the task(s) upon a booking confirmation.
     * 
     * @param   VBOTaskBooking   $booking    The task booking object.
     * 
     * @return  void
     */
    public function scheduleBookingConfirmation(VBOTaskBooking $booking);

    /**
     * Executes and schedules (eventually) the task(s) upon a booking alteration.
     * 
     * @param   VBOTaskBooking   $booking    The task booking object.
     * 
     * @return  void
     */
    public function scheduleBookingAlteration(VBOTaskBooking $booking);

    /**
     * Executes and schedules (eventually) the task(s) upon a booking cancellation.
     * 
     * @param   VBOTaskBooking   $booking    The task booking object.
     * 
     * @return  void
     */
    public function scheduleBookingCancellation(VBOTaskBooking $booking);
}

```
