Loading...
 
Skip to main content

Architecture / Installation


tracker data retrieval

I am new to tikiwiki but not to wiki's, sql, dbs & programming. The tracker feature is great but how do I get at tracker data directly, what I mean is where is it in the tiki db ???? I've had some trouble navigating the doc to find info about this any help greatly appreciated.

Thanks
Tricia

I had to do this last week, so I look through the database and found the following. There are mostly two tables that are used:

tiki_tracker_items - one record for each row in the tracker
tiki_tracker_item_fields - one record for each field and row in the tracker.

I used the following to query them:

select a.itemId from tiki_tracker_items a,tiki_tracker_item_fields b where a.itemId = b.itemId and b.fieldId = ? and a.trackerId = ? and b.value = ?;

select value from tiki_tracker_item_fields where itemId = ? and fieldId = ?;

I wrote a plugin that checks whether they've paid based upon a field id and tracker id. I'm attaching the code for that, I've removed the actual paypal button. It provides an example of how to look data up in a tracker.