Skip to content
Snippets Groups Projects
Select Git revision
  • 11578df9dc4c08e661c0cc85c9f651145f3e7be8
  • master default protected
  • bugfix/wordpress-review
  • initialize-tracker
  • 1.3.0
  • 1.2.3
  • 1.2.2
  • 1.2.1
  • 1.2.0
  • 1.2.0-beta.1
  • 1.1.0
  • 1.0.4
  • 1.0.3
  • 1.0.2
  • 1.0.1
  • 1.0.0
16 results

PluginBootstrap.php

Blame
  • Requirement_Checker.php 1.59 KiB
    <?php
    /**
     * Checks requirements for plugin
     * have to be compatible with PHP 5.2.x
     */
    interface WPDesk_Requirement_Checker
    {
        /**
         * @param string $version
         *
         * @return $this
         */
        public function set_min_php_require($version);
    
        /**
         * @param string $version
         *
         * @return $this
         */
        public function set_min_wp_require($version);
    
        /**
         * @param string $version
         *
         * @return $this
         */
        public function set_min_wc_require($version);
    
        /**
         * @param $version
         *
         * @return $this
         */
        public function set_min_openssl_require($version);
    
        /**
         * @param string $plugin_name
         * @param string $nice_plugin_name Nice plugin name for better looks in notice
         *
         * @return $this
         */
        public function add_plugin_require($plugin_name, $nice_plugin_name = null);
    
        /**
         * @param string $module_name
         * @param string $nice_name Nice module name for better looks in notice
         *
         * @return $this
         */
        public function add_php_module_require($module_name, $nice_name = null);
    
        /**
         * @param string $setting
         * @param mixed $value
         *
         * @return $this
         */
        public function add_php_setting_require($setting, $value);
    
        /**
         * @return bool
         */
        public function are_requirements_met();
    
        /**
         * @return void
         */
        public function disable_plugin_render_notice();
    
    	/**
    	 * @return void
    	 */
    	public function render_notices();
    
        /**
         * Renders requirement notices in admin panel
         *
         * @return void
         */
        public function disable_plugin();
    }