PHP Класс VersionPress\Utils\RequirementsChecker

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
$compatiblePlugins string[]
$incompatiblePlugins

Открытые методы

Метод Описание
__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 ( )

Приватные методы

Метод Описание
countEntities ( )
testComposerJson ( )
testDirectoryLayout ( )
testExternalPlugins ( ) : integer
tryAccessControlFiles ( )
tryGit ( ) : string
tryRunProcess ( )
tryWrite ( )

Описание методов

__construct() публичный Метод

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() публичный Метод

Returns list of requirements and their fulfillment
public getRequirements ( ) : array
Результат array

gitMatchesMinimumRequiredVersion() публичный статический Метод

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
Результат boolean

isEverythingFulfilled() публичный Метод

isWithoutCriticalErrors() публичный Метод

Описание свойств

$compatiblePlugins публичное статическое свойство

public static string[] $compatiblePlugins
Результат string[]

$incompatiblePlugins публичное статическое свойство

public static $incompatiblePlugins