| 1 |
<?php |
| 2 |
|
| 3 |
namespace ImportWP\Common\Addon; |
| 4 |
|
| 5 |
use ImportWP\Common\Importer\Template\Template; |
| 6 |
use ImportWP\Common\Model\ImporterModel; |
| 7 |
|
| 8 |
/** |
| 9 |
* @deprecated 2.14.0 |
| 10 |
*/ |
| 11 |
interface AddonInterface |
| 12 |
{ |
| 13 |
function get_meta($panel_id); |
| 14 |
|
| 15 |
/** |
| 16 |
* @param string $field_name |
| 17 |
* @param string $field_id |
| 18 |
* @param string $field_label |
| 19 |
* @param array $group_args |
| 20 |
* |
| 21 |
* @return AddonFieldInterface |
| 22 |
*/ |
| 23 |
// function register_attachment_fields($field_name, $field_id, $field_label = 'Location', $group_args = []); |
| 24 |
|
| 25 |
/** |
| 26 |
* @param string $field_name |
| 27 |
* @param string $field_id |
| 28 |
* @param array $settings |
| 29 |
* |
| 30 |
* @return AddonFieldInterface |
| 31 |
*/ |
| 32 |
// function register_field($field_name, $field_id, $settings = []); |
| 33 |
|
| 34 |
/** |
| 35 |
* @param string $name |
| 36 |
* @param string $id |
| 37 |
* @param callable $fields |
| 38 |
* @param array $settings |
| 39 |
* |
| 40 |
* @return AddonPanelInterface |
| 41 |
*/ |
| 42 |
function register_panel($name, $id, $fields, $settings = []); |
| 43 |
|
| 44 |
/** |
| 45 |
* @param string $name |
| 46 |
* @param string $id |
| 47 |
* @param AddonFieldInterface[] $fields |
| 48 |
* |
| 49 |
* @return AddonGroupInterface |
| 50 |
*/ |
| 51 |
// function register_group($name, $id, $fields); |
| 52 |
|
| 53 |
function store_meta($section_id, $object_id, $key, $value); |
| 54 |
|
| 55 |
/** |
| 56 |
* @param callable $api |
| 57 |
* @return void |
| 58 |
*/ |
| 59 |
function register_custom_fields($name, $api); |
| 60 |
|
| 61 |
/** |
| 62 |
* @return ImporterModel |
| 63 |
*/ |
| 64 |
function importer_model(); |
| 65 |
|
| 66 |
/** |
| 67 |
* @return Template |
| 68 |
*/ |
| 69 |
function template(); |
| 70 |
|
| 71 |
/** |
| 72 |
* @param \Callback $callback |
| 73 |
*/ |
| 74 |
function register_migrations($callback); |
| 75 |
} |
| 76 |
|