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
module-shipping
Model
Simplexml
Element.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Shipping\Model\Simplexml
;
7
12
class
Element
extends
\Magento\Framework\Simplexml\Element
13
{
22
public
function
addAttribute
(
$name
,
$value
=
null
, $namespace =
null
)
23
{
24
if
(
$value
!==
null
) {
25
$value
= $this->
xmlentities
(
$value
);
26
}
27
parent::addAttribute(
$name
,
$value
, $namespace);
28
}
29
38
public
function
addChild
(
$name
,
$value
=
null
, $namespace =
null
)
39
{
40
if
(
$value
!==
null
) {
41
$value
= $this->
xmlentities
(
$value
);
42
}
43
return
parent::addChild(
$name
,
$value
, $namespace);
44
}
45
52
public
function
xmlentities
(
$value
=
null
)
53
{
54
$value
= str_replace(
'&'
,
'&'
,
$value
);
55
$value
= str_replace(
'&'
,
'&'
,
$value
);
56
return
$value
;
57
}
58
}
Magento\Shipping\Model\Simplexml
Definition:
Element.php:6
Magento\Shipping\Model\Simplexml\Element\addAttribute
addAttribute($name, $value=null, $namespace=null)
Definition:
Element.php:22
Magento\Shipping\Model\Simplexml\Element\xmlentities
xmlentities($value=null)
Definition:
Element.php:52
Magento\Shipping\Model\Simplexml\Element
Definition:
Element.php:12
Magento\Framework\Simplexml\Element
Definition:
Element.php:15
$value
$value
Definition:
gender.phtml:16
Magento\Shipping\Model\Simplexml\Element\addChild
addChild($name, $value=null, $namespace=null)
Definition:
Element.php:38
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14