HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

ocPortal Developer's Guide: Version information

» Return to Contents



The 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

Return to the function index for this class Expand: View the source code to this function

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

Return to the function index for this class Expand: View the source code to this function

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

Return to the function index for this class Expand: View the source code to this function

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

Return to the function index for this class Expand: View the source code to this function

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

Return to the function index for this class Expand: View the source code to this function

sources/version2.php

Global_functions_version2.php

Function summary


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

Return to the function index for this class Expand: View the source code to this function