PHP 클래스 VersionPress\Utils\RequirementsChecker

파일 보기 프로젝트 열기: versionpress/versionpress 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$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