PHP Class VersionPress\Utils\RequirementsChecker

Afficher le fichier Open project: versionpress/versionpress Class Usage Examples

Méthodes publiques

Свойство Type Description
$compatiblePlugins string[]
$incompatiblePlugins

Méthodes publiques

Méthode Description
__construct ( Database $database, DbSchemaInfo $schema, string $checkScope = RequirementsChecker::SITE ) RequirementsChecker constructor.
getRequirements ( ) : array Returns list of requirements and their fulfillment
gitMatchesMinimumRequiredVersion ( string $gitVersion, string $minimumRequiredVersion = null ) : boolean Returns true if git version matches the minimum required version. If minimum required version is not given, RequirementsChecker::GIT_MINIMUM_REQUIRED_VERSION is used by default.
isEverythingFulfilled ( )
isWithoutCriticalErrors ( )

Private Methods

Méthode Description
countEntities ( )
testComposerJson ( )
testDirectoryLayout ( )
testExternalPlugins ( ) : integer
tryAccessControlFiles ( )
tryGit ( ) : string
tryRunProcess ( )
tryWrite ( )

Method Details

__construct() public méthode

RequirementsChecker constructor.
public __construct ( Database $database, DbSchemaInfo $schema, string $checkScope = RequirementsChecker::SITE )
$database VersionPress\Database\Database
$schema VersionPress\Database\DbSchemaInfo
$checkScope string determines if all VersionPress requirements need to be fullfilled or just some of them. Possible values are RequirementsChecker::SITE or RequirementsChecker::ENVIRONMENT Default value is RequirementsChecker::SITE which means that all requirements need to be matched. RequirementsChecker::ENVIRONMENT checks only requirements related to "runtime" environment.

getRequirements() public méthode

Returns list of requirements and their fulfillment
public getRequirements ( ) : array
Résultat array

gitMatchesMinimumRequiredVersion() public static méthode

Returns true if git version matches the minimum required version. If minimum required version is not given, RequirementsChecker::GIT_MINIMUM_REQUIRED_VERSION is used by default.
public static gitMatchesMinimumRequiredVersion ( string $gitVersion, string $minimumRequiredVersion = null ) : boolean
$gitVersion string
$minimumRequiredVersion string
Résultat boolean

isEverythingFulfilled() public méthode

isWithoutCriticalErrors() public méthode

Property Details

$compatiblePlugins public_oe static_oe property

public static string[] $compatiblePlugins
Résultat string[]

$incompatiblePlugins public_oe static_oe property

public static $incompatiblePlugins