Метод | Описание | |
---|---|---|
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 |
public static get_apiversion ( ) : integer | ||
Результат | integer | The revision in which the most recent API change took place |
public static get_dbversion ( ) : integer | ||
Результат | integer | The revision in which the most recent database change took place |
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 |
public static get_habariversion ( ) : string | ||
Результат | string | A version_compare()-compatible string of this version of Habari |
public static requires_upgrade ( ) : boolean | ||
Результат | boolean | True if an update is needed |
public static save_dbversion ( ) |