@@ 89-96 (lines=8) @@ | ||
86 | ||
87 | $attributeParameters = $this->getAttributeParameters($key); |
|
88 | $isStandard = true; |
|
89 | if (empty($attributeParameters)) { |
|
90 | $attributeParameters = array( |
|
91 | 'name' => $key, |
|
92 | 'regex' => '/\S*/i', |
|
93 | 'valueType' => Attribute::CS_STRING |
|
94 | ); |
|
95 | $isStandard = false; |
|
96 | } |
|
97 | ||
98 | $this->attributes[$key] = new Attribute( |
|
99 | $key, |
|
@@ 184-191 (lines=8) @@ | ||
181 | $attribute->getName() |
|
182 | ); |
|
183 | $isStandard = true; |
|
184 | if (empty($attributeParameters)) { |
|
185 | $attributeParameters = array( |
|
186 | 'name' => $attribute->getName(), |
|
187 | 'regex' => '/\S*/i', |
|
188 | 'valueType' => Attribute::UNKNOWN |
|
189 | ); |
|
190 | $isStandard = false; |
|
191 | } |
|
192 | ||
193 | $attribute->setType($attributeParameters['valueType']); |
|
194 | $attribute->setIsStandard($isStandard); |