jestep
May 8th 2007, 9:08 am
I'm not sure the best way to do this. Just looking for the right way to go about doing this. I just need to call a static method from a normal method within the same class.
Example:
class someStupidClass {
function thisOne (){
//do stuff
//call static function
return $this->output;
}
public static function getInfo(){
//some database stuff
return $info;
}
}
Woould I call it the same as I would from outside the class?
Ex: $this->info = someStupidClass::getInfo();
Example:
class someStupidClass {
function thisOne (){
//do stuff
//call static function
return $this->output;
}
public static function getInfo(){
//some database stuff
return $info;
}
}
Woould I call it the same as I would from outside the class?
Ex: $this->info = someStupidClass::getInfo();