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-user
Model
ResourceModel
User
Collection.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\User\Model\ResourceModel\User
;
7
14
class
Collection
extends
\Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
15
{
21
protected
function
_construct
()
22
{
23
$this->
_init
(\
Magento
\
User
\Model\User::class, \
Magento
\
User
\Model\
ResourceModel
\User::class);
24
}
25
31
protected
function
_initSelect
()
32
{
33
parent::_initSelect();
34
$this->
getSelect
()->joinLeft(
35
[
'user_role'
=> $this->
getTable
(
'authorization_role'
)],
36
'main_table.user_id = user_role.user_id AND user_role.parent_id != 0'
,
37
[]
38
)->joinLeft(
39
[
'detail_role'
=> $this->
getTable
(
'authorization_role'
)],
40
'user_role.parent_id = detail_role.role_id'
,
41
[
'role_name'
]
42
);
43
}
44
}
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection\getTable
getTable($table)
Definition:
AbstractCollection.php:475
Magento\User\Model\ResourceModel\User
Definition:
Collection.php:6
Magento\User\Model\ResourceModel\User\Collection
Definition:
Collection.php:14
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection
Definition:
AbstractCollection.php:19
Magento\User\Model\ResourceModel\User
Definition:
User.php:24
Magento
Magento\User\Model\ResourceModel\User\Collection\_initSelect
_initSelect()
Definition:
Collection.php:31
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection\_init
_init($model, $resourceModel)
Definition:
AbstractCollection.php:401
Magento\User\Model\ResourceModel\User\Collection\_construct
_construct()
Definition:
Collection.php:21
Magento\Framework\Model\ResourceModel\Db\Collection\AbstractCollection\getSelect
getSelect()
Definition:
AbstractCollection.php:187