HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.
Search
-
Re: Getting protected info from Sender object. DEMystification help assist needed.
-
Re: Getting protected info from Sender object. DEMystification help assist needed.
the php code in a simple plugin is this the data I want is floating around in the Sender object. I just want to pull the user info without doing a separate sql call or switching the vent or caching it and retrieving it. public function DiscussionController_AfterCommentBody_Handler($Sender) { //this produces the above… -
Re: Getting protected info from Sender object. DEMystification help assist needed.
In any case, you need to determine if you need to (1) only retrieve and make a copy of the "MysteryVariable" or (2) modify the "MysteryVariable" by reference so that any other code that has access to $Sender->DiscussionModel->Database will see any changes you made to the "MysteryVariable." A solution to this problem is to… -
Getting protected info from Sender object. DEMystification help assist needed.
-
Re: Getting protected info from Sender object. DEMystification help assist needed.
Ok - I now realize the user info was stashed into the sender array by another plugin. I was just trying to figure out how to retrieve it in this one, since it was floating around in sender anyway. I guess it is put in the sender array by SymbolEdit plugin. When I disabled SymbolEdit the data was no longer available. But… -
Re: Getting protected info from Sender object. DEMystification help assist needed.
This is a quick example of using EventArguments: Somewhere in the SymbolEdit code where you are hooking into an event that the controller or its view will fire, you can add something like this to assign an event argument: $Sender->EventArguments['SymbolEdit']['ExampleVariable'] = "An example."; To retrieve the variable,… -
Re: Getting protected info from Sender object. DEMystification help assist needed.
You're right that what I posted won't work. I couldn't check half an hour ago. The error shows up in 2.0.18.8 and 2.1b2 as well if you use that code. The var_dump you had in the first post shows user data results. That doesn't seem to be there by default in either 2.0.18.8 or 2.1b2 and looks like something you injected in.…
7 results