Constants

MAJOR_VERSION

MAJOR_VERSION

メジャーバージョン

MINOR_VERSION

MINOR_VERSION

マイナーバージョン

PATCH_VERSION

PATCH_VERSION

パッチバージョン

Properties

$endpoint

$endpoint : string

Type

string

$cache_path

$cache_path : string

Type

string

$schema_path

$schema_path : string

Type

string

$decoder

$decoder : \Acms\Services\Update\System\Webmozart\Json\JsonDecoder

Type

\Acms\Services\Update\System\Webmozart\Json\JsonDecoder

$validator

$validator : \Acms\Services\Update\System\Webmozart\Json\JsonValidator

Type

\Acms\Services\Update\System\Webmozart\Json\JsonValidator

$jsonString

$jsonString : string

Type

string

$data

$data : array

Type

array

$updateVersion

$updateVersion : string

Type

string

$changelogUrl

$changelogUrl : string

Type

string

$changelogArray

$changelogArray : array

Type

array

$packageUrl

$packageUrl : string

Type

string

$rootDir

$rootDir : string

Type

string

$finalCheckTime

$finalCheckTime : integer

Type

integer

Methods

__construct()

__construct(string  $endpoint,   $cache_path, string  $schema_path) 

ValidateVersion constructor.

Parameters

string $endpoint
$cache_path
string $schema_path

getUpdateVersion()

getUpdateVersion() : string

Getter: アップデートバージョン

Returns

string

getPackageUrl()

getPackageUrl() : string

Getter: アップグレードパッケージのダウンロードURL

Returns

string

getRootDir()

getRootDir() : string

Getter: アップグレードパッケージの解凍後の本体までのパスのGetter

Returns

string

getFinalCheckTime()

getFinalCheckTime() : integer

Getter: 最終チェック時間

Returns

integer

getChangelogUrl()

getChangelogUrl() : string

Getter: Changelog URL

Returns

string

getChangelogArray()

getChangelogArray() : array

Changelog

Returns

array

check()

check(string  $php_version, integer  $type = self::PATCH_VERSION) : boolean|self

バージョンアップが存在するか確認

Parameters

string $php_version
integer $type

Returns

boolean|self

checkUseCache()

checkUseCache(string  $php_version, integer  $type = self::PATCH_VERSION) : boolean

バージョンアップが存在するか確認(キャッシュ利用)

Parameters

string $php_version
integer $type

Returns

boolean

checkForUpdate()

checkForUpdate(string  $string, string  $php_version, integer  $type = self::PATCH_VERSION) : boolean|self

実際のチェックバージョン処理

Parameters

string $string
string $php_version
integer $type

Returns

boolean|self

checkPhpVersion()

checkPhpVersion(object  $packages, string  $php_version) : boolean|object

phpのバージョンチェック

Parameters

object $packages
string $php_version

Returns

boolean|object

checkAcmsVersion()

checkAcmsVersion(integer  $type = self::PATCH_VERSION) : boolean|object

a-blog cmsのバージョンチェック

Parameters

integer $type

Returns

boolean|object

isPatchVersion()

isPatchVersion(string  $version, string  $current) : boolean|object

パッチバージョンがあるか判定

Parameters

string $version
string $current

Returns

boolean|object

isMinorVersion()

isMinorVersion(string  $version, string  $current) : boolean|object

マイナーバージョンがあるか判定

Parameters

string $version
string $current

Returns

boolean|object

isMajorVersion()

isMajorVersion(string  $version, string  $current) : boolean|object

メジャーバージョンがあるか判定

Parameters

string $version
string $current

Returns

boolean|object

decode()

decode(  $string) 

JSONをバリデート & デコード

Parameters

$string

request()

request(string  $endpoint) : mixed

Request

Parameters

string $endpoint

Returns

mixed