flexible-shipping
/
vendor_prefixed
/
wpdesk
/
wp-basic-requirements
/
src
/
Requirement_Checker.php
Basic_Requirement_Checker.php
1 week ago
Basic_Requirement_Checker_Factory.php
1 week ago
Basic_Requirement_Checker_With_Update_Disable.php
1 week ago
Requirement_Checker.php
1 week ago
Requirement_Checker_Factory.php
1 week ago
Requirement_Checker.php
75 lines
| 1 | <?php |
| 2 | |
| 3 | namespace FSVendor; |
| 4 | |
| 5 | /** |
| 6 | * Checks requirements for plugin |
| 7 | * have to be compatible with PHP 5.2.x |
| 8 | */ |
| 9 | interface WPDesk_Requirement_Checker |
| 10 | { |
| 11 | /** |
| 12 | * @param string $version |
| 13 | * |
| 14 | * @return $this |
| 15 | */ |
| 16 | public function set_min_php_require($version); |
| 17 | /** |
| 18 | * @param string $version |
| 19 | * |
| 20 | * @return $this |
| 21 | */ |
| 22 | public function set_min_wp_require($version); |
| 23 | /** |
| 24 | * @param string $version |
| 25 | * |
| 26 | * @return $this |
| 27 | */ |
| 28 | public function set_min_wc_require($version); |
| 29 | /** |
| 30 | * @param $version |
| 31 | * |
| 32 | * @return $this |
| 33 | */ |
| 34 | public function set_min_openssl_require($version); |
| 35 | /** |
| 36 | * @param string $plugin_name |
| 37 | * @param string $nice_plugin_name Nice plugin name for better looks in notice |
| 38 | * |
| 39 | * @return $this |
| 40 | */ |
| 41 | public function add_plugin_require($plugin_name, $nice_plugin_name = null); |
| 42 | /** |
| 43 | * @param string $module_name |
| 44 | * @param string $nice_name Nice module name for better looks in notice |
| 45 | * |
| 46 | * @return $this |
| 47 | */ |
| 48 | public function add_php_module_require($module_name, $nice_name = null); |
| 49 | /** |
| 50 | * @param string $setting |
| 51 | * @param mixed $value |
| 52 | * |
| 53 | * @return $this |
| 54 | */ |
| 55 | public function add_php_setting_require($setting, $value); |
| 56 | /** |
| 57 | * @return bool |
| 58 | */ |
| 59 | public function are_requirements_met(); |
| 60 | /** |
| 61 | * @return void |
| 62 | */ |
| 63 | public function disable_plugin_render_notice(); |
| 64 | /** |
| 65 | * @return void |
| 66 | */ |
| 67 | public function render_notices(); |
| 68 | /** |
| 69 | * Renders requirement notices in admin panel |
| 70 | * |
| 71 | * @return void |
| 72 | */ |
| 73 | public function disable_plugin(); |
| 74 | } |
| 75 |