I am debugging a site I am having to work with classes which I am not that used to as of yet.
There is this class in this site that processes a $this
but there does not seem to be any variable passed to the class.
the class is like this
class myclass extends otherclass{
function dosmthtomyclass{
print_r($this);
}
}
function dosmttomyclass
prints an array.
there are bunch of variables defined protected in the class but there does not seem to be any specific value specified for any of those variables and there is no constructor in the class to the pass the value to.
I am seriously confused as to where the variable must have been passed from. This may be something really basic but any help would be appreciated. what are the possible ways of passing variables to the class