PHP Classes

Classes of Oscar Miranda

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of Oscar Miranda (1)  >  Mission progress status  >  Reputation  
Picture of Oscar Miranda
Name: Oscar Miranda <contact>
Classes: 1
Country: Colombia Colombia
Age: 44
All time rank: 18939 in Colombia Colombia
Week rank: 197 Up1 in Colombia Colombia Up
All time users: 1448
Week users: 0
Innovation award
Innovation award
Nominee: 1x
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image Malla  
PHP Programming Innovation award nominee
June 2004
Number 2


Prize: One book of choice by SAMS
Draw entity-relationship diagram images
This class is meant to generate images that present entity-relationship diagrams.

The entities are represented by rectangles with a text that represents its name. The relationships are represented by lines that connect the relationships rectangles.

The class models entity objects to which may be associated relationships to other entity objects.

The class can draw the entity rectangles in given coordinates of an images created with the GD library.

The relationship lines are drawn in coordinates determined automatically by the class from the respective entity coordinates. The class can also draw labels that are associated to each relationship.

The image can be outputted in any format supported by the GD library.

The supplied example generates clickable image maps that are linked to URLs associated to each entry. You need the TrueType font named tahoma.ttf in the fuentes directory. The example stores the generated image in the tmp sub-directory of the script directory.

The comments and the code are in Spanish.
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 50% 58% - 58% - - 36% 4058
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z