[Get logged]        French | English


PHP5 Code generator

This freeware as been developped with C# framework 2.0.If you don't have it on your computer, you should download it before using this software.

what geeksdev PHP code generator does ?

This software takes an SQL file and generate an object model from the database structure There is a screen capture (representing this website structure !)

You can download the software here : : geeksdev PHP5 code generator

Class object

For each classes (identified by a root node in the treeview) you can define behaviors that are :
  • Class as menu behavior
  • Class as web header behavior
  • Inherits from template based class
If the object behave like a menu (and of course implements IMenu) there will be a method named : getMenu that will send back it's name as a link. If you choose the LI style then this link will be surrended by a LI tag. Basically on geeksdev.com menus at the top implements this IMenu interface and are href types !

If the object implements web header interface there will be two methods involved :

  1. getDescription()
  2. getKeywords()
These methods are here to fill out meta keywords and description of your web page.

If the object inherits from template based then there will be a template like managment to display the object content. A template is an html that contents variables named for example {myVariable} that are replaced by the real content at runtime.

Properties

Fields of the database become properties of the object. The generator will find the datatype of the field reguarding the SQL type specified. For example, varchar(255) will be DB_TXT, tinyint will be DB_NUM. The value of DB_PWD is there to tell the generator that the property must be save as encrypted text using AES_ENCRYPT mySQL builtin function. For now here is the types that the generator recognize : For DB_TXT

  • char
  • varchar
  • longtext
  • datetime
For DB_NUM
  • bool
  • int
  • tinyint

There will be pretty soon a technical preview in the PHP section so see you soon !