Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
framework
OsInfo.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Framework
;
7
11
class
OsInfo
12
{
18
protected
$os
;
19
23
public
function
__construct
()
24
{
25
$this->os = PHP_OS;
26
}
27
33
public
function
isWindows
()
34
{
35
return
strtoupper(substr(PHP_OS, 0, 3)) ===
'WIN'
;
36
}
37
}
Magento\Framework\OsInfo\$os
$os
Definition:
OsInfo.php:18
Magento\Framework
Magento\Framework\OsInfo\__construct
__construct()
Definition:
OsInfo.php:23
Magento\Framework\OsInfo\isWindows
isWindows()
Definition:
OsInfo.php:33
Magento\Framework\OsInfo
Definition:
OsInfo.php:11