| @@ 9-19 (lines=11) @@ | ||
| 6 | ||
| 7 | class RegexExclude extends RegexInclude |
|
| 8 | { |
|
| 9 | public function filter(Event $event) |
|
| 10 | { |
|
| 11 | return ( |
|
| 12 | // include this event if filtering is off... |
|
| 13 | $this->isEnabled() === false || |
|
| 14 | !( |
|
| 15 | !empty($this->getPattern()) && |
|
| 16 | preg_match('%' . $this->getPattern() . '%', $event->getProperty('SUMMARY')) |
|
| 17 | ) |
|
| 18 | ); |
|
| 19 | } |
|
| 20 | } |
|
| 21 | ||
| @@ 28-38 (lines=11) @@ | ||
| 25 | return $this->pattern; |
|
| 26 | } |
|
| 27 | ||
| 28 | public function filter(Event $event) |
|
| 29 | { |
|
| 30 | return ( |
|
| 31 | // include this event if filtering is off... |
|
| 32 | $this->isEnabled() === false || |
|
| 33 | ( |
|
| 34 | !empty($this->getPattern()) && |
|
| 35 | preg_match('%' . $this->getPattern() . '%', $event->getProperty('SUMMARY')) |
|
| 36 | ) |
|
| 37 | ); |
|
| 38 | } |
|
| 39 | } |
|
| 40 | ||