@@ 127-132 (lines=6) @@ | ||
124 | ||
125 | list($query_args, $where_params) = $this->mapOrderbyInputArgs($query_args, $where_params, 'DTT_ID'); |
|
126 | ||
127 | if (! empty($this->args['where']['upcoming'])) { |
|
128 | $where_params['DTT_EVT_start'] = array( |
|
129 | '>', |
|
130 | EEM_Datetime::instance()->current_time_for_query('DTT_EVT_start') |
|
131 | ); |
|
132 | } |
|
133 | ||
134 | if (! empty($this->args['where']['active'])) { |
|
135 | $where_params['DTT_EVT_start'] = array( |
|
@@ 145-150 (lines=6) @@ | ||
142 | ); |
|
143 | } |
|
144 | ||
145 | if (! empty($this->args['where']['expired'])) { |
|
146 | $where_params['DTT_EVT_end'] = array( |
|
147 | '<', |
|
148 | EEM_Datetime::instance()->current_time_for_query('DTT_EVT_end') |
|
149 | ); |
|
150 | } |
|
151 | ||
152 | $query_args[] = $where_params; |
|
153 |