/** * Add a renderer to a hierarchy passed as parameter. * Note that hierarchy must implement getRendererMap() and setRenderer() methods. * * @param Payone_Log4php_LoggerHierarchy $repository a logger repository. * @param string $renderedClassName * @param string $renderingClassName */ public function addRenderer($renderedClassName, $renderingClassName) { $renderer = Payone_Log4php_LoggerReflectionUtils::createObject($renderingClassName); if ($renderer == null) { return; } else { $this->put($renderedClassName, $renderer); } }
public static function setPropertiesByObject($obj, $properties, $prefix) { $pSetter = new Payone_Log4php_LoggerReflectionUtils($obj); return $pSetter->setProperties($properties, $prefix); }