TYPO3 CMS  TYPO3_6-2
AbstractWriter.php
Go to the documentation of this file.
1 <?php
3 
22 
29  public function __construct(array $options = array()) {
30  foreach ($options as $optionKey => $optionValue) {
31  $methodName = 'set' . ucfirst($optionKey);
32  if (method_exists($this, $methodName)) {
33  $this->{$methodName}($optionValue);
34  } else {
35  throw new \InvalidArgumentException('Invalid log writer option "' . $optionKey . '" for log writer of type "' . get_class($this) . '"', 1321696152);
36  }
37  }
38  }
39 
40 }