| @@ 85-92 (lines=8) @@ | ||
| 82 | ||
| 83 | $attributeParameters = $this->getAttributeParameters($key); |
|
| 84 | $isStandard = true; |
|
| 85 | if (empty($attributeParameters)) { |
|
| 86 | $attributeParameters = array( |
|
| 87 | 'name' => $key, |
|
| 88 | 'regex' => '/\S*/i', |
|
| 89 | 'valueType' => Attribute::CS_STRING |
|
| 90 | ); |
|
| 91 | $isStandard = false; |
|
| 92 | } |
|
| 93 | ||
| 94 | $this->attributes[$key] = new Attribute( |
|
| 95 | $key, |
|
| @@ 192-199 (lines=8) @@ | ||
| 189 | $attribute->getName() |
|
| 190 | ); |
|
| 191 | $isStandard = true; |
|
| 192 | if (empty($attributeParameters)) { |
|
| 193 | $attributeParameters = array( |
|
| 194 | 'name' => $attribute->getName(), |
|
| 195 | 'regex' => '/\S*/i', |
|
| 196 | 'valueType' => Attribute::CS_STRING |
|
| 197 | ); |
|
| 198 | $isStandard = false; |
|
| 199 | } |
|
| 200 | ||
| 201 | $attribute->setType($attributeParameters['valueType']); |
|
| 202 | $attribute->setIsStandard($isStandard); |
|