Committing the first phase of the phpDocBuilder.
[phpeclipse.git] / utilities / phpdocbuilder / builder.php
diff --git a/utilities/phpdocbuilder/builder.php b/utilities/phpdocbuilder/builder.php
new file mode 100644 (file)
index 0000000..0fa8f2a
--- /dev/null
@@ -0,0 +1,34 @@
+<?php
+/*
+ * Created on Jul 9, 2007
+ *
+ * To change the template for this generated file go to
+ * Window - Preferences - PHPeclipse - PHP - Code Templates
+ * @author ed_mann
+ */
+ /**
+  * required files
+  */
+  require_once ('DocBuilder.phpc');
+ /**
+  * File will call the xml build doc class to read the php Doc 
+  * xml files and build our master file. You can pass the following
+  * paramaters
+  * <ol>
+  * <li> output file name</li>
+  * </ol>
+  * @author ed_mann
+  */  
+  $out_file = $argv[1];
+  $ref_path = $argv[2];
+  $path = "/data/home/emann/sandbox/php/phpdoc/phpdoc/";
+  //$ver = "/data/home/emann/sandbox/php/phpdoc/phpdoc/phpbook/phpbook-xsl/version.xml";
+  
+  /**
+   * instantiate DocBuilder
+   */
+   $doc = new DocBuilder('out.xml', $path);
+   $doc->buildDoc();
+?>
\ No newline at end of file