Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Js.php
Go to the documentation of this file.
1 <?php
12 namespace Magento\Backend\Helper;
13 
18 class Js
19 {
38  public function decodeGridSerializedInput($encoded)
39  {
40  $isSimplified = false === strpos($encoded, '=');
41  $result = [];
42  parse_str($encoded, $decoded);
43  foreach ($decoded as $key => $value) {
44  if (is_numeric($key)) {
45  if ($isSimplified) {
46  $result[] = $key;
47  } else {
48  $result[$key] = null;
49  parse_str(base64_decode($value), $result[$key]);
50  }
51  }
52  }
53  return $result;
54  }
55 }
decodeGridSerializedInput($encoded)
Definition: Js.php:38
$value
Definition: gender.phtml:16