7
7
namespace Magento \Backend \Block \Widget \Grid \Massaction ;
8
8
9
9
use Magento \Backend \Block \Widget \Grid \Massaction \VisibilityCheckerInterface as VisibilityChecker ;
10
- use Magento \Framework \DataObject ;
11
10
use Magento \Framework \Data \Collection \AbstractDb ;
11
+ use Magento \Framework \DataObject ;
12
12
13
13
/**
14
14
* Grid widget massaction block
@@ -53,7 +53,7 @@ public function __construct(
53
53
}
54
54
55
55
/**
56
- * @return void
56
+ * @inheritdoc
57
57
*/
58
58
protected function _construct ()
59
59
{
@@ -218,6 +218,7 @@ public function getGridJsObjectName()
218
218
* Retrieve JSON string of selected checkboxes
219
219
*
220
220
* @return string
221
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
221
222
*/
222
223
public function getSelectedJson ()
223
224
{
@@ -232,6 +233,7 @@ public function getSelectedJson()
232
233
* Retrieve array of selected checkboxes
233
234
*
234
235
* @return string[]
236
+ * @SuppressWarnings(PHPMD.RequestAwareBlockMethod)
235
237
*/
236
238
public function getSelected ()
237
239
{
@@ -253,6 +255,8 @@ public function getApplyButtonHtml()
253
255
}
254
256
255
257
/**
258
+ * Get mass action javascript code.
259
+ *
256
260
* @return string
257
261
*/
258
262
public function getJavaScript ()
@@ -269,6 +273,8 @@ public function getJavaScript()
269
273
}
270
274
271
275
/**
276
+ * Get grid ids in JSON format.
277
+ *
272
278
* @return string
273
279
*/
274
280
public function getGridIdsJson ()
@@ -278,7 +284,7 @@ public function getGridIdsJson()
278
284
}
279
285
/** @var \Magento\Framework\Data\Collection $allIdsCollection */
280
286
$ allIdsCollection = clone $ this ->getParentBlock ()->getCollection ();
281
-
287
+
282
288
if ($ this ->getMassactionIdField ()) {
283
289
$ massActionIdField = $ this ->getMassactionIdField ();
284
290
} else {
@@ -289,7 +295,7 @@ public function getGridIdsJson()
289
295
$ allIdsCollection ->getSelect ()->limit ();
290
296
$ allIdsCollection ->clear ();
291
297
}
292
-
298
+
293
299
$ gridIds = $ allIdsCollection ->setPageSize (0 )->getColumnValues ($ massActionIdField );
294
300
if (!empty ($ gridIds )) {
295
301
return join (", " , $ gridIds );
@@ -298,6 +304,8 @@ public function getGridIdsJson()
298
304
}
299
305
300
306
/**
307
+ * Get Html id.
308
+ *
301
309
* @return string
302
310
*/
303
311
public function getHtmlId ()
0 commit comments