Skip to content
Snippets Groups Projects
Select Git revision
  • 4d6ca86e9a4e56227aaff1632614057727f707e8
  • master default protected
  • fix/deprecated_functions
  • devel
  • feat/translations
  • feat/upgrade_to_pro_url
  • feat/lang
  • bugfix/require-interface
  • bugfix/require-once-error
  • feature/activation-hooks
  • feature/template-loader
  • feature/template-renderer
  • feature/plugin-activation
  • feature/hookable-object
  • feature/builder-pattern
  • 2.1.2
  • 2.1.1
  • 2.1.0
  • 2.0.0
  • 2.0.0-beta1
  • 1.4.4
  • 1.4.3
  • 1.4.2
  • 1.4.1
  • 1.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1
  • 1.0
32 results

AbstractPlugin.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();
    }