Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:56657 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 52415 invoked from network); 28 Nov 2011 20:02:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Nov 2011 20:02:25 -0000 Authentication-Results: pb1.pair.com header.from=dsnytkine@Ultralogistics.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=dsnytkine@Ultralogistics.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain Ultralogistics.com from 64.197.110.172 cause and error) X-PHP-List-Original-Sender: dsnytkine@Ultralogistics.com X-Host-Fingerprint: 64.197.110.172 thrud.alliantinternet.com Received: from [64.197.110.172] ([64.197.110.172:36797] helo=thrud.alliantinternet.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 43/10-50663-FC8E3DE4 for ; Mon, 28 Nov 2011 15:02:24 -0500 Received: by thrud.alliantinternet.com (Postfix, from userid 1001) id C507B1742E9; Mon, 28 Nov 2011 15:02:17 -0500 (EST) To: Date: Mon, 28 Nov 2011 15:02:14 -0500 Message-ID: <008601ccae08$9fcff840$df6fe8c0$@alliantinternet.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Thread-Index: AcyuCJ74Ny5OLdX7QhWlfNzZZMG6ug== Content-Language: en-us Subject: Any chance of having __invokeStatic() From: dsnytkine@Ultralogistics.com ("Dmitri Snytkine") 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"