public function format($event) { foreach ($this->_filterValues as $configName) { $configValue = $this->_getConfigValue($this->_applicationConfiguration, $configName); if (is_null($configValue)) { continue; } if (is_array($configValue)) { foreach ($configValue as $configValueElement) { $event['message'] = str_replace($configValueElement, self::REPLACE_WITH, $event['message']); if (array_key_exists('details', $event)) { $event['details'] = str_replace($configValueElement, self::REPLACE_WITH, $event['details']); } } } else { $event['message'] = str_replace($configValue, self::REPLACE_WITH, $event['message']); if (array_key_exists('details', $event)) { $event['details'] = str_replace($configValue, self::REPLACE_WITH, $event['details']); } } } $view = new Zend_View(); foreach ($event as $key => $val) { $view->__set($key, $val); } return $view; }
public function setViewParam($property, $value) { $this->_view->__set($property, $value); return $this; }