dmBridge PHP API
DMBridgeVersion Class Reference

Static Public Member Functions

Data Fields


Detailed Description


Member Function Documentation

static DMBridgeVersion::getCurrentDmBridgeVersionSequence ( DMHTTPRequest req) [static]

Used to compare against the current version on the UNLV Libraries web server, for automatic notification of new versions in the control panel.

Parameters:
DMHTTPRequestreq Disposable DMHTTPRequest, required for dependency injection
Returns:
int

Definition at line 87 of file DMBridgeVersion.php.

static DMBridgeVersion::getDmBridgeVersion ( ) [static]

Retrieves the software version from VERSION.txt, which is created automatically by the packaging tool.

Returns:
string

Definition at line 60 of file DMBridgeVersion.php.

Referenced by DMControlPanelTemplateHelper::getHtmlVersionDetail(), and DMConfigXML::save().

static DMBridgeVersion::getDmBridgeVersionSequence ( ) [static]

Will increment by 1 with each subsequent release.

Returns:
int
See also:
getCurrentDmBridgeVersionSequence()

Definition at line 72 of file DMBridgeVersion.php.

Referenced by DMModuleManager::setModuleEnabled().

static DMBridgeVersion::getHTTPAPIVersions ( ) [static]
Returns:
array Array of integers representing all available versions of the HTTP API.

Definition at line 43 of file DMBridgeVersion.php.

static DMBridgeVersion::getLatestHTTPAPIVersion ( ) [static]
Returns:
int The latest available HTTP API version.

Definition at line 50 of file DMBridgeVersion.php.

Referenced by DMHTTPResponseFactory::getTransformer(), and DMObjectQuery::getURI().

static DMBridgeVersion::isNewerDmBridgeVersionAvailable ( DMHTTPRequest req) [static]
Parameters:
DMHTTPRequestreq Disposable DMHTTPRequest, required for dependency injection
Returns:
Boolean

Definition at line 99 of file DMBridgeVersion.php.

Referenced by DMControlPanelTemplateHelper::getHtmlVersionDetail().


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables