Re: 1 class = 1 file?
| From: | David Soria Parra | Date: | Sat, 12 May 2007 12:19:56 +0000 |
| Subject: | Re: 1 class = 1 file? | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-46745@lists.php.net to get a copy of this message | ||
Am Sat, 12 May 2007 12:17:39 +0200 schrieb Mark Wiesemann:
I don't know if we have that rule, but PEAR.php itself has two classes
in one file. But this might be an exception.
If it is just for internal purpose it should be okay to include into one
file.
> Hi,
>
> we have currently added a stream wrapper class for the CSV DataSource
> driver for Structures_DataGrid. This class is used only for internal
> purposes and won't be used by any user script, and it would therefore
> make sense to put this class into the CSV.php file together with the
> Structures_DataGrid_DataSource_CSV class.
>
> I remember a "1 class = 1 file" rule, but can't find anything about it
> in the manual. Do we really have this rule? Can somebody point me to it?
>
> Regards,
> Mark
>