src/log4php/configurators/LoggerConfiguratorDefault.php
private function setOptions($object, $options) {
		foreach($options as $name => $value) {
			$setter = "set$name";
			if (method_exists($object, $setter)) {
				$object->$setter($value);
			} else {
				$class = get_class($object);
				$this->warn("Nonexistant option [$name] specified on [$class]. Skipping.");
			}
		}
	}
private function setOptions($object, $options) {
		foreach($options as $name => $value) {
			$setter = "set$name";
			if (method_exists($object, $setter)) {
				$object->$setter($value);
			} else {
				$class = get_class($object);
				$this->warn("Nonexistant option [$name] specified on [$class]. Skipping.");
			}
		}
	}
Helper method which applies given options to an object which has setters
for these options (such as appenders, layouts, etc.).

For example, if options are:
<code>
array(
'file' => '/tmp/myfile.log',
'append' => true
)
</code>

This method will call:
<code>
$object->setFile('/tmp/myfile.log')
$object->setAppend(true)
</code>

If required setters do not exist, it will produce a warning.

@param mixed $object The object to configure.
@param unknown_type $options