PHP Class Inpsyde\MultilingualPress\Installation\SystemChecker

Since: 3.0.0
Show file Open project: inpsyde/multilingual-press

Public Methods

Method Description
__construct ( Inpsyde\MultilingualPress\Common\PluginProperties $plugin_properties, Inpsyde\MultilingualPress\Factory\TypeFactory $type_factory ) Constructor. Sets up the properties.
check_installation ( ) : integer Checks the installation for compliance with the system requirements.
check_version ( Inpsyde\MultilingualPress\Common\Type\VersionNumber $installed_version, Inpsyde\MultilingualPress\Common\Type\VersionNumber $current_version ) : integer Checks the installed plugin version.

Private Methods

Method Description
check_multisite ( ) : void Checks if this is a multisite installation, and collects potential error messages.
check_php_version ( ) : void Checks if the current PHP version is the required version higher, and collects potential error messages.
check_plugin_activation ( ) : void Checks if MultilingualPress has been activated network-wide, and collects potential error messages.
check_wordpress_version ( ) : void Checks if the current WordPress version is the required version higher, and collects potential error messages.
is_plugins_page ( ) : boolean Checks if this is the plugins page in the (Network) Admin.

Method Details

__construct() public method

Constructor. Sets up the properties.
Since: 3.0.0
public __construct ( Inpsyde\MultilingualPress\Common\PluginProperties $plugin_properties, Inpsyde\MultilingualPress\Factory\TypeFactory $type_factory )
$plugin_properties Inpsyde\MultilingualPress\Common\PluginProperties Plugin properties object.
$type_factory Inpsyde\MultilingualPress\Factory\TypeFactory Type factory object.

check_installation() public method

Checks the installation for compliance with the system requirements.
Since: 3.0.0
public check_installation ( ) : integer
return integer The status of the installation check.

check_version() public method

Checks the installed plugin version.
Since: 3.0.0
public check_version ( Inpsyde\MultilingualPress\Common\Type\VersionNumber $installed_version, Inpsyde\MultilingualPress\Common\Type\VersionNumber $current_version ) : integer
$installed_version Inpsyde\MultilingualPress\Common\Type\VersionNumber Installed MultilingualPress version.
$current_version Inpsyde\MultilingualPress\Common\Type\VersionNumber Current MultilingualPress version.
return integer The status of the version check.