Re: Class methods for custom functions

From: Date: Wed, 05 Dec 2001 16:01:01 +0000
Subject: Re: Class methods for custom functions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-2143@lists.php.net to get a copy of this message
Hi, Andrei Zmievski wrote:
Even if you parse the closure into the object and the method name, that object only exists while compiler is running.
Hmm.. so you want to recreate an instance of the object on the fly. Sounds dirty. Why not only allow the use of static members? Then you don't need an instance, and doing $objname::$method would suffice. On the other hand, suppose I want to call an object method for a certain tag. Then I would be responsible for creating this object. The $obj would then already be available and need not bee serialized. Greetings, Ivo -- Ivo Jansch <ivo@ibuildings.nl> ibuildings.nl BV - information technology http://www.ibuildings.nl

« previous php.smarty.general (#2143) next »