Changeset 110 for trunk/XJConf
- Timestamp:
- 10/19/07 00:00:36 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/XJConf/converters/AbstractObjectValueConverter.php
r103 r110 120 120 if ($class->hasMethod($child->getSetterMethod()) == true) { 121 121 $method = $class->getMethod($child->getSetterMethod()); 122 } elseif ($class->hasMethod($child->getKey()) == true) { 123 $method = $class->getMethod($child->getKey()); 122 124 } elseif ($class->hasMethod('__set') == true) { 123 125 $method = $class->getMethod('__set'); … … 129 131 } 130 132 131 throw new ValueConversionException('Could not add attribute "' . $child->getKey() . '" to "' . $this->getType() . '" using "' . $child->getSetterMethod() . '()" or "__set()" or public property "' . $child->getKey() . '", no such method defined.');133 throw new ValueConversionException('Could not add child "' . $child->getKey() . '" to "' . $this->getType() . '" using "' . $child->getSetterMethod() . '()" or "' . $child->getKey() . '" or "__set()" or public property "' . $child->getKey() . '", no such method defined.'); 132 134 } else { 133 throw new ValueConversionException('Could not add attribute "' . $child->getKey() . '" to "' . $this->getType() . '" using "' . $child->getSetterMethod() . '()" or "__set()" or public property "' . $child->getKey() . '", no such method defined.');135 throw new ValueConversionException('Could not add child "' . $child->getKey() . '" to "' . $this->getType() . '" using "' . $child->getSetterMethod() . '()" or "' . $child->getKey() . '" or "__set()" or public property "' . $child->getKey() . '", no such method defined.'); 134 136 } 135 137 … … 140 142 } 141 143 } catch (ReflectionException $re) { 142 throw new ValueConversionException('Could not add child "' . $child->getKey() . '" to "' . $this->getType() . '" using "' . $child->getSetterMethod() . '()" or " __set()" or public property "' . $child->getKey() . '", exception message: "' . $re->getMessage() . '".');144 throw new ValueConversionException('Could not add child "' . $child->getKey() . '" to "' . $this->getType() . '" using "' . $child->getSetterMethod() . '()" or "' . $child->getKey() . '" or "__set()" or public property "' . $child->getKey() . '", exception message: "' . $re->getMessage() . '".'); 143 145 } 144 146 }
