A quick look at the code and it seems to treat all content as text - you either get a text input or a text area.
Even without any php Models defining the type of a field, the MySQL column types provide a reasonable amount of information about the type which can be translated (as phpMyAdmin/etc do) into more logical form fields.
The tool generates a base administrator and you can add all functionalities that you want.
Is this designed to work with any particular framework?
The used framework is Silex (http://silex.sensiolabs.org/)
Thank you.
Also, can I regenerate only parts of the interface (after changes to the database, for instance)?
An alternative approach would be to supply custom classes to the generator at the time that it generates.
For example.
Class CustomerTable extends AdminTable {
$hiddenfields = [ "created_date" , "password" ];
$validation = [ "email" => "validateEmail"];
function validateEmail($validate_data) {
return validEmailAddress($validate_data);
}
}
Then the user can place this class somewhere specific or register it with the generator in some way, and when the generator runs it will use this class and not overwrite changes.Like
$adminGenerator->use("customer","CustomerTable");
This way you can keep using the generator even after you have done extensive modification to the tables and code.