Jump to content
  • 0
BTNX

Variable / Properties from Flux CP

Question

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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.