After searching for related posts, I read.
I have a little different, but there is a related problem.
Is there a way without Evil (because it is a bad idea - is open for abuse if a person lets the user supply the price, which is used in the present, etc. ) As you can see, for example: class structure:
If class_exists ($ className) and Dao :: tableexists ($ className)} increase {class $ className daoObject {Public Function __construct $ Uid} {Origin: __ Construction ($ uid); }} Dao :: generated class ($ squarename); }
The reason for this is that when a new main table is added to a framework, then it can be used with the normal data access object to reach the related fields ( Parents by gates / sets __call, without having to write a class for each person, write a class without having to write / add / update / delete) and after that for different types of tables Security must inspect or write custom code generator. Dao object does all this for me.
Intention is to use such a method to define a class if it does not exist, then define the class definition in a file.
If the related table name is not present, then it will fail. If the class exists (as if it is run next time), it will not define it if it is not in existence but there is a tablaanam, you can make it, use it and save it for the first time, which It will happen when new tables are inserted and a script is run for inserting data. The author will define only table fields and sample data via CSV. This script will generate the class and import the data into one hit. I can write a definition in a file, then include it, which seems to be working, but I want to do that after that I have modified the properties of the object, so let me make it
It is simplified , but is it possible?
I do not think this is possible; As you said, the best option is to write a file in a class, then automatically load that class.
Comments
Post a Comment