mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 12:11:19 +00:00
add methods majorVersion(), minorVersion() and subminorVersion()
This commit is contained in:
parent
fdd2e3ab37
commit
c225350fa7
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user