The $my "object" isn't actually an object. It's a notation we use for legacy reasons in placeholders, as that used to be the global logged on user object in J! 1.0.x, so we elected to retain that notation for placeholders.
Processing of the $my placeholder is done in the FabrikWorker::replaceWithUserData() method, in helpers/parent.php, where we already re-query J! each time round, using JFactory->getUser(), around line 509.
-- hugh
Do you remember my mentioning that most all lists/forms in my project are being filtered to userid, survey_id, and subscription_type?
Well I've been struggling with an easy way to access those three important values for the current user "globally" throughout Fabrik.
If you can come up with a suggestion for a better way of doing this PLEASE let me know...
After having my idea of a "carry-on" option added when creating new records scoffed - I turned to adding a few fields to the #__users table to track those values for each user.
I thought that by doing that, and using the $my placeholder, I had a solution. It seemed to work, but there was one instance where I was using the new php_events plugin - and the user survey_id gets changed in the #__users table - and yet that change was not immediately reflected in the $my->survey_id value. (That's why I asked this question.)
I know all about the dangers of modifying core Joomla files - but I don't touch the standard fields in #__users - and so far this seems to be working for me. Whether some other part of Joomla, or a 3rd party extension, doesn't like what I did - I have yet to find out.
I can't come up with any other solution. I think I initially tried using $_SESSION variables - but that was not very reliable and was getting lost between sessions.
So PLEASE don't get rid of the $my placeholder, no matter how outdated it is, it's great to use in places in Fabrik where you can't use JFactory::getUser().
OR maybe there could be a Fabrik "global" array variable (placeholder) unique to each user that would allowed storing that sort of info in memory (and a table) for each user session (and wouldn't require altering the #__users table)?