Watch
GitHub Core
Show your support for Zikula! Sign up at Github account and watch the Core project!
GitHub Modules
- internetking created topic »password problem« 25. May
- mesteele101 responded to »ERR (3): E_USER_ERROR: Smarty error: [in pagesvar:pagesitem2en line XXX]…« 25. May
- mazdev responded to »Pages 2.5.0 and updating - Page not found« 25. May
- ehdwma created topic »Hide "Register new account" and change template to 3 col« 25. May
- mesteele101 responded to »Zikula 1.3.3 - Selecting a category in Pages not working« 25. May
- mdee created topic »How to implement returnpage ?« 25. May
- nestormateo responded to »Fillters in Clip« 24. May
Zikula Blog
- Anatomy of Open Source Projects on Mar 07
- Continuous Review on Mar 01
- Not Invented Here on Feb 24
- How to Contribute Your Code at Github on Jan 13
- 10 Steps to Coding-Nirvana: Tips for Successful Module Writing on Nov 12
- Submitting Bug Report Tickets That Get Results on Aug 17
- Cozi Tricks #1: Syntax Highlighting on Aug 07
Login
API documentation - group membership
-
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Sep 28, 2005
- Posts: 29
Could anyone point me to the documentation that explains the API calls that will discover the group membership of the logged on user? The info on http://docs.postnuke.com/index.php?module=Static_Docs&func=view&f=pnapi/ch04.html doesn't appear to mention groups. -
- Rank: Team Member
- Registered: Jan 02, 2003
- Last visit: Oct 21, 2009
- Posts: 800
Code
/**
* get all of a users group memberships
* @author Mark West
* @since v1.8
* @param int args['uid'] user id
* @return mixed array of group items, or false on failure
*/
function Groups_userapi_getusergroups($args)
may help you. Do not use this to decide about a users permission!
--
"He is not dangerous, he just wants to play...." -
- Rank: Team Member
- Registered: Mar 18, 2002
- Last visit: Oct 21, 2009
- Posts: 6606
The groups module functions won't be mentioned in the originally referenced documenation since this lists CORE API's only. Groups functionality is handled by the groups module (.760+). All API compliant modules within the base package should be as well documented as the groups module since phpdoc comments are an integral part of the coding standards applied to PostNuke.
I will, shortly, run another phpdoc dump for the .76+ codebase listing all module API's.
-Mark
--
Visit My homepage and Zikula themes. -
**unknown user**
- Rank: Registered User
- Registered: Mar 16, 2002
- Last visit: Sep 28, 2005
- Posts: 29
That's useful, thanks for your contributions. I should have mentioned that the site in question is not running on the current PN - it's actually a couple of years old
. Does this make any difference, bearing mind that the site should be upgraded in the next couple of months?
-
**unknown user**
- Rank: Softmore
- Registered: Mar 16, 2002
- Last visit: Oct 21, 2009
- Posts: 395
you cant use that API call, i think its has only been implented since 760. you would have to do the SQL manuall in the function you want to use it for.
download the 760 release, and take a look at the code to see how it works -
- Rank: Team Member
- Registered: Jan 02, 2003
- Last visit: Oct 21, 2009
- Posts: 800
Or even better: Download .761
--
"He is not dangerous, he just wants to play...."
- Moderated by:
- Support
