ocPortal Developer's Guide: Version information
» Return to ContentsThe sources/version.php file is not the largest of source code files, but it does contain the whole identity of the portal
sources/version.php
Global_functions_version.php
Function summary
| integer | ocp_version () |
| string | ocp_version_minor () |
| float | ocp_version_number () |
| integer | ocp_version_time () |
| integer | ocp_version_time_major () |
integer ocp_version()
Get the major version of your installation.
Parameters…
Returns…
| Description | The major version number of your installation |
|---|---|
| Type | integer |
string ocp_version_minor()
Get the minor/patch version of your installation. This changes with each release, including bug fix releases. It generally consists of 'a' or 'a.b', where 'a' increments represent major changes and 'b' increments represent tiny changes or alpha/beta/RC numbering.
Parameters…
Returns…
| Description | The minor/patch version number of your installation (e.g. 0.1 or 1.1 or RC1 or 1 RC1) |
|---|---|
| Type | string |
float ocp_version_number()
Get the general version number of your installation (incorporates major and minor verson number).
Parameters…
Returns…
| Description | The general version number of your installation |
|---|---|
| Type | float |
integer ocp_version_time()
Get the timestamp at which this version was released.
Parameters…
Returns…
| Description | The timestamp at which this version was released. |
|---|---|
| Type | integer |
integer ocp_version_time_major()
Get the timestamp at which this MAJOR version was released.
Parameters…
Returns…
| Description | The timestamp at which this MAJOR version was released. |
|---|---|
| Type | integer |
sources/version2.php
Global_functions_version2.php
Function summary
| tempcode | get_future_version_information () |
tempcode get_future_version_information()
Get information about new versions of ocPortal (or more accurately, what's wrong with this version).
Parameters…
Returns…
| Description | Information about the installed ocPortal version |
|---|---|
| Type | tempcode |




0 reviews: Unrated (average)
There have been no comments yet