/** * Call all registered listeners. */ public static function clearListeners() { self::$events = array(); }