Re: [Coding Standards] Class-to-file convention
| From: | Alexey Borzov | Date: | Tue, 10 Jul 2007 07:33:56 +0000 |
| Subject: | Re: [Coding Standards] Class-to-file convention | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-47365@lists.php.net to get a copy of this message | ||
Paul M Jones wrote:
The section titled "Class to file convention" states:On the other hand, dozens of files with dozens of smallish classes inside (see f.e. HTML_QuickForm2 in CVS) will negate all hypothetical performance benefits from require_once -> require transitions.Class-to-file convention All public classes must be in their own file with underscores replaced by directory separator, so that PEAR2_PackageName_Base class is always located in PEAR2/PackageName/Base.php (this is required to make autoload always work) Requirement Exceptions maybe made to this rule with approval from the PEAR GroupAllowing for personal exceptions to a fundamental rule like this seems out of place to me; appeals to the Group should be available for any/all the standards, or for none of them. I would say "no exceptions" to this rule.