For trigger $_PLUGINS->trigger( 'onAfterUserRegistration', array( &$this, &$this, true ) ) I needed to know the contents of $this to get the rquired object properties.
I ended up doing a print_r($this) in the core file to get $this displayed.
Is there besides this any other way to check out what objects and properties a trigger variable contains?
It's the CB $user object that is being registered. Both are the same. It's duplicated for B/C.
Is there besides this any other way to check out what objects and properties a trigger variable contains?
Aside from studying the source, no. We'll be providing a more up to date developer documentation after CB 2.0 that should detail the triggers and their variables though.
Kyle (Krileon) Community Builder Team Member Before posting on forums:
Read FAQ thoroughly
+
Read our Documentation
+
Search the forums CB links:
Documentation
-
Localization
-
CB Quickstart
-
CB Paid Subscriptions
-
Add-Ons
-
Forge
-- If you are a Professional, Developer, or CB Paid Subscriptions subscriber and have a support issue please always post in your respective support forums for best results!
-- If I've missed your support post with a delay of 3 days or greater and are a Professional, Developer, or CBSubs subscriber please
send me a private message
with your thread and will reply when possible!
-- Please note I am available Monday - Friday from 8:00 AM CST to 4:00 PM CST. I am away on weekends (Saturday and Sunday) and if I've missed your post on or before a weekend after business hours please wait for the next following business day (Monday) and will get to your issue as soon as possible, thank you.
-- My role here is to provide guidance and assistance. I cannot provide custom code for each custom requirement. Please do not inquire me about custom development.