Login   Register  
PHP Classes
elePHPant
Icontem

File: Example

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andres Dario Gutierrez Poveda  >  Object Generator  >  Example  >  Download  
File: Example
Role: Example script
Content type: text/plain
Description: Example of usage
Class: Object Generator
Generate DAO classes from database table structure
Author: By
Last change: New example
Date: 2004-08-31 11:00
Size: 532 bytes
 

Contents

Class file image Download
<?php
include("/pathto/MySQL.class.php");        // Needed for DB connect
include("/pathto/Date.class.php");        // Needed for date part
include("/pathto/generadorobjetos.class.php");    // Needed for it to work
    
$newdb = new mysql(); 
$newdb->mysql_configure($host,$port,$user,$pass,$db); 
$newdb->mysql_connect();         
    
$generador = new objectgenerator();
    
$generador->set_autor("Your name");
$generador->set_empresa("Your company name");
$generador->set_email("Your e-mail");
$generador->generar($newdb,"/pathto/Objects");
?>