| 1 |
<?php |
| 2 |
/** |
| 3 |
* Settings Controller interface |
| 4 |
* |
| 5 |
* @package SeQura/WC |
| 6 |
* @subpackage SeQura/WC/Controllers |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace SeQura\WC\Controllers\Hooks\Settings; |
| 10 |
|
| 11 |
/** |
| 12 |
* Settings Controller interface |
| 13 |
*/ |
| 14 |
interface Interface_Settings_Controller { |
| 15 |
|
| 16 |
/** |
| 17 |
* Register the settings page. |
| 18 |
* |
| 19 |
* @return void |
| 20 |
*/ |
| 21 |
public function register_page(); |
| 22 |
|
| 23 |
/** |
| 24 |
* Render the settings page. |
| 25 |
* |
| 26 |
* @return void |
| 27 |
*/ |
| 28 |
public function render_page(); |
| 29 |
|
| 30 |
/** |
| 31 |
* Add action links to the plugin settings page. |
| 32 |
* |
| 33 |
* @param string[] $actions The actions. |
| 34 |
* @param string $plugin_file The plugin file. |
| 35 |
* @param string $plugin_data The plugin data. |
| 36 |
* @param string $context The context. |
| 37 |
* @return string[] |
| 38 |
*/ |
| 39 |
public function add_action_link( $actions, $plugin_file, $plugin_data, $context ); |
| 40 |
|
| 41 |
/** |
| 42 |
* Get the settings page URL. |
| 43 |
* |
| 44 |
* @param string|null $url The URL. |
| 45 |
* @return string |
| 46 |
*/ |
| 47 |
public function get_settings_page_url( $url = null ); |
| 48 |
|
| 49 |
/** |
| 50 |
* Removes the WP footer message |
| 51 |
* |
| 52 |
* @param string $text The footer text. |
| 53 |
* @return string |
| 54 |
*/ |
| 55 |
public function remove_footer_admin( $text ); |
| 56 |
|
| 57 |
/** |
| 58 |
* Show row meta on the plugin screen. |
| 59 |
* |
| 60 |
* @param array $links Plugin Row Meta. |
| 61 |
* @param string $file Plugin Base file. |
| 62 |
* @return string[] |
| 63 |
*/ |
| 64 |
public function add_plugin_row_meta( $links, $file ); |
| 65 |
} |
| 66 |
|