Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:45620 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2145 invoked from network); 20 Sep 2009 01:24:53 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Sep 2009 01:24:53 -0000 Authentication-Results: pb1.pair.com smtp.mail=ctrahey@csisd.org; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=ctrahey@csisd.org; sender-id=unknown Received-SPF: error (pb1.pair.com: domain csisd.org from 204.56.144.240 cause and error) X-PHP-List-Original-Sender: ctrahey@csisd.org X-Host-Fingerprint: 204.56.144.240 gateway.csisd.org Received: from [204.56.144.240] ([204.56.144.240:53033] helo=gateway.csisd.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 4A/91-23360-46485BA4 for ; Sat, 19 Sep 2009 21:24:53 -0400 Received: from gateway.csisd.org (localhost.localdomain [127.0.0.1]) by localhost (Email Security Appliance) with SMTP id 2F50F7942E0_AB58462B for ; Sun, 20 Sep 2009 01:24:50 +0000 (GMT) Received: from mail.csisd.org (unknown [10.4.0.241]) by gateway.csisd.org (Sophos Email Appliance) with ESMTP id F1E287942E7_AB58461F for ; Sun, 20 Sep 2009 01:24:49 +0000 (GMT) Received: from [10.148.137.116] (166.205.5.33) by mail.csisd.org (FirstClass Mail Server v9.1 build 9.221) with ESMTP (TLSv1/SSLv3 cypher=AES128-SHA bits=128) (Sender: ctrahey@csisd.org) transient id 14026; Sat, 19 Sep 2009 20:25:49 -0500 Message-ID: <63378FEE-57E9-47CA-9FF9-6F7C53C4153A@csisd.org> To: internals@lists.php.net Content-Type: text/plain; charset=us-ascii; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: iPhone Mail (7A400) Mime-Version: 1.0 (iPhone Mail 7A400) Date: Sat, 19 Sep 2009 20:25:31 -0500 Subject: New access modifier From: ctrahey@csisd.org (Chris Trahey) Request for comments/thoughts: A new access modifier for methods (members as well, I guess) to allow access only from certain classes/interfaces. Call it whatever (group, trusted, party, etc), but perhaps something like this: group function myMethod($arg) accessible MyInterface MyClass {} Or group(MyInterface MyClass) function myMethod() {} Chris Trahey Web Applications Developer Database Administrator College Station I.S.D.