Source for file pnuser.php
Documentation is available at pnuser.php
* Zikula Application Framework
* @copyright (c) 2002, Zikula Development Team
* @link http://www.zikula.org
* @version $Id: pnuser.php 24342 2008-06-06 12:03:14Z markwest $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @package Zikula_Value_Addons
* the main user function (nothing interesting here - might be removed)
foreach ($modlist as $modid => $numitems) {
$moditem['name'] = $modinfo['name'];
$moditem['numitems'] = $numitems;
$moditem['link'] = pnModURL($modinfo['name'],'user','main');
$moditem['tophits'] = pnModAPIFunc('hitcount','user','tophits', array('modname' => $modinfo['name']));
$pnRender->assign('moditems', $moditems);
return $pnRender->fetch('hitcount_user_main.htm');
* add a hit for a specific item, and display the hitcount (= display hook)
* (use pnVarSetCached('Hooks.hitcount','save', 1) to tell hitcount *not*
* to display the hit count, but to save it in 'Hooks.hitcount', 'value')
* @param $args['objectid'] ID of the item this hitcount is for
* @param $args['extrainfo'] not particularly relevant here
* @return string output with hitcount information
$hitcount = pnModAPIFunc('hitcount', 'admin', 'update', $args);
// if (isset($hitcount)) {
// Display current hitcount or set the cached variable
// if (!pnVaris_cached('Hooks.hitcount','save') ||
// pnVarGetCached('Hooks.hitcount','save') == false ) {
// return '(' . $hitcount . ' ' . pnML('Reads') . ')';
// pnVarSetCached('Hooks.hitcount','value',$hitcount);
|