Source for file pnuserapi.php
Documentation is available at pnuserapi.php
* Zikula Application Framework
* @copyright Robert Gasch
* @link http://www.zikula.org
* @version $Id: pnuser.php 22343 2007-07-06 14:57:30Z rgasch $
* @license GNU/GPL - http://www.gnu.org/copyleft/gpl.html
* @author Robert Gasch rgasch@gmail.com
* get the roor category for a user
$returnCategory = isset ($args['returnCategory']) ? $args['returnCategory'] : false;
$returnField = isset ($args['returnField']) ? $args['returnField'] : 'id';
$userRoot = pnModGetVar ('Categories', 'userrootcat', 0);
$thisUserRootCatPath = $userRoot . '/' . $userCatName;
return $thisUserRootCat[$returnField];
* get all categories for a user
$args['returnCategory'] = 1;
$relative = (isset ($args['relative']) ? $args['relative'] : false);
* get the username associated with a category
$uid = isset ($args['uid']) && $args['uid'] ? $args['uid'] : pnUserGetVar('uid');
$userCatName = "$uname [$uid]";
|