PHP 클래스 Habari\Version

Base class for managing metadata about various Habari objects
파일 보기 프로젝트 열기: habari/system 1 사용 예제들

공개 메소드들

메소드 설명
get_apiversion ( ) : integer Get the API version
get_dbversion ( ) : integer Get the database version
get_git_short_hash ( String $path = null ) : String Attempt to return the shortened git hash of any path Habari can access
get_habariversion ( ) : string Get the Habari version
is_devel ( ) : boolean Determine whether this might possibly have a .git directory, based solely on the existence of a hyphen in the release version string.
requires_upgrade ( ) : boolean Determine if the database needs to be updated based on the source database version being newer than the schema last applied to the database
save_dbversion ( ) Store the current database version in the options table

메소드 상세

get_apiversion() 공개 정적인 메소드

Get the API version
public static get_apiversion ( ) : integer
리턴 integer The revision in which the most recent API change took place

get_dbversion() 공개 정적인 메소드

Get the database version
public static get_dbversion ( ) : integer
리턴 integer The revision in which the most recent database change took place

get_git_short_hash() 공개 정적인 메소드

Attempt to return the shortened git hash of any path Habari can access
public static get_git_short_hash ( String $path = null ) : String
$path String Where to check for a .git directory
리턴 String The first 7 chars of the revision hash

get_habariversion() 공개 정적인 메소드

Get the Habari version
또한 보기: version_compare
public static get_habariversion ( ) : string
리턴 string A version_compare()-compatible string of this version of Habari

is_devel() 공개 정적인 메소드

Determine whether this might possibly have a .git directory, based solely on the existence of a hyphen in the release version string.
public static is_devel ( ) : boolean
리턴 boolean True if this is a development version, false if not

requires_upgrade() 공개 정적인 메소드

Determine if the database needs to be updated based on the source database version being newer than the schema last applied to the database
public static requires_upgrade ( ) : boolean
리턴 boolean True if an update is needed

save_dbversion() 공개 정적인 메소드

Store the current database version in the options table
public static save_dbversion ( )