concrete classes should include generated classes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
CoughPHP |
New
|
Low
|
Anthony Bush |
Bug Description
Concrete classes should include generated classes.
* For those not using Autoloader, won't have to include two files every-time they just want to use one.
* For those using Autoloader, lightens the load for it.
A question to ask, however, is whether or not the concrete collection class should include the concrete element class. It probably should, since the moment you try to do anything on it the other class would be required.
So, try this:
// ClassName.class.php
require_
class ClassName extends ClassName_Generated ...
// ClassName_
require_
require_
class ClassName_
I don't mean to literally use $pathTo* variables, but instead to have the generator put the actual path, whatever that happens to be according to the config file at time of generation.
Changed in coughphp: | |
assignee: | nobody → awbush |
importance: | Undecided → Low |
milestone: | none → 1.4 |