control_object - what does it do?
Shade Offline
Junior Member
**
Posts: 13
Joined: Jun 2012
Post: #1
control_object - what does it do?
Hi,
I'm applying some custom patches to some XThreads features to suit my own needs. I started reverse-engineering the logic behind them in the plugin, and saw your control_object function used in many contexts.

How does it work? I think I've misunderstood its purpose. Could you just give me an explanation of its utility? Thank you.
07-29-2013 11:01 PM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #2
RE: control_object - what does it do?
It gains control over an existing object, or more specifically, allow you to inject code into it.

My Blog
07-31-2013 09:47 AM
Find all posts by this user Quote this message in a reply
Shade Offline
Junior Member
**
Posts: 13
Joined: Jun 2012
Post: #3
RE: control_object - what does it do?
So I could inject my own code into the $mybb object if I'm not mistaken, right?
08-02-2013 06:11 AM
Find all posts by this user Quote this message in a reply
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: control_object - what does it do?
If you really wanted to, yes.
I really don't see the point in injecting anything into the $mybb object though.

My Blog
08-02-2013 10:04 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

 Standard Tools
Forum Jump: