+ join(' AND ',
+ map { my $conditionname = $_->[0];
+ my $sql = $_->[1];
+ "( cond_$conditionname.conditionname IS NULL OR $sql )";
+ }
+ $class->_where_conditions( $eventtable, %options )
+ );
+}
+
+sub _where_conditions {
+ my ( $class, $eventtable, %options ) = @_;
+