@@ 127-135 (lines=9) @@ | ||
124 | $indexXml->addAttribute('flags', implode(',', $index['flags'])); |
|
125 | } |
|
126 | ||
127 | if ($index['options']) { |
|
128 | $optionsXml = $indexXml->addChild('options'); |
|
129 | ||
130 | foreach ($index['options'] as $key => $value) { |
|
131 | $optionXml = $optionsXml->addChild('option', $value); |
|
132 | ||
133 | $optionXml->addAttribute('name', $key); |
|
134 | } |
|
135 | } |
|
136 | } |
|
137 | } |
|
138 | ||
@@ 152-160 (lines=9) @@ | ||
149 | $uniqueConstraintXml->addAttribute('flags', implode(',', $constraint['flags'])); |
|
150 | } |
|
151 | ||
152 | if ($constraint['options']) { |
|
153 | $optionsXml = $uniqueConstraintXml->addChild('options'); |
|
154 | ||
155 | foreach ($constraint['options'] as $key => $value) { |
|
156 | $optionXml = $optionsXml->addChild('option', $value); |
|
157 | ||
158 | $optionXml->addAttribute('name', $key); |
|
159 | } |
|
160 | } |
|
161 | } |
|
162 | } |
|
163 |