Aelia_WC_EU_VAT_Assistant_RequirementsChecks

Checks that plugin's requirements are met.

Defined (1)

The class is defined in the following location(s).

/src/lib/classes/install/aelia-wc-eu-vat-assistant-requirementscheck.php  
  1. class Aelia_WC_EU_VAT_Assistant_RequirementsChecks extends Aelia_WC_RequirementsChecks { 
  2. // @var string The namespace for the messages displayed by the class. 
  3. protected $text_domain = 'wc-aelia-eu-vat-assistant'; 
  4. // @var string The plugin for which the requirements are being checked. Change it in descendant classes. 
  5. protected $plugin_name = 'WooCommerce EU VAT Assistant'; 
  6.  
  7. // @var array An array of PHP extensions required by the plugin 
  8. protected $required_extensions = array( 
  9. 'curl',  
  10. ); 
  11.  
  12. // @var array An array of WordPress plugins (name => version) required by the plugin. 
  13. protected $required_plugins = array( 
  14. 'WooCommerce' => '2.4',  
  15. 'Aelia Foundation Classes for WooCommerce' => array( 
  16. 'version' => '1.8.6.170405',  
  17. 'extra_info' => 'You can get the plugin <a href="http://bit.ly/WC_AFC_S3">from our site</a>, free of charge.',  
  18. 'autoload' => true,  
  19. 'url' => 'http://bit.ly/WC_AFC_S3',  
  20. ),  
  21. ); 
  22.  
  23. /** 
  24. * Factory method. It MUST be copied to every descendant class, as it has to 
  25. * be compatible with PHP 5.2 and earlier, so that the class can be instantiated 
  26. * in any case and and gracefully tell the user if PHP version is insufficient. 
  27. * @return Aelia_WC_AFC_RequirementsChecks 
  28. */ 
  29. public static function factory() { 
  30. $instance = new self(); 
  31. return $instance;