Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
msq.php
Go to the documentation of this file.
1 <?php
8 
9 if (!function_exists('msq')) {
16  function msq($id = null)
17  {
18  if ($id and isset(MagentoSequence::$hash[$id])) {
19  return MagentoSequence::$hash[$id];
20  }
22  $sequence = $prefix . uniqid();
23  if ($id) {
24  MagentoSequence::$hash[$id] = $sequence;
25  }
26  return $sequence;
27  }
28 }
29 
30 if (!function_exists('msqs')) {
37  function msqs($id = null)
38  {
39  if ($id and isset(MagentoSequence::$suiteHash[$id])) {
40  return MagentoSequence::$suiteHash[$id];
41  }
43  $sequence = $prefix . uniqid();
44  if ($id) {
45  MagentoSequence::$suiteHash[$id] = $sequence;
46  }
47  return $sequence;
48  }
49 }
$id
Definition: fieldset.phtml:14
$prefix
Definition: name.phtml:25