php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #48797 Package {}
Submitted: 2009-07-04 12:07 UTC Modified: 2009-07-04 12:29 UTC
From: substar7 at yahoo dot com Assigned:
Status: Wont fix Package: Feature/Change Request
PHP Version: 5.3.0 OS:
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: substar7 at yahoo dot com
New email:
PHP Version: OS:

 

 [2009-07-04 12:07 UTC] substar7 at yahoo dot com
Description:
------------
Hi,

I have a feature request for PHP classes. When I built a large system with many classes, I have to instantiate each one of them.

As a result I came to think that there could be a new procedure for classes called "packages"

for example; 



package MyPackage {


class Foo {

function Bar {
  
       } // end function Bar

   } // end class Foo



class AnotherFoo {

function AnotherBar {
  
       } // end function AnotherBar

   } // end class AnotherFoo


} // end Package


Basically packages capsulate classes just like classes capsulate functions.

Thanks for your time

Dogu Can Otag



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-04 12:29 UTC] derick@php.net
PHP 5.3 has namespaces: http://uk3.php.net/namespace
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 23:01:28 2024 UTC