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
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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 10:01:29 2024 UTC