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-reports
Model
Item.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Reports\Model
;
7
12
class
Item
extends
\Magento\Framework\DataObject
13
{
17
protected
$_isEmpty
=
false
;
18
22
protected
$_children
= [];
23
31
public
function
setIsEmpty
($flag =
true
)
32
{
33
$this->_isEmpty = $flag;
34
return
$this;
35
}
36
44
public
function
getIsEmpty
()
45
{
46
return
$this->_isEmpty
;
47
}
48
52
public
function
hasIsEmpty
()
53
{
54
}
55
62
public
function
getChildren
()
63
{
64
return
$this->_children
;
65
}
66
74
public
function
setChildren
(
$children
)
75
{
76
$this->_children =
$children
;
77
return
$this;
78
}
79
85
public
function
hasChildren
()
86
{
87
return
count($this->_children) > 0 ? true :
false
;
88
}
89
96
public
function
addChild
($child)
97
{
98
$this->_children[] = $child;
99
return
$this;
100
}
101
}
Magento\Reports\Model\Item\addChild
addChild($child)
Definition:
Item.php:96
Magento\Reports\Model\Item\setChildren
setChildren($children)
Definition:
Item.php:74
Magento\Reports\Model\Item\getChildren
getChildren()
Definition:
Item.php:62
Magento\Reports\Model
Magento\Framework\DataObject
Definition:
DataObject.php:15
Magento\Reports\Model\Item\$_isEmpty
$_isEmpty
Definition:
Item.php:17
Magento\Reports\Model\Item\hasChildren
hasChildren()
Definition:
Item.php:85
Magento\Reports\Model\Item\getIsEmpty
getIsEmpty()
Definition:
Item.php:44
Magento\Reports\Model\Item\hasIsEmpty
hasIsEmpty()
Definition:
Item.php:52
Magento\Reports\Model\Item
Definition:
Item.php:12
$children
$children
Definition:
actions.phtml:11
Magento\Reports\Model\Item\$_children
$_children
Definition:
Item.php:22
Magento\Reports\Model\Item\setIsEmpty
setIsEmpty($flag=true)
Definition:
Item.php:31