# vikbooking/trunk/admin/helpers/src/backup/import/rule.php

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

- Page: https://pluginprobe.com/plugins/vikbooking/trunk/code/admin/helpers/src/backup/import/rule.php
- Raw: https://pluginprobe.com/plugins/vikbooking/trunk/raw/admin/helpers/src/backup/import/rule.php
- Modified: 2022-02-26T15:35:58+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/backup/import/rule.php#L10-L20`.

```php
<?php
/** 
 * @package     VikBooking
 * @subpackage  core
 * @author      E4J s.r.l.
 * @copyright   Copyright (C) 2021 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!');

/**
 * Backup import rule abstraction.
 * 
 * @since 1.5
 */
abstract class VBOBackupImportRule
{
	/**
	 * The path to the folder of the extracted backup archive.
	 * 
	 * @var string
	 */
	protected $path;

	/**
	 * Class constructor.
	 * 
	 * @param   string  $path  The archive path.
	 */
	public function __construct($path)
	{
		$this->path = $path;
	}

	/**
	 * Executes the backup import command.
	 * 
	 * @param 	mixed  $data  The import rule instructions.
	 * 
	 * @return 	void
	 */
	abstract public function execute($data);
}

```
