Re: Remove variable function and method calls
| From: | Karoly Negyesi | Date: | Thu, 22 Jul 2010 23:36:44 +0000 |
| Subject: | Re: Remove variable function and method calls | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-49111@lists.php.net to get a copy of this message | ||
> public function __get($subclass)
> {
> $include_file = CONTENTLOUNGE_BASEDIR . 'api_' . $subclass . '.php';
> $class_name = 'cl_' . $subclass;
> $this->$subclass = new $class_name();
> return $this->$subclass;
> }
And this code contains no variable function call. You mixed it up with
a variable class name perhaps? That's why I want to nuke it...