Welcome Guest, Not a member yet? Register   Sign In
__get() and __set() with 1.5.4
#6

[eluser]sophistry[/eluser]
@robertx

my notion about get_class() was just to use it (and/or it's brother __CLASS__ ) to determine what your current scope is. in fact, it's just what you said above about extending a base class. using get_class() and/or __CLASS__ was my suggestion to get more info from PHP about where the code should be executing. that said, i haven't done it myself, so it is just theory.

i came upon a similiar problem in PHP4 trying to implement the recently released Active Record class.


Messages In This Thread
__get() and __set() with 1.5.4 - by El Forum - 09-27-2007, 06:47 PM
__get() and __set() with 1.5.4 - by El Forum - 09-28-2007, 08:59 PM
__get() and __set() with 1.5.4 - by El Forum - 09-30-2007, 07:15 AM
__get() and __set() with 1.5.4 - by El Forum - 09-30-2007, 08:11 AM
__get() and __set() with 1.5.4 - by El Forum - 09-30-2007, 06:22 PM
__get() and __set() with 1.5.4 - by El Forum - 09-30-2007, 06:48 PM
__get() and __set() with 1.5.4 - by El Forum - 08-02-2008, 08:38 AM
__get() and __set() with 1.5.4 - by El Forum - 04-01-2009, 10:31 AM
__get() and __set() with 1.5.4 - by El Forum - 12-02-2010, 03:38 AM



Theme © iAndrew 2016 - Forum software by © MyBB