@@ 69-82 (lines=14) @@ | ||
66 | * @param $options |
|
67 | * @param bool $multi |
|
68 | */ |
|
69 | public function addMenuTopArray($options, $multi = true) |
|
70 | { |
|
71 | if (is_array($options)) { |
|
72 | if ($multi === true) { |
|
73 | foreach ($options as $k => $v) { |
|
74 | $this->addOptionTop($k, $v); |
|
75 | } |
|
76 | } else { |
|
77 | foreach ($options as $k) { |
|
78 | $this->addOptiontop($k, $k); |
|
79 | } |
|
80 | } |
|
81 | } |
|
82 | } |
|
83 | ||
84 | /** |
|
85 | * @param $value |
|
@@ 101-114 (lines=14) @@ | ||
98 | * @param $options |
|
99 | * @param bool $multi |
|
100 | */ |
|
101 | public function addMenuTabsArray($options, $multi = true) |
|
102 | { |
|
103 | if (is_array($options)) { |
|
104 | if ($multi === true) { |
|
105 | foreach ($options as $k => $v) { |
|
106 | $this->addMenuTabsTop($k, $v); |
|
107 | } |
|
108 | } else { |
|
109 | foreach ($options as $k) { |
|
110 | $this->addMenuTabsTop($k, $k); |
|
111 | } |
|
112 | } |
|
113 | } |
|
114 | } |
|
115 | ||
116 | /** |
|
117 | * @param $value |