Any chance of having __invokeStatic()

From: Date: Mon, 28 Nov 2011 20:02:14 +0000
Subject: Any chance of having __invokeStatic()
Groups: php.internals 
Request: Send a blank email to internals+get-56657@lists.php.net to get a copy of this message
I think __invokeStatic() would be a very useful magic function, especially with support for late static binding. you could difine it one and all sub-classes will have that option of basically being callable classes. MyClass($params) could then do some processing and return some data. This would basically be the same as doing MyClass::doSomething($params); only without the extra typing of ::doSomething Dmitri Snytkine Web Developer Ultra Logistics, Inc. Phone: (888) 220-4640 x 2097 Fax: (888) 795-6642 E-Mail: dsnytkine@ultralogistics.com Web: www.ultralogistics.com "A Top 100 Logistics I.T. Provider in 2011"

« previous php.internals (#56657) next »