[ phpopencounter-Bugs-708884 ] missing document constraint in Page_impressions module
"SourceForge.net" <[email protected]> Mon, 24 Mar 2003 08:21:38 -0800
| Newsgroups | gmane.comp.web.phpopentracker.devel |
|---|---|
| Message-ID | <[email protected]> |
Bugs item #708884, was opened at 2003-03-24 08:21
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101716&aid=708884&group_id=1716
Category: Analysis Module
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: missing document constraint in Page_impressions module
Initial Comment:
Version : phpOpenTracker-1.1.3
I want to get the total number of page_requests on
particular pages for a hit counter, but when I use API
call...
phpOpenTracker::get(
array(
'client_id' => 2,
'api_call' => 'page_impressions',
'range' => 'total',
'constraints' => array(
'document' => $_SERVER['HTTP_REFERER']
)
)
);
I get page_impression for *all* docs with this client
ID. I think I have found the problem. In
phpOpenTracker_API_Plugin::_constraint() there is no
case statement for the document constraint eg...
case 'document':
$constraint .= sprintf(" AND accesslog.document_id =
'%d'", $value);
break;
RichardWall <richard (AT) the-moon (DOT) net>
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=101716&aid=708884&group_id=1716
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf