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
App
Config
Element.php
Go to the documentation of this file.
1
<?php
10
namespace
Magento\Framework\App\Config
;
11
16
class
Element
extends
\Magento\Framework\Simplexml\Element
17
{
26
public
function
is
($var,
$value
=
true
)
27
{
28
$flag = $this->{$var};
29
30
if
(
$value
===
true
) {
31
$flag = strtolower((
string
)$flag);
32
if
(!empty($flag) &&
'false'
!== $flag &&
'off'
!== $flag) {
33
return
true
;
34
}
else
{
35
return
false
;
36
}
37
}
38
39
return
!empty($flag) && 0 === strcasecmp(
$value
, (
string
)$flag);
40
}
41
47
public
function
getClassName
()
48
{
49
if
($this->
class
) {
50
$model
= (string)$this->
class
;
51
}
elseif
($this->model) {
52
$model
= (string)$this->model;
53
}
else
{
54
return
false
;
55
}
56
return
$model
;
57
}
58
}
Magento\Framework\App\Config\Element
Definition:
Element.php:16
Magento\Framework\App\Config
Definition:
Base.php:9
elseif
elseif(isset( $params[ 'redirect_parent']))
Definition:
iframe.phtml:17
$model
$model
Definition:
enable_catalog_product_reindex_schedule.php:9
Magento\Framework\App\Config\Element\getClassName
getClassName()
Definition:
Element.php:47
Magento\Framework\Simplexml\Element
Definition:
Element.php:15
$value
$value
Definition:
gender.phtml:16
Magento\Framework\App\Config\Element\is
is($var, $value=true)
Definition:
Element.php:26