Stanislav Malyshev wrote:
The problem is that in Zend/ directory there are a lot of php files:
Ok, there is. Why it is a problem though?
couse it is not strict package separation
It would be much better to move them to:
Acl/Acl.php
Ok, and Zend_Acl_Adapter would be in Acl/Adapter/Adapter.php or in
Acl/Adapter.php? If the former - how it's not directory per file? If
the latter, why Zend_Acl gets subdirectory and Zend_Acl_Adapter not
and how one is to know that by the name?
The same as it is now.
Zend/Filter/Filter.php, package Zend_Filter, classname Zend_Filter
Zend/Filter/Alnum.php, package Zend_Filter, classname Zend_Filter_Alnum
Zend/Filter/Dir.php, package Zend_Filter, classname Zend_Filter_Dir
So this means that all package files would be in package directory.
If u need only one package u take the package directory.
How do I know Zend_Foo_Bar_Baz is a package or part of Zend_Foo_Bar
package or part of Zend_Foo package?
If it is in directory it is a package or subpackage, thats how u know
Zend/Foo/Bar/Baz.php => Package Foo, Subpackage Bar, class name
Zend_Foo_Bar_Baz
If file is in a directory - it is in package, and u know package
name[directory name]
How do I know the directory name? You seem to have different rules for
"packages" and "not packages" but I fail to see how do you know the
name is package or not.
:) U would know everything about package the same way u know now, except
that one file would be moved one level down
--
Pagarbiai,
Tautvydas Andrikys aka esminis <mailto:[EMAIL PROTECTED]>
www.esminis.lt <http://www.esminis.lt>
www.bajeriai.lt <http://www.bajeriai.lt>