Automatic class name retrieving based on it's filename
Imported From: http://groups.google.com/group/in-portal-dev/browse_thread/thread/913c2ee4329cd75e#
I propose we auto-guess php class name based on filename, where that class is stored.
For example "my_super_helper.php" file will contain "MySuperHelper" class and nothing other.
There are several benefits of this:
no need to specify class name in unit config file (only class filename remains)
developer will be forced to properly name class file to connect it's class to the system
This large change, since we need to rename most of our classes/files to keep everything workings. That's why I propose this change to be made as part of 5.2.0 release.
This is interesting idea and I do see noted by you advantages, but that
means that we'll have different names inside of Unit folders then?
Now they kind of nice:
units/test_eh.php
units/test_tp.php
units/test_config.php
?
DA.