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)
Main Page
Related Pages
+
Namespaces
Namespace List
+
Namespace Members
+
All
$
_
c
d
e
f
g
h
i
m
p
r
s
t
u
+
Functions
_
c
d
e
f
g
h
i
m
p
r
s
t
u
Variables
+
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
+
Data Fields
+
All
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Variables
$
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
+
Files
File List
+
Globals
+
All
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
+
Functions
_
c
d
e
f
g
m
o
r
s
t
v
+
Variables
$
(
_
a
b
c
d
e
f
g
h
i
j
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Pages
vendor
magento
module-user
Controller
Adminhtml
Locks
MassUnlock.php
Go to the documentation of this file.
1
<?php
7
namespace
Magento\User\Controller\Adminhtml\Locks
;
8
9
use
Magento\Framework\Controller\ResultFactory
;
10
14
class
MassUnlock
extends
\Magento\User\Controller\Adminhtml\Locks
15
{
21
public
function
execute
()
22
{
23
try
{
24
// unlock users
25
$userIds
= $this->
getRequest
()->getPost(
'unlock'
);
26
if
(
$userIds
&& is_array(
$userIds
)) {
27
$affectedUsers = $this->_objectManager
28
->get(\
Magento
\
User
\Model\
ResourceModel
\User::class)
29
->unlock(
$userIds
);
30
$this->
getMessageManager
()->addSuccess(
__
(
'Unlocked %1 user(s).'
, $affectedUsers));
31
}
32
}
catch
(\Exception $e) {
33
$this->messageManager->addError($e->getMessage());
34
}
35
37
$resultRedirect = $this->resultFactory->create(ResultFactory::TYPE_REDIRECT);
38
return
$resultRedirect->setPath(
'adminhtml/*/'
);
39
}
40
}
Magento\Catalog\Model\ResourceModel\Product
Definition:
CollectionTest.php:6
Magento\User\Controller\Adminhtml\Locks\MassUnlock
Definition:
MassUnlock.php:14
Magento\Framework\Controller\ResultFactory
Definition:
ResultFactory.php:17
__
__()
Definition:
__.php:13
$userIds
$userIds
Definition:
locked_users.php:12
Magento\Framework\App\Action\AbstractAction\getRequest
getRequest()
Definition:
AbstractAction.php:60
Magento\Backend\App\AbstractAction\getMessageManager
getMessageManager()
Definition:
AbstractAction.php:124
Magento\User\Controller\Adminhtml\User
Definition:
User.php:8
Magento\Framework\App\ActionInterface\execute
execute()
Magento\User\Controller\Adminhtml\Locks
Definition:
GridTest.php:6
Magento
Magento\User\Controller\Adminhtml\Locks
Definition:
Locks.php:12