In a class, can $this be passed by reference or value?
function setDatabaseObje ct("MySql", $this) {
// some code here checks the name of the
// class of the object that is calling this method
}
For security, and to enforce naming conventions, I'd like for some of
my objects to only be callable from certain classes, but the only way
I can think for an object to get the name of the calling code is if I
had in the $this keyword.
Comment