Add MS Office 2021 editions
This commit is contained in:
parent
7ac94fbbbe
commit
c74cc4dd20
2 changed files with 34 additions and 0 deletions
17
modules/MSOffice2021.php
Normal file
17
modules/MSOffice2021.php
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class MSOffice2021 extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Microsoft', 'Office 2021', 'https://docs.microsoft.com/en-us/officeupdates/update-history-office-2021#retail-versions-of-office-2021');
|
||||||
|
$this->patch->setBranch('Retail');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://docs.microsoft.com/en-us/officeupdates/update-history-office-2021')) {
|
||||||
|
$this->str_crop('retail-versions-of-office-2021', '</table>');
|
||||||
|
return $this->parse('/Version ([\d]+ \(Build [\d\.]+\))/');
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
17
modules/MSOffice2021VL.php
Normal file
17
modules/MSOffice2021VL.php
Normal file
|
|
@ -0,0 +1,17 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
class MSOffice2021VL extends PatchBase {
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct('Microsoft', 'Office 2021', 'https://docs.microsoft.com/en-us/officeupdates/update-history-office-2021#volume-licensed-versions-of-office-ltsc-2021');
|
||||||
|
$this->patch->setBranch('Volume License');
|
||||||
|
}
|
||||||
|
function check() : bool {
|
||||||
|
if ($this->fetch('https://docs.microsoft.com/en-us/officeupdates/update-history-office-2021')) {
|
||||||
|
$this->str_crop('volume-licensed-versions-of-office-ltsc-2021', '</table>');
|
||||||
|
return $this->parse('/Version ([\d]+ \(Build [\d\.]+\))/');
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue