Procedural File: pnuserapi.php
Source Location: /HitCount/pnuserapi.php
Page Details:
Zikula Application Framework
Tags:
hitcount_userapi_get [line 19]
mixed hitcount_userapi_get(
$args['modname'] $args, $args['objectid'] 1)
|
|
get a hitcount for a specific item
Tags:
Parameters
| $args['objectid'] |
1 |
ID of the item this hitcount is for |
| $args['modname'] |
$args |
name of the module this hitcount is for |
hitcount_userapi_gethits [line 54]
array hitcount_userapi_gethits(
$args['modname'] $args, $args['itemids'] 1)
|
|
get a hitcount for a list of items
Tags:
Parameters
| $args['itemids'] |
1 |
array of item IDs |
| $args['modname'] |
$args |
name of the module you want items from |
hitcount_userapi_getmodules [line 158]
array hitcount_userapi_getmodules(
$args)
|
|
get the list of modules for which we're counting items
Tags:
Parameters
hitcount_userapi_leftjoin [line 212]
array('table' hitcount_userapi_leftjoin(
$args['modname'] $args, $args['modid'] 1, $args['itemids'] 2)
|
|
return the field names and correct values for joining on hitcount table example : SELECT ..., $moduleid, $itemid, $hits,...
FROM ... LEFT JOIN $table ON $field = <name of itemid field> WHERE ... AND $hits > 1000 AND $where
Tags:
Parameters
| $args['modid'] |
1 |
ID of the module you want items from |
| $args['itemids'] |
2 |
optional array of itemids that we are selecting on |
| $args['modname'] |
$args |
name of the module you want items from, or |
hitcount_userapi_tophits [line 104]
array hitcount_userapi_tophits(
$args['modname'] $args, $args['numitems'] 1, $args['startnum'] 2)
|
|
get the list of items with top N hits for a module
Tags:
Parameters
| $args['numitems'] |
1 |
number of items to return |
| $args['startnum'] |
2 |
start at this number (1-based) |
| $args['modname'] |
$args |
name of the module you want items from |