1
andersa
What variable names are available in getVar()?
  • 2004/7/12 7:27

  • andersa

  • Just popping in

  • Posts: 45

  • Since: 2004/5/27


I was trying to get the group names for the group a particular user was a member of and I was given this chunk of code: :)
Quote:
$member_handler =& xoops_gethandler('member');
$groups = $member_handler->getGroupsByUser($xoopsUser->getVar('uid'),true);
echo 'You are in the following groups:<br />';
foreach ($groups as $group) {
echo $group->getVar('name') . '<br />';
}


So my question is, how do I know which variable are available in the getVar() call?

2
Mithrandir
Re: What variable names are available in getVar()?

variables available with getVar() are initiated in the class constructor with initVar()

A visual representation of some core classes

Login

Who's Online

116 user(s) are online (80 user(s) are browsing Support Forums)


Members: 0


Guests: 116


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits