Typedef
Static Public Summary | ||
public |
A Moodle branch number. |
|
public |
A Moodle branch string. |
|
public |
Each released moodle build, both the weeklys and the offical updates are assigned a build number which takes the form of a DateNumber. |
|
public |
An 8-digit date representation used within a number of Moodle version identifiers. |
|
public |
An integer representing an offical Moodle release within a branch. |
|
public |
A Moodle release string. |
|
public |
A release suffix is used to indicate the release type in some Moodle version strings. |
|
public |
Moodle releases are categoriesed into one of three types: |
|
public |
A moodle version number. |
|
public |
A Moodle version string. |
Static Public
public BranchNumber: number | string source
A Moodle branch number. These are used under-the-hood to represent Moodel
branches within the Moodle code. They take the form of a (usuall) two-digit
integer number - the human-friendly branch without the period e.g. Moodle
3.5 has a branch number of 35
. The exception being Moodle 3.10 which has a
branch number of 310.
Example:
35
See:
public BranchString: string source
A Moodle branch string. These are the human-friendly major-version numbers
used throught the official Moodle documentation. They take the form of two
sets of digits separated by a period, e.g. 3.5
or 3.10
.
Example:
'3.5'
public BuildNumber: DateNumber source
Each released moodle build, both the weeklys and the offical updates are assigned a build number which takes the form of a DateNumber.
public DateNumber: string | number source
An 8-digit date representation used within a number of Moodle version identifiers. The first four digits represent the year, the next two the month and the last two the day of the month.
For example, Christmas 2018 has the date number 20181225
.
Example:
'20181225'
public ReleaseNumber: number | string source
An integer representing an offical Moodle release within a branch. The initial release of any branch has the release number 0, subsequent offical update releases then count up from there.
public ReleaseString: string source
A Moodle release string. These are the release strings Moodle's documentation describes as human friendly. They are used in the following contexts:
- The admin section of web interface
- The CLI command
admin/cli/cfg.php --name=release
- The variable
$release
inversion.php
In some contexts they're pre-fixed with the word Moodle, in others they're not.
Examples:
'3.3.6 (Build: 20180517)'
- the offical Moodle 3.3.6 release.'Moodle 3.5+ (Build: 20180614)'
- a weekly Moodle 3.5.0 release.
Example:
'3.3.6 (Build: 20180517)'
See:
public ReleaseSuffix: string source
A release suffix is used to indicate the release type in some Moodle version strings. Possible values are:
'dev'
for development releases.''
(an empty string) for official stable releases.+
for weekly updates to official stable releases.
public ReleaseType: string source
Moodle releases are categoriesed into one of three types:
- Development releases, both betas and alphas.
- Official stable releases.
- Weekly updates to official stable releases.
These three values are represented as 'development'
, 'official'
, and
'weekly'
.
public VersionNumber: string | number source
A moodle version number. These version numbers are used under-the-hood in the Moodle source code. They consist of the branch's branch date number followed by the release number, optionally followed by a period and an incremental change number.
For example, the Moodle 3.3.6 release has the version number 2017051506.00
.
The branch date number for Moodle 3.3 is 20170515
(a DateNumber),
which is then followed by the two-digit form of the release number, 06
, and
an incremental change number of 00
.
Example:
'2017051506.00'
See:
public VersionString: string source
A Moodle version string. These are the version numbers used on the Moodle download page and displayed in the footer of the Moodle admin area.
Moodle version strings generally consist of the branch string separated from
the release number by a period. The initial release for a given branch is
given the release number zero, which may be omitted. Alpha and Beta releases
have dev
appended, and weekly releases have a plus symbol appended.
For example, all the development releases of the Moodle 3.5 branch have the
version string 3.5dev
, the initial release is 3.5
, the
first update release is 3.5.1
, and all weekly releases between the
release of 3.5.1
and 3.5.2
share 3.5.1+
.
Example:
'3.5dev'
'3.5'
'3.5+'
'3.5.1'
'3.5.1+'