[phpOpenTracker-User] changing timerange for "Current Activity" report
Daniel Kehoe <[email protected]> Tue, 30 Dec 2003 13:39:03 -0800
| Newsgroups | gmane.comp.web.phpopentracker.general |
|---|---|
| Message-ID | <[email protected]> |
phpOpenTracker has a great o-o design! Thanks, Sebastian!
That said, how do specify the timerange when I call
phpOpenTracker_API_visitors_online?
In the index.php example report, I see:
$resultSet = phpOpenTracker::get(
array(
'client_id' => $clientID,
'api_call' => 'visitors_online'
)
);
The API docs show the method
phpOpenTracker_API_Plugin::_whereTimerange
( $ start,
$ end,
$ table = 'visitors') [inherited]
but I don't know how to put it together. How about an example?
I tried this, but it doesn't work:
$resultSet = phpOpenTracker::get(
array(
'client_id' => $clientID,
'api_call' => 'visitors_online',
'start' => (time() - (24*60*60)),
'end' => time()
)
);
Thanks!
--
Daniel
[email protected]
-------------------------------------------------------
This SF.net email is sponsored by: IBM Linux Tutorials.
Become an expert in LINUX or just sharpen your skills. Sign up for IBM's
Free Linux Tutorials. Learn everything from the bash shell to sys admin.
Click now! http://ads.osdn.com/?ad_id78&alloc_id371&op=click