Jump to content
  • 0

Variable / Properties from Flux CP


Question

Posted

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)

1 answer to this question

Recommended Posts

  • 0
Posted

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;

 

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...