Static Public Member Functions | Public Attributes

Version Class Reference

List of all members.

Static Public Member Functions

static get_dbversion ()
static get_apiversion ()
static get_habariversion ()
static is_devel ()
static save_dbversion ()
static requires_upgrade ()
static get_svn_revision ()

Public Attributes

const DB_VERSION = 5097
const API_VERSION = 4955
const HABARI_VERSION = '0.8-alpha'
const HABARI_SVN_HEAD_URL = '$HeadURL: http://svn.habariproject.org/habari/trunk/htdocs/system/classes/version.php $'
const HABARI_SVN_REV = '$Revision: 5142 $'

Detailed Description

Habari Version Class

Base class for managing metadata about various Habari objects

Definition at line 13 of file version.php.


Member Function Documentation

static Version::get_apiversion (  )  [static]

Get the API version

Returns:
integer The revision in which the most recent API change took place

Definition at line 42 of file version.php.

Referenced by AdminHandler::get_sysinfo().

static Version::get_dbversion (  )  [static]

Get the database version

Returns:
integer The revision in which the most recent database change took place

Definition at line 32 of file version.php.

Referenced by AdminHandler::get_sysinfo().

static Version::get_habariversion (  )  [static]

Get the Habari version

Returns:
string A version_compare()-compatible string of this version of Habari
See also:
version_compare

Definition at line 53 of file version.php.

Referenced by AtomHandler::create_atom_wrapper(), Themes::get_all_data(), and AdminHandler::get_sysinfo().

static Version::get_svn_revision (  )  [static]

Attempt to return the checkout revision number of the source tree

Returns:
int The revision number

Definition at line 94 of file version.php.

Referenced by AdminHandler::get_sysinfo().

static Version::is_devel (  )  [static]

Determine whether this working copy or export was created from a subversion development branch

Returns:
boolean True if this is a development version, false if not

Definition at line 63 of file version.php.

Referenced by AdminHandler::get_sysinfo().

static Version::requires_upgrade (  )  [static]

Determine if the database needs to be updated based on the source database version being newer than the schema last applied to the database

Returns:
boolean True if an update is needed

Definition at line 81 of file version.php.

static Version::save_dbversion (  )  [static]

Store the current database version in the options table

Definition at line 71 of file version.php.

Referenced by InstallHandler::upgrade_db().


The documentation for this class was generated from the following file: