comparison report/ad_report.module @ 7:6aeff3329e01 ad

maj module ad 2.1rc1
author piotre
date Mon, 20 Jul 2009 13:54:40 +0000
parents 948362c2a207
children
comparison
equal deleted inserted replaced
6:b7653861e0b4 7:6aeff3329e01
1 <?php 1 <?php
2 // $Id: ad_report.module,v 1.1.2.3.2.7.2.6.2.7 2009/03/27 19:31:36 jeremy Exp $ 2 // $Id: ad_report.module,v 1.1.2.3.2.7.2.6.2.8 2009/07/03 18:37:44 jeremy Exp $
3 3
4 /** 4 /**
5 * @file 5 * @file
6 * Provides comprehensive charts and reports about advertising statistics. 6 * Provides comprehensive charts and reports about advertising statistics.
7 * 7 *
277 "a.action = 'view'", 277 "a.action = 'view'",
278 'a.date >= %d', 278 'a.date >= %d',
279 'a.date <= %d', 279 'a.date <= %d',
280 ); 280 );
281 $join = array( 281 $join = array(
282 'LEFT JOIN {term_node} t ON a.aid = t.tid', 282 'LEFT JOIN {term_node} t ON a.aid = t.nid',
283 ); 283 );
284 $args = array(implode(',', $group), $start, $end); 284 $args = array(implode(',', $group), $start, $end);
285 } 285 }
286 else { 286 else {
287 $where = array( 287 $where = array(
289 "a.action = 'view'", 289 "a.action = 'view'",
290 'a.date >= %d', 290 'a.date >= %d',
291 'a.date <= %d', 291 'a.date <= %d',
292 ); 292 );
293 $join = array( 293 $join = array(
294 'LEFT JOIN {term_node} t ON a.aid = t.tid', 294 'LEFT JOIN {term_node} t ON a.aid = t.nid',
295 ); 295 );
296 $args = array($start, $end); 296 $args = array($start, $end);
297 } 297 }
298 } 298 }
299 else { 299 else {
302 "a.action = 'view'", 302 "a.action = 'view'",
303 'a.date >= %d', 303 'a.date >= %d',
304 'a.date <= %d', 304 'a.date <= %d',
305 ); 305 );
306 $join = array( 306 $join = array(
307 'LEFT JOIN {term_node} t ON a.aid = t.tid', 307 'LEFT JOIN {term_node} t ON a.aid = t.nid',
308 ); 308 );
309 $args = array(implode(',', $group), $start, $end); 309 $args = array(implode(',', $group), $start, $end);
310 } 310 }
311 311
312 $return = module_invoke_all('adreport', $join, $where, $args, $select); 312 $return = module_invoke_all('adreport', $join, $where, $args, $select);