interface.php
44 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @package VikWP - Libraries |
| 4 | * @subpackage adapter.session |
| 5 | * @author E4J s.r.l. |
| 6 | * @copyright Copyright (C) 2023 E4J s.r.l. All Rights Reserved. |
| 7 | * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL |
| 8 | * @link https://vikwp.com |
| 9 | */ |
| 10 | |
| 11 | // No direct access |
| 12 | defined('ABSPATH') or die('No script kiddies please!'); |
| 13 | |
| 14 | /** |
| 15 | * This interface declares the common actions needed to install a plugin. |
| 16 | * |
| 17 | * @since 10.1.57 |
| 18 | */ |
| 19 | interface JPluginInstallerInterface |
| 20 | { |
| 21 | /** |
| 22 | * Checks whether the plugin has been installed. |
| 23 | * |
| 24 | * @return bool |
| 25 | */ |
| 26 | public function isInstalled(); |
| 27 | |
| 28 | /** |
| 29 | * Checks whether the plugin is already active. |
| 30 | * |
| 31 | * @return bool |
| 32 | */ |
| 33 | public function isActive(); |
| 34 | |
| 35 | /** |
| 36 | * Completes the plugin installation and activation. |
| 37 | * |
| 38 | * @return void |
| 39 | * |
| 40 | * @throws \Exception |
| 41 | */ |
| 42 | public function install(); |
| 43 | } |
| 44 |