Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of adscript  >  XML DAO Builder  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example of how to use table_class.php package, in a command line php script
Class: XML DAO Builder
Generate database access class from XML definition
Author: By
Last change: changed the priority
Date: 5 years ago
Size: 321 bytes
 

Contents

Class file image Download
<?php
   
require_once( "table_class.php" );
   
   
// loads the xml and build an object representation 
   
$tb = new XMLTableExtract();
   
$xmltable $tb->load_xml$argv[1] );
   
   
// with the object representation, builds the php class
   
$cm = new XMLClassMaker();
   
$cm->build$xmltable$argv[2] );
?>