So I'm like killing myself here.
I want to use __get, but while static. There is a _callStatic, but no __getStatic. Is there any way round this? Currently I'm using:
It doesn't look greatPHP Code:public static function get($name)
{
if(isset(self::$instances[$name]))
{
return self::$instances[$name];
}
return false;
}
I don't want to be using a function, and I don't want to construct the class. Is there any way to do this?
~Callum


LinkBack URL
About LinkBacks





Reply With Quote

