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
magento2-base
dev
tests
functional
lib
Magento
Mtf
Util
Command
Locales.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Mtf\Util\Command
;
7
8
use Magento\Mtf\Util\Protocol\CurlInterface;
9
use
Magento\Mtf\Util\Protocol\CurlTransport
;
10
14
class
Locales
15
{
19
const
TYPE_ALL
=
'all'
;
20
24
const
TYPE_DEPLOYED
=
'deployed'
;
25
29
const
URL
=
'dev/tests/functional/utils/locales.php'
;
30
36
private
$transport;
37
41
public
function
__construct
(CurlTransport $transport)
42
{
43
$this->transport = $transport;
44
}
45
52
public
function
getList
(
$type
= self::TYPE_ALL)
53
{
54
$url
= $_ENV[
'app_frontend_url'
] . self::URL .
'?type='
.
$type
;
55
$curl = $this->transport;
56
$curl->write(
$url
, [], CurlInterface::GET);
57
$result
= $curl->read();
58
$curl->close();
59
60
return
explode(
'|'
,
$result
);
61
}
62
}
$result
$result
Definition:
product_configurable_not_available_rollback.php:26
Magento\Mtf\Util\Command\Locales\TYPE_ALL
const TYPE_ALL
Definition:
Locales.php:19
$url
$url
Definition:
query_redirect.php:14
Magento\Mtf\Util\Command
Magento\Mtf\Util\Protocol\CurlTransport
Definition:
BackendDecorator.php:7
$type
$type
Definition:
item.phtml:13
Magento\Mtf\Util\Command\Locales\URL
const URL
Definition:
Locales.php:29
Magento\Mtf\Util\Command\Locales\TYPE_DEPLOYED
const TYPE_DEPLOYED
Definition:
Locales.php:24
Magento\Mtf\Util\Command\Locales\getList
getList($type=self::TYPE_ALL)
Definition:
Locales.php:52
Magento\Mtf\Util\Command\Locales
Definition:
Locales.php:14
Magento\Mtf\Util\Command\Locales\__construct
__construct(CurlTransport $transport)
Definition:
Locales.php:41