*/ class Varien_Event_Observer_Regex extends Varien_Event_Observer { /** * Checkes the observer's event_regex against event's name * * @param Varien_Event $event * @return boolean */ public function isValidFor(Varien_Event $event) { return preg_match($this->getEventRegex(), $event->getName()); } }