Merge branch 'seeddms-5.1.x' into seeddms-6.0.x

This commit is contained in:
Uwe Steinmann 2018-04-12 17:20:18 +02:00
commit 0ce5143532

View File

@ -30,6 +30,20 @@ class SeedDMS_Version {
return $this->_number;
}
function majorVersion() {
$tmp = explode('.', $this->_number, 3);
return (int) $tmp[0];
}
function minorVersion() {
$tmp = explode('.', $this->_number, 3);
return (int) $tmp[1];
}
function subminorVersion() {
$tmp = explode('.', $this->_number, 3);
return (int) $tmp[2];
}
function banner() {
return $this->_string .", ". $this->_number;
}