Changeset 88
- Timestamp:
- 02/08/07 21:50:09 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/XJConf/converters/StaticClassValueConverter.php
r77 r88 3 3 * Class to convert a value to an object using the constructor of the object. 4 4 * 5 * @author Stephan Schmidt <stephan.schmidt@schlund.de> 5 * @author Stephan Schmidt <stephan.schmidt@schlund.de> 6 * @author Frank Kleine <mikey@xjconf.net> 7 * @package XJConf 8 * @subpackage converters 6 9 */ 7 10 XJConfLoader::load('converters.ValueConverter', … … 43 46 { 44 47 if (class_exists($this->className) == false) { 45 throw new ValueConversionException('Class "' . $this->className . '" does not exist.');46 }48 throw new ValueConversionException('Class "' . $this->className . '" does not exist.'); 49 } 47 50 48 51 if ($def instanceof TagDefinition) { … … 112 115 throw new ValueConversionException('Could not add child "' . $child->getKey() . '" to "' . $this->getType() . '" using "' . $child->getSetterMethod() . '()" as the method is not static.'); 113 116 } 114 $method->invoke( $instance, $child->getConvertedValue());117 $method->invoke(null, $child->getConvertedValue()); 115 118 } catch (ReflectionException $re) { 116 119 throw new ValueConversionException('Could not add child "' . $child->getKey() . '" to "' . $this->getType() . '" using "' . $child->getSetterMethod() . '()", exception message: "' . $re->getMessage() . '".');
