Jump to content


How To Store An Object?

  • Please log in to reply
No replies to this topic

#1 efolia

  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 28 June 2006 - 12:17 PM

EDITed out.
I figured it out. :-)
I wrote a method to save and restore the state of the (and only the) dynamically assigned variables so they can be stored in a mySQL table and restored later. It's the only way, since the class itself (XTemplate, in this case) is using too many internal variables (including referenced and recursive data) to make using get_object_vars() or serialize() a practical option.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users