Please Log in or Create an account to join the conversation.
That's the group user object. It contains the data found in _groupjive_users.var1 = $row --> Is an object with ??? properties. Where can I find or list the content of $row?
Correct, that's the group object.var2 = $group --> Is that an object from the given group with all #__groupjive_groups fields as a property?
Correct, that's the CB user object.var3 = $user --> Is that an object of the involved user with all #__comprofiler fields as a property?
Correct.If that is the case, then [var2_id] --> returns the id field of the group in the #__groupjive_groups table, while [var3_id] returns the id field of the user in the #__comprofile table?
It will depend on the trigger, but in this case everything that's in _groupjive_users.But what kind of (extra) variables does the $row object give? Which extra properties can I get from $row?
The & makes it a reference variable. Reference variables can be changed using Code actions with PHP. Reference variables can be specified under the Parameters tab.What is the difference between $row and &$row which I see in some other triggers? In other words what is the meaning of & in this?
There's no functionality for that. We'll be improving trigger documentation sometime after CB 3.x when we redo them into Symfony API as we need to add some internal documentation to each trigger call so we can better explain what each is doing and what it contains.It would be nice if I could create an Auto Action that emails me all the available $row, $group, $user properties and their values after a chosen trigger? Then I can run that Auto Action once on different triggers and get more grip on what kind of variables I can use on those Auto Actions - triggers. Is that possible?
Please Log in or Create an account to join the conversation.