scoping problem
Posted: Fri May 09, 2008 6:47 pm
I have a generic mysql handling class which (among other functions) implements
insert
insertAndRetrieve
I also have a class that extends the above class and has a custom version of insert which encrypts credit card numbers.
The problem is that when insertAndRetrieve is called, it starts with a call to $this->insert which calls the generic one instead of the specific one because $this scopes to the generic (parent) class because insertAndretrieve is not overridden in the subclass. What can I put in place of $this that will make the call to the subclass?
Thanks,
Warren
insert
insertAndRetrieve
I also have a class that extends the above class and has a custom version of insert which encrypts credit card numbers.
The problem is that when insertAndRetrieve is called, it starts with a call to $this->insert which calls the generic one instead of the specific one because $this scopes to the generic (parent) class because insertAndretrieve is not overridden in the subclass. What can I put in place of $this that will make the call to the subclass?
Thanks,
Warren