Jump to content
  • 0

Variable / Properties from Flux CP


BTNX

Question


  • Group:  Members
  • Topic Count:  13
  • Topics Per Day:  0.00
  • Content Count:  55
  • Reputation:   3
  • Joined:  04/02/12
  • Last Seen:  

Hi all,

 

What is the proper way of checking the value of certain variables/properties like user ID, group level ETC.  I know each modules have access to them but I'm a bit lost to how to access them.

Dumping all available vars and object methods is an option to see what's available but even that get's confusing.  The documentations within each PHP files does help if you're trying to figure out what the code block is for but it doesnt really help when you're looking for a method/function or what ever.

 

Anyway, if you can just tell me how to access those two properties, I'm sure I can figure out the rest.  (current user's account ID and group level)

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  9
  • Topics Per Day:  0.00
  • Content Count:  70
  • Reputation:   18
  • Joined:  01/28/12
  • Last Seen:  

Will return the account level e.g. 99

$session->account->group_id

 

Will return the account id e.g. 2000000

$session->account->account_id

 

If you want to see all the properties

echo '<pre>';
var_dump($session->account);
exit;

 

Link to comment
Share on other sites

×
×
  • Create New...