Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Say you have 2 CFCs: Cock.cfc and Balls.cfc. I will create an instance of them like so:
- <cfset oCock = createObject("component", "Cock")>
- <cfset oBalls = createObject("component", "Balls")>
- oCock has the following functions: halfStrokeUp(), halfStrokeDown(), fullRecipricatingStroke(), flick()
- oBalls has the following functions: cup(), bite()
- And I want to move the flick function from oCock to oBalls so I do this:
- <cfset oBalls["flick"] = oCock["flick"]>
- SO now I can flick my balls and cock. It works just fine. The problem is I want to save (or serialize) that oBalls variable so I can re-use it again and already be able to flick myself. So I do this:
- <cfset strBalls = toBase64(objectSave(oBalls))>
- And now I have strBalls which is an encrypted string that I can decrypt and load it back into a CFC with the flick option. The problem is when I assign one function from a CFC to another, it is passed by reference and not actually part of the CFC itself so when I save it, that function does not get save and isn't available when I try to decrypt it and call that function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement